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

learn more… | top users | synonyms

5
votes
1answer
226 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
486 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
11k 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
470 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
221 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
264 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 ...
9
votes
1answer
841 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
103 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
361 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
172 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
641 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
199 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
519 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
496 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
889 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 ...
21
votes
1answer
2k 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
441 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
554 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
2k 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
501 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
467 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
570 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
638 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
198 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
218 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
570 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: ...
3
votes
2answers
467 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
423 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
765 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 ...
15
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
550 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
883 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
585 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} ...
12
votes
3answers
883 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
6k 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
545 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
1k 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 ...