# Tag Info

13

It's easier to see the difference in the log file. \documentclass[12pt]{memoir} \usepackage{microtype} \begin{document} \showoutput 1say.\index{say} 2say\index{say}. \end{document} shows ....\OT1/cmr/m/n/12 1 ....\OT1/cmr/m/n/12 s ....\OT1/cmr/m/n/12 a ....\kern-0.32639 ....\OT1/cmr/m/n/12 y ....\kern-0.97916 ....\OT1/cmr/m/n/12 . ....\penalty 10000 ...

6

As egreg points out, cfr-lm with no options is equivalent to: \usepackage[% rm={oldstyle=true,proportional=true},% sf={oldstyle=true,proportional=true},% tt={oldstyle=true,proportional=true,variable=true},% qt=false% ]{cfr-lm} In addition to using oldstyle rather than lining figures, this means that loading cfr-lm without options will do the following: ...

5


5

The workaround is to add the line \renewcommand{\theHchapter}{\Roman{chapter}} just after \setcounter{chapter}{0} Hchapter is the counter used internally by hyperref (loaded by bookmark) corresponding to chapter. MWE \documentclass{memoir} \usepackage{bookmark} \begin{document} \tableofcontents \chapter{Foo} \appendix \appendixpage \chapter{First ...

5

Compare the fonts you get with or without the cfr-lm package \documentclass{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{cfr-lm} %\usepackage{lmodern} \usepackage{fonttable} \newcommand{\printfontdimen}[1]{% \texttt{\string\fontdimen#1: }% \expandafter\texttt\expandafter{\the\fontdimen#1\font}% } \begin{document} ...

5

Using \section*{} just to get some blank vertical space is not the best way to accomplish the task; a vertical space is obtained by commands such as \smallskip \medskip \bigskip In the standard classes \smallskip is 3pt shrinkable to 2pt and (optimally) stretchable to 4pt; \medskip is 6pt shrinkable to 4pt and (optimally) stretchable to 8pt; \bigskip is ...

5

I took my answer at Looking for three images on top of each other with text underneath each, changed the figure (rule) widths to make them different, and added a [r] optional specifier to the \Shortstack for right alignment. The cited answer explains how the use of the \subcaptionbox variant in conjunction with a package like stackengine can allow great ...

5

I would use the subcaption package and \phantomsubcaption (or \phantomcaption if you decide to use e.g., subfigure environment). Note that you need version 1.1 of the subcaption package. Below is your adapted MME: \documentclass{memoir} \usepackage{tikz,siunitx,mwe} \usepackage{subcaption} \newsubfloat{figure} \newcommand{\scalebarimg}[6]{ ...

4

I see a nice answer has appeared, but since I was working on this one, I'll present it also. The \tripleinset macro has 8 parameters plus an optional parameter. They are, in order: "label" - optional parameter, for later use of \ref. The subfigs add an a, b, and c to this label \labelhoffset - the horizontal inset of the label. "0in" would actually be ...

4

You can (see daleif's comment) use the LaTeX kernel macro called \@ifclasswith to test whether or not the a5paper option was passed to memoir, and do different things accordingly. One potential downside of this approach is that using \@ifclasswith is only allowed in the preamble, not in the body of the document. ...

3

\documentclass{memoir} \newfloat[chapter]{listing}{lol}{Listing} \newcommand{\listlistingname}{List of Listings} \newlistof{listoflistings}{lol}{\listlistingname} \newlistentry{listing}{lol}{0} % added % "The other part of creating a new 'List of...', is to specify the formatting of % the entries" (memoir manual, section 9.3) \begin{document} ...

3

You can use the varwidth environment from the package with the same name. \documentclass{memoir} \usepackage{lipsum,varwidth} \newsubfloat{figure} \begin{document} \lipsum[1] \begin{figure} \centering \begin{varwidth}{\linewidth} \raggedleft \subbottom[]{\framebox{Narrow subfig}} \\ \subbottom[]{\framebox{Wide subfigure with lots of stuff}} ...

3

You could use memoir's \currenttitle: \documentclass{memoir} \usepackage{mdframed} \mdtheorem[style=mpdframe]{discuss}{Discuss Topic}[chapter] \begin{document} \chapter{Test chapter} \section{Test section} \label{sec:test} \begin{discuss}[\currenttitle] test text \end{discuss} \end{document} The problem with the above code is that \currenttitle ...

3

I would say it is the best to define a new macro for the crucial sections like \newcommand{\dsection}[1]{\section*{\titlebar*#1}} with a simplified (starred) version of \titlebar (see the complete code below). \documentclass{memoir} \usepackage{titlesec} \usepackage{lipsum} \usepackage{tikz}\usetikzlibrary{shapes.misc} \makeatletter ...

2

I would choose ConTeXt in your situation. If you want to adapt the document layout dimensions it can be very easily done in ConTeXt (one caveat though, read very carefully \setuplayout documentation, it does not work as you would expect it to). If you are more ambitious there are available examples of real book styles, that you can tweak to your needs.

2

This can all depend on how you're setting things up. If you stick with the basic parameter values for shaping and handling paragraphs then the spacing shouldn't be too bad: \documentclass{memoir} \usepackage{lipsum} \begin{document} \lipsum[1-2] \begin{quote} \lipsum[1] \end{quote} \lipsum[10] \end{document} But if you start tweaking with the ...

2

This answer is heavily inspired by karlkoeller's answer, but takes a more flexible and robust approach, IMHO. His proposed solution: \renewcommand{\theHchapter}{\Roman{chapter}} works most of the time, but is not entirely foolproof either. Suppose I have a large document with nine or more Appendices, then the first Attachment will clash with Appendix 9 ...

2

This works using microtype instead, you may need to fine tune it a bit, see the microtype manual (it might be a bit hard to understand, I did not) \usepackage[T1]{fontenc} \usepackage{microtype} \newcommand\sectionFmt[1]{% \bfseries\lsstyle\MakeUppercase{#1}% } \setsecheadstyle{\sectionFmt}

2

memoir provides its own interface for caption management, and there may be some clashes when using it in conjunction with caption (see section 10.13 The class versus the caption package (and its friends), p 206 of the memoir user manual). However, you can update \caption to grab its contents, evaluate whether the argument is empty/not, and condition ...

1

I have copied this from p48 of the subfig package manual, in the FAQ section: 6.9 “I want my sub-floats to be ordered by column rather than by row, how do I do that?” The following example shows a schematic for laying out six sub-floats in column order. The only problem with this approach is that, if the floats and their respective captions ...

1

You can arrange the content inside a tabular or a minipage: \documentclass{memoir} \usepackage{graphicx,float} \newsubfloat{figure} \newcommand{\tabstrut}{\rule{0pt}{\dimexpr.7\baselineskip+6pt}} \begin{document} \begin{figure}[H] \centering \begin{tabular}{c} \subbottom[QMF ...

1

You want to be manipulating the \foottextfont. Something along these lines should do the trick: \documentclass[12pt, draft]{memoir} \usepackage{ragged2e} \footnotesinmargin \renewcommand{\foottextfont}{% \strictpagechecktrue \checkoddpage \ifoddpage \scriptsize\RaggedRight \else \scriptsize\RaggedLeft \fi }% \usepackage{marginfix} ...

1

I have finally figured it out but I am not going to accept this answer yet because I think it can be done better. I am combining the use of \footnote with the option \footnotesinmargin and \sidefootnote. The former can be used to make a margin note vertically aligned with the reference mark and is intended for short notes that do not break across pages ...

1

It sounds to me what you're actually trying to do is write your own document class. So put the part of your current header that should be part of that class in MyClass.cls and make it look like this: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{MyClass} \DeclareOption∗{\PassOptionsToClass\CurrentOption}{memoir}% } \LoadClass{memoir} \DeclareOption{a5paper}{% do ...

1

Of course, but as karlkoeller said, it depend of the font. See The LaTeX Font Catalogue. \documentclass{memoir} \usepackage{times} % change by times,bookman,palatino, etc. \renewcommand*\familydefault{\sfdefault} % if the base font is sans serif \usepackage{blindtext} % for dummy text \begin{document} \blinddocument \end{document}

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