Questions tagged [marginpar]
{marginpar} is a command that adds content to the margin of documents.
445
questions
0
votes
2
answers
40
views
Marginpars inside tcolorboxes
Is there some combination of packages that allows us to get marginpar to work inside a tcolorbox environment?
0
votes
0
answers
28
views
Where is the `\marginpar` command defined?
I couldn't find official documentation for the \marginpar command. Where is it defined?
I looked at the documentation for Standard Document Classes for LaTeX Version 2e. While this discusses \...
0
votes
1
answer
28
views
Aligning `\marginpar` with section title
I tried to use a custom defined command, which uses \marginpar, inside \section. According to another SE post, I have to \protect it. But after some trial and error in my custom package, it breaks if ...
3
votes
2
answers
72
views
How can I get my margin notes to indent themselves into the text, shifting the text over?
I'm looking for my outer margin notes to be pushed into the text, and the text to flow around them, like the picture below:
I'm using scrbook, and I still want to margin notes to have the same ...
0
votes
0
answers
51
views
LaTeX Formatting - Left Margins for Vocab Words
I recently started working with LaTeX. I'm currently using it to take notes from an old math text. I like the formatting here with the vocab word in the left margin before its definition. I was ...
1
vote
1
answer
21
views
Tabto inserts line break when tabbing into right margin
I wanted to use tabto to insert symbols into the margins of my document. I did this as in the following MWE:
\documentclass[11pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\...
1
vote
1
answer
158
views
How to place vertical lines in the margin
I want to put a timeline in the margin so the reader can quickly get a sense of the theme of every paragraph. I am accomplishing this with the marpar command. However, I also want to put a vertical ...
2
votes
2
answers
107
views
Headers and footers spanning both text and margin notes
By default, headers and footers span only the width of the text body, but I need them to span the width of the margin notes and the main text. The closest I've been able to get is the following, ...
0
votes
1
answer
90
views
Execute LaTeX command at every generated output line
I have a command \point that adds a $\bigstar$ as a margin note using the marginnote package. But I want multiple stars next to each other if there are multiple \point in each line. So Hello \point\...
1
vote
1
answer
121
views
Is there a way to eliminate duplicate margin notes in LaTeX?
I'm working on a game manual and I'd like to put page references in the margins for key concepts, for example something like this (from Justin Alexander's Legends and Labyrinths):
I can use \...
0
votes
0
answers
177
views
Suggestions for a margin notes solution alternative to \marginpar and \marginnote?
I am looking for a powerful and versatile tool for creating margin notes.
The way I intend to use margin notes is for clarifying mathematical notation and definitions that are not important enough to ...
1
vote
1
answer
55
views
How to add an automatic adornment at the beginning of every margin note?
When the following LaTeX code, which is saved in the file ~/Test.tex,
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1-1]\marginpar{\lipsum[2-2][1-1]}
\end{document}
is compiled ...
0
votes
1
answer
46
views
Extend the height of parbox
I have the following command that prints text in the margins:
\DeclareRobustCommand{\solutionpage}[1]{\marginpar{%
\colorbox{lightgray}{\protect\parbox[t]{\dimexpr\marginparwidth-2\fboxsep}{~Proof ...
0
votes
1
answer
19
views
Caption doesn not align with graphic in marginpar mode
Want to include a graphic in the margin. Without \centering the graphic is to the left and the caption is shifted to the right and not even fully visible. When \centering is included the graphic is ...
0
votes
1
answer
39
views
Can I have a marginpar with line breaks inside a frame?
I have a command (complements of a contributor here) that puts text in the margin. I would like to frame that text to make it stands out, but when I try to do it I lose the ability to break the text ...
1
vote
1
answer
24
views
How do I center this caption without centering the image?
Here's my code -
\documentclass[12pt]{book}
\usepackage{mhchem}
\usepackage{amsmath,amssymb}
\usepackage{physics}
\usepackage{geometry}
\geometry{papersize={23cm,28cm}, right=9.3cm, left=3cm, top=2....
0
votes
2
answers
72
views
How do I align a marginal note with the first line of the paragraph immediately following it?
I would like margin notes in the left margin, aligned with the first line of a paragraph, similar to this question. Basically these are headings for the paragraph. In the source code, I'd like the ...
0
votes
0
answers
23
views
First word not broken in marginpar
\setlength{\marginparsep}{1em}
\setlength{\marginparwidth}{1cm}
\newcommand{\sidetopic}[1]{\marginpar{\setstretch{.5}\begin{footnotesize}#1\end{footnotesize}}}
and
\sidetopic{Grundbegriffe von ...
2
votes
1
answer
39
views
Margin notes in both sides using a twoside option in article
I am trying to create two commands, each to place marginalia on the left or the right side of the page. They work in the documentclass article with the oneside option, but when I use twoside, the even ...
2
votes
2
answers
173
views
Margin note in two column report
I'm writing a two column report. I want to insert a symbol (a large exclamation mark) in the margin, corresponding to an area of text, at various points in the report. I always want the mark to appear ...
0
votes
1
answer
59
views
esthetics of reverse-inner margin marginpar?
related to writing on the inner margin .
I am typesetting a 750 page book in memoir. (I have certainly had a lot of help from many people on this forum about various problems I have run into---many ...
0
votes
2
answers
79
views
footmisc + marginfix + todonotes = error
Feeding
\documentclass{article}
\usepackage{footmisc}
\usepackage{marginfix}
\usepackage{todonotes}
\begin{document}
\todo{test}
\end{document}
to pdflatex leads to a compilation error:
! Package ...
2
votes
2
answers
249
views
How are the command names on the side in CTAN docs typeset
Trying to figure out how they place the command names on the left margin on package docs on CTAN, e.g.
I have tried using marginpar, but my text is not properly aligned. Minimal example:
\...
0
votes
0
answers
59
views
adjust the margin to be 1"
I am working on my dissertation, I am using a custom document class you can find it here
I am trying to make the margin 1" from each side. I tried to use geometry but didn't work
\usepackage[...
0
votes
0
answers
132
views
Is it possible to get this uneven two column document format?
I'm trying to figure out whether its possible to get a document to have something along the lines of this:
where there's like a smaller left (or right) column for notes, whose position can be ...
2
votes
1
answer
170
views
asymmetric layout with margin on the left
The following MWE gives me a margin that is always on the right.
Is there a way to have the margin always on the left?
\documentclass{book}
\usepackage{geometry,lipsum}
\geometry{
a4paper,
...
0
votes
1
answer
83
views
Issue with marginfigure in twocolumn document
I have a twocolumn document with a large marginpar on right side. When I am including marginfigure it works correctly if it is in the right column. But if it is in the left column, the margin figure ...
0
votes
1
answer
39
views
Conspicuous Marker Not Affecting Anything Else
I want to mark some points in my text with a highly visible symbol and yellow background color without affecting other typesetting. The idea is that there are certain points in my text that I have to ...
1
vote
1
answer
93
views
Margin paragraph and head rule are reversed on even pages in twoside book
I am writing a book in Hebrew (which means Right to Left direction of text) using the book doc class together with the twoside option.
I enlarged the margin paragraph to be 50mm. Now I want the header ...
2
votes
1
answer
112
views
How to place two subfigures one above the other in the margin paragraph?
I want to create something like the following:
That is, place two graphics in the margin paragraph (I couldn't find a similar MWE in a search here on the website).
What I have at the moment is the ...
1
vote
1
answer
133
views
How do I change spacing between marginnote and body in twosided document?
By default in a twosided document the marginnotes appear in the outer margins of every page. The spacing between the body and the margin note varies from even to odd pages. What is the reasons for ...
0
votes
0
answers
32
views
Top Page Stacked Alignment of \marginpar, \marginnote or \sidenote?
I have tried several variations of moving my footnotes into a margin located at the side of the page. What I have not found in their respective documentations, however, is a way to break their ...
0
votes
1
answer
101
views
Width of parbox inside colorbox
I want to insert a colorbox into a margin paragraph. parbox is used to keep the line breaks.
What value should I pass to \parbox's width so it doesn't get too wide as it does now?
\documentclass{book}...
1
vote
1
answer
60
views
Side commentary (on every page) in two-sided book class separated with a vertical rule
I would like to write a book and have main text with a side commentary separated with a vertical rule on every page. Side commentary should be on outer side of a page (two-sided). I am not sure if I ...
1
vote
1
answer
175
views
Margin note/annotation with vertical text direction in APA7 manuscript
I am using apa7 package in writing a manuscript (\documentclass[man]{apa7}).
I am trying to add margin notes/annotation next to (some lines of) some paragraphs that summarize the gist of it, to show ...
0
votes
0
answers
78
views
Remove margin paragraphs from the paper
I have a document that includes no margin paragraphs (\marginpar{..}), and therefore there is no need to give any area on the paper for the marginparsep and marginparwidth lengths.
To achieve that, ...
1
vote
0
answers
49
views
Section/theorem/definition headers in margin
I would like a style in which sectioning headers along with theorem/definitions are in the margin. I particularly like the style used in An Introduction
to Kolmogorov Complexity and Its Applications (...
3
votes
1
answer
1k
views
custom margin notes
I am trying to set up a custom margin note command for my lecture notes but I encountered a few problems.
First of all, this is how it should look:
As you can see in the screenshot above, the margin ...
0
votes
1
answer
39
views
graphics in right margin with caption
I want to place images in the right margin with a caption beneath them. I've looked at some of the questions and answers -- only one looked like my problem but when I copied the answer into my project ...
1
vote
2
answers
483
views
Vertical and horizontal lines for whole page
I have a quick question regarding drawing lines. For practicing, I want to imitate the following CV:
For that I would like to ask for some directions when it comes to drawing vertical and horizontal ...
0
votes
1
answer
62
views
Macro with \marginpar only when in outer mode (loses float)
Related to
Can I detect whether LaTeX is in vertical mode?
\documentclass{article}
\newcommand{\wm}{%
\ifinner INNER \else OUTER\fi
MODE
}
\newcommand{\mm}{%
(trying margin par)\ifinner(no ...
1
vote
1
answer
107
views
marginpar on wrong side twosided first paragraph
I am aware there are a lot of questions about this or related but I cannot find any good general answer to any of them, so:
\marginpar seems to use the page number its paragraph start at to determine ...
1
vote
0
answers
124
views
Reverse marginpar keeping marginparsep and marginparwidth with geometry
I have the following MWE:
\documentclass[a4paper, 12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[showframe]{geometry}
\geometry{
includeall,
...
3
votes
2
answers
268
views
Placing listings in page margins
Goal
My goal is to place listings in the margins. I want to use sidenotes for this, not snotez, because I also require other functionality present in the former, but not the latter.
What I tried
I ...
1
vote
1
answer
103
views
Can I put a drawing in tikz in margin in book style?
Is it possible to put my graph (tikz) instead of the text in the margin on page 7??
\documentclass[a4paper,12pt]{book}
\usepackage{marginnote,geometry,tikz}
\usetikzlibrary{arrows,tikzmark}
\...
1
vote
1
answer
437
views
tcolorbox frame + TikZ picture + marginpar
In a reply to another question user leandriis gave code that surrounds a theorem environment with a rectangle that has a TikZ picture in a corner. The following is copied almost verbatim from ...
1
vote
3
answers
240
views
Fixing a marginpar in (vertical) place so it does not move
I use memoir’s \footnotesinmargin, which typesets ‘footnotes’ in the margin, using \marginpar internally. I am very pleased with the result when combined with marginfix, but I have one thing I do not ...
1
vote
1
answer
129
views
How to (selectively) hide margin notes?
Consider the following LaTeX code, which contains an index entry my index.
\documentclass{scrartcl}
\usepackage{showidx}
\begin{document}
Hello, world!\index{myindex}
\end{document}
This typesets as ...
0
votes
1
answer
192
views
Text on the side
I need to put text on the left side from my lst listing it should look like on the photo.
\lstdefinestyle{myStyle}{
belowcaptionskip=1\baselineskip,
breaklines=true,
frame=none,
numbers=...
1
vote
2
answers
480
views
Footnote and number in margin
I'm trying to make a footnote appear in the margin along with the footnote number. I can generate the footnote without number with a the command: \newcommand{\marginfootnote}[1]{\marginpar{\...