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

learn more… | top users | synonyms

6
votes
1answer
196 views

How to “clean” what is sent to the table of contents? (Remove index etc.)

I want to use markup commands such as \pkg{classicthesis} that not only typeset the entry, but that have side-effects such as adding a margin note or index entry. (See the example below.) My problem ...
7
votes
4answers
1k views

Brace and text in side margin

Within a text, I would like to emphasize one or two paragraphs by placing a curly brace in the left side margin, and next to it some short text vertically centred around the brace's centre. The ...
7
votes
1answer
502 views

Adding something automatically to every paragraph in an environment

I'd like to know if it's possible to have something added automatically to any paragraph in a given environment. I use LaTeX mostly for doing fill-in-the-blank worksheets at the school where I work. ...
13
votes
1answer
484 views

Visualize index entries in the text?

When I ad an index entry using \index with all the options available for the "format" and "see", and cross-reference, I'd like to see at the place where I make the index entry how this specific entry ...
8
votes
2answers
838 views

\raggedouter to typeset marginal text in twoside book

We used the following code fragment \newcommand{\raggedouter}{% \checkoddpage% \ifoddpage% \RaggedRight% \else% \RaggedLeft% \fi% } to provide a ...
19
votes
1answer
1k views

mix marginnotes with marginpars without overlap

We are trying to put the figure caption as well as the footnotes in the margin and got very good results with the tufte-latex package. However, we have to manually adjust the offset of each sidenote ...
3
votes
1answer
138 views

marginfix debug mode

I am using the marginpar command with the package marginfix. The package is very chatty and clutters the console when LaTeX runs. The author (Stephen Hicks) anticipated that some people might not like ...
1
vote
1answer
428 views

Use of marginpar: problems with Underfull \hbox

I'm using the latex commnad \marginpar{}, however for some reason I get the warning: Underfull \hbox <badness 10000> in paragraph ... each time I create a comment on the margin. Is there ...
7
votes
1answer
546 views

How can I create a notes column in a document?

I need a document that has a notes column on the right hand side of each page starting after the contents page. This notes column should have the heading "Notes" , should be 50% of the size of the ...
6
votes
2answers
1k views

Equations in the margin: automatic flush right or left?

How can I automatically have equations in a \marginnote aligned flush left or right in a two-sided document? A previous question suggested to make equations flush left by using flalign* and extra ...
4
votes
2answers
1k views

Specifying font size in a \newcommand?

I'm typing up a document in which I'd like to the margin's note font to be footnote size. This is my code: \documentclass[12pt]{article} \usepackage{outlines,marginnote} \usepackage[top=1cm, ...
8
votes
2answers
2k views

How to get marginnote to use the whole margin space?

I'm typing up a document where I'd like to add notes to myself on the side margin. I'm using marginnote and using the geometry package for specifying customized margins, I've allocated 5 cm for the ...
7
votes
1answer
489 views

marginpar and orphans

How can I avoid orphan lines if I use \marginpar? For example, here is a two-page document that does not have any orphans: \documentclass[letterpaper]{article} \usepackage{lipsum} \clubpenalty=10000 ...
49
votes
3answers
1k views

Notes overflowing from marginpar to footer

In this document, from page 12 and following, the notes from the marginpar are overflowing in the footer of each page. How can this be achieved in LaTeX? ConTeXT/LuaTeX based solutions are ...
3
votes
2answers
1k views

Different \marginparsep for odd and even pages?

What is the most robust way of increase the effective \marginparsep on even pages only? I have been playing with outdented lists, section heads etc. which leads to an issue with margin notes: I need ...
6
votes
1answer
453 views

Margin floats and hyperlinks

I read Margin Figures/captions and the answers within. I have stripped the definition of the marginfloats from the tufte documentclass into the MWE below. Can the definition of ...
3
votes
1answer
558 views

How to make “draft margin notes” for floats?

Page 394 of the memoir manual provides a snippet by Bastian Veelo for making margin comments out over the part of the stock paper that would be cut away. This very handy for making comments only ...
3
votes
1answer
621 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
195 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 ...
3
votes
2answers
212 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
1k 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
1k 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
551 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?
8
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
448 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
414 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
750 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 ...
14
votes
1answer
2k 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
538 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
857 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
570 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
858 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 ...
8
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
528 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
968 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 ...
8
votes
4answers
1k 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
2k 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
451 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
359 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 ...
11
votes
2answers
806 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
571 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 ...
16
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
734 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 ...
7
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 ...