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.

0
votes
0answers
12 views

How can I stop extra space from appearing below figures on verso pages in tufte-book?

I'm making a book with tufte-book, and having a strange issue where, when I put a figure on a verso, there's extra space between the figure and the subsequent text. It doesn't happen on a recto, and ...
1
vote
1answer
37 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
27 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
20 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
33 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
33 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
20 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
40 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
42 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
31 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
32 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
33 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
29 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
47 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
22 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
52 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
75 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
71 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
82 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
31 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
70 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
56 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
66 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
73 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
53 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
44 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
119 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
66 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
92 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
28 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
69 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
126 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
76 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
112 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
64 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
161 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
42 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
116 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
221 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
48 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
65 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
40 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
84 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
215 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
53 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, ...
6
votes
2answers
268 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
102 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
152 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
87 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 ...