# Tag Info

2

This is equivalent to Golovan's solution, but uses the ifoddpage package to simplify the coding. \documentclass[11pt,a5paper,twoside]{report} \usepackage{polyglossia} \setdefaultlanguage[spelling=new,babelshorthands=true]{german} \def\baselinestretch{1.07} \topmargin -2.3cm \textheight 16.6cm \newdimen\pagewidth\pagewidth=14.8650889cm \hoffset -1in \...

6

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 inserting a pagebreak). The only reliable way to get page number of an object is to use a label. So the following code puts a label at the beginning of the paragraph ...

1

I can confirm the issue. It will be corrected for the next version. The following patch should work for the meantime: \makeatletter \tcbset{% spread inwards/.style={% if odd page={grow to left by=1in+\hoffset+\oddsidemargin+\@totalleftmargin+(#1)}% {grow to right by=\paperwidth-\textwidth-1in-\hoffset-\evensidemargin+(#1)}% }, spread ...

3

You could correct the key imho like this: (\Gm@lmargin, \Gm@rmargin is from geometry, but could be replaced by core calculation): \documentclass{article} \usepackage[a4paper,hmargin={6cm,2cm},twoside]{geometry} \usepackage{tcolorbox} \usepackage{lipsum} \makeatletter \tcbset{% spread sidewards/.code= {\tcbset{check odd page}% \tcbifoddpage {\tcbset{...

2

After reading the tcolorbox package code, I think I found a possible solution: \documentclass{article} \usepackage[a4paper,hmargin={6cm,2cm},twoside]{geometry} \usepackage{enumitem} \usepackage{tcolorbox} \usepackage{lipsum} \makeatletter \newtcolorbox{fullwidth}[1][]{ check odd page, if odd page={% grow to left by={\hoffset+1in+\oddsidemargin+\...

0

Welcome to TeX SX! The typographic norm is the have marginal notes in the outer margin (which is usually larger than the inner margin, for obvious reasons), and by default LaTeX follows this rule, no matter what the margin sizes are. To change this behaviour, just add the switch \reversemarginpar at the beginning of the main matter.

0

You need to use the openany option in your documentclass, e.g. \documentclass[12pt,a4paper,twoside,openany]{book} to prevent the insertion of extra pages.

Top 50 recent answers are included