🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #607

RE: A feature and not a bug

#607
From: Zdenek Wagner
Date: Fri, 31 Jul 1992 17:22
41 lines
1887 bytes
This is the result of my experiment with \mark... and \uppercase. The
problem is that the argument of \mark... is MOVING, so that EVERYTHING
INSIDE must be protected. I am sending a short sample file (I don't know
how to make myheadings appear on the first page -- I use
fancyheadings.sty instead).

The file demonstrates the use of \uppercase with Danish. In real life I
use the real Danish letters generated by keyboard driver and accepted by
the text editor. However, they will not pass through mailers, so I use <
and > in this file.

Note the \protect command in the middle of the word. Without it,
\uppercase inside \mark... doesn't work. For the same reason you can use
neither \def\fyr{\uppercase{fyrt<jet}} nor \def\fyr{fyrt<jet}
\markright{\uppercase{\fyr}} -- they won't work but
\def\fyr{\uppercase{fyrt\protect<jet}} works.

Zdenek Wagner

footnote: Fyrt{\o}jet is a Danish word for tinder-box

                O
                 \ /
------------------X-----------cut here---------------------------------
                 / \
                O

\documentstyle{article}
\catcode`<=\active  \def<{\o}
\catcode`>=\active  \def>{\O}
\lccode`<=`<  \uccode`<=`>
\lccode`>=`<  \uccode`>=`>
\begin{document}
\pagestyle{myheadings}
\markright{\uppercase{fyrt\protect<jet}} % It must be protected though
                                         % it looks nasty!
Uppercase of Fyrt<jet is \uppercase{fyrt<jet}
\clearpage
Uppercase of Fyrt<jet is \uppercase{fyrt<jet}
\end{document}
Technical Details
Message-ID: <7584005@MVB.SAIC.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!noiro.acs.uci.edu!unogate!mvb.saic.com!info-tex

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!noiro.acs.uci.edu!unogate!mvb.saic.com!info-tex
From: Zdenek Wagner <WAGNER%CSEARN.BITNET@SHSU.edu>
Newsgroups: comp.text.tex
Subject: RE: A feature and not a bug
Message-ID: <7584005@MVB.SAIC.COM>
Date: Fri, 31 Jul 92 11:22:43 MDT
Organization: Info-Tex<==>Comp.Text.Tex Gateway
X-Gateway-Source-Info: Mailing List
Lines: 41