Questions tagged [marginpar]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
17 views

change position of caption with margincap

Currently it looks like that but i want the caption to be aligned with the top of the image and not the bottom. My Tex file looks like this: \documentclass [ captions=topbeside, oneside, ...
4
votes
2answers
58 views

top-aligned marginpar on wrong side (even/odd) after pagebreak

Under plain LaTeX with twoside option, I use \leavevmode\marginpar{#1} at the beginning of a paragraph to obtain top-aligned margin notes. Immediately after a pagebreak the margin note may or may not ...
1
vote
1answer
35 views

\loadgeometry from \geometry-package leads to misplaced \marginpars (twoside)

I am currently working on a new LaTeX layout for a scientific open-access journal. It is a twoside layout wich makes use of marginpars. The special feature is that the frontmatter has a different page ...
1
vote
1answer
35 views

todonotes text overlap and vertical spacing problem

I am trying to use both margin and face some problems. I cannot start the paragraph with marginpar, i will have to add imaginary space \hspace{0pt}. Otherwise, it will align with previous paragraph. ...
0
votes
1answer
20 views

Replace mathcal plus margin-note results in \reserved@a does not match definition

This is related to problem with \mathcal in MIT Thesis package; I posted the below MWE there, but the edit was rejected due to deviating from the original authors post. IDK if its the right thing to ...
0
votes
2answers
47 views

How to remove the line break for a nested enumerate with a marginpar?

The MWE below demonstrates my problem. I suppose that somehow the marginpar is introducing something on the line and Latex is then treating the line as non empty. %%%%%%%%%%%%%%%%%%% \...
1
vote
0answers
28 views

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. ...
1
vote
1answer
37 views

Positioning of /marginpar

I'm looking for a easy way to specify which side of my document my \marginpar is placed in. Im doing a twosided document with 2 columns. I have one large margin specified for margin-pictures, but ...
0
votes
1answer
27 views

footnote/marginpar inside table inside csquotes blockquote

I need to put a table inside a blockquote, and the table has both footnotes and marginpars (I know, quite the convolution, but such is the manuscript I am transcribing). The below version gives a ...
3
votes
1answer
60 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
522 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
39 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
44 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
36 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
45 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
49 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
94 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
105 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
121 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
28 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
77 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
44 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
60 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
50 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
66 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
40 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
41 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
48 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
43 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
119 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
107 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
103 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
85 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
162 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
45 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
110 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
110 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
129 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
152 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
72 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
54 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
68 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
175 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
87 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
174 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
42 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
78 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
220 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
123 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
126 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 ...