Tag Info

New answers tagged

3

Question one: \aliaspagestyle{chapter}{HDR} Question two: You add it your self, see the \createplainmark{toc}{both}{\contentsname}, however it needs to be cleared out completely, add the following to you HDR definiton instead of the {toc} line \clearplainmark{toc} Question three: Hard to say as you do not show how you make your abstract. Always post ...


0

A version of Will's solution is to use the \posttitle command. I've used it successfully to add a subtitle in a different font. In any of these solutions, an elegant way to implement the subtitle is to assign it to its own macro, \thesubtitle, and to have the LaTeX in the \posttitle or \maketitlehookb test to see if it's defined. If not, just go on. Here's ...


2

An automatic solution can be obtained with the caption package: it has a \ContinuedFloat switch that defines the figure environment in which it is used, as of type continuedfloat for which we can define a specific formatting: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} ...


8

Assuming that in a figure environment you just have a \contcaption, never accompanied by a \caption command, which seems a reasonable assumption, you can do it with \documentclass{memoir} \usepackage{etoolbox} \captiondelim{: } \preto{\contcaption}{\captiondelim{ }} % change \captiondelim \begin{document} \begin{figure}[htp] % ... \caption{Foo bar} ...


5

Not really no. I think the easiest thing is to use \newcommand\mycontcaption[1]{ \begingroup \captiondelim{~} \contcaption{#1} \endgroup } and then use \mycontcaption{(Continued)}


1

Due to the \oddsidemargin/\evensidemargin problem, \PFwidth is calculated as the largest possible width that will fit on both odd and even pages. I found it easier to emulate sidewaystable than use it. The key is that \caption will only work in a minipage. The table will automatically be centered on the page. No additional \centering is required. ...


2

Memoir includes many parts of other packages, including tocloft, so it will be better to search the memoir manual for the specific commands used in that class. Where K stands for the name of an item type entered into the contents lists (see memoir manual table 9.3), use \cftKfont to adjust the section titles and \cftKpagefont to set the page numbers. I ...


1

I tried some more and found the following solution. It is not perfect since I do not have direct control of the size and location of the text block, but it fits the large table almost where I want it. \documentclass[b5paper,10pt]{memoir} \settypeblocksize{*}{11.5cm}{1.61803} \setulmarginsandblock{3.2cm}{*}{*} \checkandfixthelayout[nearest] ...


5

Welcome to TeX.SX! Please, next time add a MWE! For your problem, this is a solution with the commands of the memoir class: \documentclass{memoir} \chapterstyle{dash} \renewcommand*{\cftchapterfont}{\normalfont} \renewcommand*{\cftchapterpagefont}{\normalfont} \begin{document} \tableofcontents* \chapter{A brief introduction} \section{\TeX\ and ...


3

Short question, short solution: The easiest way, unless there is no option within the memoir class, is to redefine the tableofcontents and disable any bold font within a \begingroup...\endgroup, i.e. \renewcommand{\bfseries}{\relax} This solution does not rely on particular memoir commands or external packages. Code \documentclass[12pt]{memoir} ...


5

As mentioned in the comments, microtype is your friend here, and produces nicer output for the rest of the document as well. Because all of these options depend on your reference list/reference style/margin settings/font choices (which we do not have), I've listed a few options and compared them using a sample text (\lipsum) and sample reference list ...


3

OK, let be my comment transformed to the answer. The memoir is very advanced document class, which among many improvements of book class also provide addition ability to define appearance of chapter, section etc title in TOC, heading and in the text. So, for chapter one can say: \chapter[<toc-title>][>head-title>]{<title>}; ...


2

\documentclass[a3paper, 14pt, twoside, showtrims]{memoir} \settrimmedsize{340mm}{210mm}{*} %\settrims{10mm}{10mm} %\settypeblocksize{261.8mm}{140mm}{*} %\setlrmargins{23.3mm}{46.7mm}{*} \setlrmarginsandblock{23.3mm}{46.7mm}{*} \setulmarginsandblock{23.3mm}{54.9mm}{*} \setmarginnotes{2.8mm}{23.3mm}{1em} \settypeoutlayoutunit{mm} % <-- remember ...


6

You cannot test if your macro is processed right now the page is empty because the processing is asynchronous. But when the page is empty, TeX is in special state in which it ignores all vertical spaces (glues). This means you need to make the rule as "vertical space". This is possible by \leaders primitive: it is only a special type of the vertical or ...


5

Use \leftmark for the odd head; store the title in \mytitle and use it for the even head: \makeoddhead{mpd}{\slshape\leftmark}{}{} \makeevenhead{mpd}{}{}{\slshape\mytitle} \def\mytitle{The title}


2

This compiles just fine \begin{landscape} \marginpar{Again: \lipsum[11]}%% goes one page before the figure \begin{figure} But of course \begin{landscape} \begin{figure} \marginpar{Again: \lipsum[11]}%% goes one page before the figure will not work as both figure and \marginpar are floats and they do not mix. In the last example, \sidebar (similar to ...


6

I'd suggest you to use either the mdframed or the tcolorbox packages; both offer you an easy key-value interface to define decorated theorem-like structures that will automatically include numeration (and easy control over the counter used). In the following example code I show a comparison between the environment that Herbert provided in his answer with ...


4

\documentclass[12pt,twoside,openright,a4paper]{memoir} \newcounter{FrameCnt} \setcounter{FrameCnt}{0} \newcommand{\FrameTitle}[2]{% \fboxrule=\FrameRule \fboxsep=\FrameSep \fbox{\vbox{\nobreak \vskip -0.7\FrameSep \rlap{\strut#1}\nobreak\nointerlineskip% left justified \vskip 0.7\FrameSep \hbox{#2}}}} ...


0

As mentioned in the comments, have a look at the rotating package and its sidewaysfigure/sidewaystable commands. Combined with the subcaption package you should be able to build something like what you're asking for. For example this: was produced by: \documentclass[a4paper,oneside,12pt,openright,final,oldfontcommands]{memoir} \usepackage{graphicx} ...


2

I no longer have the Mona Lisa font, but here’s an example of modifying the code for fonts other than those Peter Wilson used. The code is simpler with fontspec: % xetex or luatex \documentclass[12pt,twoside,openright]{memoir} \usepackage{fontspec,xcolor} \newfontface\bmb{Bembo Book MT Pro}[Numbers=OldStyle]% or use \setmainfont if the main matter will be ...


1

In order to get the glossaries into the document, this setup requires the external tool makeglossaries and for the acronyms the \printacronyms command: \documentclass[10pt]{memoir} \usepackage[acronym,toc]{glossaries} %%%%%%%%%%%%%%%%%%%%%%%%%%% \newglossary[slg]{symbols}{sym}{sbl}{List of Symbols} \makeglossaries % The following definitions will go in ...


1

Here's a first cut, but the OP would need to provide more information if he/she would like further refinement. Changes from what the OP provided in his/her MWE are as follows The blue box is moved left by placing it in an \llap The blue margin on either side of the chapter number (argument #2 of \BuildChpNum) was increased from 1ex to 2ex The actual ...


18

This is my favorite kind of question! Update If you get some nice icons related to emails, then you can add them to the design (I got some icons from iconfinder for my example). Here's the tcolorbox version (see below) with an icon bar added: The code: \documentclass{memoir} \usepackage{graphicx} \usepackage[many]{tcolorbox} ...


1

It is not in the manual as it might not be that common, plus it is not that easy to do with a simple configuration. Here is a suggestion \makeatletter \renewcommand*{\l@chapapp}[3]{% \ifnum \c@tocdepth >\m@ne \cftchapterbreak \vskip \cftbeforechapterskip {%\leftskip \cftchapterindent\relax \memRTLleftskip \cftchapterindent\relax %%% ...


2

You can place the following code snippet immediately after your \appendix command: \makeatletter \addtocontents{toc}{% \protect\renewcommand\protect\cftsecpresnum{Appendix }% Prepend Appendix \protect\setlength\protect\cftsecnumwidth{6em}% Adjust width of section number in ToC } \renewcommand{\@seccntformat}[1]{Appendix~\csname the#1\endcsname \quad} ...


3

The problem is a space that somehow sneaks in the definition of \sectionmark: \documentclass[11pt,oneside,article]{memoir} \usepackage{lipsum} % Begin Section format \newcommand{\marginbox}[1]{% \parbox[t][0pt]{10em}{% \upshape\sffamily\raggedright\mbox{}#1}% } \newcommand{\marginhead}[1]{% ...



Top 50 recent answers are included