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

learn more… | top users | synonyms

2
votes
1answer
588 views

KOMA: Margin notes only on outer side of two-column document? [closed]

For some part of a two-column scrbook of mine, I need to actually get a three-column layout: Two columns text, and a third column with a table (or a boxed enumeration, that would work too). Both ...
7
votes
2answers
2k views

Push marginpar up

I'm using the marginpar to put side notes, but instead of having them facing the line where they are called, I would like the whole marginpar to be pushed up. How can I achieve that? I tried adding a ...
9
votes
2answers
194 views

Suppress the log file lines written by a specific package?

The marginfix package is incredibly verbose in what it writes to the log file. For example: \documentclass{article} \usepackage{marginfix} \listfiles \begin{document} Here is some text\marginpar{This ...
2
votes
2answers
206 views

Aligning images in the marginal notes based on a specific paragraph height rule

Friends, I have to put some images in the marginal notes of a text. Unfortunately, I have some issues with the image alignment. Consider this minimum example: \documentclass[oneside]{book} ...
1
vote
2answers
927 views

How to avoid getting cropped marginpar?

I'm using the fixme package to add notes to various parts of my thesis draft. However, if I set the margins using the geometry package, I notice that the fixme notes are not formatted correctly (with ...
4
votes
3answers
916 views

How to patch a floating environment so that the patched command floats

I'm using etoolbox to patch some environments. I want to use \AtBeginEnvironment{table}{\marginpar{foo}} to put something in the margin by the float. But the marginpar is typeset where the environment ...
8
votes
2answers
510 views

How can I add margin notes on inner side of a page in two sides mode?

How can I add margin notes on inner side of a page only for even pages in two sides mode?
7
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: ...
2
votes
2answers
400 views

why does \hspace{0pt} produce a space at the beginning of the paragraph together with \marginpar?

Similar situation as in Align marginpar with beginning of paragraph. Basically I need to align the margin note to the beginning of the paragraph, and I'm putting the \marginpar command before the ...
3
votes
1answer
393 views

How to make theorem title (such as Theorem, lemma, definition, etc) in margin while theorem number as usual.

How to make the theorem style like: 1.1.3. There is a theorem. Theorem it may be several lines. The theorem 1.1.3 end. 1.1.1. There is a lemma. lemma The ...
7
votes
3answers
2k views

Add colour to margin notes

I'm using LyX with XeTeX and the KOMA-script article class. I'm trying secsty and fontspec for the first time. I'm trying to do a unique layout with large outer margins. On some pages I will put key ...
7
votes
1answer
713 views

Aligning a marginpar with a line box inside a list

I'd like to write a LaTeX environment that automatically places a \marginpar next to the first line of text within. However, that first line of text might not be part of an ordinary paragraph; it can ...
13
votes
1answer
1k views

Align marginpar with beginning of paragraph

Is there a way to align a marginpar with the beginning of a paragraph, without cluttering the text of the paragraph? If I do the following, the marginpar lines up with the last line of the first ...
5
votes
2answers
519 views

Inserting very wide paragraphs or pictures…

The questions and answers regarding wide paragraphs are rather popular. What I would like to have is a new kind of "element" in my documents which would allow me to display wide paragraphs which can ...
7
votes
1answer
783 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
1answer
543 views

marginfix makes KOMA's \marginline flush towards the outside, rather than the inside?

The marginfix package seems to do something funny to KOMA's \marginline command. Here is an MWE: \documentclass[mpinclude=true]{scrbook} \usepackage{lipsum} \usepackage{marginfix} ...
10
votes
3answers
808 views

Making one margin bigger to allow margin notes in KOMA script

I want to add margin notes using KOMA script's \marginline. I don't want to get into the tricky business of manually setting a lot of typearea lengths myself, I just want to make the outside margin a ...
5
votes
1answer
5k views

How do I get the margin note to appear on the left?

I'm trying to make a left-sided margin note. As per the LaTeX wiki, I tried using \reversemarginpar but that didn't solve anything--it didn't make a margin note at all. I also tried \marginpar[left ...
7
votes
3answers
2k views

Making a line-separated left-margin in LaTeX

I'm trying to write a user guide in LaTeX, and I want to layout my page in a way that I can put in a left margin for comments / notes on the corresponding lines of text in the main portion of the page ...
3
votes
1answer
504 views

Margin notes *and* footnotes in a table environment

I am working on a translation. The original text has marginal notes, and I also need footnotes for commentary. Some of it needs to be tabulated in big two-column tables. So I use \longtable because ...
4
votes
2answers
843 views

How to change looks of margin notes using memoir?

I have spent some time now trying to figure out how to change the looks of the margin notes produced by the memoir class. I would like to try ragged right and ragged left in italics (so they align ...
7
votes
4answers
909 views

Hiding marginal notes

While writing I tend to add a lot of notes using \marginpar. Is there a way to hide them before printing a final version?
6
votes
1answer
1k views

Changing the baselineskip in marginpar

I’m adding explanations for definitions in the margin paragraph. I have a macro which looks as follows (simplified): \newcommand*\define[2]{% \marginpar{{\sffamily\footnotesize\textbf{#1}: #2}}} ...
4
votes
1answer
424 views

Dictionary with marginal references

I follow a mathematica course with a lot of definitions. I want to make a list of those definitions. However sometimes terms refer to each other. To make the list more usable to read it would be nice ...
4
votes
1answer
350 views

Marginnote with geometry package

In my document i'm using the packages geometry and marginnote. The problem ist the following: If I use a newgeometry, the marginnote will stay on odd pages at same horizontaly position as by the ...
10
votes
2answers
750 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} ...
14
votes
1answer
1k views

Margin notes (and subsection titles) in both sides of a two column document

I would like to write a book document with two columns and subsubsection titles as margin notes at both sides of the page (in the side which corresponds to the column). In order to specify the ...
5
votes
3answers
550 views

Verbatim in Marginnote doesn't work

I have a really sort quastion. The following Code is not working: \documentclass{memoir} \usepackage{verbatim} \usepackage{marginnote} \begin{document} Lorem ipsum dolor sit amet, consetetur ...
4
votes
2answers
1k views

Spacing/stretching marginnote

I want to do something like this \marginnote{ \hspace{\stretch{1}} \framebox{text} \hspace{\stretch{1}} } i.e., center the marginnote. The problem seems to be that the width is defined to be that of ...
14
votes
2answers
5k views

Caption of figure in marginpar and caption of wrapfigure in margin

I'm writing my master thesis and have run into trouble with the layout of captions in relation to the margins. I have two main questions: How can I make the caption text of an figure placed in a ...
15
votes
2answers
4k views

How can I get todonotes in the left margin

I want to use the package todonotes. Standard, the package prints the todo's in the right margin, while I want to have them in the left margin. Funny is, that in the manual itself they are placed in ...
4
votes
2answers
705 views

Vertical align a marginpar with the *first* line of a 2-line statement

I have an article in which I'd like to use margin notes near some text (some minor headings, equivalent with a subsubsubsection). In some cases that text runs on two lines. I'd like the margin note ...
5
votes
2answers
2k views

Managing margin notes

In order to define a margin note, I use: \marginpar{Add formula for curvature} However, in a thesis full of margin notes, lots of them overlap, and the only solution I've found so far was to ...
8
votes
3answers
1k views

Single-spaced multi-line marginalia

When writing papers, I like to keep track of notes, thoughts and to do's inside the documents. I'd love to have tiny coloured multi-line marginalia. So far I used sth like ...
15
votes
3answers
1k views

Too many unprocessed floats with marginpar

I'm updating my CV, which is written by modifying this template. I have always been very happy with the result, but now I'm getting a Too many unprocessed floats error. For those who do not want to ...
6
votes
1answer
309 views

Put a marginpar before or after word it is supposed to be aligned to?

I am putting marginpars into the text to help the reader find important terms in my text. Now, where am I supposed to put the marginpar so that it aligns with the term? Let us define ...
7
votes
1answer
234 views

Template for a talk with a column to hold abridged content

I'm looking for either a template (or some pointers to generate one) for using to give talks. What I'm looking for is something that will allow a column for the 'full' talk, and then a second for ...
30
votes
4answers
3k views

What does the warning about “moved marginpar” mean?

I repeatedly get the LaTeX warning: LaTeX Warning: Marginpar on page x moved. What does this mean? Is that a problem? How can I fix the corresponding problem?