Tag Info

Hot answers tagged

6

Perhaps this provides some clue, using everypage package and the marginnote package. As stated in everypage documentation, specific setups on particular pages must be achieved with conditionals, i.e. queries on the page number, for example. Since there is no further information on the particular vertical placement of the logo(s), I added no vertical ...


4

use references \chapter{Some title} \label{chap:some} then later \ref{chap:some} -> chapter number \pageref{chap:some} -> page number for the start of this chapter \titleref{chap:some} -> the title of the chapter \titleref is build into memoir


3

The problem is that the center environment adds spacing around itself, which is not wanted inside a header. You can see more details at When should we use \begin{center} instead of \centering? From texdoc memoir, we can look for the documentation of the \makeoddhead command, which says this: \makeoddhead{ <style> }{ <left> }{ <center> }{ ...


3

You can define a style like \newcommand{\dotsec}[1]{% \Large\raggedright\sffamily\bfseries #1.} and then declare \setsecheadstyle{\dotsec} MWE: \documentclass{memoir} \usepackage{lipsum} \setsecnumformat{} \def\sectionmark#1{\markboth{#1}{#1}} \setaftersecskip{-1em} \newcommand{\dotsec}[1]{% \Large\raggedright\sffamily\bfseries #1.} ...


3

From the memoir basic user manual: The mark is typeset in a box of width \footmarkwidth If this is negative, the mark is outdented into the margin, if zero the mark is flush left, and when positive the mark is indented. The mark is followed by the text of the footnote. Second and later lines of the text are offset by the length \footmarksep from ...


2

I think it's a bad error of memoir to define \Aref that is not really meaningful for appendices; it's also wrong in defining \Cref for chapters, because this conflicts with cleveref. However, in the case of \Cref, the cleveref package will happily do the redefinition, while in case of \usepackage[hungarian]{babel}, \Aref is not redefined because the code is ...


2

You can use another mdframed for the inner shaded area. For this define a style like \mdfdefinestyle{style2}{frametitle={},innertopmargin=5pt,linecolor=blue!20,% linewidth=2pt,hidealllines=true,topline=true,backgroundcolor=gray!20} and apply it to the inner mdframed environment. \documentclass[9pt,twoside,openright,showtrims]{memoir} ...


2

There you are. \documentclass{report} \usepackage{tikz, blindtext,showframe} %% blindtext,showframe just for demo \usepackage{titlesec} \newcommand*{\chapnumfont}{\normalfont\sffamily\huge\bfseries} \newcommand*{\chaptitlefont}{\normalfont\sffamily\Huge\bfseries} \newcommand{\mybox}{% \begin{tikzpicture} \draw[fill,color=black] (0,0) rectangle ...


2

You want to set the specific parameters of memoir: \documentclass{memoir} \usepackage{tikz, blindtext,showframe} \makechapterstyle{box}{% \setlength{\beforechapskip}{0pt}% was 50pt \setlength{\midchapskip}{20pt}% \setlength{\afterchapskip}{20pt}% was 40pt \renewcommand*{\printchaptername}{}% ...


2

\documentclass{memoir} \usepackage{geometry,pdflscape,afterpage} \usepackage{lipsum,mwe,multicol} \begin{document} \lipsum[1-4] \afterpage{ \clearpage \begin{landscape} \begin{figure}[p] \centering \includegraphics[width=0.5\linewidth]{example-image-16x9} \begin{multicols}{2} \caption[]{% \textbf{A very, VERY long caption:} Nam dui ligula, fringilla a, ...


2

Indeed, fixltx2e overwrites \@xfloat. The assumption is that it fixes content in the standard document classes, of which memoir is not. Since memoir manages things on its own, best would be to save-and-restore the memoir-specific version of \@xfloat, or just redefine it: \documentclass{memoir} \usepackage{fixltx2e} \makeatletter % Restore original memoir ...


2

You can define the chapter head for unnumbered chapter quite similar, but need to leave out the chapter number line. I added \documentclass{memoir} \usepackage{blindtext} \makeatletter \def\thickhrulefill{\leavevmode \leaders \hrule height 1pt \hfill \kern \z@} \def\@makeschapterhead#1{% \vspace*{60\p@}% {\parindent \z@ \centering \reset@font ...


1

Instead of trying to get the expanded authorlist in the toc, you could pass only the cite key and then call the database again in the toc: \documentclass{memoir} \usepackage{databib} \newcommand\printauthorlist{} \DeclareRobustCommand\printauthorlist[1]{% \DTLforeachbibentry[\DTLbibfieldiseq{CiteKey}{#1}]{data}{\DTLformatauthorlist}} \begin{document} ...


1

The relevant portion of memoir.cls for the title is \newcommand{\@maketitle}{% \let\footnote\@mem@titlefootkill \ifdim\pagetotal>\z@ \newpage \fi \null \vskip 2em% \vspace*{\droptitle} \maketitlehooka {\@bspretitle \@title \@bsposttitle} \maketitlehookb {\@bspreauthor \@author \@bspostauthor} \maketitlehookc {\@bspredate ...


1

The description in the manual refers to the shape of the abstract that can be obtained with the standard article or report classes. It's just an introduction to the subject (thanks to Mike Renfro for having remarked this). I agree with you that it can be misleading. You have rather to set the parameters \absleftindent and \absrightindent. You can also do ...


1

Is this what you like? \documentclass{memoir} \usepackage{lipsum} \usepackage{xcolor,tikz} \definecolor{sectionhead}{rgb}{.16,.61,.98} \newcommand{\ruledsec}[1]{% \noindent\tikz\draw[ultra thick,sectionhead,loosely dotted] (0,0) -- + (\textwidth,0); \vskip 1em \Large\bfseries\raggedright\color{sectionhead} #1} \setsecheadstyle{\ruledsec} ...


1

I think I may have found a solution: (based on this question and answer) % !TEX TS-program = xelatex \documentclass[showtrims]{memoir} \usepackage{tikz} \setstocksize{11in}{8.5in} \settrimmedsize{8.5in}{5.5in}{*} \settrims{1in}{1in} \setulmarginsandblock{1in}{1in}{*} \setlrmarginsandblock{1in}{.75in}{*} \checkandfixthelayout \newcounter{headeronpage} ...



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