Page LayoutLay out Glosses in the Margin for a Play

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
dagoss
Posts: 2
Joined: Fri Jul 15, 2011 7:40 pm

Lay out Glosses in the Margin for a Play

Post by dagoss »

I am typesetting a play and I want to include glosses, a short one or two word definition, for uncommon words, similar to the Norton Shakespeare. Some of the text is prose; some is verse. The result will have a symbol next to the word being glossed, and off to the side of the page will be the gloss itself. Most lines are about the length of 5 iambs.

Code: Select all

\documentclass[twoside,10pt]{book}

\setlength{\parindent}{0in}

\newcommand{\dialogue}[2]{\hangindent=1in \makebox[1in][r]{#1\hspace{0.1in}}#2}
\newcommand{\anote}[1]{$^{\circ}$\marginpar{#1}}

\begin{document}

\dialogue{Bob}{I am Bob and I am very boring.\\
I sometimes use recondite\anote{obscure} words for fun.}

\end{document}
The text in \anote{} should be to the right of the text on all pages.

Thoughts on the best way to do this?

EDIT:
I played with the page layout settings to get what I want using marginpars for the glosses, but only on recto pages; on verso pages it is still appearing on the wrong side and I don't know how to reverse the text to the other side. According to The Companion, however, changing the layout using \setlength should only be done in the preamble; I need to do it in the body, since only the text of the play should be set this way.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Lay out Glosses in the Margin for a Play

Post by nlct »

The margin switch for recto/verso pages is governed by the @mparswitch conditional. If you set it to false, all the marginal notes will be on the right.

Code: Select all

\documentclass[twoside,10pt]{book}

\makeatletter
\@mparswitchfalse
\makeatother

\setlength{\parindent}{0in}

\newcommand{\dialogue}[2]{\hangindent=1in
\makebox[1in][r]{#1\hspace{0.1in}}#2}
\newcommand{\anote}[1]{$^{\circ}$\marginpar{#1}}

\begin{document}

\dialogue{Bob}{I am Bob and I am very boring.\\
I sometimes use recondite\anote{obscure} words for fun.}

\newpage

\dialogue{Bob}{I am Bob and I am very boring.\\
I sometimes use recondite\anote{obscure} words for fun.}

\end{document}
Regards
Nicola Talbot
Post Reply