Index of /macros/latex/contrib/substitutefont
      Name                    Last modified       Size  Description

[DIR] Parent Directory 25-May-2019 04:43 - [   ] cyrillic-lm-lgc.pdf 05-Nov-2013 00:11 315k [TXT] cyrillic-lm-lgc.tex 05-Nov-2013 00:13 3k [   ] cyrillic-paratype.pdf 05-Nov-2013 02:08 256k [TXT] cyrillic-paratype.tex 05-Nov-2013 01:44 3k [   ] greek-palatino-didot..> 05-Nov-2013 02:30 343k [TXT] greek-palatino-didot..> 05-Nov-2013 02:30 2k [   ] greek-times-artemisi..> 05-Nov-2013 02:29 384k [TXT] greek-times-artemisi..> 05-Nov-2013 02:19 2k [TXT] substitutefont-doc.html 05-Nov-2013 02:04 8k [   ] substitutefont-test.pdf 05-Nov-2013 02:33 144k [TXT] substitutefont-test.tex 05-Nov-2013 00:13 2k [TXT] substitutefont.sty 04-Nov-2013 21:51 3k [TXT] substitutefont.sty.html 05-Nov-2013 02:34 5k

Combine font families

:Copyright: © 2010 Günter Milde <>
:Contributor: Special thanks to Ulrike Fischer who provided
              the indirect definition with active ``\nfss@catcodes``.
:Licence:   This work may be distributed and/or modified under the
            conditions of the `LaTeX Project Public License`_,
            either version 1.3 of this license or (at your option)
            any later version.

.. _LaTeX Project Public License:

In traditional 8-bit LaTeX, fonts are restricted to 256 glyphs per file.
To support different languages and scripts, the New Font Selection Scheme
uses a set of TeX font encodings [encguide]_.

Many Latin TeX fonts do not support Greek or Cyrillic, while many non-Latin
fonts are extensions of a Latin font family but use a different family name
due to license reasons or the creators preference.

The `substitutefont` package facilitates the task to set up a font family as
substitute for another one in a specified `font encoding <encguide>`_. 

:News: 2013-11-04 Documentation/Test fixes.

:Source: `<substitutefont.sty>`_

  The literate source was converted with PyLit_ to reStructuredText_ and
  with Docutils_ to the HTML documentation `<substitutefont.sty.html>`__.


The macro ``\substitutefont{<encoding>}{<family>}{<new-family>}`` selects
the font family <new-family> as replacement for <family> in the font
encoding <encoding>. The substitution must be defined before the first use
of the specified font encoding, preferably in the document preamble.
In contrast to the (deprecated) ``\substitutefontfamily`` macro provided by
Babel_, ``\substitutefont`` does not write auxiliary files.

The ``<encoding>`` is one of the LaTeX font encodings [encguide]_, e.g., T1
for Latin, T2A for Cyrillic(Russian), or LGR for Greek.

For ``<family>`` and ``<new-family>``, use the «TeX names» of the font.
There are defined by a TeX font package's ``*.fd`` or ``*.sty`` file(s).
LaTeX stores the default family names for Roman, Sans-Serif, and Teletype
fonts in the ``\rmdefault``, ``\sfdefault``, and ``\ttdefault`` macros

Example: Set the font family to Palatino using the standard package
`mathpazo` for Latin and `GFS Didot`_ for Greek::

For details on LaTeX font selection, see [encguide]_ and [fntguide]_.


* Simple test with Latin fonts: 
  `<substitutefont-test.tex>`__, `<substitutefont-test.pdf>`__
* Palatino with Greek from `GFS Didot`_:
  `<greek-palatino-didot.tex>`__, `<greek-palatino-didot.pdf>`__
* Times/Helvetica/Courier (newtx_) with `GFS Artemisia`_, `GFS
  Neohellenic`_, and teletype from the CB_ fonts: txfontsb_
  `<greek-times-artemisia.tex>`__, `<greek-times-artemisia.pdf>`__
* Latin Modern with Cyrillic from `CM LGC`_:
  `<cyrillic-lm-lgc.tex>`__, `<cyrillic-lm-lgc.pdf>`__
* Times/Helvetica/Courier (TeX Gyre) with Cyrillic ParaType_ fonts:
  `<cyrillic-paratype.tex>`__, `<cyrillic-paratype.pdf>`__


.. [encguide] Frank Mittelbach, Robin Fairbairns, Werner Lemberg,
   LaTeX3 Project Team, `LaTeX font encodings`:

.. [fntguide] LaTeX3 Project Team, `LaTeX 2e font selection`:

.. _Babel:
.. _CM LGC:
.. _CB:
.. _GFS Artemisia:
.. _GFS Didot:
.. _GFS Neohellenic:
.. _mathpazo:
.. _newtx:
.. _txfontsb:
.. _ParaType:

.. _PyLit:
.. _reStructuredText:
.. _Docutils: