Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX template configuration for memoir class #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bernardjoseph
Copy link

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
Copy link
Owner

jgm commented Apr 13, 2022

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
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants