New answers tagged

0

PROBLEM SOLVED ... side effect of another (badly executed) hack ... !!! The problem was very strange. Besides it, I had also noticed that my headlines had become right shifted ... so I began to revise what had I done just before getting into the problem ... weak memory (over sixty) ... but finally I got it: I wanted to change the \abovedisplayskip value for ...


1

The caption styles are describe on section 10.5, page 183 in Memoir manual. It enable powerful formatting of caption appearance. I use the following (quite nonstandard) caption style: \captiondelim{\null\newline} \captionnamefont{\small\sffamily\bfseries} \captiontitlefont{\small\sffamily\linespread{.84}\selectfont} \captionstyle[\raggedright]{} ...


3

This seems to work \renewcommand\myruledheadrule{% \color{darkgray}\raisebox{-2.1pt}[10pt][10pt]{\leafright}% \hrulefill% \raisebox{-2.1pt}[10pt][10pt]{~~~\decofourleft% \decotwo\decofourright~~~} \hrulefill% \raisebox{-2.1pt}[10pt][10pt]{ \leafleft}% \vskip-24pt } you may need ...


2

I reach for the ragged2e package when adjusting text alignment. While not all of its advantages are applicable to Arabic, it gets the job done. In your preamble: \usepackage{ragged2e} \RaggedLeft You can change the indentation of the ragged left paragraphs with: \setlength\RaggedLeftParindent{1.25em}


0

If you really want the TOC to look like your image (which is weird, but anyway), you should stick with what the class already provides you: \documentclass[a5paper]{abntex2} %\setboolean{ABNTEXupperchapter}{false} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} %\usepackage[brazil]{babel} &don't need this, already default ...


1

The macro \so is defined by soul; but there's a better method for obtaining the “letter space” effect, with microtype: \documentclass{memoir} \usepackage{microtype} \usepackage{color} \definecolor{nicered}{rgb}{.647,.129,.149} \makechapterstyle{mym}{% \renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\lsstyle}% ...


1

The only way to fix this, is to alter the way the bibliography is added to the toc. This solution is for memoirs own version of thebibliography it may be overwritten by other packages. \makeatletter \renewcommand{\@memb@bchap}{% \chapter*{\bibname}% \bibmark \ifnobibintoc\else \phantomsection ...


0

Since the cluver chapter style sets the chapter page style to headings, it would be enough to use \aliaspagestyle{chapter}{plain} which is the standard in most cases.


1

The numbers for \sections inside memoir's ToC is set inside a box of with \cftsectionnumwidth. Since it's placed inside a fixed-width box, we can insert \hfill at the start (thereby pushing the number to the right of the box) and insert a space at the end (to separate it from the remaining ToC entry title): \documentclass{memoir} ...


3

The three memoir commands in question are: \chapnamefont \chapnumfont \chaptitlefont which, in the default settings, are set to \Huge and \bfseries. Thus it is a simple matter to redefine them: \documentclass[openany]{memoir} \usepackage{xcolor,lipsum}% lipsum.sty is just for this example \renewcommand{\chapnamefont}{\Huge\bfseries\color{blue}} ...


0

You can insert a \color{blue} expression after \chapterheadstart and revert back to \color{blue} at \memendofchapterhook: \documentclass{memoir} \usepackage{blindtext} \usepackage{xcolor} \makeatletter \g@addto@macro\chapterheadstart{\color{blue}} \makeatother \renewcommand{\memendofchapterhook}{\color{black}} \begin{document} \blinddocument ...


1

\thispagestyle{plain} is your friend here. Where it should go depends on the amount of the first chapter's text on the first page. Following your MWE this works: ... \chapter{Alpha} \lipsum[1-2] \chapter{Beta} \thispagestyle{plain} \lipsum[1-2] ... However, when the first chapter's text spills over to the following page use: \chapter{Alpha} ...


4

I would avoid using caption with memoir as it provides its own mechanism for setting sub-floats: \documentclass{memoir} \usepackage{graphicx} % Enable subfigures \newsubfloat{figure} \begin{document} \begin{figure} \hfill \subbottom[First subcaption]{% \includegraphics[width=3cm]{example-image-a}} \hfill \subbottom[Second subcaption]{% ...


6

When using subcaption with memoir there is no need to say \newsubfloat{figure}. Remove that line and it's seems to be fine. \documentclass[a4paper, 10pt, openany]{memoir} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage{subcaption} % Enable subfigures %\newsubfloat{figure} %commented % Section numbering depth \maxtocdepth{subsection} ...


3

Margin notes are actually floats and therefore separate entities by default. If you want them merged in such instances you should be willing to do some manual legwork. This shouldn't be an issue, really, and can be left until the end of the document preparation. \documentclass{memoir} \footnotesinmargin \newcommand{\labelfootnotemark}[1]{% ...


1

If you wish to continue using the apa6 package, you could try modifying the apa6.cls file. The absolute location of this will depend on your installation, the relative path on my Windows machine being "tex\latex\apa6." Of course, make sure you back the file up before editing. In my case, I replaced the default "jou" entry with the "book" entry in the ...


1

Here's a first attempt. Not sure if I missed something, though. For the first question, the easiest way is to suppress the page breaks between the title and the abstract. For the second question, I think that's fixed with the \mainmatter command, which starts numbering chapters, changes page numbering to Arabic, etc. \documentclass[letterpaper, 11pt, ...


2

The following calculates \textheight minus the size of the caption. I'm not sure why the 2pt fudge factor is needed (round off error?). \documentclass{memoir} \usepackage{mwe} \begin{document} \begin{figure}[p] \sbox0{\parbox{\textwidth}{\null\caption{\blindtext}\null}}% ...


1

First of, since memoir has its own build in pagestyle system there is no reason to use fancyhdr with memoir. Second the chapter language does not have anything to do with fancyhdr or \@chapapp for that matter. The word current word for chapter is stored in \chaptername. \@chapapp is a special macro that returns \chaptername whenever appendix is not ...


0

@HarishKumar suggested the easiest way to fix the problem. It approximates what \nonzeroparskip does (which is slightly more flexible). However, if you want to avoid using enumitem, then you could do this: \documentclass{memoir} \makeatletter % memoir.cls has these two commands: % \newcommand*{\abnormalparskip}[1]{% % ...


1

The paragraph and lists chapter of the memoir user guide talks about the use of \tightlist. I successfully applied the \tightlist declaration inside of the document. \documentclass{memoir} \begin{document} \tightlist \begin{enumerate} \item Read this a little... \item ...bit easier \end{enumerate} \end{document} According the help you can ...



Top 50 recent answers are included