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

learn more… | top users | synonyms

1
vote
1answer
78 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 ...
2
votes
1answer
347 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 ...
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% ...
1
vote
1answer
141 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
34 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, ...
11
votes
2answers
8k 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 ...
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 ...
4
votes
3answers
914 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
117 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
32 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? ...
0
votes
1answer
50 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
984 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} ...
1
vote
0answers
29 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
35 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
44 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. ...
2
votes
0answers
47 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
49 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
59 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
84 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
81 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
48 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} ...
0
votes
1answer
163 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
71 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} ...
2
votes
1answer
68 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
74 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} ...
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
114 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
235 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
225 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
174 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
250 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
171 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
127 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
140 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 : ...
2
votes
1answer
94 views

“Underfull \vbox while \output is active”, adjusting stretch/shrink does not make the error vanish

I intend to use the sidenote package along with David Carlisle's implementation of \marginpar based on \pdfsavedpos from the answer here: http://tex.stackexchange.com/a/52436/44160. I've simplified ...
10
votes
2answers
571 views

Using a lot of marginpars

I need to use a lot of marginpars and hit "Too many unprocessed floats" as a result. I'm already using the morefloats package with maxfloats set to 100, but it's not enough sometimes. I'm thinking a ...
4
votes
2answers
159 views

Problem white space and \newline in margin note

\documentclass[a4paper,11pt]{book} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} \usepackage[T1]{fontenc} ...
3
votes
2answers
145 views

Is it possible to have tufte-like citations in a general documentclass?

The tufte packages/class is very nice. But (opinion based) it is too invasive for simple documents. I want to selectively use some features in a normal article class. Is is possible to have ...
7
votes
4answers
581 views

How would you reproduce the Leibniz binary table

I would like to reproduce the original Leibniz binary table (as seen here). The most precise the better...
9
votes
1answer
272 views

First paragraph indented after section title in margin

How do you keep the first paragraph from being indented, even when indentation is off, when using section titles in the margin? I'm pretty new to LaTeX, but I thought I was getting pretty good at it, ...
5
votes
2answers
1k views

How to use \marginpar with narrow margins

The \marginpar command is useful to create marginal notes in a document. In particular, it is used by the \todo command from the todonotes package. However, when the margins are narrower than usual, ...
1
vote
1answer
106 views

How can you adjust the vertical position of a marginal footnote?

I'm redefining \footnote to put them in them in the margin using \marginpar. Occasionally, the paragraph will extend below the bottom of the text block when a note appears near the end of a page. I ...
3
votes
2answers
81 views

Figure content does not appear on even pages after introducing changes to the output routine

In a document with wide margins, I want to offer a figure environment which extends into the marginpar-area. Furthermore, I want the caption-text to be placed in this area, too, either above or below ...
3
votes
1answer
247 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 ...
0
votes
1answer
146 views

Short caption in margin

Is it possible to insert the short caption of a figure in the margin next to it? I tried to get it working with etoolbox but without success. Additionally it has to work with the package subcaption ...
1
vote
1answer
102 views

Biblatex footnotes to margin

Is there a way to (robustly) push biblatex footnote citations to the margin? I tried \usepackage{sidenotes} \renewcommand*{\footnote}[1]{\sidenote{#1}} but I get sometimes ugly effects as shown ...
13
votes
4answers
856 views

Position margin notes relative to left margin in plain TeX

I want to add margin notes in the Tufte style to my Plain TeX document. (I'm using eplain, if that matters.) I know that if I were using LaTeX I could just use tufte-latex, but as a thorough ...
2
votes
1answer
135 views

Problem with marginnote [duplicate]

I tried to define (my first! - I'm a LateX newbie) command to insert notes in the margins of my text, but it introduces gaps wherever I insert the command :-( The code for my command is: ...
0
votes
0answers
79 views

marginal notes in both margins depending on the page number

The lines of my text are numbered because I'm producing an edition with notes in the bottom. I'd like to have marginal notes as well on the left for even page numbers and on the right for un even page ...