Tag Info

Hot answers tagged

5

Looking into memoir.cls helps ;-) The command for drawing the rule is \@epirule, which is basically nothing different then a wrapper for a standard rule with some width etc. settings. However, there is no color, indeed. Using a grouped {\color{yourcolor}\rule...} (see code below) works. Grouping is necessary, otherwise the color setting would bleed into ...


4

This is just a complement to Christians solution which can be made a bit simpler. \documentclass{memoir} \usepackage{xcolor} \newcommand{\epigraphrulecolor}{blue} \makeatletter \addtodef\@epirule{\color{\epigraphrulecolor}}{} \makeatother \begin{document} \epigraph{Some inspirational quote}{The Author (1900--2010)} \end{document} We simply prepend the ...


4

Since you are using memoir, you simply have to redefine \clarforchapter using, for example \gdef\clearforchapter{} A complete example: \documentclass[french,12pt,openany,oneside,openright]{memoir} \usepackage{lipsum}% just for the example \gdef\clearforchapter{} \begin{document} \chapter{One} \lipsum[4] \chapter{Two} \lipsum[4] \end{document} The ...


3

As Ulrike Fischer mentions in her comment, one option is to change \parskip inside the list internally used by quote; for consistency's sake, the same modification will be required for the quotation environment. The following example code shows the necessary redefinitions: \documentclass{memoir} \setlength{\parindent}{0em} \newlength\myparskip ...


3

You can add anything you like to the table of contents with \addtocontents. In the example, I add a \label in the page after which the photo will be inserted; with the help of \AtEndDvi, writing the entry in the .toc file is delayed until the end of the document. I think this is preferable to adding the code at the end, so everything related to the inset is ...


2

memoir pagestyles are quite easy to create. Use \makepagestyle{foo} and the commands \makeevenhead{foo}{left stuff}{center stuff}{right stuff} and \makeoddhead{foo}{left stuff}{center stuff}{right stuff} (and the similar commands \makeevenfoot and \makeoddfoot) To provide the pagestyle for the chapter start page, I kicked the \thispagestyle{chapter} out ...


2

Something like this? Use \source{Some text} to add something to the los file. \documentclass[oneside]{memoir} \renewcommand{\insertchapterspace}{} \newcommand{\listsourcename}{Picture sources} \newlistof{listofsources}{los}{\listsourcename} \newcommand*{\source}[1]{\addcontentsline{los}{section}{\protect\numberline{\thefigure}#1}} \begin{document} ...


2

Here's an example adapted from memoir's documentation just to give you some ideas. See titlepages.sty in the documentation directory for further examples. I used an example from there as the basis so I wouldn't have to type stuff from scratch since no text was provided in the question at the time. \documentclass[a4paper]{memoir} \usepackage[T1]{fontenc} ...


2

You should update two macros in order to achieve your desired output: \documentclass{memoir} \renewcommand{\chapternumberline}[1]{}% Gobble chapter number in ToC \renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapter dots in ToC \begin{document} \tableofcontents \chapter{A chapter} \end{document} \chapternumberline formats the number associated with ...


2

There are several packages which can achieve this, cleveref seems to be the most advanced and most customizable one. At least if the chapter in their documentation fits: Given how useful automated cross-reference typesetting is, there are naturally a number of other LaTeX packages with similar goals to cleveref, most notably varioref, fancyref, ...


2

Since you're using the memoir document class, you could issue the command \setlength\cftpartnumwidth{3em} in the preamble. This instruction increases the width of the block that's set aside for the part-level Roman numerals in the ToC. For a consistent appearance, you should probably also provide the instructions \setlength\cftchapternumwidth{3em} ...


2

From the comments, the document seems to be based on University of Bristol Thesis Template. The template document defines and uses its own chapter style named daleifmodif. It's quite unusual to change the chapter style for the bibliography only in a complete different format (left vs. right aligned title). Nevertheless class memoir allows the switching of ...


2

How to do this is described in Section 8.1.1 of the manual (memman) for memoir by setting \parindent to 0em. This can be done by, for example, perhaps, \setlength{\parindent}{0em} The manual also suggests setting \parskip to a positive length to give some vertical space between paragraphs. However, consider what happens when a non-indented paragraph ends ...


1

Differently from the article class, in memoir the argument to \title is a moving argument, so fragile commands in it need to be preceded by \protect; among them is \rule. Note also that memoir defines \thetitle that's preferable to \@title for doing things with the title in the document. The difference is that \@title also keeps possible \thanks, whereas ...


1

Best would be to place a \strut in places where you have no text (specifically \printchapternonum). For completeness, it's actually easiest to add this - a \strut - to all definitions of \chapnamefont and \chaptitlefont: \documentclass[oneside]{memoir} \makechapterstyle{stack} { \renewcommand{\afterchapternum}{} ...


1

As it can be deduced from the name given to \abnormalparskip, the author of the memoir class doesn't like documents with a nonzero \parskip. And I heartily agree with him. If you want your document to be as ugly as possible (and possibly uglier), here's how you can do. \documentclass{memoir} \setlength{\parindent}{0em} \abnormalparskip{1em} \makeatletter ...


1

You can use the \needspace macro (directly available in memoir, for other classes there's the needspace package). \documentclass[b5paper]{memoir} \usepackage{lipsum} \renewcommand{\clearforchapter}{} \pagestyle{plain} \chapterstyle{default} \renewcommand*{\chapterheadstart}{% \par \needspace{10\onelineskip} \vspace{\beforechapskip} ...


1

It depends on your actual intent. If, as was mentioned in comments to the question, the desired change is to obtain a different vertical alignment for unnumbered chapters produced using \chapter* (such as the ToC, LoF, LoT), you can use \printchapternonum. A little complete example in which I changed the original ...


1

Use etoolbox for adding what you need. \documentclass{memoir} \usepackage{etoolbox} \setlength{\cftbeforechapterskip}{3pt} \pretocmd{\chapter}{\ojdospacing}{}{} \apptocmd{\mainmatter}{\let\ojdospacing\ojdospacingon}{}{} \apptocmd{\backmatter}{\ojdospacing\let\ojdospacing\relax}{}{} \newrobustcmd{\ojdospacingon}{% \addtocontents{toc}{\addvspace{6pt}}% } ...


1

The exercise package offers the command \renewcounter{<counter>}[<resetcounter>] to modify the behaviour of predefined counters. So you need to add \renewcounter{Exercise}[section] to your preamble.



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