# HG changeset patch # User Gerd Moellmann # Date 980961859 0 # Node ID 51e3ab6046a07f2d566f1f5d69fe4f3ff35f8181 # Parent f100c207f0e8317916309f98a69869b721c1dde5 Macro changes to avoid overfull boxes. diff -r f100c207f0e8 -r 51e3ab6046a0 etc/fr-refcard.tex --- a/etc/fr-refcard.tex Wed Jan 31 17:05:55 2001 +0000 +++ b/etc/fr-refcard.tex Wed Jan 31 17:24:19 2001 +0000 @@ -6,7 +6,7 @@ % This file can be printed with 1, 2, or 3 columns per page (see below). % Specify how many you want here. Nothing else needs to be changed. -\columnsperpage=2 +\columnsperpage=1 % Copyright (c) 1987, 1993, 1996, 1997 Free Software Foundation, Inc. @@ -217,7 +217,7 @@ % beginexample...endexample - surrounds literal text, such a code example. % typeset in a typewriter font with line breaks preserved \def\beginexample{\par\leavevmode\begingroup - \obeylines\obeyspaces\parskip0pt\tt} + \obeylines\obeyspaces\parskip0pt\tt\tolerance=10000} {\obeyspaces\global\let =\ } \def\endexample{\endgroup} @@ -225,9 +225,10 @@ % \key{description of key}{key-name} % prints the description left-justified, and the key-name in a \kbd % form near the right margin. -\def\key#1#2{\leavevmode\hbox to \hsize{\vtop - {\hsize=.75\hsize\rightskip=1em - \hskip\keyindent\relax#1}\kbd{#2}\hfil}} +\def\key#1#2{\leavevmode\hbox to \hsize{\vbox + {\hsize=.75\hsize\rightskip=1em \tolerance=20000 + \raggedright + \hskip\keyindent\hangindent=1em\strut#1\strut}\kbd{\quad#2}\hss}} \newbox\metaxbox \setbox\metaxbox\hbox{\kbd{M-x }} @@ -238,10 +239,12 @@ % \metax{description of command}{M-x command-name} % Tries to justify the beginning of the command name at the same place % as \key starts the key name. (The "M-x " sticks out to the left.) -\def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize - {\hskip\keyindent\relax#1\hfil}% - \hskip -\metaxwidth minus 1fil - \kbd{#2}\hfil}} +\def\metax#1#2{\leavevmode\hbox to \hsize{\vbox + {\hsize=.74\hsize\rightskip=1em + \raggedright \tolerance=20000 + \hskip\keyindent\hangindent=1em\strut#1\strut\par}% + %\hskip-\metaxwidth minus 1fil + \kbd{#2}\hss}} % threecol - like "key" but with two key names. % for example, one for doing the action backward, and one for forward.