about typesetting in margins using the marginnote package.

learn more… | top users | synonyms

75
votes
2answers
2k views

Margin notes with a pointing arrow that are automatically vertically adjusted

I am trying to emulate margin notes as they are in my (favourite) macroeconomics textbook. The crucial thing here is that the little arrow points to the line where the margin note is set. I have ...
32
votes
3answers
2k views

Dealing with many margin notes

I have to typeset a book that contains a lot of side material (comments, notes, references, supplementary explanations, ...) that I want to appear alongside the main material. At first, I thought of ...
21
votes
3answers
2k views

create a framed environment for a margin note

What am trying to achieve is the following: Of course, if this can be done so that there is a switch between even and odd pages. Currently I am only interested in the not appearing on the LHS ...
15
votes
1answer
759 views

Side notes marking multiple lines of text

I am looking for a method to put small side notes next to the text, by simultanously marking the amount of lines to which the note refers. So, something like this: I was trying many methods like ...
14
votes
2answers
1k views

Inserting a line to separate the text and the margin note

How can I insert a vertical line through a whole page to separate the text and the margin notes?
12
votes
0answers
101 views

Wrong marginnote positions inside a tikzpicture with XeLaTeX

The marginnote package offers the \marginnote macro. I use this inside a tikzpicture environment to place notes into the margin. While this works without problems when compiling with pdfLaTeX, this ...
11
votes
2answers
2k views

framed or colored box with text and margin notes

I am using pdfTeX and I have in my text an example which just is a kind of a short story. What I want is: The story should be visually distinct from the normal text, by frame or background colour. I ...
10
votes
2answers
472 views

How to add a side by note in LaTeX

How can i produce the following image TeX commands of this would be extremely helpful.
10
votes
1answer
1k views

Vertically aligning a marginnote and a section title

In the following code, the marginnote is logically aligned to the lipsum text. I would like to align the marginnote to the title of the section. What's the trick to use ? % Source : http://tex....
10
votes
1answer
569 views

marginnote vertical alignment

I've run into a problem using the marginnote package; the vertical position changes if the note is wider than the margin. An MWE: \documentclass{article} \usepackage{lipsum,marginnote} \setlength{\...
8
votes
2answers
675 views

How do I 'stack' marginnotes that are triggered on the same line?

I'm trying out a new definition style for my thesis. If a new term is introduced, I repeat it in the margin (and emphasize it inline). A simplified demonstration: \newcommand*{\idef}[1]{% \...
8
votes
2answers
324 views

Breaking a marginpar over a pagebreak

Is there a way to do this in LaTeX 3? I looked at marginpar and orphans, and I am not sure that it addresses my question, but I belive it states that this is not possible in LaTeX 2e. This is most ...
8
votes
1answer
114 views

Nicely showing 'special' index entries in the margin

I want to show index entries in the margins. Here's what I'm doing: \documentclass[a4paper, 12pt, twoside]{report} \usepackage{kantlipsum} \usepackage{marginnote} \let\oldmarginnote\marginnote \...
7
votes
4answers
593 views

How would you reproduce the Leibniz binary table

I would like to reproduce the original Leibniz binary table (as seen here). The most precise the better...
7
votes
3answers
315 views

\listings environment inside \marginnote?

Is it possible to use \listings or similar environment inside \marginnote or in margins in general? \marginnote{ \begin{lstlisting} test \end{lstlisting} } If not, what would be a ...
6
votes
2answers
227 views

Line numbers collide with marginnotes on even pages in a book

I am having a bit of a problem with margin notes colliding with line numbers on the even pages of a book. I would like to adjust the margins so that the notes can stay where they are. I think this ...
6
votes
1answer
361 views

Titlesec package - paragraph level headings as margin notes

After hours of pointless googling around I did not manage to find out how... I'm new to LaTeX templates and now I'm trying to make simple (?) modification so that I could have paragraph level headings ...
6
votes
1answer
322 views

Making marginnote to appear either side of twocolumn, twoside document

I have the following MWE in which the \marginnote need to appear at correct margin. For example the margin notes one, two, three and four need to appear on left margin of first page. In the second ...
6
votes
1answer
2k views

Left marginnote does not work

I badly need to have marginal notes on the left margin. The command \marginpar does not work. Supposedly, \marginnote works, and this needs the marginnote package. OK, I tried, but nothing happens. ...
6
votes
1answer
406 views

Margin note beside heading

I would like to insert a hyperlink or two for each heading and I would like to have them inserted into the margin such that they are aligned with the header. I was hoping to create a command which ...
6
votes
1answer
467 views

Aligning a \marginnote to a theorem title

I want to create a \marginnote which is aligned to the title of a theorem. However, the \marginnote is always placed over or under the title, when I put the \marginnote command before or into the ...
5
votes
3answers
386 views

Adjust the vertical position of margin notes to the baseline of the body text

I want the first line of my margin notes—which are set in \small size—to be at the height of the baseline of the body text, like this: My problem is that using something simple like \documentclass{...
5
votes
2answers
136 views

How to add marginal notes on the right in `ltxdoc` document class

I am having an issue inserting marginal notes while using the ltxdoc document class. I see that the default layout is the following: From what I understand, the margin notes are set up this way ...
5
votes
1answer
870 views

Add background colour to margin notes area

I want to delimit margin note area by a background color for all the document like in some nice books. I tried with marginnote and todonote packages without success. You are my last hope...
5
votes
1answer
482 views

Tufte-Latex: How do I stop marginfigure from inserting inline space?

I want to use marginfigure, but it is inserting space inline. Check out my minimal example: documentclass{tufte-book} \begin{document} Hello\begin{marginfigure}$2+2=4$\end{marginfigure}I'm new here. ...
5
votes
2answers
741 views

Using \MarginFigure command

Someone wrote a command called \MarginFigure for putting figures in the page margins. Unfortunately, I haven't been able to get the \includegraphics to work. Specifically, I have figures that I've ...
5
votes
1answer
211 views

margin notes disturb line numbering of listings

I've tried to add margin notes for listings (PS: footnotes work fine), but when line numbering is on, the margin notes disturb the numbers: \documentclass{article} \usepackage{listings} \usepackage{...
5
votes
1answer
146 views

Margin note and paragraph not aligned when skipping a page

I am using the "marginnote" and "geometry" packages to set marginnotes features: \usepackage[a4paper, top=3.2cm, bottom=3cm, outer=4cm, inner=4cm, heightrounded, marginparwidth=2.3cm, marginparsep=0....
5
votes
1answer
226 views

How to insert margin note just left side of all page in my persian document?

\documentclass{book} \usepackage[english]{babel} \usepackage[svgnames]{xcolor} \usepackage[doublespacing]{setspace} \newcommand{\mymarginnote}[1]{% \marginpar{\colorbox{yellow}{\parbox{\...
5
votes
1answer
283 views

How can I place a marginnote inside a description (or other list environment)

I have a macro (defined with the xparse package) that creates a marginnote. It works as I would like when prepended to normal paragraph text: \NewDocumentCommand\dates{m g}{% \IfNoValueTF{#2} ...
5
votes
0answers
190 views

Absolute horizontal position of margin notes

My question concerns the margin notes and particularly its position in the page. Is it possible that margin notes have an absolute horizontal position but a vertical position that depends on the part ...
5
votes
0answers
319 views

Margin footnotes not working in memoir with polyglossia + Hebrew

I am working on typesetting my master's thesis, using XeLaTeX and memoir. Everything has been going quite well, until I wanted to add a small message in Hebrew in my preface. I am using the ...
4
votes
2answers
295 views

Change linespacing within marginnote

I am trying to change the linespacing within a marginnote such that it is different from the main document. I have tried all approaches described in Temporarily increase line spacing and Aligning ...
4
votes
2answers
272 views

Page number in the margin note

I've seen some books that have the page number in the middle of the page, in the margin note; i think it make it easier to look for a particular (IMHO). Is there any chance to do this in LaTeX?
4
votes
2answers
154 views

Is it possible to have tufte-like citations in a general documentclass?

The tufte packages/class is very nice. But (opinion based) it is too invasive for simple documents. I want to selectively use some features in a normal article class. Is is possible to have tufte-...
4
votes
1answer
136 views

automatically add additional space for annotations while keeping layout the same

Consider, I've got a document I am asked to review in a way, that I add todonotes/marginnotes with comments. Therefore the usual document margin might be to small. Is there a way to just add ...
4
votes
1answer
68 views

tcolorbox in margin notes

I'm trying to create a command that will allow me to add little "important notes" on the margin of my document. I have managed to make it work as long as as I use the "left" option for the box and the ...
4
votes
1answer
53 views

problem with the cite at the bottom of the page

I am using Tufte-style template. When use a citation at the bottom of page, the cited text crosses the margin of the page. Here is the MWE: \documentclass[a4paper,nohyper]{tufte-book} %abstracton \...
4
votes
2answers
174 views

Problem white space and \newline in margin note

\documentclass[a4paper,11pt]{book} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}...
4
votes
1answer
278 views

Multiple \marginnote commands on the same line in math environment

If multiple \marginnote commands are triggered on the same line, by default they are typeset on top of one another, making them unreadable. I would like them to stack vertically, which is the default ...
4
votes
1answer
234 views

Vertical alignment of marginnote and section heading

Following on from a previous question I asked, I am now having difficulty in vertically aligning my margin note with a section heading. To be clear, the problem is only when I invoke the solution ...
4
votes
1answer
65 views

New environment with marginnote

I'm trying to make a new environment that uses marginnote like so: \newenvironment{myname} { <some stuff> \marginnote{ } { } <other stuff> } so that when I do \begin{myname} My Text ...
4
votes
1answer
218 views

Is it possible to make todonotes package use margin outside pagetrim for draft notes?

In the memoir manual there is a snippet for making draft notes that uses the entire paper when printing drafts on pages bigger than the trimmed papers. Is it possible to get the more fancy notes of ...
4
votes
2answers
2k views

Spacing/stretching marginnote

I want to do something like this \marginnote{ \hspace{\stretch{1}} \framebox{text} \hspace{\stretch{1}} } i.e., center the marginnote. The problem seems to be that the width is defined to be that of \...
4
votes
1answer
59 views

Force marginnote to change page

Got my code here \documentclass{book} \usepackage{lipsum} \usepackage{marginnote} \begin{document} Some text \marginnote{\lipsum[1-4]} \end{document} How can I avoid marginnote to go down beyond ...
4
votes
1answer
269 views

tufte-style book url in marginnote

How do I put a \url{} in a \marginnote{} without error using tufte-book document? I have already tried \marginnote{\url{http}} but I get the error illegal parameter number in definition of ...
3
votes
2answers
364 views

Super-primitive 2-column table in LaTeX

I would like to build a simple 2-column table that will let me attach, to one of the lines in the table, a marginal note in the right margin, for example: A B CC DDD ...
3
votes
2answers
257 views

How to trigger the marginal note in two column layout

I am using marginal note package in two column layout. The below mentioned command does not trigger the two column left and right side. \ifodd\value{page} \if@firstcolumn\reversemarginpar\else\...
3
votes
1answer
258 views

Marginalia inside tcolorbox

I created some fancy tcolorbox for writing solutions of the problems: \documentclass{scrartcl} \usepackage[breakable, many]{tcolorbox} \usepackage{changepage} \usepackage{lipsum} \NewTColorBox[auto ...
3
votes
1answer
374 views

Alignment of marginnote independently of main paragraph

I've noticed that when a \marginnote is added (edit: using the marginnote package), the horizontal alignment of that note is inherited from wherever the note is placed. In my case, I wish to have a ...