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

learn more… | top users | synonyms

4
votes
0answers
229 views

Wrapping Margin Notes [closed]

I'm writing a small list of things and want to insert a small kind of box into the margin on right side of the list. I'd like it to behave more or less like this: If it fits into the margin fine. If ...
4
votes
1answer
232 views

Decrease linespacing in margin notes of the fixme package?

Is it possible to get single-spaced marginnotes in a double-spaced document? \documentclass[english,a4paper]{scrartcl} \usepackage{babel} \usepackage{blindtext} \usepackage[draft]{fixme} ...
20
votes
5answers
478 views

“Q” and “A” in margin - out of alignment

I have defined a command for a letter in the margin as follows (using marginnote because marginpar did not work at all): \newcommand{\sideletter}[1]{\marginnote{\Huge\bf\sffamily\color{orange} #1}} ...
4
votes
2answers
709 views

Text style for marginpar

Is there a way to change the font, font size and so on for \marginpar with a standard LaTeX macro, i.e. without something such as \let\oldmarginpar\marginpar (cp. Problem with Customized Marginpar (in ...
1
vote
1answer
255 views

marginfix and letter class

One of the things I like about the letter class is that it vertically centers 1 page letters on the page. I recently discovered the marginfix package, but it seems to prevent the centering behavior. ...
6
votes
1answer
1k views

captionsetup redefines my margin captions nicely, but I want other captions to be default style

I'm writing a document with small and supporting figures placed in wide margins and larger figures in the text. I use the captions package and redefine the captions with \captionsetup{ ...
6
votes
1answer
380 views

Margin note over body text

I'm interested in putting marginal notes that seems like a post-it in the margin of a document. No problem at all if they are simply made with \marginpar and playing with margin width and separation. ...
2
votes
1answer
595 views

Aligning margin note with line spacing different from main text

I have a main text column with margin a line separation of 1.05 (\setstretch{1.05}), and margin texts generated with a tighter line separation with the following macro: ...
4
votes
1answer
183 views

Stack margin text in ConTeXt

If I try the following in ConTeXt: \starttext text text\inmargin{this is a note.} text text\inmargin{Another note.} \input knuth text text\inmargin[stack=yes]{this is a note.} text ...
3
votes
1answer
605 views

margin notes on both sides of a single-column document

I have to write a paper for a course work. We are supposed to use a given layout with a single column text and margin notes on both sides - references on one side and section notes on the other. I ...
1
vote
2answers
146 views

Setting acronyms to appear as a footnotes in margin cause Marginpar moved warning

I am using glossaries package with the acronym and footnote option. I also set footnotes to appear in the margin. With multiple acronyms in a line, multiple footnotes are placed in the margin. To ...
9
votes
1answer
434 views

How to make all figures float on the outer margins of two-side document?

I want to make a double-sided problem booklet that contains several questions. Each question has a distinct number and may have zero or more figures. Each figure has a caption and floats on the outer ...
8
votes
2answers
885 views

Margin notes in a multicolumn environment

I have been typesetting a two-columned book where I sometimes need to put a mark in the margin to say, that particular line might need special attention. (The book is actually a psalter - for ...
8
votes
2answers
954 views

Marginpar appearing on the wrong side (using memoir)

The subject line pretty much says it all: some marginal notes (beginning of the second page) do not appear on the correct side. (The question is: how can I fix this automatically?) Below is a MWE that ...
5
votes
4answers
1k views

Redefine marginpar with \renewcommand

So I was trying to modify the default marginpar command by making the margin text appear in italic. Now the following alone didn't work: \renewcommand{\marginpar}[1]{\marginpar{\textit{#1}}} Which ...
3
votes
1answer
451 views

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 ...
2
votes
1answer
186 views

List marginpars in the/a TOC

I try to write a longer story. To make the structure more clear I use the command \marginpar. But that is still time consuming when it comes to the point when I need to find a certain passage. That is ...
9
votes
2answers
773 views

Vertically misaligned margin note

I'm trying to use a \marginnote along with a specified \parskip. However, I'm having an alignment issue. With the code in the group with the \parskip the margin note is misaligned with the text on the ...
7
votes
1answer
608 views

How do I put a note into the right margin, regardless of whether it's an even or odd page?

Suppose I am writing a book in which some sections are especially important. I would like those sections to be identified by a * after the page number in the table of contents. How do I get it ...
6
votes
1answer
510 views

marginpar infobox

I apologize for not knowing the correct term for this, but I want to put some kind of a infobox at the beginning of each section. What I want to ask about is for example on Wikipedia: you have this ...
3
votes
1answer
92 views

Custom numbered paragraphs gives odd page breaks

I was writing a specification document needing numbered paragraphs. I implemented it like this: \reversemarginpar \newcommand\countparagraphs{ \everypar{% \addtocounter{paragraph}{1}% ...
5
votes
1answer
212 views

How can I place a marginnote inside a description (or other list environment)

I have a macro (defined with the xparse package) that creates a marginnote. It works as I would like when prepended to normal paragraph text: \NewDocumentCommand\dates{m g}{% \IfNoValueTF{#2} ...
3
votes
2answers
435 views

Missing footnote and marginpar with package thmbox or package thmtools with option thmbox

I am using package thmbox to write theorems. If I include footnote or marginpar within the body of a theorem, the following problems arise: the text of the footnote is simply missing, while the ...
12
votes
2answers
9k views

\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, ...
1
vote
1answer
406 views

Justify text in memoir class margintable environment

In page 181 of texdoc memoir, The marginfigure and margintable environments can of course be adjusted using \setfloatadjustment, default \setfloatadjustment{marginfigure}{\centering} ...
8
votes
2answers
2k views

captionsetup for margin caption

I am using the caption package to set up the layout of my captions. However for margin captions using mcaption package the \captionsetup does not seem to have the expected effect. ...
4
votes
1answer
214 views

How to put side notes in available whitespace, not just in margins

I'm creating a document that shows a template of a documentation standard. I'd like to put in some miscellaneous notes for the template placeholders. Something like [date1] [COMMENT: Please use ...
1
vote
1answer
235 views

Conflict between the packages titlesec and marginnote

In the following code, the use of the package titlesec modifies dramatically the formatting based on the package marginnote. The package titlesec is needed so as to use this. Is there one possibility ...
8
votes
1answer
742 views

Vertically aligning a marginnote and a section title

In the following code, the marginnote is logically aligned to the lipsum text. I would like to align the marginnote to the title of the section. What's the trick to use ? % Source : ...
2
votes
0answers
97 views

how to link a margin graphic to a URL [closed]

I am trying to create a margin graphic that is linked to a url. So when I click it in the pdf document, the url will open in a browser. I cannot figure out how to do that. My try below does not work ...
5
votes
1answer
334 views

How can I implement a twocolumn template

How can I implement such template (two columns): In my case additional panel can contain images.
2
votes
2answers
158 views

Why do line-broken glossary entries contaminate “marginpar”s with cross-referencability?

The following MWE shows the effect of a line-broken glossary entry on an adjacent marginpar, as opposed to a non-line-breaking glossary entry. Why does line-brokenness contaminate the marginpar? ...
4
votes
1answer
590 views

Fixed marginpars with gray background in KOMA-Script

I am an newbie looking to achieve a sort of two column effect with my LaTeX report - I am using LaTeX KOMA-script as a base. I want my margin to appear in a different background color, (say) gray, ...
6
votes
1answer
189 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
449 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. ...
12
votes
1answer
429 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
745 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 ...
2
votes
1answer
133 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
399 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
534 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
443 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 ...
48
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
990 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
423 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 ...
2
votes
1answer
519 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 ...