Questions tagged [marginpar]

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

448 questions
43
votes
1 answer

How can I put real notes in the margin?

I'm looking to write a fictional description/discussion by a 'scholar' of an alien race for an RPG, but I can see this being handy elsewhere. I'd like to put his 'notes' in the margins of some text he's found/is writing. I've seen what…
13
votes
2 answers

\marginpar with options

I was trying to understand what Leslie Lamport said in his book about \marginpar options. He says that ... \marginpar[$\Rightarrow$]{$\Leftarrow$} makes an arrow that points towards the text, whichever margin the note appears in. (Page 59) I am…
Sony
  • 3,920
13
votes
4 answers

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?
yannisl
  • 117,160
11
votes
2 answers

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 in the line, and I don't know in advance how many…
orion
  • 213
10
votes
2 answers

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 manually push them up or down. Problem is, everytime I…
8
votes
1 answer

\marginpar border with grey background and round black edges

I often use \marginpar{} which is boring to me. Is there a way to add grey background and round black edges so it would look like this:
71GA
  • 3,573
8
votes
1 answer

How to make sure the images properly float on the marginpar?

I want to create a problem booklet consisting of some questions and images on the marginpar. How to make sure the images properly float on the marginpar? If you carefully see the left image below, you will notice that the most bottom image gets…
8
votes
0 answers

Is it possible to combine all margin pars of a line?

In the following code, would it be possible to automatically generate the desired output (2nd paragraph) form the given input (1st paragraph)? \documentclass[parskip]{scrbook} \usepackage{xparse} \NewDocumentCommand{\mref}{ m o }{ …
Tobi
  • 56,353
6
votes
1 answer

How to print keywords into margin?

Many documentations and textbooks print essential keywords of a paragraph into the margin. Is there any package for this? Of course it wouldn't be all too complicated to define a custom command based on \marginpar, but you'd think there's already…
estolua
  • 577
6
votes
1 answer

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 \marginpar{Ipsum}\emph{Ipsum}: ... or Let us define…
4
votes
1 answer

Problem with Customized Marginpar (in Combination With a ToMarginpar)

I have two bits of "code" that work perfectly when isolated. The first piece builds a table of marginpar, the second provides certain customizations for the marginpar environment. When I copy both in one document it produces the table of Marginpar…
Philip
  • 3,415
3
votes
1 answer

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 rendered I get the error message Underfull \vbox…
starfry
  • 585
3
votes
1 answer

marginpar anchored by pages not by text

I'm using marginpar to put margin figures in a document - there are $n$ pages and $n$ figures so I'd like to have one on each page, anchored to the first line of text on each page - at the moment I put them in in roughly the right place…
Joe
  • 479
3
votes
1 answer

Check lower edge of marginpar and raise if too low

I have a book where a custom command calls the \marginpar command routinely. The trouble is that sometimes it is called fairly low on a page, and then the marginal paragraph dips into and even below the footnotes. Given the length of the document…
pokyCoder
  • 135
3
votes
0 answers

How do I toggle the normal/reverse marginpar?

I am trying to write a simple command that toggles margin sides. It uses \normalmarginpar or \reversemarginpar, but the user doesn't have to keep track of whether it was already reversed or normal. I tried…
1
2 3