15

I want to add margin notes using KOMA script's \marginline. I don't want to get into the tricky business of manually setting a lot of typearea lengths myself, I just want to make the outside margin a little bigger to allow notes. Is there a simple way to do this, or do I need to delve into typearea?

3 Answers 3

13

Generally, changing only the outside margin and leaving the other margins alone would destroy the page layout as envisioned by the author of KOMA-script (see chapter 2 of the manual). However, the manual offers some special advice for the treatment of margin notes: Set the class option mpinclude=true which will treat margin notes as part of the text block. Additionally, allow the notes to partially protude into the margin by adjusting the \marginparwidth length.

\documentclass[mpinclude=true]{scrartcl}

\setlength{\marginparwidth}{1.67\marginparwidth}

\usepackage[english]{babel}

\usepackage[newcommands]{ragged2e}

\usepackage{blindtext}

\begin{document}

Some text.\marginline{\blindtext}

\blindtext

\end{document}
1
  • 3
    Note: if you call mpinclude with \KOMAoptions you will need to \recalctypearea to get the effect.
    – Seamus
    Apr 1, 2011 at 15:15
2

A natural way would be something like BCOR=12mm,DIV=calc,twoside(mparhack is useful see the notes inside documentation). If it's not enough, you can decide for a value for the DIV option and you can change BCOR. I put some \blindtextto see the use of BCOR in the next pages

\documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
\usepackage[utf8x]{inputenc}      
\usepackage{fourier} 
\usepackage{mparhack} 
\usepackage{blindtext}
\usepackage[english]{babel} 
\begin{document}
\blindtext
Some text.\marginline{margin note lo ... oong}
\blindtext 
\blindtext 
\blindtext 
\blindtext 
\blindtext 
\blindtext 
\blindtext 
\blindtext 
\end{document}
1
  • Please use utf8x only, if you really, really need it and utf8 is not enough. Mar 7, 2017 at 12:08
0

KOMA offers the addmargin environment where you can simply specify a length to increase the margin

\begin{addmargin}[left indentation]{indentation}
content
\end{addmargin}

Although I think the intention was to provide a environment for short paragraphs that need extra margins it might as well just work fine for the whole document

1
  • It does not work well for the whole document. addmargin is a list environment. And list environments have several side effects for other commands and environment. Mar 7, 2017 at 12:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .