| 1 |
%\CheckSum{146} |
| 2 |
% |
| 3 |
% \iffalse meta comment |
| 4 |
% |
| 5 |
% Copyright (c) Walter Schmidt 1997--2000 |
| 6 |
% |
| 7 |
% This program may be distributed and/or modified under the |
| 8 |
% conditions of the LaTeX Project Public License, either version 1.2 |
| 9 |
% of this license or (at your option) any later version. |
| 10 |
% The latest version of this license is in |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% and version 1.2 or later is part of all distributions of LaTeX |
| 13 |
% version 1999/12/01 or later. |
| 14 |
% |
| 15 |
% This program consists of the files ccfonts.dtx, cc.fdd and |
| 16 |
% ccfonts.ins. |
| 17 |
% |
| 18 |
% \fi |
| 19 |
% |
| 20 |
% \iffalse |
| 21 |
%<package>\NeedsTeXFormat{LaTeX2e}[1995/06/01] |
| 22 |
%<*driver> |
| 23 |
\ProvidesFile{ccfonts.drv} |
| 24 |
%</driver> |
| 25 |
%<package>\ProvidesPackage{ccfonts} |
| 26 |
[2020/03/25 v1.2 (WaS)] |
| 27 |
% |
| 28 |
%<*driver> |
| 29 |
\documentclass[11pt]{ltxdoc} |
| 30 |
\usepackage{mflogo,url} |
| 31 |
\CodelineNumbered |
| 32 |
\begin{document} |
| 33 |
\DocInput{ccfonts.dtx} |
| 34 |
\end{document} |
| 35 |
%</driver> |
| 36 |
% \fi |
| 37 |
% |
| 38 |
% \GetFileInfo{ccfonts.drv} |
| 39 |
% \DeleteShortVerb{\|} |
| 40 |
% \MakeShortVerb{\+} |
| 41 |
% |
| 42 |
% \title{The \LaTeXe{} package \texttt{ccfonts}} |
| 43 |
% \author{Walter Schmidt\thanks{\texttt{[email protected]}}} |
| 44 |
% \date{(\fileversion{} -- \filedate)} |
| 45 |
% \maketitle |
| 46 |
% \tableofcontents |
| 47 |
% |
| 48 |
% \section{Prerequisites} |
| 49 |
% In order to make use of the package +ccfonts+, the following fonts |
| 50 |
% and +.fd+ files are required: |
| 51 |
% \begin{itemize} |
| 52 |
% \item The Concrete text fonts with traditional encoding |
| 53 |
% (CTAN: \path{fonts/concrete/}) |
| 54 |
% \item The Concrete text fonts with European encoding |
| 55 |
% (CTAN: \path{fonts/ecc/}) |
| 56 |
% \item The mathematical Concrete fonts |
| 57 |
% (CTAN: \path{fonts/concmath/}) |
| 58 |
% \item The +.fd+ files for the traditional and mathematical |
| 59 |
% Concrete fonts (CTAN: \path{macros/latex/contrib/supported/concmath/}) |
| 60 |
% \item The +.fd+ files for the European Concrete fonts, |
| 61 |
% which are distributed and installed in conjunction |
| 62 |
% with the +ccfonts+ package |
| 63 |
% \end{itemize} |
| 64 |
% On CTAN the fonts are available in \MF{} format. |
| 65 |
% The Concrete typefaces are also provided in Type1 format from |
| 66 |
% Micropress Inc, see |
| 67 |
% \path{<http://www.micropress-inc.com>}. |
| 68 |
% |
| 69 |
% |
| 70 |
% \section{Using the package} |
| 71 |
% The \LaTeX{} macro package +ccfonts+ |
| 72 |
% supports typesetting with the font family `Concrete'. |
| 73 |
% Loading this package through |
| 74 |
% \begin{verse} |
| 75 |
% +\usepackage{ccfonts}+ |
| 76 |
% \end{verse} |
| 77 |
% will effect the following: |
| 78 |
% \begin{itemize} |
| 79 |
% \item The default roman font family is changed to \texttt{ccr}, |
| 80 |
% i.e.\ Concrete. |
| 81 |
% \item The default leading (+\baselineskip+) for the font sizes 8--12\,pt |
| 82 |
% is increased slightly. |
| 83 |
% \item The `Concrete' fonts are used in math mode, too. |
| 84 |
% \item The packages +amsfonts+ or +amssymb+, if loaded additionally, |
| 85 |
% will use the Concrete versions of the AMS symbol fonts. |
| 86 |
% |
| 87 |
% Notice that you may still have to specify the option +psamsfonts+ |
| 88 |
% for these packages, so as to prevent them from using design sizes |
| 89 |
% of the Euler Fraktur fonts, which may be |
| 90 |
% unavailable within your TeX system; this works flawlessly with |
| 91 |
% version 1.1 of the +ccfonts+ package now. (You need not care for this |
| 92 |
% subject, unless Euler Fraktur is actually used.) |
| 93 |
% \end{itemize} |
| 94 |
% |
| 95 |
% \subsection{Package options} |
| 96 |
% \newcommand{\oitem}[1]{\item[\texttt{#1}]} |
| 97 |
% \begin{description} |
| 98 |
% \oitem{boldsans} The semibold series of CM Sans is used |
| 99 |
% as a replacement for the missing bold series of Concrete. |
| 100 |
% (The default behaviour is to use the bold extended version of |
| 101 |
% CM Roman.) |
| 102 |
% \oitem{standard-baselineskips} disables the increased leading. |
| 103 |
% This can be useful, e.g., when typesetting in narrow columns. |
| 104 |
% \oitem{exscale} implements scaling of the math extension font. |
| 105 |
% For a discussion of this feature see the file +exscale.dtx+. |
| 106 |
% \oitem{slantedGreek} makes uppercase Greek letters slanted by default. |
| 107 |
% Regardless of this option, the new commands +\upDelta+ and +\upOmega+ |
| 108 |
% will always produce an upright \( \Delta \) and \( \Omega \). |
| 109 |
% \end{description} |
| 110 |
% |
| 111 |
% \subsection{Font encoding} |
| 112 |
% The package does \emph{not} change the default output font |
| 113 |
% encoding from OT1. Switching to the extended T1 and TS1 encodings |
| 114 |
% needs the following additional commands: |
| 115 |
% \begin{verse} |
| 116 |
% +\usepackage[T1]{fontenc}+\\ |
| 117 |
% +\usepackage{textcomp}+ |
| 118 |
% \end{verse} |
| 119 |
% |
| 120 |
% \section{Known problems} |
| 121 |
% \begin{itemize} |
| 122 |
% \item |
| 123 |
% There are no bold math fonts available. |
| 124 |
% \item |
| 125 |
% In order to enlarge the default +\baselineskip+, the size-changing |
| 126 |
% macros have been redefined, and they are no longer as robust as the |
| 127 |
% original definitions. This may result in \LaTeX\ errors with |
| 128 |
% `moving arguments'. As a workaround, you may protect any font-related |
| 129 |
% commands in moving arguments with a +\protect+ command. In case this |
| 130 |
% does not help, the package should be loaded with the option |
| 131 |
% \textsf{standard-baselineskips} which will prevent the commands from |
| 132 |
% being redefined; you will, however, have to care for an appropriate |
| 133 |
% line spacing by other means then. |
| 134 |
% \end{itemize} |
| 135 |
% |
| 136 |
% \section{NFSS classification of the Concrete typefaces} |
| 137 |
% \begin{center} |
| 138 |
% \begin{tabular}{|l|l|l|l|} |
| 139 |
% \hline |
| 140 |
% \textbf{encoding} & \textbf{family} & \textbf{series} & \textbf{shape(s)}\\ |
| 141 |
% \hline\hline |
| 142 |
% \multicolumn{4}{|c|}{\textit{Concrete}}\\ \hline |
| 143 |
% OT1, T1, TS1 & ccr & m & n, sl, it, sc \\ \hline |
| 144 |
% OT1 & ccr & c & sl\\ \hline \hline |
| 145 |
% \multicolumn{4}{|c|}{\textit{Concrete Math}}\\ \hline |
| 146 |
% OML & ccm & m & it \\ \hline \hline |
| 147 |
% OMS & ccsy & m & n \\ \hline |
| 148 |
% OMX & ccex & m & n \\ \hline \hline |
| 149 |
% \multicolumn{4}{|c|}{\textit{Concrete AMS A, B}}\\ \hline |
| 150 |
% U & msa & m & n \\ \hline |
| 151 |
% U & msb & m & n \\ \hline |
| 152 |
% \end{tabular} |
| 153 |
% \end{center} |
| 154 |
% Notice, that |
| 155 |
% \begin{itemize} |
| 156 |
% \item the series c (condensed) is available as slanted |
| 157 |
% and with a font size of 9\,pt only; |
| 158 |
% \item the Concrete AMS fonts are only defined |
| 159 |
% through the package \textsf{ccfonts}, |
| 160 |
% i.e., there are no related \texttt{.fd} files. |
| 161 |
% \end{itemize} |
| 162 |
% |
| 163 |
% \StopEventually{} |
| 164 |
% |
| 165 |
% \section{Implementation} |
| 166 |
% \subsection{Font setup for text mode} |
| 167 |
% We make \texttt{ccr} the default font family: |
| 168 |
% \begin{macrocode} |
| 169 |
%<*package> |
| 170 |
\renewcommand{\rmdefault}{ccr} |
| 171 |
% \end{macrocode} |
| 172 |
% |
| 173 |
% The +\baselineskip+ should be larger than with CM Roman. |
| 174 |
% In order to overwrite the +\baselineskip+ defined in the commands |
| 175 |
% like +\normalsize+, +\small+, etc., we use a trick from Frank Jensen's |
| 176 |
% package +beton+. |
| 177 |
% First we set up a table containing our +\baselineskip+ values: |
| 178 |
% \begin{macrocode} |
| 179 |
\def\cc@baselineskip@table |
| 180 |
{<\@viiipt>10<\@ixpt>11.5<\@xpt>13<\@xipt>14.5<\@xiipt>16} |
| 181 |
% \end{macrocode} |
| 182 |
% All the standard \LaTeX\ size-changing commands (+\small+, +\large+, |
| 183 |
% etc.)\ are defined in terms of the +\@setfontsize+ macro. This |
| 184 |
% macro is called with the following three arguments: +#1+~is the |
| 185 |
% size-changing command; +#2+~is the font size; +#3+~is the |
| 186 |
% +\baselineskip+ value. We modify this macro to check |
| 187 |
% the above +\cc@baselineskip@table+ for an alternative +\baselineskip+ |
| 188 |
% value: |
| 189 |
% \begin{macrocode} |
| 190 |
\def\cc@setfontsize#1#2#3% |
| 191 |
{\edef\@tempa{\def\noexpand\@tempb####1<#2}% |
| 192 |
\@tempa>##2<##3\@nil{\def\cc@baselineskip@value{##2}}% |
| 193 |
\edef\@tempa{\noexpand\@tempb\cc@baselineskip@table<#2}% |
| 194 |
\@tempa><\@nil |
| 195 |
\ifx\cc@baselineskip@value\@empty |
| 196 |
\def\cc@baselineskip@value{#3}% |
| 197 |
\fi |
| 198 |
\old@setfontsize{#1}{#2}\cc@baselineskip@value} |
| 199 |
% \end{macrocode} |
| 200 |
% Now we redefine +\@setfontsize+: |
| 201 |
% \begin{macrocode} |
| 202 |
\let\old@setfontsize=\@setfontsize |
| 203 |
\let\@setfontsize=\cc@setfontsize |
| 204 |
% \end{macrocode} |
| 205 |
% |
| 206 |
% \subsection{Options} |
| 207 |
% \subsubsection{Standard leading} |
| 208 |
% The +\baselineskip+ values specified in the above table should be |
| 209 |
% appropriate for most purposes, i.\,e., for one-column material in the |
| 210 |
% normal article/report/book formats. However, it is sometimes |
| 211 |
% desirable to use a smaller value for +\baselineskip+, e.\,g. in two-column |
| 212 |
% material. We therefore provide an option |
| 213 |
% to turn off the above automatic mechanism for +\baselineskip+ settings: |
| 214 |
% \begin{macrocode} |
| 215 |
\DeclareOption{standard-baselineskips}{% |
| 216 |
\let\@setfontsize=\old@setfontsize} |
| 217 |
% \end{macrocode} |
| 218 |
% |
| 219 |
% \subsubsection{The option \texttt{exscale}} |
| 220 |
% The code is simply copied from \texttt{exscale.sty}, |
| 221 |
% with \texttt{xccex} instead of \texttt{cmex}. |
| 222 |
% \begin{macrocode} |
| 223 |
\DeclareOption{exscale}{ |
| 224 |
\DeclareFontFamily{OMX}{ccex}{} |
| 225 |
\DeclareFontShape{OMX}{ccex}{m}{n}{% |
| 226 |
<-8>sfixed*xccex7% |
| 227 |
<8>xccex8% |
| 228 |
<9>xccex9% |
| 229 |
<10><10.95><12><14.4><17.28><20.74><24.88>xccex10% |
| 230 |
}{} |
| 231 |
\newdimen\big@size |
| 232 |
\addto@hook\every@math@size{\setbox\z@\vbox{\hbox{$($}\kern\z@}% |
| 233 |
\global\big@size 1.2\ht\z@} |
| 234 |
\def\bBigg@#1#2{% |
| 235 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 236 |
\def\big{\bBigg@\@ne} |
| 237 |
\def\Big{\bBigg@{1.5}} |
| 238 |
\def\bigg{\bBigg@\tw@} |
| 239 |
\def\Bigg{\bBigg@{2.5}} |
| 240 |
} |
| 241 |
% \end{macrocode} |
| 242 |
% |
| 243 |
% \subsubsection{The option \texttt{slantedGreek}} |
| 244 |
% \begin{macrocode} |
| 245 |
\let\upDelta\Delta |
| 246 |
\let\upOmega\Omega |
| 247 |
\DeclareOption{slantedGreek}{% |
| 248 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0} |
| 249 |
\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1} |
| 250 |
\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2} |
| 251 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3} |
| 252 |
\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4} |
| 253 |
\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5} |
| 254 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6} |
| 255 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7} |
| 256 |
\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8} |
| 257 |
\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9} |
| 258 |
\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10} |
| 259 |
} |
| 260 |
% \end{macrocode} |
| 261 |
% |
| 262 |
% \subsection{The option \texttt{boldsans}} |
| 263 |
% \begin{macrocode} |
| 264 |
\DeclareOption{boldsans}{% |
| 265 |
\@ifundefined{DeclareFontSeriesDefault}{% |
| 266 |
\renewcommand{\bfdefault}{sbc}}{% |
| 267 |
\DeclareFontSeriesDefault[rm]{bf}{sbc}}} |
| 268 |
% \end{macrocode} |
| 269 |
% |
| 270 |
% \subsubsection{Processing options} |
| 271 |
% Note that +\old@setfontsize+ must have been defined before! |
| 272 |
% \begin{macrocode} |
| 273 |
\ProcessOptions\relax |
| 274 |
% \end{macrocode} |
| 275 |
% |
| 276 |
% \subsection{Font setup for math mode} |
| 277 |
% \begin{macrocode} |
| 278 |
\DeclareSymbolFont {operators} {OT1}{ccr} {m}{n} |
| 279 |
\DeclareSymbolFont {letters} {OML}{ccm} {m}{it} |
| 280 |
\DeclareSymbolFont {symbols} {OMS}{ccsy}{m}{n} |
| 281 |
\DeclareSymbolFont {largesymbols}{OMX}{ccex}{m}{n} |
| 282 |
\DeclareMathAlphabet{\mathbf} {OT1}{ccr}{bx}{n} |
| 283 |
\DeclareMathAlphabet{\mathit} {OT1}{ccr} {m}{it} |
| 284 |
% \end{macrocode} |
| 285 |
% |
| 286 |
% In case the package +amsfonts+ is loaded additionally, |
| 287 |
% we must ensure that the Concrete versions of the |
| 288 |
% AMS symbol fonts are used. We execute the font definitions |
| 289 |
% AtBeginDocument, so that loading +amsfonts+ with the |
| 290 |
% option +psamsfonts+ cannot do any harm. Notice that the option may |
| 291 |
% be required for getting the Euler Fraktur fonts right. |
| 292 |
% \begin{macrocode} |
| 293 |
\AtBeginDocument{ |
| 294 |
\DeclareFontFamily{U}{msa}{} |
| 295 |
\DeclareFontShape{U}{msa}{m}{n}{% |
| 296 |
<5><6><7><8><9><10>gen*xccam% |
| 297 |
<10.95><12><14.4><17.28><20.74><24.88>xccam10}{} |
| 298 |
\DeclareFontFamily{U}{msb}{} |
| 299 |
\DeclareFontShape{U}{msb}{m}{n}{% |
| 300 |
<5><6><7><8><9><10>gen*xccbm% |
| 301 |
<10.95><12><14.4><17.28><20.74><24.88>xccbm10}{} |
| 302 |
} |
| 303 |
% \end{macrocode} |
| 304 |
% |
| 305 |
% |
| 306 |
% \subsection{Initialization} |
| 307 |
% We ensure that any package loaded after \texttt{ccfonts} |
| 308 |
% will find the new value of +\baselineskip+. |
| 309 |
% \begin{macrocode} |
| 310 |
\normalsize |
| 311 |
%</package> |
| 312 |
% \end{macrocode} |
| 313 |
% |
| 314 |
% The next line of code prevents DocStrip from adding the |
| 315 |
% character table to all modules: |
| 316 |
% \begin{macrocode} |
| 317 |
\endinput |
| 318 |
% \end{macrocode} |
| 319 |
% \Finale |
| 320 |
%% \CharacterTable |
| 321 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 322 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 323 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 324 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 325 |
%% Dollar \$ Percent \% Ampersand \& |
| 326 |
%% Acute accent \' Left paren \( Right paren \) |
| 327 |
%% Asterisk \* Plus \+ Comma \, |
| 328 |
%% Minus \- Point \. Solidus \/ |
| 329 |
%% Colon \: Semicolon \; Less than \< |
| 330 |
%% Equals \= Greater than \> Question mark \? |
| 331 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 332 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 333 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 334 |
%% Right brace \} Tilde \~} |
| 335 |
%% |