Skip to main content
25 votes
Accepted

How to set margins in memoir class?

The main issue here is that memoir has two ways of setting margins. One where you set the margins and let that dictate the text block. And one where you specify the text block and then place that on ...
daleif's user avatar
  • 55.5k
15 votes
Accepted

How do I check if a document is "oneside" or "twoside"?

The test is provided by the LaTeX kernel with \newif \if@twoside \@twosidefalse So you can use this test. Please note that the test string uses @ so you need \makeatletter / \makeatother (See: ...
Marco Daniel's user avatar
  • 96.5k
10 votes

marginnote always on right side of the page

Further to my comment a few days ago, if you are using the version of the marginnote package dated 2018/04/13 (or newer, at the time of writing), then you need to redefine \@mn@@@marginnote in a ...
rbrignall's user avatar
  • 1,574
9 votes

How to include a picture over two pages, left part on left side, right on right (for books)?

As of mid-2021, a new version of the package hvfloat, by Herbert Voß, has been available on CTAN. In addition to the ability to split wide pictures onto two facing pages, this package can rotate ...
barbara beeton's user avatar
9 votes

marginnote always on left side of the page

As there are tests for twoside everywhere in the code (and it affects spacing and other things), it is imho the best to locally set twoside to false: \documentclass[twoside]{book} \usepackage[...
Ulrike Fischer's user avatar
9 votes
Accepted

Option clash for package rotating

According to line 131 in the file ociamthesis.cls, the LaTeX document class you employ, the rotating package is loaded automatically, but without any options. When LaTeX encounters the directive \...
Mico's user avatar
  • 519k
9 votes
Accepted

Descenders in floats

You can back up over the depth of the last line. \documentclass[10pt,b5paper,twoside,final]{book} \usepackage{graphicx} \usepackage{lipsum} \usepackage[papersize={160mm, 210mm}, showframe]{geometry} \...
David Carlisle's user avatar
8 votes

How to force output to a left (or right) page?

You can modify both \cleardoublepage (as in this answer) and @Martin Scharrer's code to insert, if necessary, an empty page: \makeatletter \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page \...
Jorge's user avatar
  • 81
7 votes
Accepted

too-large vertical space due to twoside

With the option twoside the article option also sets \flushbottom to make all pages the same height. To prevent this, you have to add \raggedbottom in the preamble.
Mike's user avatar
  • 8,704
7 votes
Accepted

top-aligned marginpar on wrong side (even/odd) after pagebreak

The problem is that when LaTeX constructs the margin note "III", it chooses side based on the page counter which still contains 1 (LaTeX usually collects more material than fits one page before ...
Sergei Golovan's user avatar
6 votes
Accepted

ConTeXt doublesided starts with left-hand page

The first page is a right (recto) page. You merely confused marginedge with inmargin (I guess). \setuppapersize[A6][A6] % tiny paper for demo \setuppagenumbering [ alternative=doublesided, ...
Henri Menke's user avatar
6 votes

Printing Two Double-Sided Copies of an A5 Document on A4 Paper

This may be achieved by using pgfpages package that provides \pgfpageuselayout command to be put in the preambule of the document. \documentclass[a5paper]{article} \usepackage{lipsum} \usepackage{...
Hafid Boukhoulda's user avatar
6 votes

What does `twoside` mean here?

The option twoside means that the document will have (possibly different) left and right pages, like in a book, to be printed on both sides of the paper. The complementary option is oneside, which ...
LaTeXer's user avatar
  • 1,530
5 votes
Accepted

Inserting text with \cleardoublepage and memoir

As explained in the manual, memoir includes commands \movetoevenpage, \cleartoevenpage, \movetooddpage and \cleartooddpage, each of which can take an optional argument which will be printed on the ...
Peter Wilson's user avatar
  • 28.4k
5 votes
Accepted

Stop numbering for paragraph in reledmac / reledpar

\skipnumbering skip line number for a specific line. That is, in this line, line number is nore increased, nore printed. \hidenumbering hide line number for a specific line. That is, in this line, ...
Maïeul's user avatar
  • 11k
5 votes

Printing Two Double-Sided Copies of an A5 Document on A4 Paper

I've written an extension of pgfpages imaginatively called pgfmorepages (CTAN and github) which can handle repeating pages. The following code has two pages and each is repeated. Printing them out ...
Andrew Stacey's user avatar
5 votes
Accepted

"Four-Sided" Documents: Make New Chapters Start Only on Page Numbers That Are 4n+1

The following does what you want by patching the \scr@startchapter macro which is internally used by \chapter to not use \cleardoublepage but to use \clearfourpage, which does what you want. \...
Skillmon's user avatar
  • 63.2k
5 votes
Accepted

KOMA-Script equal margins left and right with double sided

Maybe you want to use option twoside=semi: \documentclass[twoside=semi]{scrbook} \usepackage{lipsum}% dummy text \usepackage{showframe}% show the page layout \begin{document} \chapter{Foo} \lipsum[1-2]...
esdd's user avatar
  • 86.2k
5 votes
Accepted

Mainmatter creates blank page

Assuming that your custom class does not redefine \mainmatter & Co. and their definitions are the ones of scrbook, the issue is that \mainmatter checks for one- or two-sided print but ignores ...
campa's user avatar
  • 32.6k
4 votes

How to make a two page section start on an even page?

Well, if all the problems boil down to having a variant of \cleardoublepage that always jumps to an even-numbered page, instead of to an odd-numbered one, this is easily accomplished: \documentclass[% ...
GuM's user avatar
  • 21.7k
4 votes
Accepted

Twoside margin width. How to take into account binding?

When setting margins for two-sided documents, the deciding question is how a left and a right page look next to each other, not how they look on their own. The right margin of the left page and the ...
schtandard's user avatar
  • 15.5k
4 votes

ConTeXt doublesided starts with left-hand page

This is what I get if I compile your example using ConTeXt version: 2017.01.27 (as displayed on Adobe Acrobat) The first page is on the right. Do you get a different output? To fix the location of ...
Aditya's user avatar
  • 62.8k
4 votes
Accepted

Vertical alignment of consecutive minipages and `twoside`

article uses \raggedbottom by default, so if pages fall short any additional space is added at the bottom of the page. in twoside mode it defaults to \flushbottom so it tries to ensure the bottom ...
David Carlisle's user avatar
4 votes
Accepted

Wrong blank sides on twosided memoir - discontinuity in odd and even pages

\newpage \pagenumbering{arabic}\setcounter{page}{1} is inherently unsafe as if the current page is odd you will get two odd pages, so when printed all pages will be on the wrong side of a two page ...
David Carlisle's user avatar
4 votes
Accepted

Conflict between lstlisting and twocolumn command

@Troy's comment provides a good reference for why you're experiencing the problem, using the approach you've outlined in your posting. I interpret your typographic objective (as opposed to the way ...
Mico's user avatar
  • 519k
4 votes
Accepted

how to use `\marginnote` in `mdframed` environment? (follow up)

The \marginnote definition of the tufte-book class is based on \marginpar. This is a float and it won't work inside a mdframed environment. You can switch to the \marginnote definition of the ...
Ulrike Fischer's user avatar
4 votes
Accepted

marginnote + pagenumbering = ⚡

To recap, the issue here is not related to svmono or geometry, the culprit is \pagenumbering and the twoside option (which svmono loads). In marginnote there is a separate page counter added to the ...
daleif's user avatar
  • 55.5k
4 votes
Accepted

Back Cover with summay/information

In a double sided KOMA-Script document you can use \cleardoubleevenpage before the back cover. On the back cover page use \thispagestyle{empty} or \pagestyle{empty}. Example: \documentclass{scrbook} \...
esdd's user avatar
  • 86.2k

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