Skip to content

Commit

Permalink
Update alltt.dtx to document the fact that the glyph at the position …
Browse files Browse the repository at this point in the history
…f the $-sign differs in for different OT1-encoded fonts.
  • Loading branch information
Johannes Braams committed Jan 29, 2021
1 parent 819078e commit 96ef050
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions base/alltt.dtx
Expand Up @@ -40,10 +40,11 @@
%<package>\ProvidesPackage{alltt}
%<driver>\ProvidesFile{alltt.drv}
%\ProvidesFile{alltt.dtx}
[2020/11/23 v2.0g defines alltt environment]
[2021/01/29 v2.0g defines alltt environment]
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{alltt}
\begin{document}
\providecommand{\Lenv}[1]{\textsf{#1}}
\providecommand{\pkg}[1]{\texttt{#1}}
Expand All @@ -55,6 +56,8 @@
%
% \changes{v2.0g}{1997/06/16}{A few documentation fixes (PR 2520)}
% \changes{v2.0d}{1995/04/02}{A few documentation fixes (PR 1517)}
% \changes{v2.0g}{2021-01-29}{Added a warning about OT1 versus T1 font
% encoding}
%
% \GetFileInfo{alltt.dtx}
% \title{The \texttt{alltt} environment\thanks{This file
Expand Down Expand Up @@ -88,11 +91,19 @@
% extra blank line if you're not careful.
%
% \item Insert a math formula. Note that |$| just produces a dollar
% sign, so you'll have to type |\(...\)| or |\[...\]|. Also, |^|
% and |_| just produce their characters; use |\sp| or |\sb| for
% super- and subscripts, as in |\(x\sp{2}\)|.
% sign, so you'll have to type |\(...\)| or |\[...\]|. Also, |^|
% and |_| just produce their characters; use |\sp| or |\sb| for
% super- and subscripts, as in |\(x\sp{2}\)|.
% \end{itemize}
%
% \textbf{NB} When you are using \textsf{OT1} encoded fonts you might
% be surprsied when you switch to italics, becuase those fonts have
% a different set of glyphs:
% \begin{alltt}
% The glyph at the position of the $ in a slanted font: \textsl{$}.
% The glyph at the position of the $ in an italic font: \textit{$}.
% \end{alltt}
%
% \StopEventually{}
%
% \section{The Implementation}
Expand Down

0 comments on commit 96ef050

Please sign in to comment.