Tag Info

Hot answers tagged

8

Load the package etoolbox and issue \preto{\backmatter}{\addtocontents{toc}{\protect\addvspace{16pt}}} In this way, when you issue \backmatter a 16pt skip is added in the ToC. MWE: \documentclass[12pt,a5paper]{memoir} \renewcommand\thepart{\arabic{part}} % modify ToC part \renewcommand{\cftpartaftersnum}{.} ...


5

Here I borrow \notate from my answer at Add comments in a verse environment and incorporate that into a redefined \\ as I also redefine verse. I, unfortunately, could not provide for the original verse's optional argument in the traditional way. Instead, one can \renewcommand\verseposition{length} in order to set the parameter which is equivalent to the ...


4

You need to make end-of-line \\ : \documentclass[ebook]{memoir} \begin{document} \linenumberfrequency{10} \verselinenumbersleft \begin{verse}\obeylines\let^^M\\% Herman: O'er every birth a star of fate presides, And he that knows his orb of destiny, May, by the changes of its radiance, tell Whene'er his good or evil genius reigns. This knowledge, ...


3

The space in the earlier parts comes from \part and it is easier, and I think leads to a more simply understood table of contents to use the same mechanism here rather than simply rely on space. \documentclass[12pt,a5paper]{memoir} \renewcommand\thepart{\arabic{part}} % modify ToC part \renewcommand{\cftpartaftersnum}{.} ...


3

It is just \renewcommand\cftchaptername{\chaptername~} in order to get at prefix into the toc Just as an addition to the comment, if you want to do the same with the appendices in the toc, use \renewcommand\cftappendixname{\appendicname~}


2

Use the build in stuff from memoir. Thus drop titlesec and use \linespread{1.5} \setaftersecskip{1sp} I'd even use something else than linespread, just cannot remember the name of that memoir macro


2

I suspect that sidecaption tries to typeset the text inside an \mbox (\hbox in TeXnical terms), where itemize is illegal. Wrap it in a \parbox: \documentclass[a4paper, 11pt,twoside, openright]{memoir} \usepackage{mwe} % just for dummy images \usepackage{amssymb} \usepackage{amsmath,mathtools} \usepackage{amstext} % defines the \text command, needed here ...


2

Your redefinition of \printchapternum has to be changed to something like \renewcommand*{\printchapternum}{% \enspace\resizebox{!}{\numberheight}{\chapnumfont\thechapter}% \rlap{\hspace{1cm}\rule{\midchapskip}{\beforechapskip}}% }% change the 1cm I used to separate the number and the filled square to the desired value. The complete code: ...


2

I don't know whether there is a suitable font for your needs, but if you don't want to use small caps at all, you can add these lines in your preamble: \usepackage{letltxmacro} \LetLtxMacro{\scshape}{\upshape} MWE \documentclass[a4paper,article]{memoir} \usepackage[demo]{graphicx} \usepackage{polyglossia} \setdefaultlanguage{french} \setmainfont{Open ...


2

A better hack might be to use \makeatletter \renewcommand*{\m@mscapopboxes}{% \m@mcalcscapraise% \usebox{\m@mscap@fbox}%\m@mscapcheckside \ifscapmargleft% \rlap{\kern-\m@mscaplkern% \raisebox{\m@mscapraise}{\smash[b]{\usebox{\m@mscap@capbox}}}% }% \else% \rlap{\kern\sidecapsep% ...


2

Typeset the mock caption in a box that's discarded: \documentclass{memoir} \usepackage{graphicx} \newsubfloat{figure} \begin{document} \chapter{Test} \ref{X} \begin{figure}[htp] \centering \subbottom[some name]{\includegraphics[width=5cm]{example-image-a}\label{somelabel}} \setbox0=\vbox{\caption{somecaption}} \end{figure} \begin{figure}[htp] ...


1

The idea is to offset the page number to compensate for the uneven margins. \documentclass{memoir} \copypagestyle{INRSDocExamTitle}{plain} \makeoddfoot{INRSDocExamTitle}{}{\thepage\offset}{} \makeevenfoot{INRSDocExamTitle{}{\thepage\offset}{} \newcommand{\offset}% center page number in text area {\ifodd\value{page}\hspace{\dimexpr ...


1

IMO the easiest thing to do is to manually code this particular pagestyle: \makeatletter \@namedef{ps@INRSDocExamTitle}{% \@namedef{@oddfoot}{% \hspace{-\spinemargin}% \parbox[b]{\paperwidth}{% \strut\hfill \thepage \hfill\strut% }% }% } \makeatother Just to show the effect \documentclass[a4paper]{memoir} ...


1

The culprit here is the file gloss-french.ldf which has \def\figurename{\textsc{Fig.}} so you can override this using, for example, \addto\captionsfrench{\def\figurename{Fig.}} A complete example: \documentclass[a4paper,article]{memoir} \usepackage[demo]{graphicx} \usepackage{polyglossia} \setdefaultlanguage{french} \setmainfont{Open Sans} ...


1

This can be used as a starting point. We use a twoside setup that are then tricked into looking like a oneside layout \documentclass[a4paper]{memoir} % just to show they are vastly different \setlrmarginsandblock{2cm}{4cm}* \checkandfixthelayout % trick \setlength\evensidemargin{\oddsidemargin} \usepackage{lipsum} \makepagestyle{m} ...


1

The following will give a PDF 8.00 inches high, 5.25 inches wide. Not sure what else you want to do as far as margins go, but it's a start. References include the memoir manual, chapter 2 "Laying out the page", with a summary of steps in section 2.6 "Putting it all together". The preview below is of a two-page view, but each page is sized correctly. ...


1

Quick and dirty trick, add the following to your preamble: \makeatletter \renewcommand{\endsidecaption}{\m@mscapend@fbox\refstepcounter\@captype\m@mscaplabel% \begin{lrbox}{\m@mscap@capbox}% \raisebox{0pt}[\height][0pt]{% This line is added, to remove the depth of the box \begin{minipage}[c]{\sidecapwidth}% ...


1

I finally solve my problem, here you can find the result code using the cryptic documentation of memoir :) Correction of font size : \captiontitlefont{\normalfont}% title font \precaption{\raggedright}% for Caption N \captiondelim{\newline}% newline* \captionstyle{\raggedright}% for title \setlength{\belowcaptionskip}{\onelineskip} Correction of the ...


1

Longer comment. It seems if you add control of \abovedisplayskip, then it is actually multline that is the worst. I hardly ever use it anyway, I tend to use align for most and combine it with \MoveEqLeft from `mathtools. Here is the comparison. \documentclass[11pt,a4paper,onecolumn,openright,final]{memoir} %=============================================== ...


1

There is not much reason to use titlesec here. Just use memoirs own interface to format the though. But, when you want to use frontmatter and mainmatter plus want to generally change the secnumdepth, remember to use \setsecnumdepth{chapter} \maxsecnumdepth{chapter} The maxsecnumdepth (bad name) is what the secnumdepth is reset to at the start of ...


1

I still think, this question is a duplicate to @egreg's answer. We use scrlayer-scrpage with some of the newest features, so an up to date TeX-distribution is needed. We first clear all the predefined fields (1), remove the chapter number from the our left pages (2), put the leftmark, which is our chaptertitle, in the center of even pages (3). Put the ...



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