0

In memoir document class, I want the content to occupy the whole width: So the content should start where the black line of the heading starts and should end where the black line ends.

How can I do that?

Content doesn't occupy whole width

Currently, my content starts left or right of the black line, as you can see in the above image.

Thanks!

2
  • Welcome to tex.sx. May 2 '20 at 23:43
  • Hi and thanks! :)
    – lorenars
    May 3 '20 at 19:41
3

I have no idea what you have done but I'm guessing that you used memoir's Ruled pagestyle. memoir typesets the text according to the \textwidth but the Ruled pagestyle extends the page header into the margin. If this is what you have done then the text is the normal width but the header is wider.

What do you want?

If you want the text and header to be the same width then use the ruled pagestyle. If you want the text to be wider then change the page layout as described in the manual (texdoc memoir), but with the Ruled headstyle the header will still be wider than the text.

1
  • Okay thanks! Ended up using ruled and making margins wider ( \setlrmarginsandblock{3.7cm}{3.7cm}{*} \checkandfixthelayout )
    – lorenars
    May 3 '20 at 19:43
0

Since you did not submit any MWE and therefore there is no enough information of which package(s) or settings did you actually use. I will assume this simple setting at which the \usepackage{fancyhdr} with the default style \pagestyle{fancy} will do you what you want (paragraph text width same as the header ruler width), as follows:

enter image description here

The simple minimum code is:

\documentclass{memoir}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{blindtext} % to generate dummy text
%
\begin{document}
\chapter{Introduction}
\blindtext[7]
\end{document}
1
  • Note fancyhdr should generally not be used with memoir which has its own more tightly integrated headers/footers
    – daleif
    Aug 14 '20 at 18:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.