The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [marginpar]

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

Filter by
Sorted by
Tagged 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
79 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
245 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
137 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
128 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
120 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
486 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
62 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
176 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
618 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
53 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
101 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
50 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
97 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
336 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
57 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
438 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
122 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
284 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
108 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
179 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
68 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
171 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
279 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
125 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
198 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} \...
2
votes
1answer
81 views

How to stack annotations into the margin?

I defined \tnote{...} and use it a lot in my text. When I am in draft mode this should print ... into the margin in a tiny font. In final mode nothing should appear. The current version I have is ...
4
votes
1answer
87 views

Margin notes in an interlinear environment aligned with source text

I am creating a sample of an interlinear dual-language text produced using LaTeX. Everything is finished and the text consists of three things: an English gloss (top row); a Hebrew text (note it's a ...
1
vote
0answers
86 views

How to define \marginpar when using it in two custom commands?

How can I define \marginpar options in custom commands so it does not affect other commands using \marginpar? Here is what I have tried, but the problem still persists: \documentclass[a4paper,12pt,...
1
vote
1answer
209 views

How to align margin notes in even pages

I'm writing a book and I'd like to define a command to produce margin notes. I'm using marginpar to place the note, Tikz to add a bit of style and a parbox to make sure the width of the box is ...
0
votes
1answer
122 views

How can I label marginpars or marginnotes to be able to refer to them? [duplicate]

In a 200 page document I have 20-30 portions, 2-5 sentences long usually, scattered throughout that discuss something about statistics. My thought is to add a marginpar for each statistics portion. ...
2
votes
1answer
85 views

Margin Notes in Unicode RTL

I've mentioned this problem in a previous (unanswered) question, but this is a more extensive and specific. I'm trying to get margin notes in a Hebrew document, so I'm using the libertine ...
1
vote
0answers
75 views

QR codes for hyperrefs

There are lots of hyperrefs in a document I'm writing (pdflatex workflow, no pstricks please). In the preamble I have \def\Marginpar#1{\marginpar[{\bf \hfill {#1}}]{\bf #1}} \def\Qref#1#2{\href{#1}{...
4
votes
1answer
721 views

Margin notes in marginnote without overlapping

I would like to achieve the default behavior of \marginpar, that is, each successive margin note being placed below the previous one, but with the package marginnote. The behavior of marginnote is ...
0
votes
0answers
155 views

Margin note in wrong place

I'm typing a book in Hebrew. The first time I run LaTeX with \marginpar everything looks wonderful and is in the correct place. Every time after that, however, the margin text usually finds itself ...
0
votes
2answers
749 views

Vertical line and text

I am trying to insert a vertical line and some text or image in the margin as in the picture no matter if it is an image or a text with several lines However the source code embeds the line and text ...
6
votes
1answer
190 views

Flipbook Image Placement within Komaclass scrbook

I want to add to my document (scrbook) a flipbook in the top right or lower right margin. I've already managed to insert the pictures on all pages with an increasing number in the filename. Just to ...
1
vote
1answer
273 views

Reverse page margin in scrreprt

Could anyone amend the following code to give a document whose margins are on the right, rather than the left? The header should still extend over the margin. \documentclass[twoside=semi, titlepage]{...
1
vote
2answers
129 views

color error with marginpar in classicthesis

I have reduced my problem to this short document: \documentclass{scrartcl} \usepackage{xcolor} \usepackage[nochapters]{classicthesis} \begin{document} Consideriamo un esempio. \marginpar{nota} \end{...
1
vote
1answer
114 views

Prevent marginfigure in memoir class from introducing new paragraph

The marginfigure environment from the memoir class seems to have a different behavior from the regular figure environment as it introduces a new paragraph when placed within a block of text. Is this ...
2
votes
1answer
134 views

Changing symbols to images in refman

I am writing a technical manual for a CAPSTONE project, and I am using the refman package. The refman package divides your document into a left and right hand side. The right hand side contains the ...
1
vote
1answer
691 views

Footnote with number in margin

How can I make a footnote's number appear in the margin, instead of embedded in the main text? I tried \marginpar{ \footnote{ blah } } and the footnote number appears, but not the footnote text. ...
1
vote
2answers
137 views

Different \marginparwidth's for title page and part pages with scrbook

I would like to widen the outer margin of my book to make more room for side notes. In addition, the page footer should span the entire width of the text and the margin. Changes should be local to the ...
1
vote
0answers
449 views

Tufte Class | Marginnotes on left and right side, having a different size (width)

I am using the Tufte-book Class to create a landscape thesis document. I am struggeling with the following. (1) First, besides the regular margin on the right, in which I place the sidenotes, ...
1
vote
1answer
76 views

How can I determine the vertical limits of a box?

I'm using marginpar to put graphs and tables in the margins of my document. Sometimes, I end up starting a long note toward the bottom of the page, and it runs off the bottom. To solve this, I can ...
1
vote
0answers
136 views

Package for overlapping marginnotes

I am not sure, but I think that I heard about a package that can convert two overlapping \marginpar into one paragraph with comma. I need this to use withe the marginpars that are really short. Does ...
4
votes
2answers
367 views

Margin notes with the same behaviour as footnote?

Heyall, I've got a question about margin notes. I tend to put a lot of footnotes in my documents, and because of the large margin I thought I might as well put them to use by putting the footnotes ...
0
votes
1answer
216 views

Set heading in the margin to the left of text

I would like to style the \paragraph heading so that it is set in the margin to the left of the text. I experimented with the titlesec package, and I get the heading wrapped to the left of the text, ...
1
vote
1answer
264 views

\marginpar start at top of page

I am trying to build a minitoc in a marginpar. It can span several pages. Everything is fine while there is no figures on the top of the page. I need the contents to start from the top of typing area ...
0
votes
1answer
124 views

Running headers in the margin

How do I create a running header that appears in the margin instead of in the header? The following MWE produces the sort of running text I want in the header. I would like to replace the \def lines ...