Article View: comp.text.tex
Article #556Re: backslash
From: Thorbjoern Ravn Andersen
Date: Fri, 17 Jul 1992 13:44
Date: Fri, 17 Jul 1992 13:44
28 lines
1480 bytes
1480 bytes
Schoepf@sc.ZIB-Berlin.de (Rainer Schoepf) writes:
> How do I get a backslash that looks right inside \tt? The \backslash
> backslash is too big? I'm looking for something like the backslash I
> see all over the place in the LaTeX reference manual.
>
>\verb=\=
This will only work if it is not used as an argument for anything else.
I recently needed a backslash to go into an index command, and then this
didn't work. We found the solution as
\newcommand{\bsl}{{\tt \char '\\}
which is then used all over the place. After converting a whole document
full of \verb|\whatever| to \texcommand{whatever} (where \texcommand is
defined as
\newcommand{\texcommand}[1]
{\bsl{\tt #1}\index{#1@\bsl{\tt #1}}}
)
I got very tired of \verb. Is there a decent way of discouraging the
use of \verb?
--
Thorbj{\o}rn Andersen | map ravn [repeat albani] .... Core dumped
ravn@imada.ou.dk | b="a=\"b=\"++show b++';':b";a="b="++show b++';':b
Technical Details
Message-ID:
<1992Jul17.134420.19055@imada.ou.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!diku!dkuug!imada!ravnReferences:
<keNSYj200WB54W3kgF@andrew.cmu.edu> <SCHOEPF.92Jul17115912@quattro.sc.ZIB-Berlin.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!diku!dkuug!imada!ravn From: ravn@imada.ou.dk (Thorbjoern Ravn Andersen) Newsgroups: comp.text.tex Subject: Re: backslash Message-ID: <1992Jul17.134420.19055@imada.ou.dk> Date: 17 Jul 92 13:44:20 GMT References: <keNSYj200WB54W3kgF@andrew.cmu.edu> <SCHOEPF.92Jul17115912@quattro.sc.ZIB-Berlin.de> Sender: news@imada.ou.dk (USENET News System) Organization: Dept. of Math. & Computer Science, Odense University, Denmark Lines: 28