# Tag Info

1

Not exactly an answer to your question but maybe useful to others: The Beamer class provides the commands \secname and \subsecname to get the current sections or subsections name. This example produces a frame containing the text "Current section: Foo": \documentclass{beamer} \begin{document} \section{Foo} \begin{frame} Current section: \secname ...

3

Page styles apply to pages and they are a physical unit that does not respect environment boundaries. the answer to your question depends what you want to happen if an environment starts half way down page 2 carries on through page 3 and 4 and ends half way down page 5. which page styles do pages 2 and 5 get? The simplest answer if you synchronise page ...

0

I don't know if this is a new addition but as documented in the manual, on page 206, you can achieve this with \subcaptionref. Here is an example adapted from the manual: \documentclass{memoir} \newsubfloat{figure} % Subfigures \begin{document} Figure \ref{fig:twosubfig} has two subfigures, namely \ref{sf:1} and \subcaptionref{sf:2}. \begin{figure} ...

1

What if you abused the geometry package? %\documentclass[12pt]{memoir} \documentclass[oneside, 12pt]{memoir} \usepackage[showframe]{geometry} \usepackage{lipsum,longtable} \makeatletter % <-- all from geometry.sty, but with some lines commented out \renewcommand*{\Gm@vrules@mpi}{% \hb@xt@\@tempdima{\llap%{\Gm@vrule} \ignorespaces \hskip ...

2

The package calc changed the commands \setcounter and friends to be fragile. So you have to make them robust. The example below uses etoolbox with \robustify: \documentclass{memoir} \usepackage{calc} \usepackage{etoolbox} \robustify\setcounter \robustify\addtocounter \robustify\setlength \robustify\addtolength \settocdepth{subsection} \usepackage{pgfplots} ...

0

The \settocdepth{subsection} must go after the \tikzexternalize. The \AfterPreamble macro from the etoolbox package is useful to prevent any such cases if \settocdepth is used in a package or document class, even though the advise from the memoir manual, not to use \settocdepth in the preamble at all is now obsolete.

0

Here is what I have done, with a preamble as follows: \documentclass[oneside,12pt]{memoir} \usepackage{lipsum} \usepackage{everypage} \usepackage[absolute]{textpos}% % textpos settings \setlength{\TPHorizModule}{1cm}% \setlength{\TPVertModule}{1cm}% \TPMargin{0.0cm}% % page dimensions \settrimmedsize{11in}{8.5in}{*} \settrims{0pt}{0pt} ...

2

By default, memoir will prevent any packages (including index) from being loaded if their functionality is emulated by the class. To override this one must add \DisemulatePackage{index} before \usepackage{index}. The following MWE produces the "expected" .idx file content. (\renewindex is used to correct the index name.) \documentclass[a4paper,9pt]{memoir} ...

2

You suffer from a combination of factors. \begin{minipage}[t][\textheight] creates a box that's slightly bigger than \textheight You have a non zero \parindent You have a non zero \fboxsep (this is used by \colorbox) \documentclass[a4paper,11pt,extrafontsizes,twoside]{memoir} \usepackage{xkeyval,calc,etex,etoolbox} \usepackage{graphicx} ...

1

Here is a slightly odd workaround \makeatletter \renewcommand{\footnoterule}{% \kern-3\p@ \normalcolor\hrule width .4\columnwidth \kern 2.6\p@} \makeatother I added the \normalcolor. Think I'll add that to the next version.

6

I guess that this is what you want (don't load geometry): \setstocksize{25cm}{18cm} %Finale \settrimmedsize{24cm}{17cm}{*} \settrims{0.5cm}{0.5cm} \setlrmarginsandblock{3cm}{2cm}{*}%%%% \setulmarginsandblock{2.5cm}{3cm}{*} \checkandfixthelayout \fixpdflayout The summary printed by memoir says ****************************************************** Stock ...

1

Here is to achieve what you want, maintaining hyperref compatibility: \documentclass{memoir} %%% to check compatibility \usepackage{hyperref} %%% re-styling the TOC with etoc: \usepackage{etoc} \makeatletter \let\old@chapter\l@chapter \let\old@chapternumberline\chapternumberline \etocsetstyle{chapter}{}{} ...

5

\MakeUppercase and \underline are not font declarations. One has to work harder to achieve the result you want and that, personally, I don't like at all. \documentclass{memoir} \usepackage{etoolbox} \makeatletter \patchcmd{\l@chapapp} {\cftchapterfont #1} {\cftchapterfont\MakeUppercase{#1}} {}{} \patchcmd{\l@subsubsection} {#1} ...

0

Got it. To fix the page numbers: \makepagestyle{newchapter} \copypagestyle{newchapter}{simple} \aliaspagestyle{chapter}{newchapter} To fix the top margin: \makechapterstyle{custom}{% \chapterstyle{default} \def\chapterheadstart{} } \chapterstyle{custom}

0

1) I've been using TeXnicCenter for a while now, and I don't think that's possible. However, you can always run your file with oneside, 'save-as' it and then re-run it with twoside. 2) I've actually used a macro (\clearemptydoublepage) for avoiding a left page with numbers when using twoside option, and it won't create an extra page if using oneside: ...

2

In general you can use the test \if@twoside to test for twoside but for conditional blank pages it normally suffices to use \cleardoublepage which acts like \clearpage in one side documents but will force a blank page if necessary to get to an odd page in twoside documents.

3

Simply provide the missing definition (I suppressed parts of the original code that were not relevant here): \documentclass{memoir} \usepackage[demo]{graphicx} \usepackage{hyperref} \providecommand\subfigureautorefname{Subfigure} \newsubfloat{figure} \begin{document} \begin{figure} \centering %%% not \center ...

1

In connection to Barbaras comment, and there is no distinction in the document between bold and un bold formula, the easiest to do is simply to add \boldmath to the section font setting (via \setsecheadstyle)

Top 50 recent answers are included