{marginpar} is a command that adds content to the margin of documents.

learn more… | top users | synonyms

1
vote
1answer
51 views

Running headers in the margin

How do I create a running header that appears in the margin instead of in the header? The following MWE produces the sort of running text I want in the header. I would like to replace the \def lines ...
1
vote
1answer
30 views

\marginpar start at top of page

I am trying to build a minitoc in a marginpar. It can span several pages. Everything is fine while there is no figures on the top of the page. I need the contents to start from the top of typing area ...
3
votes
0answers
30 views

qrcode in bibliography margin/bibliography entry with height of marginpar-content

Printed URLs are inconvenient and i just noticed, that there is a LaTeX package to generate QRCodes. I think using QRcodes to aid with URLs could turn out quite nice, so i used the code below to ...
6
votes
1answer
322 views

Making marginnote to appear either side of twocolumn, twoside document

I have the following MWE in which the \marginnote need to appear at correct margin. For example the margin notes one, two, three and four need to appear on left margin of first page. In the second ...
2
votes
2answers
43 views

Package classicthesis and tikz figure numbering in marginpar

I'm using the classicthesis package and I created some tikz pictures in the margin using \marginpar. Unfortunately the numbering of the figures is not correct. When I comment out the classicthesis ...
1
vote
1answer
14 views

How to create simple comments in a margin next to the Document?

I've been digging through tons of SE-sites, package documentations for reledmac and parallel and many other pages, but I couldn't find the simple answer to this question. So, in hopes that it might ...
3
votes
1answer
33 views

\marginskip not working in marginfix

Can someone enlighten me on the correct usage of the \marginskip command from marginfix? Reading the documentation I thought issuing it will force separation between individual \marginpars, but I can'...
9
votes
3answers
2k views

Layout with captions in margin and margin notes

Questions summed up below! I want to convert a number of old (read: ugly self-coded html) tutorials into pdfs. They are still read by people, so I think it's worth the effort. The other reasons: ...
1
vote
1answer
172 views

Align section titles in margins properly

This is a follow-up to First paragraph indented after section title in margin, but I'm unable to vote, comment, or accept answers there because it's made under a guest account and not linked to this ...
0
votes
1answer
28 views

Use framed package with marginpar

I would like to emphasize a text block and still be able to use margin paragraphs. A non-MWE: \documentclass{article} \usepackage{lipsum} \usepackage{color} \usepackage{framed} \...
2
votes
1answer
430 views

Moving todo notes to other side of page

I am using the todo notes package, documentation of which can be found here. The current document I am working on is in a book style format - in particular, there are wider margins on the left for ...
6
votes
3answers
2k views

Why does the \marginpar not appear on the left page?

I am working on a book right now and the margin notes are not appearing on the left-side pages. I tried using mparhack but it made no difference. Is my geometry, fancy style or another package ...
11
votes
2answers
9k views

Margin notes on both left and right?

I've been trying to put margin notes in both the left and the right margins at the same time. My attempts have gone something like: Lorem{\reversemarginpar\marginpar{Left}} ipsum {\normalmarginpar\...
2
votes
2answers
52 views

Numbering Images in Marginpar

I would like to add some small images into the marginpar. The purpose of the images is to add some additional 'nice to know' information, but they are not directly related to the document's content, ...
15
votes
1answer
759 views

Side notes marking multiple lines of text

I am looking for a method to put small side notes next to the text, by simultanously marking the amount of lines to which the note refers. So, something like this: I was trying many methods like ...
3
votes
2answers
57 views

Dummy text inside the marginal note doesn't continue to next pages

This is my little MWE, \documentclass{book} \usepackage{blindtext} \usepackage{geometry} \geometry{ includemp, % or include something else? paper=a4paper, marginparwidth=...
1
vote
1answer
45 views

Align sections titles with margin notes

I want to align sections titles with margin notes as shown below. \documentclass[12pt,a4paper,twoside,openright]{book} % Page format \usepackage[left=2cm,right=6cm,top=3cm,bottom=2.5cm, headsep=1.5cm,...
12
votes
2answers
489 views

Tweak showlabels/showkeys - wrap the label

Can showlabels wrap the label in the margin? A very similar question is showlabels: wrap labels in marginpar, but the solution of @DavidCarlisle does not solve the more general case. Consider the ...
4
votes
1answer
278 views

Multiple \marginnote commands on the same line in math environment

If multiple \marginnote commands are triggered on the same line, by default they are typeset on top of one another, making them unreadable. I would like them to stack vertically, which is the default ...
1
vote
1answer
93 views

Margin notes in listing with float environment – Error: Float(s) lost

Based on this question: Margin notes in listing with float enviroment - Error: Float(s) lost I have now other question. The solution is working fine. But I want to use floats for listings, to prevent ...
16
votes
2answers
1k views

\raggedouter to typeset marginal text in twoside book

We used the following code fragment using the changepage package: \newcommand{\raggedouter}{% \checkoddpage% \ifoddpage% \RaggedRight% \else% \RaggedLeft% \...
15
votes
1answer
1k views

Source Code Margin Comments

In the paper "Beautiful Code Compelling Evidence", by J.R. Heard -- Code is formated in a particular way which includes margin comments. I am looking for a way to do this as I think it is a very clear ...
5
votes
3answers
1k views

How to remove margin notes space in book class?

By default, the "book" class produces a layout with a big space for margin notes. One consequence of this behavior is the binding side has a smaller margin than the other side (with the twoside option ...
5
votes
2answers
136 views

How to add marginal notes on the right in `ltxdoc` document class

I am having an issue inserting marginal notes while using the ltxdoc document class. I see that the default layout is the following: From what I understand, the margin notes are set up this way ...
2
votes
1answer
41 views

unexpected linebreak when using `\nameref` in marginpar

I have an unexpected linebreak in my \marginpar and don't know where it comes from. It appears right in the middle of the \nameref... Does anyone see the mistake? \documentclass[a4paper,twoside]{...
0
votes
1answer
55 views

tufte-latex: math tag into margin

How can I push a \tag of a math environment into the margin when using tufte-latex? I tried to modify the answer in margin note left of an equation? but I didn't understand the command. Here is a MWE ...
12
votes
2answers
1k views

Automatic hyphenation in margin notes

I build a document with notes (like footnotes) on margins. I found help on LaTeX community and now my preamble looks like that: \documentclass{book} \usepackage{marginnote} \renewcommand*{\...
1
vote
0answers
34 views

How to make marginal boxes that respect page breaks

At the moment, I'm using a combination of \makebox and \parbox to insert labels into the margin in my thesis. For the most part, this works, but occasionally I have a long label that doesn't quite fit ...
1
vote
0answers
41 views

How to define margin for pdf doc?

I have the problem that my output pdf has the wrong margin between left and right. you can see it in the pic below: The problem is, I need the opposite way. left have to be wide and right narrow. ...
0
votes
0answers
67 views

tufte-book and marginfix

I want to apply this fix Full width text shifts all marginfix-ed floats off the page to the right to the tufte-book document class, however I get an error whenever I use \chapter. \documentclass{...
2
votes
0answers
68 views

Alignment options for marginpar

I'm searching for more powerful annotation library than marginpar. In particular, I would like to have the feature to center the annotation vertically in the corresponding paragraph. marginnote seems ...
1
vote
0answers
52 views

\marginpar with pushback from right

I like to put references to book sections pertaining to class notes in the right margin. These are of the form XXXnn-nn for a 3-letter book title abbreviation followed by a range of section numbers. ...
3
votes
2answers
79 views

Equip a theorem with margin bar

Using PDFLaTeX, I am trying to equip theorem-like environments with a colored bar in the outer margin of the document. These theorems are already using the (nice) thmbox formatting. After trying the ...
4
votes
1answer
88 views

Margin note automatic concatenation

I'm trying to use \marginpar to annotate the line where a piece of data occurs in the text. That means, I want them in the precise line where they are declared, there will frequently be more than one ...
3
votes
1answer
109 views

More floats with memoir [closed]

I'm writing a thesis with memoir. The numerous footnotes are rendered as sidenotes (marginpars) using memoir's \footnotesinmargin (memman.pdf p245). This, with the addition of the marginfix package, ...
2
votes
0answers
53 views

marginpar have changed,is it a bug?

In my latex installation, this MWE always gives the warning: marginpars have changed, after multiple runs. But clearly, there is nothing changing. Is it a bug? \documentclass{scrbook} \usepackage[...
0
votes
1answer
218 views

Margin widths and positioning in “oneside” memoir document

In a "onesided" memoir-based document, two custom \newcommands use both the marginpar and the sidepar commands respectively. The marginpars go to the right side and the sidepars on the left side. Some ...
2
votes
2answers
82 views

Margin comment throwing “underfull \hbox” error

So first off, let me show you a minimal working example: \documentclass{amsart} \usepackage{color} \definecolor{mycol}{rgb}{0,0.5,0} \newcommand\marginComment[1]{\marginpar{\hsize1.7cm\tiny\color{...
2
votes
1answer
81 views

Margin note on adjacent page

I was wondering if there was a way to put margin notes (and possible footnotes) on the adjacent page. I want to put together a document that incorporates a large amount of references and "margin ...
1
vote
0answers
78 views

How to put figures in the margin beside text? [duplicate]

For my thesis, I would like to be able to put some illustrative pictures in the (exterior) margin, beside text as it is the case in following example (original document, p. 16) However, I cannot ...
4
votes
1answer
79 views

How to create marginal notes without 'opening up' the paragraph

This is an example with the \marginalstar macro from TeXbook. Without \marginalstar the paragraph is normal, with \marginalstar the paragraph is "opened up". \def\strutdepth{\dp\strutbox} \def\...
0
votes
0answers
12 views

Automatically generated index mark on the right page border [duplicate]

How to add an automatically generated mark for each chapter in the right side with an auto offset? Just like for the phone books:
1
vote
1answer
125 views

Why does inclusion of titlepage mess up margin note placement?

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, ...
1
vote
2answers
271 views

Positioning/ Size of MarginText in CV (classicthesis/curvvita)

I'm trying to write my CV in LaTeX, with classicthesis and curvvita for style format. I've got the following code: \documentclass{scrartcl} \usepackage{marginnote} \reversemarginpar % Move the ...
4
votes
4answers
243 views

Paragraph indent in marginpar

I use memoir and defined my own version of margin notes. I would like margin notes consisting of multiple paragraphs to have each paragraph except the first one to be indented. However, I can't figure ...
2
votes
1answer
218 views

Putting figures+caption in the margin

Is there a "clean" way to make figures and their caption appear in the margin? I'm using memoir with the companion pagestyle, so the margin is quite assymmetric and I think it might look nice enough ...
3
votes
1answer
285 views

How to include page margin into header and footer in memoir?

I wonder how I can achieve the following two things: I want to have defined page margins for the use of \marginpar notes and comments. The problem is that, although I use memoir with twoside option ...
1
vote
2answers
196 views

Justification (both right and left) and page-break for margin enumeration

I am including an enumeration in the margin. I am able to get this to work, but noticed two problems. First, I am trying to justify the text. Currently, it is justified on the left, but not on the ...
1
vote
0answers
141 views

How do I put table captions in the margin?

I have a two column document and need to display two tables alongside each other, with the caption in the margin. I've hit a wall with it -- I use table* float to span two columns with one figure and ...
0
votes
1answer
151 views

Margin notes on the right side only

I would like to know how I could have margin notes only on the right side of my document using a twoside document class. This is a part of my preamble : \documentclass[12pt,a4paper,footinclude=...