| 1 |
% ====================================================================== |
| 2 |
% scrlayer-notecolumn-example-en.tex |
| 3 |
% Copyright (c) Markus Kohm, 2018-2024 |
| 4 |
% |
| 5 |
% This file is part of the LaTeX2e KOMA-Script bundle. |
| 6 |
% |
| 7 |
% This work may be distributed and/or modified under the conditions of |
| 8 |
% the LaTeX Project Public License, version 1.3c of the license. |
| 9 |
% The latest version of this license is in |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 12 |
% version 2005/12/01 or later and of this work. |
| 13 |
% |
| 14 |
% This work has the LPPL maintenance status "author-maintained". |
| 15 |
% |
| 16 |
% The Current Maintainer and author of this work is Markus Kohm. |
| 17 |
% |
| 18 |
% This work consists of all files listed in MANIFEST.md. |
| 19 |
% ====================================================================== |
| 20 |
% |
| 21 |
% Example file for the chapter about scrlayer-notecolumn |
| 22 |
% of the KOMA-Script guide |
| 23 |
% Maintained by Markus Kohm |
| 24 |
% |
| 25 |
% ============================================================================ |
| 26 |
\documentclass{scrartcl} |
| 27 |
\usepackage{lmodern} |
| 28 |
\usepackage{xcolor} |
| 29 |
|
| 30 |
\usepackage{contract} |
| 31 |
\setkomafont{contract.Clause}{\bfseries} |
| 32 |
\setkeys{contract}{preskip=-\dp\strutbox} |
| 33 |
|
| 34 |
\usepackage{scrlayer-scrpage} |
| 35 |
\usepackage{scrlayer-notecolumn} |
| 36 |
|
| 37 |
\newlength{\paragraphscolwidth} |
| 38 |
\AfterCalculatingTypearea{% |
| 39 |
\setlength{\paragraphscolwidth}{.333\textwidth}% |
| 40 |
\addtolength{\paragraphscolwidth}{-\marginparsep}% |
| 41 |
} |
| 42 |
\recalctypearea |
| 43 |
\DeclareNewNoteColumn[% |
| 44 |
position=\oddsidemargin+1in |
| 45 |
+.667\textwidth |
| 46 |
+\marginparsep, |
| 47 |
width=\paragraphscolwidth, |
| 48 |
font=\raggedright\footnotesize |
| 49 |
\color{blue} |
| 50 |
]{paragraphs} |
| 51 |
|
| 52 |
\begin{document} |
| 53 |
|
| 54 |
\title{Commentary on the SCRACH} |
| 55 |
\author{Professor R. O. Tenase} |
| 56 |
\date{11/11/2011} |
| 57 |
\maketitle |
| 58 |
\tableofcontents |
| 59 |
|
| 60 |
\section{Preamble} |
| 61 |
The SCRACH is without doubt the most important law on the manners of humour |
| 62 |
that has been passed in the last thousand years. The first reading took place |
| 63 |
on 11/11/1111 in the Supreme Manic Fun Congress, but the law was rejected by |
| 64 |
the Vizier of Fun. Only after the ludicrous, Manic Fun monarchy was |
| 65 |
transformed into a representative, witty monarchy by W. Itzbold, on 9/9/1999 |
| 66 |
was the way finally clear for this law. |
| 67 |
|
| 68 |
\section{Analysis} |
| 69 |
|
| 70 |
\begin{addmargin}[0pt]{.333\textwidth} |
| 71 |
\makenote[paragraphs]{% |
| 72 |
\protect\begin{contract} |
| 73 |
\protect\Clause[title={No Joke without an Audience}] |
| 74 |
A joke can only be funny if is has an audience. |
| 75 |
\protect\end{contract} |
| 76 |
} |
| 77 |
This is one of the most central statements of the law. It is so fundamental |
| 78 |
that it is quite appropriate to bow to the wisdom of the authors. |
| 79 |
|
| 80 |
\syncwithnotecolumn[paragraphs]\bigskip |
| 81 |
\makenote[paragraphs]{% |
| 82 |
\protect\begin{contract} |
| 83 |
\protect\Clause[title={Humor of a Culture}] |
| 84 |
\setcounter{par}{0}The humour of a joke can be determined by the |
| 85 |
cultural environment in which it is told. |
| 86 |
|
| 87 |
The humour of a joke can be determined by the cultural environment in |
| 88 |
which it acts. |
| 89 |
\protect\end{contract} |
| 90 |
} |
| 91 |
The cultural component of a joke is, in fact, not negligible. Although the |
| 92 |
political correctness of using the cultural environment can easily be |
| 93 |
disputed, nonetheless the accuracy of such comedy in the appropriate |
| 94 |
environment is striking. On the other hand, a supposed joke in the wrong |
| 95 |
cultural environment can also be a real danger for the joke teller. |
| 96 |
\end{addmargin} |
| 97 |
|
| 98 |
\end{document} |
| 99 |
|
| 100 |
%%% Local Variables: |
| 101 |
%%% mode: latex |
| 102 |
%%% TeX-master: t |
| 103 |
%%% coding: utf-8 |
| 104 |
%%% ispell-local-dictionary: "en_GB" |
| 105 |
%%% eval: (flyspell-mode 1) |
| 106 |
%%% End: |