Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
118

The following should do it. It needs at least two compiler runs to be stable. With a lot of floats it can take several compilation runs until the document is stable. Updates: Works now for twoside mode; now with caption support; Added float settings and removed ! from the float position to also support smaller images; Moved p images to the page corners. \...


46

Use the document class option openany or consider using the report class instead, where this is the default. There are two related document class options: openright: makes chapters begin on right hand pages, default for the book class openany: makes chapters begin on the next available page, default for the report class Also the margins are differently ...


38

I do not think there is anything illogical regarding the standard LaTeX class page design. This page design does not include any allowances for binding offsets. The binding offsets are a function of the thickness of paper as well as the number of pages in a book and the method of binding. If you binding a book or report with a spiral binding machine, it will ...


34

\usepackage[pdfpagelayout=TwoPageRight]{hyperref} If you cannot use hyperref for some reason, use \pdfcatalog{/PageLayout /TwoPageRight}. Adobe Reader will only pay attention to this setting if in preferences, on the "Page Display" tab you set the "default layout and zoom" to have "Page layout: Automatic". This is what it looks like in an MWE: \...


32

Like this? \documentclass[twoside]{article} \begin{document} one \cleardoublepage \end{document} Or you could use this version \makeatletter \def\emptycleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \thispagestyle{empty}% \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi} \makeatother which is the same as the standard \cleardoublepage ...


31

Normally, one would simply use the left and right keys, because they are actually synonyms for inner and outer in twoside mode. (Alternatively, one could specify the textwidth and hmarginratio keys.) In case you want to disable the swapping of margins on alternate pages, add the asymmetric option. \documentclass[twoside]{article} \usepackage[top=2cm,bottom=...


25

You can prevent this behaviour with using \raggedbottom. By default the book class uses \flushbottom which fixes the bottom of the text and inserts variable space inbetween the paragraphs.


23

I assume you are using a documentclass like book which implicitly contains the option openright as default, which in turn makes every chapter (and everything like a chapter, i.e. \listoffigures) start on a right page. The command \cleardoublepage which is used internally will insert an empty page if neccessary to start a new right page. On \nopagebreak[0] ...


22

The important issues to handle for such a project would be the handling of floats. Normally photo books or similar documents do not have a large amount of words and if you use floats and marginpars, the text will certainly end up in the wrong place. I would first choose a few page designs and then use minipages or better TeX vbox and hbox primitives to ...


22

The new package fullwidth is uploaded to CTAN. The development status is available on github. \setcounter{errorcontextlines}{999} \documentclass[twoside]{article} \usepackage{showframe,lipsum} \usepackage[innermargin=-2.0cm,]{fullwidth} \begin{document} \lipsum %\clearpage \begin{fullwidth}[width=\linewidth+2cm] Start\par \lipsum[1] \lipsum \lipsum ENDE \...


22

There are two separate issues here: one is the layout of the text on the paper, the other is space left over for the binding. For a long time, books (in the West; I'm not familiar with other regions) have been designed with a larger outer margin than inner. This is generally considered "prettier". In the world of TeX, we are concerned with this sort of ...


21

Here's one possible solution patching (with the help of the etoolbox package) the LaTeX kernel command \@addmarginpar: \documentclass[twoside]{book} \usepackage[centering,marginparwidth=2.5cm]{geometry} \usepackage{etoolbox} \usepackage{lipsum} \makeatletter \patchcmd{\@addmarginpar}{\ifodd\c@page}{\ifodd\c@page\@tempcnta\m@ne}{}{} \makeatother \...


19

There are some excellent answers already, let me add two simple observations: Binding does not take space out of inner margin. Binding space is extra, is not a part of the page, and should not influence page design (besides determining, together with paper size, the page width). Binding space depends on binding method, paper size (which is often larger ...


19

You can use the etoolbox package to patch the \@mn@margintest command to set \if@tempswa to be always true and then issue a global \reversemarginpar: \documentclass[twoside]{book} \usepackage[centering,marginparwidth=2.5cm,paperheight=10cm]{geometry} \usepackage{marginnote} \usepackage{lipsum} \usepackage{etoolbox} \makeatletter \patchcmd{\@mn@margintest}{\...


19

Odd pages come on right. The wider margin is the outer one, so on page one, you should have a wide right margin. So it seems to be correct. The reason is that the outer margins should visually be the same as the "inner one", and the "inner one" is sum of the "inner margins" of both facing pages.


18

This is an enhancement of code that I have found on c.t.t. It uses the afterpage package to skip every second page and then if you add a figure with the \addfig command it will output it on the next page. It seems to work reasonable well (to my own surprise also ;-) \documentclass[english,oneside]{book} \usepackage{babel} \usepackage{afterpage} \...


18

In general you need place something on the page, like \hbox{} (aka \null), otherwise two page breaks in a row are ignored: \clearpage\null\newpage But actually you should use \cleardoublepage instead! It ensures that the next page is on a right page.


18

This can be done using \afterpage similar to my more complex solution shown in How to include a picture over two pages, left part on left side, right on right (for books)?. Because the \afterpage code is processed directly after a page is written the page counter can be used directly without going over page labels as done by the ifoddpage package. \...


18

The following solution uses the \label-\ref system to record a footnote and retrieve it, possibly on the current page, or possibly \afterpage: \documentclass{scrbook}% http://ctan.org/pkg/KOMA-script \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{afterpage,etoolbox,refcount}% http://ctan.org/pkg/{afterpage,etoolbox,refcount} \patchcmd{\...


17

There is a difference between titlepage and the cover of a thesis. The titlepage is inside your thesis and should obey the default layout. The cover is usually outside and can/should be centered. To get a centered cover my approach is to separate it in a second tex document and include it with pdfpages. \includepdf{cover/cover.pdf} And my cover.tex \...


16

I'm not sure why you want to switch from oneside to twoside mid-document, and a textblock of 16 cm width and 24 cm height won't look pretty. That said, it is possible to change most geometry settings mid-document since version 5. \documentclass{article} \usepackage{geometry} \usepackage{lipsum} \begin{document} \lipsum[1-5] \newgeometry{twoside} \...


16

This is a very partial attempt. It doesn't really work, but could help someone find a better solution. The idea I have is to set \parshape for every paragraph, depending on the space remaining on the page. Namely, the number of lines that should fit on the page is (\pagegoal-\pagetotal)/\baselineskip. The \parshape begins with lines of full length \hsize, ...


16

Use the symmetric option of the class. \documentclass[twoside,symmetric]{tufte-book} \usepackage{lipsum} \begin{document} test\sidenote{this} \lipsum test\sidenote{that} \end{document}


16

Try using the titlesec package. The command \titleformat included in it can take an page=odd or page=even option to give different formatting depending on even or odd page numbers, just like you want. \usepackage{titlesec} \titleformat{name=\section,page=odd}{}{ODD:}{.5em}{} \titleformat{name=\section,page=even}{}{EVEN:}{.5em}{} in the preamble should ...


16

As tohecz mentions in his comment, you can use \marginpar for your purpose; using \captionof (from the caption or capt-of packages) you can provide the captions. \documentclass[twoside]{article} \usepackage[outermargin=2cm,innermargin=5cm,marginparwidth=3cm,marginparsep=20pt]{geometry} \usepackage[demo]{graphicx} \usepackage{marginnote} \usepackage{caption}...


15

The geometry package allows one to switch your layout mid-document. So, you could set it as twoside for the first two pages, and then switch to the default ("oneside"). Here is a minimal document producing four pages, the first two are twoside, while the last two are not set in twoside mode, as shown by the showframe option to geometry. \documentclass{...


15

Issue \clearpage at the end of the document; then check whether the page number is odd and do nothing in this case, otherwise eject an empty page; the following code in the document preamble will do: \AtEndDocument{\clearpage\ifodd\value{page}\else\null\clearpage\fi} This works independently of the oneside or twoside option. In the latter case \...


15

the book class provides the openright switch, which is "on" by default. if you want to have a chapter start on the left, just before the \chapter command, insert \makeatletter \@openrightfalse \makeatother make sure this is in the same file as the \chapter command. if the chapter is in a separate file, accessed by \include, and the "don't open right" ...


14

I think it's enough to define \makeatletter \def\@floatplacement{\global\@topnum\c@topnumber \global\@toproom \topfraction\@colht \global\@botnum \c@bottomnumber \global\@botroom \bottomfraction\@colht \global\@colnum \ifodd\c@page\c@totalnumber\else\z@\fi%<<<<<<< \@fpmin \floatpagefraction\@colht} \makeatother In ...


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