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.

Consider, I've got a document I am asked to review in a way, that I add todonotes/marginnotes with comments.

Therefore the usual document margin might be to small. Is there a way to just add additional space for todonotes while keeping the documents layout unchanged? I know that there are ways of changing margins, page geometry etc. but is there a neat way, where I just would need to add one line of code in the header, to have wider margins during the reviewing process? That is also important since I do not always overlook all the layout settings the author has made to his tex document, so I am likely to change something when setting the wider margins by hand. Furthermore ideally I would like to not mess up with marginnotes.

So basically consider a layouted letter page document. I just want to add additional space, so have additional space on the right of the letter document.

Is there a neat way?

Here is a minimal working example:

\documentclass{article}
% loads of unknown author specific packages, settings, layouting
\usepackage{todonotes}
\begin{document}
This is some text to review.
\todo{This would be my comment on some extra wide margin just for todonotes.}
\end{document}
share|improve this question
    
Related: tex.stackexchange.com/questions/142242/…, and if you need more than one type/recipient of note, tex.stackexchange.com/questions/140310/…. –  Steven B. Segletes Mar 31 at 11:14

1 Answer 1

enter image description here

\documentclass{article}
% loads of unknown author specific packages, settings, layouting
\usepackage[textwidth=\dimexpr\marginparsep+4cm\relax]{todonotes}


\begin{document}
This is some text to review.
\todo{This would be my comment on some extra wide margin just for todonotes.}
\end{document}
share|improve this answer
    
Thanks. Should this work with scrartcl as well? Tried in another document as well but I get "you can not use \dimexpr ...". I still try to boil down this document to see where the problem occurs.. –  johanaLK Mar 31 at 11:11
    
@johanaLK \dimexpr is really just fluff here, you could use textwidth=5cm or any other fixed length. –  David Carlisle Mar 31 at 11:42
    
@johanaLK should work with anything, it just directly sets the width of the minipage used internally for the note. If you make it wider than \marginparwidth (as here) you get an overfull box warning but it's only a warning and turning it off would mean patching todonotes internals. –  David Carlisle Mar 31 at 11:43
    
Thanks, that seems to somehow work. Nevertheless it just uses up all the space that is available but does not extend the pagewidth if needed.. So what I actually want is kind of "gluing some more paper next to the original document and write my notes on that extra sheet".. –  johanaLK Mar 31 at 12:55
    
@johanaLK OH OK you are not going to print this then (dynamically extending real paper is harder:-) Just set \pdfpagewidth to some arbitrary large amount, it won't affect latex at all but will change the clip area in your viewer –  David Carlisle Mar 31 at 13:10

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.