Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am writing my PhD thesis using the classicthesis style/package. Until few days ago I was using TeXLive 2009 from the Ubuntu 11.04 repositories. After I upgraded to Ubuntu 11.10 I decided to install "vanilla" TexLive 2011. Installation went great and after it was finished I upgraded everything with sudo tlmgr upgrade --self --all. Then I recompiled my files and after some adjustments in the preamble (required by the new version of classicthesis, that is v.3.0) the compilation was successful. So far, everything works fine so far except this: I use todonotes in my document and it worked great in my older setup, but now, after the upgrade, all my notes appear as inline notes and the same note is repeated twice! On the other hand the inline notes (i.e. the notes that need to be inline, for ex. \todo[inline}{inline note text}) appear to be correct.

I know I should put MWE here but since this is connected with the classicthesis package I simply can not create MWE code. Therefore I will try to explain how to recreate the error in simplest way:

  1. Locate the installed classicthesis package on the drive and make a copy of the whole folder, or download the zip file from the project's Google Code site and unzip it in it's own folder.
  2. Open the Classicthesis.tex and add \usepackage{todonotes} to the preamble (I added it just before \begin{document} so it is the last loaded package)
  3. Anywhere in the text add \todo{some text} in order to produce margin note
  4. [Optionally] Add somewhere \todo[inline]{this is inline note}
  5. Compile with pdflatex

If I do this, my resulting file show duplicated (double) margin note, that is also placed inline (only left bracket ([) appears in the margin where the note should actually be). The second, inline note, appears as intended.

Why is this happening and how to avoid/correct it?

P.S.: I use Ubuntu 11.10 and TexLive 2011, and from the log file: classicthesis 2011/06/05 v3.0 and todonotes 2011/10/22.

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

The problem is caused by the redefinition of \marginpar in classicthesis.sty. \marginpar is used by todonotes. It can be fixed by restoring the original meaning, if you don't need the classicthesis marginpar style. Just add this to your document preamble:

\let\marginpar\oldmarginpar
share|improve this answer
    
Thanks! It works! I had some suspicion that it was the \marginpar, but I was not that proficient in this matters to correctly identify and solve the problem myself. Thanks a lot! –  Vladimir Nov 2 '11 at 17:32
    
If anyone needs to use classicthesis' \marginpar and todo-notes redefine the old marginpar as Stefan suggested, and for classicthesis-like notes use \graffito{x} instead. –  Jörg Mar 14 '12 at 20:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/33423/todonotes-produces-double-inline-notes-instead-of-single-margin-note-with-class?answertab=active
tex.stackexchange.com
crawl=CC-MAIN-2014-15
67164
application/http; msgtype=response
sha1:NAMWSRDTVIBZTWRJCEUWOC2LIBGAVTEH
<urn:uuid:8327d601-a5be-4fe6-b639-1ce3b1ccb076>
2014-04-21T10:00:16Z
198.252.206.140
sha1:RHAS3J3RNXOOL3F4B45IT44ZFMVAFXAO
<urn:uuid:9f4a029c-3867-4cdb-ad8e-f994a2abb1cf>
http://tex.stackexchange.com/questions/33423/todonotes-produces-double-inline-notes-instead-of-single-margin-note-with-class?answertab=active
response
<urn:uuid:8005d14c-b5f3-4844-bbc2-89ef8ba4bea9>
robots: classic
hostname: ip-10-147-4-33.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-15
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for April 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf