about typesetting in margins using the marginnote package.

learn more… | top users | synonyms

74
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 ...
31
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 ...
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?
14
votes
1answer
729 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 ...
11
votes
0answers
95 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 ...
10
votes
2answers
457 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
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
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 : ...
10
votes
1answer
561 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} ...
8
votes
2answers
659 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
305 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
102 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
585 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
303 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
224 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
338 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
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
390 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
452 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
357 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 ...
5
votes
2answers
121 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
821 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
475 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
1answer
294 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 ...
5
votes
2answers
688 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
198 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} ...
5
votes
1answer
137 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, ...
5
votes
1answer
221 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]{% ...
5
votes
1answer
281 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
181 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
316 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
269 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
254 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
148 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 ...
4
votes
1answer
130 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
50 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
166 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} ...
4
votes
1answer
258 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
225 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
56 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
203 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
263 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
359 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
1answer
225 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
2answers
238 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} ...
3
votes
1answer
356 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 ...
3
votes
2answers
306 views

Margin note left of mdframed images in a two column page

Is it possible to have a margin note to the left of the left column on the second page with this code and approximately halfway down the page? I cannot get it to show up using \marginpar or the ...
3
votes
1answer
119 views

Paragraph numbering in the margins of a two-column document?

I've been trying to get paragraph numbers to sit in the margins of a two-column document. I can't get marginpar to print any text in the margins at all. When I use marginnote, I get an error saying ...