Tag Info

Hot answers tagged

7

Drop the \@hangfrom style of the section using the following patch: \usepackage{etoolbox} \makeatletter % \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>} \patchcmd{\M@sect}{\@hangfrom}{}{}{} \makeatother \@hangfrom takes the width of the section number into play and adjusts the layout accordingly. As such, it ...


4

With the memoir class you can define your own chapter styles without the need of the titlesec package. The style you're trying to achieve is very similar to the predefined veelo style. So it suffices to change it a little. We'll define a new chapter style colored: \makeatletter \newcommand{\chaptercolor}{} \makechapterstyle{colored}{% ...


4

You can add a header switch during the toc using \addtocontents. For example, if we define the header type toc and apply it during the table of contents then you can also inject \makeevenhead and \makeoddhead part-way through the TOC: \documentclass[oneside,12pt]{memoir} \setsecnumdepth{subsection} \maxtocdepth{subsection} \usepackage{appendix} ...


3

Try this: \renewcommand{\biblistextra}{ \footnotesize \itemsep=\bibitemsep \parsep=0pt } Basically \biblistextra should be handled with care. The default value is \itemsep=\bibitemsep


3

Here's the scheme: the table is inserted as the center field in the header, as a zero width box. For having it in all pages, use \aliaspagestyle{plain}{mystyle} so memoir will use mystyle also in the pages where plain is requested. The head height can be set after compiling once and looking in the .log file for a message such as Class memoir Warning: The ...


3

It's not working because you're using the wrong syntax: \citep[Prefix][Postfix]{key} \citet[Prefix][Postfix]{key} (don't use \cite, although it's the same as \citep). If you just want a prefix, use an empty second optional argument: \citep[Prefix][]{key} \citet[Prefix][]{key} Just one optional argument will use it as postfix: \citep[Postfix]{key} ...


3

You shouldn't call setspace with memoir (but it's innocuous, as the class doesn't load it to begin with). If you really want such a big interline space, then it should be the same in titles, in my opinion, but it's possible to do how you'd like. \documentclass[9pt,draft,twoside,openright,showtrims]{memoir} \usepackage{amsmath,amssymb,amsfonts} ...


3

You need to activate the new font size with \selectfont like this \renewcommand{\footnotesize}{\fontsize{8.5pt}{10.5pt}\selectfont}


2

\documentclass{memoir} \usepackage{etoolbox} \makeatletter \gdef\currentsection{??} \gdef\currentsubsection{??} \newcommand{\setcurrentdivisions}[2]{% \ifstrequal{#1}{section}{\xdef\currentsection{#2}\gdef\currentsubsection{??}}{}% \ifstrequal{#1}{subsection}{\xdef\currentsubsection{#2}}{}% } ...


2

Make the following two changes to your code: Use the instruction \usepackage[natbibapa]{apacite} to load the natbib package in a way that maintains compatibility with apacite. (For more on this, see p. 7 of the user guide of the apacite package.) Using this loading method has the added benefit that natbib is loaded automatically with the option ...


2

I've done this with book since you are overriding memoir's page layout anyway and it is simpler to do it without needing to define tripartite headers. I use fancyhdr to configure the header. I read the output to figure out what the header height needed to be so that I could feed this to geometry. Since you want the header on every page, I've just redefined ...


2

I'm not sure what you want to happen in the case of unnumbered chapters, so I've omitted that formatting here. I'm also not clear whether you want to move the line or eliminate it, so I show examples of both. I've also commented the code concerning the setting of the page dimensions since your settings are not possible (i.e. memoir cannot implement the ...


1

So I followed daleif's comment, which solved my issue. Thanks daleif ! For posterity, the moral of the story: instead of saying \tightlists, use enumitem: \usepackage{enumitem} \setlist{nosep}


1

The basic mechanics for this are pretty simple. If you're writing an English unilingual document with the memoir class, just add: \renewcommand{\cftchaptername}{Chapter\space} If you're not writing in English, as daleif says, you can use the \chaptername macro. Say something like: \usepackage[ngerman]{babel} ...


1

I'm guessing there are better ways, which I'd also like to hear about. Here is one way (I've removed a lot to make the example simpler) % *****************************Document Class*************************************** \documentclass[12pt,twoside,a4paper,article]{memoir} % ********************************************************************************** ...


1

Your MWE does not even use myheadings, but here is a MWE with headings: \documentclass[a4paper]{memoir} \usepackage{lipsum} \makeatletter \addtopsmarks{headings}{}{ % changed left to both \createmark{chapter}{both}{shownumber}{\@chapapp\ }{. \ } } \makeatother \nouppercaseheads \pagestyle{headings} \begin{document} \chapter{test} \lipsum[1-15] ...



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