Tag Info

New answers tagged

0

I use your code and lipsum package. I have no errors and looks like but with long chapter name ocurrs like your picture. Review your header config.


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


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

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

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 ...


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> }{ ...


0

You can redefine \pagenotesubhead to test whether its second argument has the same value as a newly defined counter, which is stepped otherwise. \documentclass{memoir} \usepackage[T1]{fontenc} \usepackage{pagenote} \notepageref \makepagenote \renewcommand{\pagenotesubhead}[3]{% \ifnum#2=0 \section*{#3}% \else \section*{#1 #2 #3}% \fi } ...


0

Here's an example document that shows the behavior: \documentclass{memoir} \setulmarginsandblock{3cm}{3cm}{*} \setlrmarginsandblock{2.4cm}{4cm}{*} \checkandfixthelayout \begin{document} \frontmatter \tableofcontents* \mainmatter \addtocontents{toc}{\protect\enlargethispage*{\baselineskip}} ...


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} ...


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 ...


0

Finally solved it. The only changes is mathptmx to tgtermes. And, in hyperref option, disable breaklinks and set implicit=false. Therefore, in UMalChemThesis.cls: \RequirePackage{tgtermes} %\RequirePackage{mathptmx} \RequirePackage[implicit=false,pdfborder={0 0 0}]{hyperref} Thanks to Johannes_B


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 ...


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.} ...


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

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

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 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} ...


0

You can use afterpage package : \documentclass{memoir} \usepackage{lipsum} \usepackage{xcolor} \usepackage{pagecolor} \usepackage{afterpage} \title{Test} \author{flav} \begin{document} \newpagecolor{gray}\afterpage{\restorepagecolor} \maketitle \chapter{First chapter} \lipsum[1] \end{document} see : How to change the background color only for ...


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 ...


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 ...



Top 50 recent answers are included