Tag Info

Hot answers tagged

7

There is no feasible line break point after \ldots You can define your own version of dots with possible line break with \newcommand{\bdots}{\textellipsis\linebreak[0]} Example: \documentclass{memoir} \newcommand{\bdots}{\textellipsis\linebreak[0]} \begin{document} ``It was fine.'' she said, defensively. ``Just\bdots more\bdots and\bdots more\bdots ...


5

In order to make use of things like the \medievalpage[] layout, you need to follow memoir's documentation. On their own, such commands will either have no effect or cause havoc. Moreover, combining them with geometry won't work. You must use memoir's commands to layout the page. It will also be better to avoid the conflict with fancyhdr by not using it. ...


4

As a memoir chapter style \documentclass[a4paper,draft]{memoir} \setlrmarginsandblock{3cm}{3cm}{*} \checkandfixthelayout \usepackage{tikz} \usetikzlibrary{decorations.text} \def\startang{170} % title on curve \newcommand\ToC[1]{ \begin{tikzpicture} % depends on the chosen font size \clip (-1.1em,0.05) rectangle (9,4.5); \path ...


3

I'm not sure this is really what you want: the result is just wrong, nobody will understand why the text in the second and third footnote is shifted right. \documentclass{memoir} \setlength{\footmarkwidth}{\leftmargin} \setlength{\footmarksep}{0em} \footmarkstyle{#1\hfill} \newenvironment{fnquote} {\par \setbox0=\lastbox \setbox2=\hbox{\unhcopy0}% ...


3

The usage in the memoir documentation is incorrect. This becomes apparent when you look at the definition of \newleadpage (and \renewleadpage): \newcommand*{\newleadpage}[3][empty]{% \@namedef{#2}{\@ifstar{\dlfm@msapppage{#1}{#2}{#3}}% {\dlfm@mapppage{#1}{#2}{#3}}}} \newcommand*{\renewleadpage}[3][empty]{% ...


2

\linespread expects a multiple of the \baelineskip, so here i used .83, or in other word 83 % of the usual baselineskip. If this is what you are looking for, not sure. \documentclass[12pt]{memoir} \usepackage{blindtext} \usepackage{fouriernc} \usepackage[scaled=0.83]{helvet} % \usepackage[scaled=0.82]{luximono} \usepackage[T1]{fontenc} ...


2

The command \sfl should have an argument (the label); \raggedright does nothing, because the label is typeset in a \makebox, use \hfill to force left alignment. \documentclass[article]{memoir} \usepackage{polyglossia} \usepackage{siunitx} \setdefaultlanguage[variant=uk]{english} \setmainfont{Linux Libertine O} \setsansfont{Open Sans}[Scale=MatchLowercase] ...


2

One way to go is the XePersian package which has excelent support for both right-to-left and left-to-righ texts. Although it is primarily developed for Persian language, it can be used for Arabic text as well, since both languages share the same alphabet. It is possible to be used with memoir and in case you have function plots and other vector graphics, it ...


2

I believe the \ldots command is eating the following space. You can replace your \ldots with \ldots{}. sample\ldots{} text


2

The memoirclass uses pagestyle chapter for the first page of the chapter. So you can do ... \pagestyle{mystyle} \aliaspagestyle{chapter}{mystyle} \begin{document} ... I'm not sure why you redefined the plain page style to be the same as mystyle, but it would be better to replace that with \aliaspagestyle{plain}{mystyle} if you still need it.


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

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

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


1

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


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

\documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \node (One) at (-4,0) [shape=point] {}; \node (Two) at (4,0) [shape=point] {}; \draw [hidden,postaction={decorate,decoration={raise=1ex,text along path,text align=left,text={|\sffamily|How to make this as a memoir chapterstyle?}}}] (One) to ...


1

The problem is that the pagenote counter is bonded to changes in the chapter counter, and \chapter* does not touch the chapter counter. Either use \newcommand\resetPagenotes{ \setcounter{pagenote}{0} } and \chapter*{...} \resetPagenotes or somehow hook into starred chapters to add it automatically.


1

As far I know there is nothing wrong setting a negative \parindent and \lefskip, but another control sequence that you can use is \hangindent at the begining of one paragraph. Note that you cannot set this by default in the preamble for all the document because it is reseted after \par, but you can use some like \everypar{\hangindent3em} after ...



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