Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
1answer
38 views

How to put code with minted in the margin?

how to put code with the package minted in the margin (marginpar did not work)? I want my code in the marge like the document but I want use the package minted. Thank you. \documentclass{article} \...
11
votes
3answers
480 views

Imitate Email-reply layout: Vertical line in left margin, except for responses

Edit: I am not happy with the 3 answers my first, smaller bounty got me. So I rewrote the question to set clear rules and a proper bounty. The solution should create two environments, originalemail ...
0
votes
0answers
37 views

Interaction between hyperref and marginpar?

I have a document with margin notes in which \cite commands are used. I have the problem that the first line of the margin note does not match the line in the text if the margin note starts with \cite ...
1
vote
1answer
33 views

margins with landscape and page header

I use the scrreprt class with a page header. I also use margin notes. It looks good in portrait mode. However, some pages may be rotate. In that case, this looks ugly. Here is a MWE: \...
1
vote
0answers
34 views

Margin notes that can both stack and be used in floats/footnotes

\marginpar notes won’t overlap; if you add two notes close to one another, the second note will start below the first. However, they can’t be used in floats or footnotes &c. \marginnotes can be ...
1
vote
1answer
32 views

How to flush right margin contents on even pages in two sided document?

In report class with twoside option, how to flushright the marginpar contents on even pages? The image below was produced manually inserting \hfill. I'd like to automatize it. MWE \documentclass[...
1
vote
1answer
33 views

Caption in margin not properly positionned

I'm having a peculiar problem: I set up my two-sided document's geometry and captions so that the captions of floats are displayed beside the floats in the margin par. This basically works, but for ...
2
votes
1answer
47 views

marginpar always on left side

In my document, marginpar always needs to be place in left side of the page, and I need to place chapter number and some element in that margin par width, for this I've tried with the below tags: \...
1
vote
1answer
63 views

Memoir class - figure and margin figure floats at same vertical level

In a memoir class document, I would like to display a figure and a marginfigure next to each other but I need the top of the marginfigure at the same vertical level as the figure next to it. When I ...
1
vote
1answer
63 views

Missing number, treated as zero when using renewcommand

I am trying to temporarily get read of marginpars in my paper. I tried to simply \renewcommand{\marginpar}[]{} but I get: ! Missing number, treated as zero.<to be read again>} \renewcommand{\...
1
vote
1answer
24 views

Commutative diagramm (tikzcd) in margin

The following example gives me an error \documentclass[12pt,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[a4paper, inner=...
1
vote
1answer
55 views

Table width and `\marginpar`

I've a table in an article where I need \marginpar. To make the table more readable, I could eliminate the re-entry to the right, so that the table itself occupies all the horizontal space, including ...
0
votes
0answers
36 views

Local fullwidth environment in symmetric document with margin

In a symmetric twoside document with 5cm margin on the outer side of each page, I want to create an enviroment where I can place locally a piece of text of full page width. Any solution that I have ...
1
vote
1answer
43 views

Remarks in changes package with RevTex

I can't seem to make the remark option from the changes package in combination with RevTeX. In this example, I can "add" text but I cannot add a remark without obtaining an error of type: ! ...
2
votes
2answers
47 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
51 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
35 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
36 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
41 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
35 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
77 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 ...
1
vote
1answer
80 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
85 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
81 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
117 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
38 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
88 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
72 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
109 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
107 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
68 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
48 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
52 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
151 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
76 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 ...
2
votes
1answer
127 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
33 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
76 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
176 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. ...
1
vote
1answer
96 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
123 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
85 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
332 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
47 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
148 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 ...
1
vote
2answers
382 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
50 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
71 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
2answers
41 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
88 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 ...