Tag Info

Hot answers tagged

10

Probably \mbox is used to get out of the vertical mode because of the \parbox to switch to paragraph mode. For example, #1 may start with a \color command. In vertical mode, the color whatsit is set at the top of the vertical list, then the title text starts a new paragraph, which is placed below the color whatsit. The reference point of the top aligned ...


7

The use of line-breaks inside \captions are debatable. However, if you need to use them consider the fact that these entries make their way into the List of Figures/Tables. And having line-breaks in those entries may look weird. In order for the \caption entries to survive being written to .lof/.lot, you need to \protect certain fragile components. So, use ...


7

Compare the difference. The \mbox will get you out of vertical mode. Here, \marginbox is as you defined it; \xmarginbox eliminates the \mbox{} in the definition. Macros like \vspace, \llap, and \rlap behave differently in vertical vs. horizontal mode. \documentclass{memoir} \newcommand{\marginbox}[1]% {\parbox[t][0pt]{6em}{\itshape\raggedleft\mbox{} ...


4

If you simply need side captions with memoir, you can use the sidecaption environment. MWE: \documentclass[10pt,showtrims,a4paper,twoside]{memoir} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{rotating} \usepackage{fontspec} \usepackage{microtype} \usepackage{lipsum} \usepackage[export]{adjustbox} \setsidecappos{t} ...


4

Technically you can just grab everything related to \autorows from memoir.dtx and place it in your preamble (or collect it in a style file): \documentclass{article} \makeatletter \def\ctabsetlines{% \let\hline\m@mhline \let\@BTnormal\m@m@BTnormal} \newdimen\@mincolumnwidth \newskip\ctableftskip \ctableftskip=\fill \newskip\ctabrightskip ...


4

It's the choice of the document class designer, of memoir in this case. Although your title mentions default margins, you show memoir which has a larger margin it seems to me: %\documentclass[twoside,a5paper]{memoir} \documentclass[twoside,a5paper]{article} \usepackage{geometry} \usepackage{lipsum,microtype} \begin{document} \noindent\lipsum[1-22] ...


3

A simple implementation not using a tabular internally: \documentclass{article} \makeatletter \newcommand\autorows[3]{% \begin{flushleft} \@for\tmp:=#3\do{\makebox[\dimexpr\textwidth/#1][#2]{\ignorespaces\tmp\unskip}\linebreak[0]}% \end{flushleft}} \makeatother \begin{document} \autorows{5}{l}{one, two, three, four, five, six, seven, eight, nine, ...


3

The problem is not the font size nor the paper size, but the numbers of characters per line. As noted in others answers, around the 65 ± 15 characters is considered a reasonable cut-off regardless the document type and even the font size. When line of text are too long, your eyes will have a hard time focusing on the text. Its difficult find where the ...


3

Rather than changing the styling of the chapter title itself, I would keep the page style the same --- it seems odd to me to switch the chapter style. Instead, I would either have the diagram float to another page or simply rotate the diagram on the title page, without rotating the page itself. For example, allowing the diagram to float to the next page: ...


2

You can add some vertical space manually in the caption, for example \\[2ex]: \documentclass[a4paper, 12pt, twoside, openright]{memoir} \usepackage[demo]{graphicx} \captionnamefont{\bfseries} \sidecapmargin{outer} \setsidecappos{t} \begin{document} \begin{figure}[h] \begin{sidecaption}[Overview Optimisation]{% My figure title\\[2ex] ...


2

The comments to the question were very useful, and this advice from cfr was good: I would not recommend using any class designed to typeset single articles for managing a thesis. You will need to change far too much. It is not just adding \chapter{} commands, things like the ToC, bibliography etc. will all be wrong. Better to figure out which few ...


2

\sidepar will always take into consideration the depth of the line which it's linked to. Try \begin{tabular}[t]{c}x\\x\\x\\x\\z\end{tabular}% \sidepar{This will be at the same height as z} A workaround is to typeset the picture in another line and raise it, hiding the same amoung of raising. \begin{figure}[tp] \sidepar {This is text in the sidecaption ...


2

\def\doublerule#1{% \vbox{ \setbox0=\hbox{ #1 }% \baselineskip=3pt \lineskiplimit=-\maxdimen \hbox to\hsize{\ruleheight=1.2pt\doubleruleA\kern\wd0\doubleruleA}% \hbox to\hsize{\doubleruleA\box0 \doubleruleA}% }% } \def\doubleruleA{{ \advance\ruleheight by2pt \leaders\vrule height\ruleheight depth-1pt\hfil}} Let's look at the ...


1

I'd make a 'special' pedersen style and just use that. \documentclass[12pt,a4paper,oneside]{memoir} \usepackage[left=3.00cm, right=3.00cm, top=3.00cm, bottom=3.00cm, a4paper]{geometry} \usepackage{pdflscape,blindtext,graphicx,xcolor} %Defining a colour % \definecolor{ared}{HTML}{BF0000} \renewcommand\colorchapnum{\color{ared}} ...


1

The relevant code in memoir.cls is from line 4572 to line 4607: \def\@listi{\leftmargin\leftmargini \parsep\parsepi \topsep\topsepi \itemsep\itemsepi} \let\@listI\@listi \defaultlists \@listi \def\@listii{\leftmargin\leftmarginii \labelwidth\leftmarginii \advance\labelwidth-\labelsep \topsep\topsepii ...



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