Skip to content

LaTeX template configuration for memoir class - #18

Open
bernardjoseph wants to merge 1 commit into
jgm:masterfrom
bernardjoseph:master
Open

LaTeX template configuration for memoir class#18
bernardjoseph wants to merge 1 commit into
jgm:masterfrom
bernardjoseph:master

Conversation

@bernardjoseph

Copy link
Copy Markdown

I have made some configuration items for the LaTeX memoir class in the LaTeX template.

  1. There should be no \frontmatter, \mainmatter and \backmatter if the article option is provided. In this case the memoir class emulates the article class.
  2. The parskip package is emulated by memoir and \usepackage{parskip} is ignored.
  3. The setspace package is emulated, but the relevant command is called \setSpacing instead of \setstretch.
  4. The \tableofcontents command makes an entry for the table of contents in the toc. This is different from the \tableofcontents command in other classes. The command \tableofcontents* behaves like the default \tableofcontents command and should be taken in the template.

The memoir configuration uses the @ifclassloaded macro, which is not nice, because it puts everything into the LaTeX file. I think it would be good to be able to check the class value in the template as part of the $if()$. Is this possible to implement?

@jgm

jgm commented Apr 13, 2022

Copy link
Copy Markdown
Owner

We could change the latex writer so that it sets a memoir variable if the memoir class is used. Or, more ambitiously, we could extend doctemplates so that you can do

$ifeq(documentclass,"memoir")$

(So far I've resisted this complexity.)

By the way, can you remind me how one distinguishes articles from books in memoir class?

@bernardjoseph

Copy link
Copy Markdown
Author

The memoir class defines a \ifartopt macro. That is what I have used in the template.

Repository owner deleted a comment from Dfghj887533 Jun 6, 2025
@jgm

jgm commented Jun 6, 2025

Copy link
Copy Markdown
Owner

This repository is just a mirror of the data/templates directory from jgm/pandoc.
Any PRs should be made there.
(Unfortunately there is no way to turn off PRs in this repo.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants