1

UPDATE: I managed to reduce the problem to the following (turns out it does not relate to classicthesis)

\documentclass[twoside]{report}

\usepackage{marginnote}`enter code here`
\usepackage{lipsum, showframe}

\begin{document}
\begin{titlepage}
   \lipsum[1]
\end{titlepage}
\pagenumbering{arabic}

\lipsum[1]
\marginnote{\lipsum[1]}
\lipsum

\end{document}
  • If I remove \pagenumbering{arabic} it works
  • If I remove the titlepage it works

How can I get both a title page, arabic page numbering and correct margin notes?



Original Question

I use the classicthesis package and desire to place marginnotes into the larger margin (it's a twosided document). Thus in my preamble I have

\makeatletter
\let\oldmarginnote\marginnote
\renewcommand*{\marginnote}[1]{%
   \begingroup%
   \ifodd\value{page}
     \if@firstcolumn\else\reversemarginpar\fi
   \else
     \if@firstcolumn\reversemarginpar\fi
   \fi
   \oldmarginnote{#1}%
   \endgroup%
}
\makeatother

Which places the note in the left margin for an even-numbered page, but the space is too large. See the below image enter image description here

How do I get it into a reasonable position without messing up the format of the document (I tried some geometry related tips, but I wan all margins and such stay the way they are, and simply move the note closer to the body)?

oarfish
  • 1,419
  • Please add to your question a complete minimal document allowing us to reproduce the problem. – Gonzalo Medina Aug 13 '15 at 15:04
  • If you use the showframe package you will see that the default marginpar area IS on the wide side (directly under the chapter number). – John Kormylo Aug 13 '15 at 15:09
  • You can increase the \marginparwidth (it must do its own fixup) but you will move the chapter number with it. – John Kormylo Aug 13 '15 at 15:43
  • @GonzaloMedina I have been strangely unsuccessful in reproducing the problem with a minimal example. I have therefore linked the repository above and I would be greatful if somebody were to take a look at it. – oarfish Aug 14 '15 at 10:30
  • @oarfish Check the answers here [http://tex.stackexchange.com/questions/14527/how-do-i-get-the-margin-note-to-appear-on-the-left] You only need to issue \reversemarginpar once, maybe just below the chapter titule to preserve the chapter number's position (it's also in a marginpar). Then again at the end of the chapter. – PhilipPirrip Aug 14 '15 at 10:50
  • In adaddition, why are you using '\if@firstcolumn' if your document has only one (column)? Why '\marginnote' if 'classicthesis' sets up all for '\marginpar' – PhilipPirrip Aug 14 '15 at 11:00
  • ´\marginparworks better but seems to be less customizable than\marginnote. Can you elaborate how isclassicthesisset up formarginpar`? The snippet was copy-pasted from some place I could not find again and I found it places the notes in the right margin. – oarfish Aug 14 '15 at 11:03
  • @oarfish Open 'classicthesis.sty' and search for marginpar and graffito. Issuing '\reversemarginpar' only once worked great for me. Just put in below the chapter title and you're good. – PhilipPirrip Aug 14 '15 at 11:34
  • Using the everypage package you can create your own margin notes. See http://tex.stackexchange.com/questions/215322/multiple-marginnote-commands-on-the-same-line-in-math-environment/216037#216037 for example. – John Kormylo Aug 14 '15 at 15:12
  • @PhilipPirrip If I issue \reversemarginpar after \chapter{xyz}, the chapter number still switches sides and the margin note is on the opposite side of the page. – oarfish Aug 15 '15 at 08:45
  • @oarfish I tried in on the original template and this didn't happen. Not for the current chapter, but did for the following ones. That's why you need to reverse it again at the end again. Now I'm curious, why would you want the marginal note on the binding side anyway? Book margin is the outer side only. – PhilipPirrip Aug 15 '15 at 10:13
  • @PhilipPirrip Regardless of correct typography, I have the problem that the margin notes do not show up in their designated place (illustrated by showframes). See the edited question. – oarfish Aug 15 '15 at 10:17
  • @oarfish Is it same with marginpar? – PhilipPirrip Aug 15 '15 at 10:54
  • @PhilipPirrip No, marginpar appears to work regardless. – oarfish Aug 15 '15 at 11:01

1 Answers1

2

As per my comment:

enter image description here

\documentclass[twoside]{report}
\usepackage{showframe}
\usepackage{lipsum}
\usepackage{classicthesis}
\addtolength{\marginparwidth}{0.5in}
\begin{document}
\chapter{One}
\marginpar{\rule{\marginparwidth}{1pt}}
\lipsum[1-3]
\chapter{Two}
\marginpar{\rule{\marginparwidth}{1pt}}
\lipsum[3-5]
\end{document}
John Kormylo
  • 79,712
  • 3
  • 50
  • 120
  • Look at the upper and lower margins. Do you notice the page number running off the page? classicthesis assumes certain gloabl options being given down to typearea. I consider this one of the quite many bad decisions the author of classicthesis has made. – Johannes_B Aug 14 '15 at 12:58