Hot answers tagged

11 votes
Accepted

TeX Live 2021, memoir, chemmacros and float conflict

The problem is that memoir does \AtBeginPackage{float}{\let\newfloat\relax} which effectivly undefines \newfloat. Now, when float is loaded the \newfloat definition of float is valid and not the one ...
user avatar
  • 64.6k
5 votes
Accepted

ensuremath, textsf and memoir: the impossible trio

I see no reason for having a command that works in text and in math. See When not to use \ensuremath for math macro? and other threads. If you really want it, which I doubt, do \newcommand{\abcd}{\...
user avatar
  • 994k
5 votes

Memoir and Footmisc problem

As far as I can see the problem always lurked in the redefinitions memoir does to the internal output routine commands of LaTeX. You can also produce it, for example, with your example and the old ...
user avatar
4 votes
Accepted

Conflict between spanish babel with memoir in two column and \frontmatter

the twocolumn option of memoir loads the mparhack package which tries to write page numbers to the aux-file. But spanish redefines roman and so in the frontmatter you get errors. You can avoid the ...
user avatar
4 votes
Accepted

Manually setting one chapter number in memoir

\documentclass{memoir} \chapterstyle{dash} \begin{document} \renewcommand\thechapter{7.5} \chapter{The Laboratory} %This is the chapter I want labelled 7.5 \renewcommand\thechapter{\arabic{chapter}}...
user avatar
4 votes

Fix Trim size 6.125in x 9.25 in using memoir

I think that this will do it for you. % memtrimprob.tex SE 642484 \documentclass[10pt,smallroyalvopaper,oldfontcommands]{memoir} \settrimmedsize{9.25in}{6.125in}{*} % set the trimmed size \...
user avatar
  • 25.6k
3 votes
Accepted

Confounding errors when \frontmatter and cleveref interact while using aucklandthesis.cls?

The underlying problem has little to do with cleveref in this case. What happens is that calling \frontmatter in aucklandthesis.cls messes up memoir's setup for secnumdepth and, hence, all of your ...
user avatar
  • 11.3k
3 votes
Accepted

How can I get b6paper instead of a default letterpaper using the geometry package?

The memoir document class provides lots of options for selecting the page size. E.g., \documentclass[b6paper]{memoir} That'll give you a page that's 176 mm tall and 125 mm wide. (Running \geometry{...
user avatar
  • 439k
3 votes

How can I get a three-column index in the memoir class?

Unless I'm missing something, this seems to work just fine \documentclass{memoir} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% try for 3 column index \newif\ifthreecolindex \newcommand{\...
user avatar
  • 49.5k
3 votes

Getting custom output from numtoname

Like this? \documentclass{memoir} \begin{document} \numtoname{125000} \renewcommand*\nNamec{\iflowernumtoname l\else L\fi ac} \numtoname{125000} \end{document} Every word that would appear in the ...
user avatar
3 votes

Memoir and Footmisc problem

Here is a possible workaround \documentclass{memoir} \usepackage{footmisc} \usepackage{reledmac} \makeatletter \AtBeginDocument{ \appto\@makecol@appendblocks{% \m@mdoextrafeet% \m@...
user avatar
  • 49.5k
3 votes
Accepted

Long chapter name second (and further) line(s) indent in the table of contents (TOC) using Memoir class

It can be done if you are a bit sneaky. Basically we make two copies of the macro that is typesetting chapter entries in the TOC. We modify one of them and then add and use hooks in to the TOC data to ...
user avatar
  • 49.5k
3 votes
Accepted

Package setspace not working

memoir suppresses the setspace package and has its own version: \documentclass[a5paper, 11pt]{memoir} \usepackage[utf8]{inputenc} \usepackage[spanish,es-tabla]{babel} %%\usepackage{setspace} \begin{...
user avatar
3 votes
Accepted

memoir: How can I omit the endnote header if there are no endnotes?

Here is something you "could" do \makeatletter \newcommand\printmynotes{ \immediate\closeout\@notefile \ifnum\pdffilesize{\jobname.ent}>0 \printpagenotes* \else % reopen \...
user avatar
  • 49.5k
2 votes

Memoir: add chapter headings to 'list of...'

I thank Simon Dispa for his answer and I note your comment about "something more automatic". The following is a version of Simon's answer that automatically adds chapters to the LoF % ...
user avatar
  • 25.6k
2 votes
Accepted

Setting the header to include only the page number, chapter #, and chapter title (in memoir)

Here's how I'd solve it \documentclass[10pt]{memoir} \usepackage{lipsum} \makeatletter \makepagestyle{myheadings} \makepsmarks{myheadings}{ \nouppercaseheads % remove any marks for sections (might ...
user avatar
  • 49.5k
2 votes

How to align an epigraph?

I thank Werner for his answer and I want to add a bit more. By default epigraphs are set flushright. I think that if you want them to be set on the same line then the positioning is probably best ...
user avatar
  • 25.6k
2 votes

How to align an epigraph?

You can set both \epigraphs inside their own minipage: \documentclass{memoir} \usepackage{lipsum} \begin{document} \chapter{Introduction} \noindent \begin{minipage}[t]{.5\linewidth} \setlength{\...
user avatar
  • 567k
2 votes
Accepted

How could I implement a hanging paragraph style in this environment?

It seems you don't want to change fonts so alltt is not the right enviornment, I think you are using it to get access to \obeylines to avoid writing \\ at the end of each line, so something like \...
user avatar
2 votes
Accepted

Text and image on part page

The memoir manual talks about this, but perhaps not as clearly as it might do. Basically \part{Title} sets the part title and then calls \partpageend to finish off. By default it finishes the part ...
user avatar
  • 25.6k
2 votes
Accepted

Custom left-aligned Veelo chapter style in Memoir

You can apply a negative kerning depending on the initial digit. I computed the following values by eye after looking closely them inside bounding boxes. \documentclass[a5paper]{memoir} \usepackage{...
user avatar
  • 994k
2 votes

Latex error: \begin{thebibliography} on input line 1 ended by \end{bibitemlist}. \end{thebibliography}

The problem can be reproduced in the following MWE \documentclass[british]{memoir} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{chicago} \begin{filecontents}{\jobname.bib} @book{elk, ...
user avatar
  • 160k
2 votes
Accepted

Hyperref package not working with latest version of the memoir class

The (global) class option draft that you are passing to memoir is picked up by hyperref. For hyperref the draft option disables all hyperlinking. There are two ways to fix this Don't load the draft ...
user avatar
  • 160k
2 votes
Accepted

Background image command works in twocolumn article but not in memoir

Thus is due to memoir loading the mparhack package in twocolumn mode as else the placement of margin stuff cannot always the trusted (as the mechanism to determine whether we are in first or second ...
user avatar
  • 49.5k
2 votes
Accepted

memoir document class (two-column mode): how to change between default and article-mode chapter settings?

The article option sets \ifartopt to true (\ifartopttrue) and the memoir code then adapts it self to this. Additionally macros like \chapter react to the boolean value of this option. So if all we ...
user avatar
  • 49.5k
2 votes
Accepted

Error when using \edtext in eledsection with memoir and babel

The Spanish module for babel changes the behaviour of < and > to facilitate quoting. In fact, << and >> are defined as shorthands for \begin{quoting} and \end{quoting} respectively, ...
user avatar
  • 1,231
2 votes
Accepted

settypeblocksize does not change the textwidth

As @daleif says you can't change the layout mid page, but perhaps memoir's adjustwidth environment is what you can use. % textwidthprob.tex SE 643343 \documentclass[letterpaper]{memoir} \...
user avatar
  • 25.6k
2 votes

How can I put chapter number and chapter title in one line in memoir?

memoir provides the commands to create custom chapter styles without additional packages. \documentclass{memoir} \makechapterstyle{sectionx}{% define the new style \chapterstyle{default} \...
user avatar
2 votes

Header is lost when the new chapter starts at the same page

Unnecessarily complicated: just use the article option of memoir: \documentclass[article,a5paper]{memoir} \usepackage{lipsum} \makepagestyle{foo} \makeheadrule{foo}{\textwidth}{\normalrulethickness} \...
user avatar
  • 73.4k
2 votes

Start recounting chapters in each part

Reconsider it. However, you can do it and just comment the relevant line when you change your mind about it. I don't recommend doing it, because cross references will become awkward: As we saw in ...
user avatar
  • 994k

Only top scored, non community-wiki answers of a minimum length are eligible