Tag Info

Hot answers tagged

65

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


23

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


22

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


20

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


19

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


18

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


16

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


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


15

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


15

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.


14

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


13

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


13

In the solution below I've borrowed code from Equation tag in twoside-mode outer Changing the apperance of equation numbers with amsmath Theorem Name/Numbering in Margin The part that does what you need is % customize the tag form of the equations \makeatletter \global\tagsleft@true \let\mytagform@=\tagform@ \def\tagform@#1{% \ifodd\value{page} ...


12

For odd / right-side pages you can use \cleardoublepage in two-sided documents. (In one-sided ones \cleardoublepage is identical to \clearpage) To force even / left-side pages you would need to define your own macro based on \cleardoublepage, but with reversed logic: \documentclass{book} \newcommand*\cleartoleftpage{% \clearpage ...


12

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


11

It is normal that the outside margins are larger than the inside margins. However, KOMA-script/typearea supports the specification of a binding correction. That is, specifying how much space will be lost on the inside of the pages due to binding. The effect is that it shifts the text to the outside by that amount. You specify the binding correction by ...


11

Most book classes assume that the final pages will be printed double sided with one side for binding, and their default is to have different page layouts for front (recto) vs. back (verso) pages. To fix this you should use the oneside option when you load the class. \documentclass[oneside]{memoir}


11

Add \reversemarginpar after loading the geometry and todonotes packages. Note that as todonotes writes to the auxiliary file, you'll need to compile your source file at least twice to ensure that the lines it draws between the margin note and the connecting text are properly organised.


11

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


11

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


11

You can use the refcount package: \usepackage{refcount} \newcounter{figureposcount} \newcommand{\row}[2]{% \refstepcounter{figureposcount}\label{figurepos\thefigureposcount}% \ifodd\getpagerefnumber{figurepos\thefigureposcount} #2 \hfil #1% \else #1 \hfil #2% \fi } However you could also consider the sidecap package that does what you want ...


11

How about adding the class option oneside? P.S.: This should work for all classes featuring the \chapter command plus the twoside default option. In particular, it works for the standard class book and the KOMA-Script class scrbook.


11

Here's one possible option: with the help of the lastpage package, you can check if the last page is odd or even; in the first case, add an extra page with empty style; otherwise, do nothing: \documentclass{article} \usepackage{ifthen} \usepackage{lastpage} \usepackage{lipsum} \AtEndDocument{% ...


11

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


10

Since you are not describing what this is good for, it is difficult to guess what exactly you need. Here is a first, working version: I defined a page twice as big as the one you need. I assumed A4, so I made a A3 page. Now you want the text on the left side and the footnotes on the right side. So I defined the 'body' section to be for your text and the ...


10

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


10

You have to redefine \sectionmark to do nothing (and also to clear the fields): \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[RE]{\leftmark} \fancyhead[LO]{\rightmark} \fancyfoot[RO,LE]{\thepage} \renewcommand{\partmark}[1]{\markboth {\color[gray]{.0}\thepart. #1}{}} \renewcommand{\chaptermark}[1]{\markright ...


10

Original answer to Ensure last page is even and blank (now merged with this question.) If you want to ensure even number of pages in twoside mode you can simply add \cleardoublepage at the end of the document, either manually or using \AtEndDocument{..}. If you want to have the page blank you need to modify the code used by \cleardoublepage slightly to ...


10

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


10

You have to include \checkoddpage in your custom macro. \documentclass{article} \usepackage{lipsum} \usepackage{ifoddpage} \newcommand\printpage{% Page is \thepage. It is \checkoddpage\ifoddpage odd\else even\fi. } \begin{document} \lipsum \printpage \lipsum \printpage \end{document}



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