| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright 2006-2010 Will Robertson <[email protected]> |
| 4 |
% Copyright 2009-2010 Elie Roux <[email protected]> |
| 5 |
% Copyright 2009-2010 Khaled Hosny <[email protected]> |
| 6 |
% |
| 7 |
% Distributable under the LaTeX Project Public License, |
| 8 |
% version 1.3c or higher (your choice). The latest version of |
| 9 |
% this license is at: http://www.latex-project.org/lppl.txt |
| 10 |
% |
| 11 |
% This work is "maintained" (as per LPPL maintenance status) |
| 12 |
% by Will Robertson. |
| 13 |
% |
| 14 |
% This work consists of the file euenc.dtx and various derived files. |
| 15 |
% |
| 16 |
%<*dtxinfo> |
| 17 |
\ProvidesFile{euenc.dtx} |
| 18 |
%</dtxinfo> |
| 19 |
%<eu1>\ProvidesFile{eu1enc.def} |
| 20 |
%<eu2>\ProvidesFile{eu2enc.def} |
| 21 |
%<*eu1|eu2> |
| 22 |
[2010/05/27 v0.1h Experimental Unicode font encodings] |
| 23 |
%</eu1|eu2> |
| 24 |
% |
| 25 |
%<*internalbatchfile> |
| 26 |
\begingroup |
| 27 |
%</internalbatchfile> |
| 28 |
%<*batchfile> |
| 29 |
\input docstrip.tex |
| 30 |
\keepsilent |
| 31 |
\preamble |
| 32 |
|
| 33 |
_____________________________________ |
| 34 |
The EUENC bundle |
| 35 |
Will Robertson, Elie Roux, Khaled Hosny |
| 36 |
|
| 37 |
License information appended. |
| 38 |
|
| 39 |
\endpreamble |
| 40 |
\postamble |
| 41 |
|
| 42 |
Copyright 2006-2010 Will Robertson <[email protected]> |
| 43 |
Copyright 2009-2010 Elie Roux <[email protected]> |
| 44 |
Copyright 2009-2010 Khaled Hosny <[email protected]> |
| 45 |
|
| 46 |
Distributable under the LaTeX Project Public License, |
| 47 |
version 1.3c or higher (your choice). The latest version of |
| 48 |
this license is at: http://www.latex-project.org/lppl.txt |
| 49 |
|
| 50 |
This work is "maintained" (as per LPPL maintenance status) |
| 51 |
by Will Robertson. |
| 52 |
|
| 53 |
This work consists of the file \jobname.dtx and various derived files. |
| 54 |
|
| 55 |
\endpostamble |
| 56 |
\askforoverwritefalse |
| 57 |
\generate{\file{eu1enc.def}{\from{\jobname.dtx}{eu1}}} |
| 58 |
\generate{\file{eu2enc.def}{\from{\jobname.dtx}{eu2}}} |
| 59 |
\generate{\file{test-euxlm.ltx}{\from{\jobname.dtx}{lmtest}}} |
| 60 |
%</batchfile> |
| 61 |
%<batchfile>\endbatchfile |
| 62 |
%<*internalbatchfile> |
| 63 |
\generate{\file{euenc.ins}{\from{\jobname.dtx}{batchfile}}} |
| 64 |
\generate{\file{euenc-style.sty}{\from{\jobname.dtx}{dtx-style}}} |
| 65 |
\nopreamble\nopostamble |
| 66 |
\generate{\file{convert-lmfd.sh}{\from{\jobname.dtx}{lmscript}}} |
| 67 |
\generate{\file{sed-eu1lm.sed}{\from{\jobname.dtx}{eu1sedlm}}} |
| 68 |
\generate{\file{sed-eu2lm.sed}{\from{\jobname.dtx}{eu2sedlm}}} |
| 69 |
\endgroup |
| 70 |
%</internalbatchfile> |
| 71 |
% |
| 72 |
%<*driver> |
| 73 |
\documentclass{ltxdoc} |
| 74 |
\EnableCrossrefs |
| 75 |
\CodelineIndex |
| 76 |
\RecordChanges |
| 77 |
%\OnlyDescription |
| 78 |
\usepackage{euenc-style} |
| 79 |
\begin{document} |
| 80 |
\DocInput{euenc.dtx} |
| 81 |
\end{document} |
| 82 |
%</driver> |
| 83 |
% |
| 84 |
% \fi |
| 85 |
% |
| 86 |
% \CheckSum{0} |
| 87 |
% \errorcontextlines=999 ^^A% Show up all my mistakes |
| 88 |
% \GetFileInfo{euenc.dtx} |
| 89 |
% |
| 90 |
% \title{The Experimental Unicode `\EUx' Encodings} |
| 91 |
% \author{Will Robertson \and Elie Roux \and Khaled Hosny} |
| 92 |
% \date{\filedate \qquad \fileversion} |
| 93 |
% |
| 94 |
% \maketitle |
| 95 |
% |
| 96 |
% \begin{abstract}\noindent |
| 97 |
% This file documents some experimental Unicode font encodings, |
| 98 |
% used for \XeTeX\ and Lua\TeX. Includes Latin Modern font definitions for version 1.6 and later of those fonts. |
| 99 |
% \end{abstract} |
| 100 |
% |
| 101 |
% \tableofcontents |
| 102 |
% |
| 103 |
% \section{Introduction} |
| 104 |
% |
| 105 |
% \LaTeX's font encoding system provides a method for ensuring that |
| 106 |
% characters in a document can be rendered properly by glyphs in the output. |
| 107 |
% It is also a sensible system for typesetting multilingual documents |
| 108 |
% while remaining within \TeX's restrictions of 8-bit fonts. |
| 109 |
% |
| 110 |
% When \XeTeX\ came along, no work had been done on using |
| 111 |
% this infrastructure for Unicode fonts. For one thing, the notion of a well-defined |
| 112 |
% font encoding --- which neatly pigeonholes a font into a category of containing |
| 113 |
% a specific set of glyphs --- doesn't work so well when designers have |
| 114 |
% an essentially unrestricted selection of glyphs they may add to their fonts. |
| 115 |
% |
| 116 |
% Both technical advantages of \LaTeX's font encodings --- error checking, and |
| 117 |
% multilingual typesetting --- were no longer relevant with \XeTeX, due to |
| 118 |
% impracticality for the former and redundancy in the latter; \XeTeX's support |
| 119 |
% of OpenType fonts obviates the need for font switching (for glyph coverage only) by necessity when changing |
| 120 |
% languages, although multiple fonts will often be used for stylistic purposes. |
| 121 |
% |
| 122 |
% Nonetheless, font encodings are tied inextricably into \LaTeX's font selection |
| 123 |
% mechanisms. For the first couple of years of \XeTeX's life, defined font families |
| 124 |
% were placed in the |U| encoding; appropriate, given the Unicode initial, but |
| 125 |
% \emph{inappropriate} within the framework of \LaTeX\ itself. The |U| encoding |
| 126 |
% stands for `undefined', to be used for fonts that contain glyphs that are essentially |
| 127 |
% arbitrary; for example, a Dingbats font. |
| 128 |
% |
| 129 |
% Since \XeLaTeX\ documents didn't interact with the `regular' world so much, |
| 130 |
% this overloading of the encoding didn't really matter in the long run. But eventually, |
| 131 |
% it became apparent that it would be appropriate to use font encodings to represent |
| 132 |
% Unicode subsets and/or different methods of font loading. With the advent of Lua\TeX, |
| 133 |
% this latter use has justified the approach originally taken here. |
| 134 |
% |
| 135 |
% |
| 136 |
% \section{The \EU1 encoding} |
| 137 |
% |
| 138 |
% The \EU1 encoding represents the first attempt of providing a |
| 139 |
% standard \LaTeX\ encoding for Unicode fonts. |
| 140 |
% At present, it loads and defines nothing in terms of declaring text |
| 141 |
% glyphs and accents. That r\^{o}le is played for now by Ross Moore's \pkg{xunicode} |
| 142 |
% package; in the future I hope some of that package will migrate here. |
| 143 |
% |
| 144 |
% Because we can assume that all current \TeX\ distributions will |
| 145 |
% contain the Latin Modern OpenType fonts (\path{fonts/opentype/public/lm}), |
| 146 |
% these are selected as the default fonts. More details on this later. |
| 147 |
% |
| 148 |
% I am now defining the convention that \EU1 encoded fonts have no |
| 149 |
% necessary subsets of Unicode. Perhaps in the future this will be restricted |
| 150 |
% to fonts that support Unicode accent characters. |
| 151 |
% |
| 152 |
% Furthermore, no restrictions are made on the method used to load the font. |
| 153 |
% \XeTeX\ allows fonts of two types: system installed fonts (also accessible |
| 154 |
% via regular applications or programs); and `local' fonts, which are specified |
| 155 |
% by filename to be found either in a |texmf| tree of the local directory. |
| 156 |
% \iffalse |
| 157 |
%<*eu1> |
| 158 |
% \fi |
| 159 |
% \begin{macrocode} |
| 160 |
\DeclareFontEncoding{EU1}{}{} |
| 161 |
\DeclareErrorFont{EU1}{lmr}{m}{n}{10} |
| 162 |
\DeclareFontSubstitution{EU1}{lmr}{m}{n} |
| 163 |
% \end{macrocode} |
| 164 |
% The |:| character needs to be sanitised in case \pkg{babel} makes it active: |
| 165 |
% \begin{macrocode} |
| 166 |
\g@addto@macro\nfss@catcodes{\@makeother:} |
| 167 |
% \end{macrocode} |
| 168 |
% \changes{v0.1d}{2008/03/08}{Bug fix for French babel.} |
| 169 |
% \iffalse |
| 170 |
%</eu1> |
| 171 |
% \fi |
| 172 |
% |
| 173 |
% \section{The \EU2 encoding} |
| 174 |
% |
| 175 |
% The \EU2 encoding is to be used with Lua\TeX. It is the same as |
| 176 |
% \EU1 for now; the actual difference is in the font definition files. |
| 177 |
% |
| 178 |
% \iffalse |
| 179 |
%<*eu2> |
| 180 |
% \fi |
| 181 |
% \begin{macrocode} |
| 182 |
\DeclareFontEncoding{EU2}{}{} |
| 183 |
\DeclareErrorFont{EU2}{lmr}{m}{n}{10} |
| 184 |
\DeclareFontSubstitution{EU2}{lmr}{m}{n} |
| 185 |
% \end{macrocode} |
| 186 |
% The |:| character needs to be sanitised in case \pkg{babel} makes it active: |
| 187 |
% \begin{macrocode} |
| 188 |
\g@addto@macro\nfss@catcodes{\@makeother:} |
| 189 |
% \end{macrocode} |
| 190 |
% \iffalse |
| 191 |
%</eu2> |
| 192 |
% \fi |
| 193 |
% |
| 194 |
% \section{The Latin Modern OpenType fonts} |
| 195 |
% |
| 196 |
% Version 0.1g of \pkg{euenc} supports version~1.6 of the LM fonts, released in October 2009. |
| 197 |
% |
| 198 |
% \subsection{Conversion scripts} |
| 199 |
% The |.fd| files are converted from the \enc{T1} encoding |
| 200 |
% with the following shell script. |
| 201 |
% Only the package maintainers need to be able to run this script and those following. |
| 202 |
% |
| 203 |
% \subsubsection{Encoding conversion shell script} |
| 204 |
% |
| 205 |
% \iffalse |
| 206 |
%<*lmscript> |
| 207 |
% \fi |
| 208 |
% \begin{macrocode} |
| 209 |
sed -f sed-eu1lm.sed `kpsewhich t1lmr.fd` > eu1lmr.fd |
| 210 |
sed -f sed-eu1lm.sed `kpsewhich t1lmdh.fd` > eu1lmdh.fd |
| 211 |
sed -f sed-eu1lm.sed `kpsewhich t1lmss.fd` > eu1lmss.fd |
| 212 |
sed -f sed-eu1lm.sed `kpsewhich t1lmssq.fd` > eu1lmssq.fd |
| 213 |
sed -f sed-eu1lm.sed `kpsewhich t1lmvtt.fd` > eu1lmvtt.fd |
| 214 |
|
| 215 |
sed -f sed-eu2lm.sed `kpsewhich t1lmr.fd` > eu2lmr.fd |
| 216 |
sed -f sed-eu2lm.sed `kpsewhich t1lmdh.fd` > eu2lmdh.fd |
| 217 |
sed -f sed-eu2lm.sed `kpsewhich t1lmss.fd` > eu2lmss.fd |
| 218 |
sed -f sed-eu2lm.sed `kpsewhich t1lmssq.fd` > eu2lmssq.fd |
| 219 |
sed -f sed-eu2lm.sed `kpsewhich t1lmvtt.fd` > eu2lmvtt.fd |
| 220 |
|
| 221 |
sed -f sed-eu1lm.sed -e \ |
| 222 |
's/:mapping=tex-text//g' `kpsewhich t1lmtt.fd` > eu1lmtt.fd |
| 223 |
sed -f sed-eu2lm.sed -e \ |
| 224 |
's/;.trep;.tlig;//g' `kpsewhich t1lmtt.fd` > eu2lmtt.fd |
| 225 |
% \end{macrocode} |
| 226 |
% \iffalse |
| 227 |
%</lmscript> |
| 228 |
% \fi |
| 229 |
% |
| 230 |
% \subsubsection{Encoding conversion \texttt{sed} scripts} |
| 231 |
% The shell script above requires the following |sed| scripts. |
| 232 |
% |
| 233 |
% \paragraph{Sed scripts} |
| 234 |
% \iffalse |
| 235 |
%<*eu1sedlm,eu2sedlm> |
| 236 |
% \fi |
| 237 |
% \begin{macrocode} |
| 238 |
/^%.*/d |
| 239 |
%<eu1sedlm>s/{T1}/{EU1}/g |
| 240 |
%<eu1sedlm>s/t1lm/eu1lm/g |
| 241 |
%<eu2sedlm>s/{T1}/{EU2}/g |
| 242 |
%<eu2sedlm>s/t1lm/eu2lm/g |
| 243 |
|
| 244 |
s/ec-lmri\([0-9]*\)/lmroman\1-italic/g |
| 245 |
s/ec-lmro\([0-9]*\)/lmromanslant\1-regular/g |
| 246 |
s/ec-lmr\([0-9]*\)/lmroman\1-regular/g |
| 247 |
s/ec-lmcsco\([0-9]*\)/lmromancaps\1-oblique/g |
| 248 |
s/ec-lmcsc\([0-9]*\)/lmromancaps\1-regular/g |
| 249 |
|
| 250 |
s/ec-lmbxo\([0-9]*\)/lmromanslant\1-bold/g |
| 251 |
s/ec-lmbxi\([0-9]*\)/lmroman\1-bolditalic/g |
| 252 |
s/ec-lmbx\([0-9]*\)/lmroman\1-bold/g |
| 253 |
s/ec-lmbo\([0-9]*\)/lmromandemi\1-oblique/g |
| 254 |
s/ec-lmb\([0-9]*\)/lmromandemi\1-regular/g |
| 255 |
|
| 256 |
s/ec-lmdunh\([0-9]*\)/lmromandunh\1-regular/g |
| 257 |
s/ec-lmduno\([0-9]*\)/lmromandunh\1-oblique/g |
| 258 |
|
| 259 |
s/ec-lmss\([0-9]\{1,\}\)/lmsans\1-regular/g |
| 260 |
s/ec-lmsso\([0-9]\{1,\}\)/lmsans\1-oblique/g |
| 261 |
|
| 262 |
s/ec-lmssdc\([0-9]\{1,\}\)/lmsansdemicond\1-regular/g |
| 263 |
s/ec-lmssdo\([0-9]\{1,\}\)/lmsansdemicond\1-oblique/g |
| 264 |
|
| 265 |
s/ec-lmssbx\([0-9]\{1,\}\)/lmsans\1-bold/g |
| 266 |
s/ec-lmssbo\([0-9]\{1,\}\)/lmsans\1-boldoblique/g |
| 267 |
|
| 268 |
s/ec-lmssq\([0-9]\{1,\}\)/lmsansquot\1-regular/g |
| 269 |
s/ec-lmssqo\([0-9]\{1,\}\)/lmsansquot\1-oblique/g |
| 270 |
s/ec-lmssqbx\([0-9]\{1,\}\)/lmsansquot\1-bold/g |
| 271 |
s/ec-lmssqbo\([0-9]\{1,\}\)/lmsansquot\1-boldoblique/g |
| 272 |
|
| 273 |
s/ec-lmtt\([0-9]\{1,\}\)/lmmono\1-regular/g |
| 274 |
s/ec-lmtto\([0-9]\{1,\}\)/lmmonoslant\1-regular/g |
| 275 |
s/ec-lmtti\([0-9]\{1,\}\)/lmmono\1-italic/g |
| 276 |
|
| 277 |
s/ec-lmtcsc\([0-9]\{1,\}\)/lmmonocaps\1-regular/g |
| 278 |
s/ec-lmtcso\([0-9]\{1,\}\)/lmmonocaps\1-oblique/g |
| 279 |
|
| 280 |
s/ec-lmtl\([0-9]\{1,\}\)/lmmonolt\1-regular/g |
| 281 |
s/ec-lmtlo\([0-9]\{1,\}\)/lmmonolt\1-oblique/g |
| 282 |
s/ec-lmtk\([0-9]\{1,\}\)/lmmonolt\1-bold/g |
| 283 |
s/ec-lmtko\([0-9]\{1,\}\)/lmmonolt\1-boldoblique/g |
| 284 |
|
| 285 |
s/ec-lmtlc\([0-9]\{1,\}\)/lmmonoltcond\1-regular/g |
| 286 |
s/ec-lmtlco\([0-9]\{1,\}\)/lmmonoltcond\1-oblique/g |
| 287 |
|
| 288 |
s/ec-lmvtt\([0-9]\{1,\}\)/lmmonoprop\1-regular/g |
| 289 |
s/ec-lmvtto\([0-9]\{1,\}\)/lmmonoprop\1-oblique/g |
| 290 |
|
| 291 |
s/ec-lmvtl\([0-9]\{1,\}\)/lmmonoproplt\1-regular/g |
| 292 |
s/ec-lmvtlo\([0-9]\{1,\}\)/lmmonoproplt\1-oblique/g |
| 293 |
s/ec-lmvtk\([0-9]\{1,\}\)/lmmonoproplt\1-bold/g |
| 294 |
s/ec-lmvtko\([0-9]\{1,\}\)/lmmonoproplt\1-boldoblique/g |
| 295 |
|
| 296 |
%<eu1sedlm>s/\(>.[ ]*\)\(lm[a-z0-9\-]\{1,\}\)/\1"[\2]:mapping=tex-text"/g |
| 297 |
%<eu2sedlm>s/\(>.[ ]*\)\(lm[a-z0-9\-]\{1,\}\)/\1file:\2:script=latn;+trep;+tlig;/g |
| 298 |
% \end{macrocode} |
| 299 |
% \changes{v0.1}{2007/01/18}{`ssdc' and `ssdo' were switched with the upright for some reason.} |
| 300 |
% \changes{v0.1d}{2008/03/08}{Missed typewriter italic somehow.} |
| 301 |
% \changes{v0.1e}{2008/05/14}{Oblique mono was wrong (?!).} |
| 302 |
% \iffalse |
| 303 |
%</eu1sedlm,eu2sedlm> |
| 304 |
% \fi |
| 305 |
% |
| 306 |
% |
| 307 |
% \section{Latin Modern test file} |
| 308 |
% Adapted and improved from my Prac\TeX\ Journal article on the Latin Modern fonts. |
| 309 |
% |
| 310 |
% \iffalse |
| 311 |
%<*lmtest> |
| 312 |
% \fi |
| 313 |
% \begin{macrocode} |
| 314 |
\documentclass[12pt]{article} |
| 315 |
\usepackage[margin=2.5cm]{geometry} |
| 316 |
\newenvironment{vrb} |
| 317 |
{\begin{tabular}{@{}p{7cm}l@{}}} |
| 318 |
{\end{tabular}} |
| 319 |
|
| 320 |
\usepackage{fancyvrb} |
| 321 |
\DefineShortVerb{\|} |
| 322 |
|
| 323 |
\usepackage{slantsc} |
| 324 |
\usepackage{ifluatex} |
| 325 |
\usepackage{ifxetex} |
| 326 |
\ifxetex |
| 327 |
\def\EU{EU1} |
| 328 |
\else |
| 329 |
\ifluatex |
| 330 |
\usepackage{luaotfload} |
| 331 |
\def\EU{EU2} |
| 332 |
\else |
| 333 |
\def\EU{T1} |
| 334 |
\fi |
| 335 |
\fi |
| 336 |
\usepackage[\EU]{fontenc} |
| 337 |
\usepackage{lmodern} |
| 338 |
\begin{document} |
| 339 |
|
| 340 |
\title{Testing the Latin Modern \texttt{\EU} encoding} |
| 341 |
\author{Will Robertson} |
| 342 |
\maketitle |
| 343 |
\thispagestyle{empty} |
| 344 |
\pagestyle{empty} |
| 345 |
|
| 346 |
\section*{Roman} |
| 347 |
|
| 348 |
\fontfamily{lmr}\selectfont |
| 349 |
\begin{vrb} |
| 350 |
|\rmdefault| & {\selectfont Latin Modern Roman} \\ |
| 351 |
| \itshape| & {\itshape Latin Modern Roman Italic} \\ |
| 352 |
| \slshape| & {\slshape Latin Modern Roman Oblique} \\ |
| 353 |
| \scshape| & {\scshape Latin Modern Roman Small Caps} \\ |
| 354 |
| \slshape| & {\scshape\slshape Latin Modern Roman Oblique Small Caps} \\ |
| 355 |
| \bfseries| & {\bfseries Latin Modern Roman Bold Extended} \\ |
| 356 |
| \itshape| & {\bfseries\itshape Latin Modern Roman Bold Italic Extended} \\ |
| 357 |
| \slshape| & {\bfseries\slshape Latin Modern Roman Bold Oblique Extended} \\ |
| 358 |
| \fontseries{b}| & {\fontseries{b}\selectfont Latin Modern Roman Bold} \\ |
| 359 |
| \fontseries{b}\slshape| & {\fontseries{b}\slshape Latin Modern Roman Bold Oblique} \\ |
| 360 |
\end{vrb} |
| 361 |
|
| 362 |
\section*{Dunhill} |
| 363 |
|
| 364 |
\fontfamily{lmdh}\selectfont |
| 365 |
\begin{vrb} |
| 366 |
|\fontfamily{lmdh}\selectfont| & {Latin Modern Dunhill} \\ |
| 367 |
| \slshape| & {\slshape Latin Modern Dunhill Oblique} \\ |
| 368 |
\end{vrb} |
| 369 |
|
| 370 |
\section*{Sans} |
| 371 |
|
| 372 |
\fontfamily{lmss}\selectfont |
| 373 |
\begin{vrb} |
| 374 |
|\sffamily| & {\selectfont Latin Modern Sans} \\ |
| 375 |
| \slshape| & {\slshape Latin Modern Sans Oblique} \\ |
| 376 |
| \bfseries| & {\bfseries Latin Modern Sans Bold} \\ |
| 377 |
| \slshape| & {\bfseries\slshape Latin Modern Sans Bold Oblique} \\ |
| 378 |
| \fontseries{sbc}\selectfont| & {\fontseries{sbc}\selectfont Latin Modern Sans Demi Condensed} \\ |
| 379 |
| \slshape| & {\fontseries{sbc}\selectfont\slshape Latin Modern Sans Demi Condensed Oblique} \\ |
| 380 |
\end{vrb} |
| 381 |
|
| 382 |
\section*{Sans Quotation} |
| 383 |
|
| 384 |
\fontfamily{lmssq}\selectfont |
| 385 |
\begin{vrb} |
| 386 |
|\renewcommand\sfdefault{lmssq}| \\ |
| 387 |
|\sffamily | & {\selectfont Latin Modern Sans Extended} \\ |
| 388 |
| \slshape | & {\slshape Latin Modern Sans Extended Oblique} \\ |
| 389 |
| \bfseries | & {\bfseries Latin Modern Sans Bold Extended} \\ |
| 390 |
| \slshape | & {\bfseries\slshape Latin Modern Sans Bold Extended Oblique} \\ |
| 391 |
\end{vrb} |
| 392 |
|
| 393 |
\section*{Typewriter} |
| 394 |
|
| 395 |
\fontfamily{lmtt}\selectfont |
| 396 |
\begin{vrb} |
| 397 |
|\ttfamily | & {\selectfont Latin Modern Typewriter} \\ |
| 398 |
| \itshape | & {\itshape Latin Modern Typewriter Italic} \\ |
| 399 |
| \slshape | & {\slshape Latin Modern Typewriter Oblique} \\ |
| 400 |
| \scshape | & {\scshape Latin Modern Typewriter Small Caps} \\ |
| 401 |
| \scshape\slshape | & {\scshape\slshape Latin Modern Typewriter Oblique Small Caps} \\ |
| 402 |
| \bfseries | & {\bfseries Latin Modern Typewriter Dark} \\ |
| 403 |
| \slshape | & {\bfseries\slshape Latin Modern Typewriter Dark Oblique} \\ |
| 404 |
| \fontseries{b}\selectfont | & {\fontfamily{lmtt}\fontseries{b}\selectfont Latin Modern Typewriter Dark} \\ |
| 405 |
| \fontseries{b}\slshape | & {\fontfamily{lmtt}\fontseries{b}\slshape Latin Modern Typewriter Dark Oblique} \\ |
| 406 |
| \fontseries{l}\selectfont | & {\fontfamily{lmtt}\fontseries{l}\selectfont Latin Modern Typewriter Light} \\ |
| 407 |
| \fontseries{l}\slshape | & {\fontfamily{lmtt}\fontseries{l}\slshape Latin Modern Typewriter Light Oblique} \\ |
| 408 |
| \fontseries{lc}\selectfont | & {\fontfamily{lmtt}\fontseries{lc}\selectfont Latin Modern Typewriter Light Condensed} \\ |
| 409 |
| \fontseries{lc}\slshape | & {\fontfamily{lmtt}\fontseries{lc}\slshape Latin Modern Typewriter Light Condensed Oblique} \\ |
| 410 |
\end{vrb} |
| 411 |
|
| 412 |
\section*{Variable-width Typewriter} |
| 413 |
|
| 414 |
\fontfamily{lmvtt}\selectfont |
| 415 |
\def\fixedspacing{\fontdimen3\font0pt\fontdimen4\font0pt} |
| 416 |
\begin{vrb} |
| 417 |
|\renewcommand\ttdefault{lmvtt}| \\ |
| 418 |
|\ttfamily | & {\selectfont \fixedspacing Latin Modern Typewriter Proportional} \\ |
| 419 |
| \slshape | & {\slshape \fixedspacing Latin Modern Typewriter Proportional Oblique} \\ |
| 420 |
| \fontseries{l}\selectfont | & {\fontseries{l}\selectfont \fixedspacing Latin Modern Typewriter Proportional Light} \\ |
| 421 |
| \fontseries{l}\slshape | & \mbox{\fontseries{l}\slshape \fixedspacing Latin Modern Typewriter Proportional Light Oblique} \\ |
| 422 |
| \fontseries{b}\selectfont | & {\fontseries{b}\selectfont \fixedspacing Latin Modern Typewriter Proportional Dark} \\ |
| 423 |
| \fontseries{b}\slshape | & \mbox{\fontseries{b}\slshape \fixedspacing Latin Modern Typewriter Proportional Dark Oblique} \\ |
| 424 |
\end{vrb} |
| 425 |
|
| 426 |
\end{document} |
| 427 |
% \end{macrocode} |
| 428 |
% \iffalse |
| 429 |
%</lmtest> |
| 430 |
% \fi |
| 431 |
% |
| 432 |
% \clearpage |
| 433 |
% \PrintChanges |
| 434 |
% |
| 435 |
% \clearpage |
| 436 |
% |
| 437 |
% \PrintIndex |
| 438 |
% |
| 439 |
% \Finale |
| 440 |
% |
| 441 |
%\iffalse |
| 442 |
% |
| 443 |
%<*dtx-style> |
| 444 |
% \begin{macrocode} |
| 445 |
\ProvidesPackage{euenc-style} |
| 446 |
|
| 447 |
\def\@dotsep{1000} |
| 448 |
\setcounter{tocdepth}{2} |
| 449 |
\setlength\columnseprule{0.4pt} |
| 450 |
\renewcommand\tableofcontents{\relax |
| 451 |
\begin{multicols}{2}[\section*{\contentsname}]\relax |
| 452 |
\@starttoc{toc}\relax |
| 453 |
\end{multicols}} |
| 454 |
|
| 455 |
\setcounter{IndexColumns}{2} |
| 456 |
\renewenvironment{theglossary} |
| 457 |
{\small\list{}{} |
| 458 |
\item\relax |
| 459 |
\glossary@prologue\GlossaryParms |
| 460 |
\let\item\@idxitem \ignorespaces |
| 461 |
\def\pfill{\hspace*{\fill}}} |
| 462 |
{\endlist} |
| 463 |
|
| 464 |
\usepackage{booktabs,calc,color,fancyvrb,graphicx,ifthen,refstyle,url,varioref} |
| 465 |
\usepackage{metalogo} |
| 466 |
\usepackage{tgpagella,eulervm} |
| 467 |
\usepackage[scaled=1.1]{inconsolata} |
| 468 |
\usepackage[ |
| 469 |
bookmarks=true, |
| 470 |
colorlinks=true, |
| 471 |
linkcolor=niceblue, |
| 472 |
urlcolor=niceblue, |
| 473 |
citecolor=niceblue, |
| 474 |
pdftitle={The Experimental Unicode 'EUx' Encodings}, |
| 475 |
pdfsubject={Experimental Unicode font encodings for Unicode TeX engines}, |
| 476 |
pdfauthor={Will Robertson}, |
| 477 |
pdfkeywords={xetex, xelatex, luatex, lualatex, unicode, fontenc} |
| 478 |
]{hyperref} |
| 479 |
|
| 480 |
\definecolor{niceblue}{rgb}{0.4,0.6,1.000} |
| 481 |
\newenvironment{example} |
| 482 |
{\hrulefill\par\VerbatimEnvironment |
| 483 |
\begin{VerbatimOut}[gobble=4]{\examplefilename}} |
| 484 |
{\end{VerbatimOut}\relax |
| 485 |
\begingroup |
| 486 |
\color{niceblue} |
| 487 |
\typesetexample |
| 488 |
\endgroup\par\hrulefill} |
| 489 |
|
| 490 |
\let\examplesize\normalsize |
| 491 |
\let\auxwidth\relax |
| 492 |
|
| 493 |
\newlength\examplewidth\newlength\verbatimwidth |
| 494 |
\newlength\exoutdent \newlength\exverbgap |
| 495 |
\setlength\exverbgap{1em} |
| 496 |
\setlength\exoutdent{-0.15\textwidth} |
| 497 |
\newsavebox\verbatimbox |
| 498 |
\edef\examplefilename{\jobname.example} |
| 499 |
|
| 500 |
\newcommand\typesetexample{\relax |
| 501 |
\begin{lrbox}{\verbatimbox}\relax |
| 502 |
\BVerbatimInput[fontsize=\small]{\examplefilename}\relax |
| 503 |
\end{lrbox} |
| 504 |
\begin{list}{}{\setlength\itemindent{0pt} |
| 505 |
\setlength\leftmargin\exoutdent |
| 506 |
\setlength\rightmargin{0pt}}\item |
| 507 |
\ifx\auxwidth\relax |
| 508 |
\setlength\verbatimwidth{\wd\verbatimbox}\relax |
| 509 |
\else |
| 510 |
\setlength\verbatimwidth{\auxwidth}\relax |
| 511 |
\fi |
| 512 |
\begin{minipage}[c]{\textwidth-\exoutdent-\verbatimwidth-\exverbgap} |
| 513 |
\catcode`\%=14\centering\examplesize\input\examplefilename\relax |
| 514 |
\end{minipage}\hfill |
| 515 |
\begin{minipage}[c]{\verbatimwidth} |
| 516 |
\usebox\verbatimbox |
| 517 |
\end{minipage} |
| 518 |
\end{list} |
| 519 |
\global\let\examplesize\normalsize} |
| 520 |
|
| 521 |
\newcommand*\setexsize[1]{\let\examplesize#1} |
| 522 |
\newcommand*\setverbwidth[1]{\def\auxwidth{#1}} |
| 523 |
|
| 524 |
\newcommand*\name[1]{{#1}} |
| 525 |
\newcommand*\pkg[1]{\textsf{#1}} |
| 526 |
\newcommand*\enc[1]{\texttt{#1}} |
| 527 |
|
| 528 |
\let\latin\textit |
| 529 |
\def\eg{\latin{e.g.}} |
| 530 |
\def\ie{\latin{i.e.}} |
| 531 |
\def\etc{\@ifnextchar.{\latin{etc}}{\latin{etc.}\@}} |
| 532 |
|
| 533 |
%% LOGOS, tuned for Pagella: |
| 534 |
\setlogokern{Te}{-0.12em}% |
| 535 |
\setlogokern{eT}{-0.12em}% |
| 536 |
\setlogokern{eX}{-0.12em}% |
| 537 |
\setlogokern{Xe}{-0.12em}% |
| 538 |
\setlogokern{La}{-0.3em}% |
| 539 |
\setlogokern{aT}{-0.12em}% |
| 540 |
\setlogokern{eL}{-0.1em} |
| 541 |
|
| 542 |
\def\MacOSX{Mac~OS~X} |
| 543 |
|
| 544 |
\DeclareRobustCommand\ExTeX{\textrm{\relax |
| 545 |
\ensuremath{\textstyle\varepsilon_{\kern-0.15em\mathcal{X}}}\relax |
| 546 |
\kern-.15em\TeX}} |
| 547 |
|
| 548 |
\def\EU#1{\enc{EU#1}} |
| 549 |
\def\EUx{\enc{EU$x$}} |
| 550 |
|
| 551 |
%% (La)TeX font-related declarations: |
| 552 |
\linespread{1.05} % Pagella needs more space between lines |
| 553 |
\frenchspacing % Remove ugly extra space after punctuation |
| 554 |
|
| 555 |
% \end{macrocode} |
| 556 |
%</dtx-style> |
| 557 |
%\fi |
| 558 |
% |
| 559 |
% \makeatother |
| 560 |
% \typeout{*************************************************************} |
| 561 |
% \typeout{*} |
| 562 |
% \typeout{* To finish the installation you have to move the following} |
| 563 |
% \typeout{* files into a directory searched by LaTeX:} |
| 564 |
% \typeout{*} |
| 565 |
% \typeout{* \space\space\space eu1enc.def, \space eu2enc.def, \space eu*.fd, } |
| 566 |
% \typeout{*} |
| 567 |
% \typeout{*************************************************************} |
| 568 |
% |
| 569 |
\endinput |