Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [marginpar]

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

2
votes
2answers
35 views

How to get a column with keywords?

How do I get and use a column with keywords in latex? Or is there another term for this column? Example (screenshot from todonotes doc):
2
votes
1answer
36 views

How do I expand page width to handle wider marginparwidths while leaving everything else as it is?

I would like to be able to use todonotes package, but the amount of marginparwidth on right and left are relatively small. The space available for margins is too small that I want to increase the page ...
0
votes
1answer
28 views

Avoid expansion of `\marginpar` argument

I'm trying to make a margin par that will show the value of some macro defined after the placement point of the marginpar (think of it as something like \footnotemark vs \footnotetext). However, the \...
0
votes
1answer
27 views

What is the exact value to align the first line of margin par with that of the main text?

I want to align the first line of margin par with the first line of the main text. How to set the vertical space exactly? \documentclass[twoside,12pt]{article} \usepackage[a4paper,marginparwidth=8cm,...
1
vote
1answer
27 views

Baseline alignment of shaded side notes in the memoir class

I'm using the memoir class, and I'd like to add a shaded background to my sidenotes. My solution, however, doesn't work: the baseline of the sidenote text and the body text no longer align, as ...
2
votes
1answer
28 views

How can I get a prespecified clearance from `parmargin` to the page edge?

The margin indicated in the picture below is the clearance I am referring to. I already have pre-specified left margin, horizontal margin ratio, binding offset and marginsep. I want LaTeX to calculate ...
0
votes
0answers
41 views

Why does `\reversemarginpar` retroactively swaps the margins of `\todo` command?

I used \reversemarginpar after \todo and this retroactively causes the note to go to the wrong margin. I also noted that if I put \normalmarginpar right after \reversemarginpar \marginnote{Inner ...
0
votes
0answers
16 views

Graphics cut off when using margin par on left book side

I'm trying to add QR codes on the page margins of a math book. I use \marginpar to accomplish this, and whenever the code is on the right page of a double page, it works flawlessly. But on a left page,...
1
vote
1answer
46 views

Margin floats running off the end of a page

I'm using the memoir class with the \footnotesinmargin option, and having an issue with the resulting sidenote float position. It seems like LaTeX is only concerned with the top of margin floats, and ...
3
votes
1answer
68 views

Why `parskip` package makes margin notes misaligned?

I have to merge two lengthy files, one of which is using the marginnote package and the other needs the parskip package. If I use them at the same time the command I use to label years in the margin, ...
4
votes
0answers
69 views

Typesetting an accessibility friendly diff-metric for changes per paragraph between two TeX documents

I am peer-reviewing a dispute in authorship order between two parties in our research group for a co-authored manuscript. I suggested them to use the excellent latexdiff.pl to compare their ...
0
votes
1answer
77 views

First occurrence citation in margin note without explicit call

I'm using the tufte-book document class and the biblatex package, and would like to add margin notes indicating a near-full reference the "first time" a citation is made. Specifically, I'd like for ...
0
votes
0answers
29 views

On the page-breaking in \marginpar{}

I'm probably asking for something very complex, but in my not-expert mind it seems to me that is really weird not to have smart \marginpar (which I really want to use as a way to typeset margin notes) ...
1
vote
1answer
66 views

Problem with the marginfit package and margin changes

I am using the memoir package and make heavy use of margin notes (with \marginpar). I had a lot of issues with the placement of the notes until I discovered the very recent package marginfit, which ...
1
vote
1answer
52 views

Side notes adjust options. Can I “liberate” all the margin for sidenotes?

I have to deal with a lot of sidesnotes, so, I would like to "liberate" all margin for this, Here the code, as you see, sidenotes go after the page: \documentclass[12pt]{book} \usepackage[demo]...
3
votes
0answers
58 views

marginpar inside captionof inside minipage

I really need to use \marginpar like in the following code: \documentclass[11pt,a4paper,twoside,openright]{book} \usepackage{graphicx} \usepackage{caption} \usepackage{lipsum} \begin{document} Ut ...
1
vote
1answer
63 views

classicthesis marginpar

The document reproduced below has a problem with the margin note going outside the page. If I remove the package classicthesis then the problem solves: the note stays inside the page. So there is a ...
0
votes
2answers
44 views

How to insert graphics into margins using memoir

I've read through memoir manual chapters regarding side notes and marginal notes (12.2 to 12.4) but I'm unable to figure out how to insert graphics into margins. Is it possible and if so, how?
1
vote
0answers
44 views

Overlap in a Margin Notes with Images, how insert minimum space between two margin notes?

I have a big problem to insert a Image in a Margin note. Here is the problem: The Image overlap with other non-images notes, how avoid it? \documentclass[14pt]{article} \usepackage[a4paper, nofoot,...
0
votes
1answer
37 views

Updating \if@firstcolumn mid-paragraph

I want to adjust the \marginnote command (from the marginnote package) to work with twocolumn documents (like \marginpar can, but with the ability to use it e.g. inside a minipage). For this, I need ...
0
votes
1answer
110 views

Problem with paragraphs and marginnote

I created a layout with marginnotes. On the end of the page the paragraph (here Paragraph B) following the marginnote (D) will automatic jump to the next page. Example: How can I inhibit that? I'd ...
2
votes
1answer
60 views

Margin notes with horizontal bar

I would like to include following margin notes into my document: How can I include such grey lines shown in this image above and below my notes? Also, my margin notes are entirely cut off: I am ...
1
vote
1answer
67 views

Place margin notes between columns (with twocolumn)

In my twocolumn document, I want to place the margin notes between the two columns. The (reasonable) default is to place them in the margins of the page. \reversemarginpar seems to have no effect with ...
1
vote
1answer
26 views

Excluded `\marginpar{}` imported into another file fails to compile

This is another follow up question based on this (using an altered MWE from this answer) Situation I am importing several parts of a file into another one (a summary-excerpt). This is done using the ...
1
vote
1answer
67 views

How can I force a large matrix to be horizontally centered and allow it to exceed both margins?

I am trying to get a very large matrix to be centered. I know that it is too large to fit within the margins, but I still want it with its current size. As shown in the figure below, the matrix ...
0
votes
1answer
99 views

How can I customize marginal notes options to avoid exceeding page borders when switching the marginal note location?

I am using \marginnote command to insert notes to the left and right of the main text. The default location of the marginal note goes to the larger margin but can be switched with \reversemarginpar. ...
0
votes
1answer
61 views

Avoid conflict between marginpar and full width figure

I am working on a document (memoir class) where I use marginpar for citations. I also use full width figures (i.e. figures that run into the margin, such that they are symmetric wrt to the center of ...
1
vote
2answers
108 views

Making Book With Several Distinct Styles

Disclaimer: I'm a complete newb at LaTeX. I'm a programmer, used to writing documentation in Markdown, so when I decided to make a book for my wife, LaTeX appealed to me because I can focus on the ...
0
votes
1answer
54 views

Marginpar notes in the bibliography and vertical position with marginfix

I'm attempting to include notes in my bibliography for important items. I'm putting them in the margin with \marginpar. This is where the problem arises. If I have a longer note that happens to be ...
1
vote
2answers
141 views

How to correctly change the side that marginpar appears per case?

I'm trying to use marginpar and todonotes to make comments in a latex file as to ease the collaboration. The margins are just quick todo notes and fixes and I don't want to hardcode the position of ...
2
votes
1answer
38 views

How to prevent “leftbar” from breaking “marinpar”?

I'm using the \leftbarcommand provided by the package framed to highlight margin notes. Unfortunately leftbar seems to somehow break the calculation of the margin width once a comment is inserted ...
0
votes
0answers
99 views

marginpar only left

I would like to have marginpars only in one side of the document, say, left; independently of the two-side option in documentclass or of the styles like amsart, book etc. I was attempting to do this ...
0
votes
2answers
151 views

marginpar text alignment

I'm currently using the book class and I'm using marginpar to cite sources. I would like the marginpar on right pages to be aligned left and the marginpar on left pages to be aligned right. Is there ...
0
votes
0answers
46 views

Spot commands in the layout file

I'm searching for a way to highlight some commands in the layout file. I need, in my proofreading work (I'm a typesetter) to quickly spot some kinds of commands like vertical space modifiers or page ...
4
votes
1answer
57 views

Memoir citation in margin

I am trying to add more information about the citations in the margins of the page. I am using the memoir document class. Essentially, I do not want to change anything about the cite command, I just ...
0
votes
0answers
44 views

Recto vs verso page caption plcement

For my thesis, captions must be placed below figures. With the tufte-book class, this is not directly possibly and reqires some modifications. Using the \classiccaptionstyle 'hack' described here ...
0
votes
2answers
38 views

when the text in first line out of margins is,how to manually make next line out of margin

This question is a bit strange, I want to show you the picture... The fist line of text is out of margins, and I want to manually make the third line also out of margins, then the first line and ...
1
vote
1answer
80 views

RESOLVED (as of 2018): Memoir's '\marginpar' scrambles the pagebreaks of multipage '\sidebar' comments (also '\color' leaks)

RESOLUTION with WORKAROUNDS The 2018 TeXLive update --- specifically memoir.cls as updated to 2018/04/04 v3.7g and marginnote.sty as updated to 2018/04/13 v1.3 --- together permit a workaround of both ...
0
votes
0answers
179 views

Margin notes aligned with top of paragraph

When I put a margin not at the beginning of a paragraph, latex assumes it is at the end of the previous paragraph. I'd like the margin note to align with the top of the paragraph it is in. It seems ...
1
vote
1answer
52 views

Why is $]$ breaking a redefinition of \marginpar?

Help me understand why a $]$ in a \marginpar that's been redefined like this \documentclass{article} \let\oldmarginpar\marginpar \renewcommand{\marginpar}[2][]{% always add the optional parameter, ...
5
votes
2answers
247 views

starting new paragraph with \marginpar that is correctly aligned

I am trying to define a command like \introduce{...} that among others will print its content into the margin. I though "simple", just do \newcommand{\introduce}[1]{\marginpar{#1}#1}. My reasoning ...
0
votes
2answers
97 views

Setting content a length below the top; and \marginpar

I was trying to style the headings in my document such that the ascenders of differently-sized sections are a certain amount of space below the upper edge of the text area. I came up with this command ...
1
vote
1answer
135 views

Adjusting line spacing in marginpar shifts marginpar down

I'm trying to have doublespacing in my main text and singlespacing (and footnotesize) in a marginpar. However, if I change the line spacing in the marginpar it seems to shift down. Is there a way to ...
2
votes
1answer
83 views

Align “bottom” of marginpar with “last” line of paragraph

If I typeset the following, (obviously) the top of the marginpar aligns with the last line of the paragraph, which looks ugly. \documentclass{article} \begin{document} Some text some text some text ...
0
votes
2answers
100 views

How to remove the space in an item, due to starting with a \marginpar?

The following picture (MWE follows below) demonstrates the problem. There is a space at the beginning of the list when it begins with a \marginpar. I appreciate that something must be on the line ...
0
votes
0answers
43 views

how to make sure marginpar and an object (like mdframed) stay on the same page?

I have created an environment. I want some figures and text that are supposed to be beside the examples not float to the previous or the next page. \newmdtheoremenv[ linecolor=orangelight, ...
0
votes
1answer
99 views

Marginal note with symbol in text [closed]

I am typesetting an old document in LaTeX. In order that readers will know the original pagination, I'd like to be able to insert a symbol into the text (maybe a short vertical rule?) and then have "...
3
votes
3answers
173 views

How to insert a weblink QR code in caption or margin?

I want to insert a QR code image inside a figure caption (or in the margin). I then tried to write \begin{figure*}[!ht] \centering \includegraphics[height=.45\linewidth]{im1.eps} \hfill \...
5
votes
2answers
106 views

Splitting bibliography alphabetically: how to vertically align margin note?

Context: Since my bibliography is constituted of 200+ entries, I want to add margin-notes at each new letter to split the bibliography alphabetically. (I.e., print a "B" in the margin next to the ...
8
votes
0answers
192 views

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

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} \...