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

learn more… | top users | synonyms

8
votes
1answer
193 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 ...
7
votes
1answer
168 views

Why does \marginpar sometimes add an unnecessary newline?

In the following example, the main paragraph gets typeset as 3 lines of text, with the paragraph ending on the third line before it reaches the margin. However, when un-commenting the line with the ...
7
votes
2answers
103 views

Edit marginpar command through whole document

I'm finding myself doing the following on every margin paragraph: \marginpar{\raggedright \scriptsize <content here>} Is there a way to set the align and script size for every margin ...
6
votes
2answers
169 views

Exclude line numbers from margin width

I am using the lineno package to add linenumbers on my twosided document. However, I have a restriction to leave a margin of 2.5cm inner and 4cm outer margin. This has to be completely free space. ...
2
votes
0answers
60 views

How to spread a marginpar note in more than one page?

I'm using the standard class book with a lot of marginpar notes and few footnotes also; until here all is fine. My problem starts when I have very large margin notes that barely fit on one page, using ...
3
votes
2answers
428 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 ...
3
votes
1answer
166 views

Align marginpar with top of current paragraph

I am using \usepackage{backref} to create a back reference in my bibliography. That part is working fine. I am now attempting to use \marginpar to have those references show in the margin, like so: ...
3
votes
1answer
80 views

centered margin text (with KOMA Script and Tikz)

The following MWE sets some boxed texts on the margin: \documentclass{scrartcl} \usepackage{tikz} \usepackage{blindtext} \begin{document} \marginline{\tikz[baseline=(n.base)]\node[rounded ...
5
votes
1answer
124 views

Note in the corner of a LaTeX document

I would like to put a small note in the upper right corner of my LaTeX document to put my initials for instance. How can I achieve this?
6
votes
1answer
129 views

how can i make the marginpar note have a number like footnote command does

how can i make the marginpar note have a number like footnote command does? just like this picture show,
10
votes
2answers
306 views

How to add a side by note in LaTeX

How can i produce the following image TeX commands of this would be extremely helpful.
3
votes
1answer
236 views

Lost control with \marginpar

I want to include marginal notes only on the left side of a large document. (For your information, I have included all the packages listed in the preamble of the document in the following minimal ...
3
votes
2answers
317 views

How to better adjust placement of frametitle converted to marginpar in beamerarticle?

I'm using beamer and beamerarticle for my class notes. I would like to include frametitles as margin notes in <article> mode aligned with frame content but they are a little bit misplaced. ...
3
votes
1answer
233 views

Text alignment in a Marginpar (Arabic)

how can I write a marginpar in Arabic with a text alignment from right to left. I use XeLaTeX. When I write \marginpar{{\A كتاب حلية الأبدال وما يظهر عنها من المعارف والأحوال}} Then that comes ...
7
votes
1answer
184 views

Using index information to generate cross references

The idea is to use the index information to automatically generate cross references. If an index entry refers to more than 1 page (e.g., "Smith, John 5, 9"), then the index entry along with the other ...
5
votes
1answer
238 views

\marginpar trick: not considered as float

I've found on the net a useful trick that does exactly what the title says. This is the code: \newcommand{\mymarginpar}[1]{% ...
1
vote
1answer
289 views

Set custom page text/line width in memoir for sidepars

I wish to lay out a page using the memoir package so it has dimensions something like this: # <-- 21.6cm (Letter stock) --> # # Margin | Content | | Note | Margin # ...
3
votes
1answer
176 views

scrbook: remove margin notes for index entries [closed]

I'm using the scrbook class. I don't like the way that my index entries are included as margin notes. How can I prevent the index entries from being shown in the margins? I consulted the KOMA-Script ...
4
votes
2answers
200 views

How to merge marginpars to avoid overflows?

I am using margins to print keywords but sometimes the number of keywords in a paragraph become too many and they appear beside the next paragraphs. To avoid this issue, I thought maybe they could be ...
13
votes
1answer
471 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 ...
2
votes
1answer
102 views

How to top- align sidenotes using eledmac?

Eledmac commands \ledleftnote \ledrightnote \ledsidenote insert side notes at the level where the command was issued. However the side note is bottom aligned, meaning the the note doesn't start at ...
6
votes
1answer
113 views

Placement of margins notes on even pages

I'm writing a textbook and am using \marginpar to put a mnemonic on the margins (a triangle and a writing hand symbol from the marvosym package) for the reader to work out the derivation in the text. ...
7
votes
3answers
197 views

\listings environment inside \marginnote?

Is it possible to use \listings or similar environment inside \marginnote or in margins in general? \marginnote{ \begin{lstlisting} test \end{lstlisting} } If not, what would be a ...
3
votes
1answer
468 views

Change marginpar Font

How do you change the font used for a \marginpar? I am using xltxtra, and am seeking to use an OpenType font. MWE: \documentclass{book} \usepackage{xltxtra} \usepackage{titlesec} ...
2
votes
1answer
101 views

Marginpar does not appear in ledmac numbered text

For some reason my marginal notes don't appear. Is it because of line numbering? % XeLaTeX can use any Mac OS X font. See the setromanfont command below. % Input to XeLaTeX is full Unicode, so ...
5
votes
1answer
428 views

Implementing marginfigure

sorry for the absolutely beginner question here. I've been looking at the tufte-latex class, specifically the tufte sample book. It makes use of marginfigures, which I believe are provided by the ...
2
votes
2answers
170 views

Add vertical line margin-aligned from a given point through subsequent pages

Using the memoir package, I would like to have a vertical line on my margin like this: Some leading content ... vertical space ... ---------------------------------- XYZ | Content A | ...
2
votes
1answer
103 views

vertical placement of graphics in marginpar

I'd like to put small graphics into the margin via \marginpar. The top of the figures shall be aligned to the top of the text line they refer to. I found around here the suggestion to put a \vskip0pt ...
3
votes
1answer
117 views

Printable margin notes that leave rest of the content intact

Let me give you some background on my problem. I am working on application which generates and compiles LaTeX code. For debugging purposes I need it to add some additional informations next to the ...
4
votes
1answer
128 views

How to lock a static text in the margin in ConTeXt?

Even though I have a some manuals at hand I can't seem to find a solution for my problem. Within an invoice I created with ConTeXt (MkIV) I have placed a short paragraph in the right margin. This ...
8
votes
1answer
274 views

Too much vertical space before \part when using \marginpar

When I use a \marginpar{...} before \part{...} on a new page, I get a big space on the top of that page. Below is a screenshot, where the left one was typeset with marginpar, the right one without: ...
2
votes
2answers
241 views

Vertical space depending on height of marginpar

I'd like to set a law text consisting of articles, marginal notes and, in most cases, paragraphs (\abs). The marginal notes should always start on the same line as the first line of the article text, ...
6
votes
0answers
338 views

Marginpar on a fixed side of two-column double-sided memoir document

I have a two-column, double-sided document class based on memoir, where the wide margin is always on the left. I would like the \marginpar to always be in this left margin, irrespective of whether it ...
6
votes
2answers
328 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 ...
2
votes
2answers
206 views

how to control font and paragraph formatting in margins

i'm having a hard time to figure out how to control the exact appearance of margin text (such as is output by the \marginpar command). i'm using XeLaTeX with packages such as geometry, fontspec, ...
7
votes
1answer
261 views

Horizontal alignment of margin notes in nested enumitem list

I would like to be able to 'tag' certain list items in an enumitem list with a mark in the left margin. I would like the marks in the left margin to be horizontally aligned with respect to each ...
5
votes
1answer
511 views

Asymmetrical layout in two-sided document

I use two-sided document mode in Book class KOMA Script. It works well in the sense that the ToC, chapters, titles starts from the odd pages. Exactly we I need in a book. In a recent book I need to ...
6
votes
2answers
4k 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 ...
2
votes
1answer
380 views

How can I place an image in a marginpar and make it position itself according to the top of the image

As demonstrated by the following MWE, I've placed a simple image in the margin of a document. What appears to happen is the caption text is vertically aligned with the line that I type the \marginpar ...
3
votes
1answer
426 views

How to suppress “underfull \vbox” warning for one specific \marginpar

I have just started using LaTeX, so forgive me if this is a basic question. I have a \marginpar in a two column article. It is very narrow (despite me increasing \marginparwidth). When the document is ...
1
vote
0answers
99 views

How to flow a marginpar that does not fit to next page (or: how to write text with lots of margin notes)? [duplicate]

I analyse an interview transcript and would like to add plenty of notes in the margin. Sometimes these margin notes will not fit on the current page, and thus I would like them to flow to the next ...
5
votes
2answers
1k 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 ...
7
votes
1answer
406 views

\marginpar and \begin{align}

I want to use \marginpar directly beside a formula within a \begin{align} statement. I tried: \begin{align} E^2 \end{align} \marginpar{Not correct} but the 'Not correct' statement is written ...
2
votes
1answer
748 views

margin note left of an equation? [closed]

How is it possible to place a margin note left of an equation? I'm using scrartcl from KOMAScript. I set \reversemarginpar, then I tried with \marginnote from the package marginnote and also with ...
4
votes
1answer
284 views

How can I make an environment so that I can reserve space for text next to a figure?

I'm working on a layout for a custom textbook class, and I'm having issues getting this environment to work as I like. Here's a shot of my current working layout: I'd like to be able to make an ...
4
votes
1answer
283 views

longtable captions in marginpar

I used floatrow to put all my captions (figure, table, listing) into the margin. The only captions left that i'm unable to put there belong to the longtable environment. Is there a way to put the ...
9
votes
1answer
1k views

Remove Marginpar from Classicthesis 4.1

I am searching for a safe method to remove the \marginpar feature in classicthesis. My corrector would rather have the text use the whole page. I am not that firm in LaTeX, so I tried to simply remove ...
4
votes
1answer
318 views

Tufte-Latex: How do I stop marginfigure from inserting inline space?

I want to use marginfigure, but it is inserting space inline. Check out my minimal example: documentclass{tufte-book} \begin{document} Hello\begin{marginfigure}$2+2=4$\end{marginfigure}I'm new here. ...
6
votes
1answer
155 views

Caption number increases by two for every inclusion

I am trying to typeset my captions in margin using marginpar and captionof. Here is what I get by the MWE. Note the wrong caption numbers. The first caption is included using macro \fixedmarginpar ...
14
votes
2answers
676 views

Inserting a line to separate the text and the margin note

How can I insert a vertical line through a whole page to separate the text and the margin notes?