Tag Info

New answers tagged

0

Thanks to egreg in the first comment on my question, I fixed the code in the link I posted in my question. I implemented the code fixing the problem in Misc/Packages.tex.


2

This is similar to the other answer except that I do not explicitly set the ratio of the left to right margins, but I do explicitly set the stock size. The \checkandfixthelayout is key here. Once you add that, you find your initial settings were impossible (it stops with an error telling you this). You can then figure out that you need to alter the spine and ...


2

I think this does what you want. \documentclass[showtrims]{memoir} \usepackage{lipsum} %\setstocksize{11in}{8.5in} \trimFrame \settrimmedsize{9in}{7in}{*}% heigh | width | ratio \settrims{0in}{0in} \settypeblocksize{6.5in}{*}{.75} \setlrmargins{*}{*}{0.5}% spine | (fore)edge | ratio \checkandfixthelayout \begin{document} \section{First section} \lipsum ...


3

Set the footer in a tabular: \documentclass{memoir} \makepagestyle{mystyle} \makeoddfoot{mystyle}{my journal}{\begin{tabular}[b]{c} \thepage\\ \mbox{A}\\ \mbox{B} \end{tabular}}{} \pagestyle{mystyle} \setlength{\footskip}{35pt} \begin{document} Some text. \end{document} Remove the A and B - it's just for showing the vertical alignment. Due to ...


4

Sure. You can use a \parbox, something like \makeoddfoot{mystyle}{}{\parbox{\textwidth}{\centering\thepage\\[\baselineskip] my journal\hfill\null}}{} and increase the height for the footskip using \setheadfoot. The necessary value to use will be displayed in the output console and in the .log file. For example, with the settings I gave before, the ...


4

You need to add \makeheadrule{mystyle}{\textwidth}{\normalrulethickness} Also, the colors you are using are defined by xcolor loaded with the dvipsnames option. MWE: \documentclass{memoir} \usepackage[dvipsnames]{xcolor} \begin{document} \copypagestyle{mystyle}{ruled} \makeheadfootruleprefix{mystyle}{\color{Bittersweet}}{\color{PineGreen}} ...


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} ...


6

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 ...


7

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, ...


6

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 ...


1

it appears you can only put one item into the header at a time via the \rightmark \leftmark. That is true, but not the whole truth. You can work round it by concatenating several data items into a mark, and then selecting the appropriate item when you print the header. Since parts and chapters are unlikely to be less than 2 pages long, you can ...


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} ...


0

I unfortunately don't know how to do it with beamer overlay specifications. But TikZ styles are very powerful and can be used to emulate a similar behaviour, although I don't know a way to cut the boilerplate code. Here is a documented example. Let me know if you have questions. \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{ ...


-1

The memoir class has some hooks to do this without defining a complete new style. This example has ridiculous formatting, just to show how it works. Change the font settings to what you want. \documentclass{memoir} \begin{document} \frontmatter \renewcommand{\chaptitlefont}{\normalfont\bfseries} \chapter{Front} \mainmatter ...


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: ...


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}{.} ...


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}{.} ...


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 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 ...


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% ...


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 ...


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


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 ...


0

I discovered xcoffins through this design, after that it was a breeze: \nouppercaseheads \newlength\BOOK@bleed \setlength{\BOOK@bleed}{3mm} \NewCoffin\headerWrap \NewCoffin\headerText \NewCoffin\headerRule \NewCoffin\headerPageNum \newlength\BOOK@headWidth \newlength\BOOK@headExtra \setlength{\BOOK@headExtra}{2em} \setlength{\BOOK@headWidth}{\textwidth ...


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

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

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

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. ...


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 ...


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

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 ...



Top 50 recent answers are included