Questions tagged [marginpar]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 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: \...
user avatar
  • 345
0 votes
0 answers
47 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[...
user avatar
  • 85
1 vote
1 answer
17 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, ...
user avatar
0 votes
1 answer
37 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 ...
user avatar
  • 1,549
0 votes
1 answer
34 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 ...
user avatar
  • 3,391
0 votes
1 answer
36 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 ...
user avatar
  • 200
2 votes
1 answer
41 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 ...
user avatar
  • 200
1 vote
1 answer
35 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 1
0 votes
1 answer
35 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}...
user avatar
  • 200
1 vote
1 answer
33 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
  • 115
0 votes
0 answers
23 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, ...
user avatar
  • 200
1 vote
0 answers
14 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 (...
user avatar
2 votes
1 answer
156 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 ...
user avatar
  • 53
0 votes
1 answer
32 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 ...
user avatar
  • 139
1 vote
2 answers
71 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 3,391
1 vote
1 answer
46 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 ...
user avatar
0 votes
0 answers
44 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, ...
user avatar
  • 101
3 votes
2 answers
151 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 ...
user avatar
1 vote
1 answer
73 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} \...
user avatar
1 vote
1 answer
214 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 ...
user avatar
  • 8,734
1 vote
3 answers
98 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 ...
user avatar
1 vote
1 answer
81 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 ...
user avatar
  • 8,734
0 votes
1 answer
82 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=...
user avatar
0 votes
2 answers
174 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{\...
user avatar
1 vote
1 answer
81 views

Why does scrlayer-notecolumn not work when I use \tableofcontents and scrwfile?

I'm using the packages scrwfile (for multiple tocs after each chapter), scrlyaer-notecolumn (for putting text into the margin column) and of course \tableofcontents. But somehow this doesn't work ...
user avatar
1 vote
1 answer
103 views

Putting marginpar always on the right in a two sided document

I'm drafting a document using a required style file for a conference, which is a two sided style. (i.e. odd and even pages are different.) During the drafting process, I like to use the marginnote ...
user avatar
  • 3,022
1 vote
1 answer
88 views

tufte-book marginfigure overlaps full-width content

\documentclass[nobib]{tufte-book} \usepackage{mwe} % avoid line breaks in inline math % https://tex.stackexchange.com/a/14243/ \relpenalty=9999 \binoppenalty=9999 \begin{document} \mainmatter Some ...
user avatar
  • 1,157
2 votes
2 answers
150 views

Graphics in every side page margin depending on odd/even

I want something working like a fancyhdr, but on the page margin: A colored box overlayed with the document title (or any other text) on every page, placed vertically inside the page margin. The box ...
user avatar
  • 278
1 vote
0 answers
42 views

Trouble With \ref{ }'ing (Equation Numbers In Margins). Also Vertical Spacing Issues

I'm using a macro which takes equation, puts a * after it, suppressing the equation number, then using \stepcounter{equation}, and \marginpar{\centering(\theequation)} which puts the equation number ...
user avatar
3 votes
1 answer
67 views

Check lower edge of marginpar and raise if too low

I have a book where a custom command calls the \marginpar command routinely. The trouble is that sometimes it is called fairly low on a page, and then the marginal paragraph dips into and even below ...
user avatar
  • 115
0 votes
1 answer
74 views

Warning while using geometry Tufte book style - (Over-specification in `v'-direction)

I try to adjust the page layout of my tufte-book document using the geometry package. A warning appears while I change the vertical layout, maybe its due to a missing field in my geometry declaration? ...
user avatar
0 votes
0 answers
22 views

Adding a label to Theorems etc

I would like to add some labels to Theorem (etc.) environments. Here is a minimal working example: \documentclass[a4paper, 12pt]{article} \usepackage{amsmath, amssymb, amsthm} \theoremstyle{plain} \...
user avatar
  • 1,287
1 vote
0 answers
20 views

Gaps between sentences probably because of marginlabel. How to fix? [duplicate]

Gaps doesn't occur on every sentences but only to a few. The MWE \documentclass[12pt,a4paper]{article} \usepackage[most]{tcolorbox} \usepackage[margin=2.5cm, outer=3cm,% inner=2cm, heightrounded, ...
user avatar
  • 602
0 votes
0 answers
36 views

Custom text to the left of the left margin

I'd like to write some custom text (e.g. "hello world" in grey) to the left of the left margin, and it should follow the same spaces amongst the lines and should have the same font and size ...
user avatar
0 votes
0 answers
60 views

How can I add a margin note right next to a table?

I would like to add a margin note right next to a table as shown below: Unfortunately the margin note appears at the bottom of the previous page although the table is located (correctly) at the top ...
user avatar
0 votes
1 answer
35 views

Move biblatex category headings into left marginpar

I'm trying to move the alphabetical category headers into the left marginpar. I followed this post for ordering the bibliography alphabetically and that worked well. I was able to use marginpar ...
user avatar
0 votes
0 answers
352 views

`altacv' class: How to use \marginpar{...} when no need to align the top of the contents to any \cvsection title in the "main" bar

Background altacv is a class for preparing CVs. Following template is used for cv preparation. template link: https://www.overleaf.com/articles/anurags-resume/jdfqhmhqzbxv It has two-column structure ...
user avatar
1 vote
0 answers
48 views

Typeset equation number in margin in two column mode

I am trying to typeset a math paper in two column mode using the amsmath package (in fact, using mathtools), making equation numbers appear in the margins. To be clear: I want equations in the left ...
user avatar
1 vote
0 answers
54 views

Option `headwidth=textwithmargin` of `scrlayer-scrpage` package for asymmetric page layouts

In the following example I am trying to extend the width of the header and the footer of the KOMA-Script class scrbook to include the width of the margin column: \documentclass{scrbook} \usepackage{...
user avatar
  • 11
1 vote
1 answer
73 views

KOMA-script align vertically align margin notes with section headings

Consider the following MWE: \documentclass{scrbook} \usepackage{showframe} \begin{document} \section{Foo bar} \marginline{A note} Foo bar baz. \end{document} which produces how can I ...
user avatar
  • 1,994
1 vote
1 answer
72 views

Automatically move marginal notes that exceed the page border to next page

I'm writing my thesis with classicthesis. It defines the \graffito command for marginal notes as follows: % Graffiti as in GKP's book "Concrete Mathematics" % thanks to Lorenzo Pantieri and ...
user avatar
  • 405
2 votes
3 answers
246 views

exercises in the margin, hints and solutions at the end

I use the answers package to put questions in the text and hints and solutions at the end of the doc. Now I like to use the Tufte book style, and put small exercises in the margin and still have hints ...
user avatar
  • 101
1 vote
0 answers
141 views

Caption in the margin with scrbook

I use scrbook in a twoside layout. I want to place the captions of floats in the margin next to the float (figures, tables, listings), aligned with the top of the float. I know that there is tufte-...
user avatar
  • 1,971
2 votes
1 answer
59 views

Let text body float around marginpar

How do I create a marginpar so that it is indented into the text body and the text body floats around the marginpar? I know how to create a marginpar: \documentclass{article} \usepackage{lipsum} \...
user avatar
  • 1,971
0 votes
0 answers
118 views

How to put a table in marginpar?

I would like to add a placement option "m" to the regular table environment to put small tables in the outer margin of the document. I can achieve it "by hand" using the following ...
user avatar
1 vote
0 answers
66 views

Problems using marginpar to locate commands in the pdf file

I'm a copy editor. For editing reasons I find usefull to spot certain commands used by authors (or by myself in the editing process) directly in the .pdf (or .dvi) file (I know that I can highlight ...
user avatar
1 vote
1 answer
46 views

How to create sidenote helper macro which handles notes inside captions

I am trying to write a simple macro that will add a sidenote which will inline the note if it is added to a caption. To do this I am testing if I am in inner mode, but the test doesn't seem to work. ...
user avatar
  • 163

1
2 3 4 5
9