diff options
author | Karl Berry <karl@freefriends.org> | 2011-02-05 00:15:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-02-05 00:15:34 +0000 |
commit | 929dae1e5d6cbe0e156ed82182c18fb728750828 (patch) | |
tree | da2d1e170355a519b5f204275af75bbe76e40c04 /Master/texmf-dist | |
parent | 82ea7c20d1921d61798af499be6ccc78a120ea81 (diff) |
new latex package pzccal (3feb11)
git-svn-id: svn://tug.org/texlive/trunk@21288 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/README.html | 100 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/README.txt | 79 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/pzccal-test.pdf | bin | 0 -> 195752 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/pzccal-test.tex | 71 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/pzccal.sty.html | 117 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/pzccal.sty.pdf | bin | 0 -> 74394 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/pzccal/pzccal.sty.txt | 105 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pzccal/pzccal.sty | 105 |
8 files changed, 577 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pzccal/README.html b/Master/texmf-dist/doc/latex/pzccal/README.html new file mode 100644 index 00000000000..7872b301eaf --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/README.html @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.8: http://docutils.sourceforge.net/" /> +<title>pzccal README</title> +<meta name="date" content="2011-02-03" /> +<meta name="copyright" content="© 2011 Günter Milde <milde@users.berlios.de>" /> +<link rel="stylesheet" href="../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> +<link rel="stylesheet" href="../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> +</head> +<body> +<div class="document" id="pzccal-readme"> +<h1 class="title">pzccal README</h1> + +<dl class="docinfo simple"> +<dt class="date">Date</dt> +<dd class="date">2011-02-03</dd> +<dt class="copyright">Copyright</dt> +<dd class="copyright">© 2011 Günter Milde <<a class="reference external" href="mailto:milde@users.berlios.de">milde@users.berlios.de</a>></dd> +<dt>Licence</dt> +<dd><p>This work may be distributed and/or modified under the +conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either +version 1.3 of this license or (at your option) any later version.</p> +</dd> +</dl> +<div class="abstract topic"> +<p class="topic-title first">Abstract</p> +<p>The <cite>pzccal</cite> package sets up the Zapf Chancery font as +script (calligraphic) math alphabet <tt class="literal">\mathpzc</tt>. It +provides options to scale the font and to configure the +alias command name. By default, <cite>pzccal</cite> overwrites the +predefined math alphabet command <tt class="literal">\mathcal</tt>.</p> +</div> +<div class="section" id="files"> +<h1>Files</h1> +<table> +<colgroup> +<col width="35%" /> +<col width="65%" /> +</colgroup> +<tbody valign="top"> +<tr><td><p>README.txt</p></td> +<td><p>Requirements, Installation, Usage</p></td> +</tr> +<tr><td><p>README.html</p></td> +<td><p>browser friendly README</p></td> +</tr> +<tr><td><p>pzccal.sty</p></td> +<td><p>literate source (LaTeX package)</p></td> +</tr> +<tr><td><p>pzccal.sty.txt</p></td> +<td><p>literate source (Documentation)</p></td> +</tr> +<tr><td><p>pzccal.sty.pdf</p></td> +<td><p>literate source (Documentation, PDF)</p></td> +</tr> +<tr><td><p>pzccal.sty.html</p></td> +<td><p>literate source (Documentation, HTML)</p></td> +</tr> +<tr><td><p>pzccal-test.tex</p></td> +<td><p>Test example (source)</p></td> +</tr> +<tr><td><p>pzccal-test.pdf</p></td> +<td><p>Test example (PDF output)</p></td> +</tr> +</tbody> +</table> +<p>The bidirectional text <-> code converter <a class="reference external" href="http://pylit.berlios.de">PyLit</a> can convert between +<tt class="literal">pzccal.sty</tt> and <tt class="literal">pzccal.sty.txt</tt>.</p> +<p>The Python <a class="reference external" href="http://docutils.sourceforge.net/rst.html">Docutils</a> and pdflatex were used to generate the HTML and PDF +documentation from the <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> sources.</p> +</div> +<div class="section" id="requirements"> +<h1>Requirements</h1> +<p>This package uses fonts from the PSNFSS bundle. +It also requires <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/kvoptions.html">kvoptions</a>.</p> +</div> +<div class="section" id="installation"> +<h1>Installation</h1> +<ul> +<li><p>Unpack pzccal.zip (preferably in a <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds">TDS</a> documentation folder).</p></li> +<li><p>Make sure LaTeX can find pzccal.sty:</p> +<p>Copy/Move/Link it to a suitable place in the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds">TDS</a> and run <tt class="literal">texhash</tt> +or place it in the current working directory (e.g. for testing).</p> +</li> +</ul> +</div> +<div class="section" id="usage"> +<h1>Usage</h1> +<pre class="literal-block">\usepackage{pzccal} +</pre> +<p>Option descriptions in the literate source.</p> +<!-- References +========== --> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/pzccal/README.txt b/Master/texmf-dist/doc/latex/pzccal/README.txt new file mode 100644 index 00000000000..e241dddf1de --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/README.txt @@ -0,0 +1,79 @@ +pzccal README +~~~~~~~~~~~~~~ + +:Date: 2011-02-03 +:Copyright: © 2011 Günter Milde <milde@users.berlios.de> + +: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. + +:Abstract: The `pzccal` package sets up the Zapf Chancery font as + script (calligraphic) math alphabet ``\mathpzc``. It + provides options to scale the font and to configure the + alias command name. By default, `pzccal` overwrites the + predefined math alphabet command ``\mathcal``. + + +Files +===== + +==================== ===================================== +README.txt Requirements, Installation, Usage +README.html browser friendly README + +pzccal.sty literate source (LaTeX package) +pzccal.sty.txt literate source (Documentation) +pzccal.sty.pdf literate source (Documentation, PDF) +pzccal.sty.html literate source (Documentation, HTML) + +pzccal-test.tex Test example (source) +pzccal-test.pdf Test example (PDF output) +==================== ===================================== + +The bidirectional text <-> code converter PyLit_ can convert between +``pzccal.sty`` and ``pzccal.sty.txt``. + +The Python Docutils_ and pdflatex were used to generate the HTML and PDF +documentation from the reStructuredText_ sources. + + +Requirements +============ + +This package uses fonts from the PSNFSS bundle. +It also requires kvoptions_. + + +Installation +============ + +* Unpack pzccal.zip (preferably in a TDS_ documentation folder). + +* Make sure LaTeX can find pzccal.sty: + + Copy/Move/Link it to a suitable place in the TDS_ and run ``texhash`` + or place it in the current working directory (e.g. for testing). + + +Usage +===== + +:: + + \usepackage{pzccal} + +Option descriptions in the literate source. + + +.. References + ========== + +.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +.. _PyLit: http://pylit.berlios.de +.. _reStructuredText: http://docutils.sourceforge.net/rst.html +.. _Docutils: http://docutils.sourceforge.net/rst.html + +.. _kvoptions: http://mirror.ctan.org/help/Catalogue/entries/kvoptions.html + +.. _TDS: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds diff --git a/Master/texmf-dist/doc/latex/pzccal/pzccal-test.pdf b/Master/texmf-dist/doc/latex/pzccal/pzccal-test.pdf Binary files differnew file mode 100644 index 00000000000..8190c2368d1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/pzccal-test.pdf diff --git a/Master/texmf-dist/doc/latex/pzccal/pzccal-test.tex b/Master/texmf-dist/doc/latex/pzccal/pzccal-test.tex new file mode 100644 index 00000000000..0b428a768bd --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/pzccal-test.tex @@ -0,0 +1,71 @@ +\documentclass[]{article} +\usepackage{lmodern,parskip} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} + +% For comparison with Euler Script and Ralph Smith's Formal Script +\usepackage[mathscr]{eucal} % \mathscr with Euler Script +\DeclareSymbolFont{rsfscript}{OMS}{rsfs}{m}{n} +\DeclareSymbolFontAlphabet{\mathrsfs}{rsfscript} + +% Now load the package (play with the options): + +% \usepackage[mathscr]{pzccal} +\usepackage{pzccal} +% \usepackage[scaled=1.2]{pzccal} + +% ....................................................................... + +\DeclareMathAlphabet{\mathcal}{OT1}{pzcm}{mb}{it} + +\begin{document} + +\section*{\texttt{pzccal} package test} + +The script (calligraphic) math alphabet with Zapf Chancery +(\verb+\mathpzc+): +\[ + \mathpzc{ABCDEFGHIJKLMNOPQRSTUVWXYZ\, + abcdefghijklmnopqrstuvwxyz\, + 1234567890} +\] +The script (calligraphic) math alphabet with Euler Script +(\verb+\EuScript+): +\[ + \EuScript{ABCDEFGHIJKLMNOPQRSTUVWXYZ\,abc\,123} +\] +The script (calligraphic) math alphabet with Ralph Smith's Formal Script +(\verb+\mathrsfs+): +\[ + \mathrsfs{ABCDEFGHIJKLMNOPQRSTUVWXYZ\,abc\,123} +\] +The script (calligraphic) math alphabet with (\verb+\mathcal+): +\[ + \mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ\,abc\,123} +\] +The script (calligraphic) math alphabet with (\verb+\mathscr+): +\[ + \mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ\,abc\,123} +\] +Compare script letters (CM, CMcal, pzcm, EuScript, rsfs): +\[ + H \CMcal{H} \mathpzc{H} \EuScript{H} \mathrsfs{H} + Z \CMcal{Z} \mathpzc{Z} \EuScript{Z} \mathrsfs{Z} + F \CMcal{F} \mathpzc{F} \EuScript{F} \mathrsfs{F} +\] + +Usage examples with \verb+\mathcal+: +\[ + \mathcal{F}\left\{ s(x)\right\} =\int_{-\infty}^{\infty}s(x) + \mathrm{e}^{\mathrm{i}\omega_{x}x}\,\mathrm{d}{x} +\] + +Die Hamiltonfunktion ist die Legendre-Transformierte der Lagrange-Funktion +$\mathcal L(t,q,\dot q)$, die von den generalisierten Koordinaten und +ihren Geschwindigkeiten $\dot q=(\dot q_1,\dot q_2\dots \dot q_n)$ abhängt: +\[ + \mathcal H(t,q,p)= \sum_{k=1}^n \dot q_k\, p_k - \mathcal L(t, q,\dot q) +\] + +\makeatother +\end{document} diff --git a/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.html b/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.html new file mode 100644 index 00000000000..ae7d435264e --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.html @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.8: http://docutils.sourceforge.net/" /> +<title>pzccal.sty: calligraphic math alphabet with Zapf Chancery</title> +<meta name="copyright" content="© 2008, 2010 Günter Milde" /> +<link rel="stylesheet" href="../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> +<link rel="stylesheet" href="../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> +</head> +<body> +<div class="document" id="pzccal-sty-calligraphic-math-alphabet-with-zapf-chancery"> +<h1 class="title">pzccal.sty: calligraphic math alphabet with Zapf Chancery</h1> + +<dl class="docinfo"> +<dt class="copyright">Copyright</dt> +<dd class="copyright">© 2008, 2010 Günter Milde</dd> +<dt>Licence</dt> +<dd><p>This work may be distributed and/or modified under the +conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either +version 1.3 of this license or (at your option) any later version.</p> +</dd> +<dt>Identification</dt> +<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{pzccal} +[2011/02/03 v0.1 Zapf Chancery calligraphic math alphabet] +</pre> +</dd> +</dl> +<p><a class="reference external" href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf">The Comprehensive LaTeX Symbol List</a> by Scott Pakin describes the +use of Zapf Chancery as a mathematical alphabet that contains capital +and small Latin letters as well as digits. This allows full coverage +of the <cite>script</cite> Unicode Mathematical Alphabet with 8-bit LaTeX +engines.</p> +<p>This package sets up the Zapf Chancery font as script (calligraphic) +math alphabet <tt class="literal">\mathpzc</tt>. It provides options to scale the font and to +configure the alias command name. By default, <cite>pzccal</cite> overwrites the +predefined math alphabet command <tt class="literal">\mathcal</tt>.</p> +<div class="section" id="options"> +<h1>Options</h1> +<p>Options are defined with the key=value interface provided by +<a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/kvoptions.html">kvoptions</a>:</p> +<pre class="literal-block">\RequirePackage{kvoptions} +</pre> +<div class="section" id="cmdname"> +<h2>cmdname</h2> +<p>The name of the math alphabet command alias (default <tt class="literal">\mathcal</tt>). +An existing command is overwritten without asking.</p> +<pre class="literal-block">\DeclareStringOption[mathcal]{cmdname} +</pre> +</div> +<div class="section" id="mathcal-mathscr-mathpzc"> +<h2>mathcal, mathscr, mathpzc</h2> +<p>For compatibility with <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/eucal.html">eucal</a>, the <tt class="literal">mathcal</tt> and <tt class="literal">mathscr</tt> options +are equivalent to <tt class="literal">cmdname=mathcal</tt> and <tt class="literal">cmdname=mathscr</tt>. The +option <tt class="literal">mathpzc</tt> prevents aliasing to a new name:</p> +<pre class="literal-block">\DeclareVoidOption{mathcal}{} % this is the default +\DeclareVoidOption{mathscr}{\renewcommand{\pzccal@cmdname}{mathscr}} +\DeclareVoidOption{mathpzc}{\renewcommand{\pzccal@cmdname}{mathpzc}} +</pre> +</div> +<div class="section" id="scaled"> +<h2>scaled</h2> +<p>The Zapf Chancery font can be scaled with the <tt class="literal">scaled</tt> option. The +default is to enlarge the font to get a matching size without making +it too dark:</p> +<pre class="literal-block">\DeclareStringOption[1.125]{scaled} + +\ProcessKeyvalOptions* +</pre> +</div> +</div> +<div class="section" id="implementation"> +<h1>Implementation</h1> +<div class="section" id="scaling"> +<h2>Scaling</h2> +<p>Define the font family <tt class="literal">pzcm</tt> as a scaled variant of <tt class="literal">pzc</tt>:</p> +<pre class="literal-block">\DeclareFontFamily{OT1}{pzcm}{} +\DeclareFontShape{OT1}{pzcm}{mb}{it}{<-> s * [\pzccal@scaled] pzcmi7t}{} +</pre> +</div> +<div class="section" id="setup"> +<h2>Setup</h2> +<p>As suggested in <a class="reference external" href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf">The Comprehensive LaTeX Symbol List</a>:</p> +<pre class="literal-block">\DeclareMathAlphabet{\mathpzc}{OT1}{pzcm}{mb}{it} +</pre> +</div> +<div class="section" id="alias"> +<h2>Alias</h2> +<p>Make the new alphabet available under the command specified by the +<tt class="literal">cmdname</tt> option (default: overwrite``mathcal``):</p> +<pre class="literal-block">\@namedef\pzccal@cmdname{\mathpzc} +</pre> +<div class="section" id="references"> +<h3>References</h3> +<p>Alternative LaTeX script fonts that might be useful in math:</p> +<dl class="field-list simple"> +<dt>Auriocus Kalligraphicus</dt> +<dd><p><a class="reference external" href="http://www.tug.dk/FontCatalogue/aurical/">http://www.tug.dk/FontCatalogue/aurical/</a></p> +</dd> +<dt>Calligra</dt> +<dd><p><a class="reference external" href="http://www.tug.dk/FontCatalogue/calligra/">http://www.tug.dk/FontCatalogue/calligra/</a> (bitmap)</p> +</dd> +<dt>Jana Skrivana</dt> +<dd><p><a class="reference external" href="http://www.tug.dk/FontCatalogue/janaskrivana/">http://www.tug.dk/FontCatalogue/janaskrivana/</a></p> +</dd> +<dt>Vicentino</dt> +<dd><p><a class="reference external" href="http://www.tug.dk/FontCatalogue/vicentino/">http://www.tug.dk/FontCatalogue/vicentino/</a> (bitmap)</p> +</dd> +</dl> +</div> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.pdf b/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.pdf Binary files differnew file mode 100644 index 00000000000..02422e0abae --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.pdf diff --git a/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.txt b/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.txt new file mode 100644 index 00000000000..7694f1daa7d --- /dev/null +++ b/Master/texmf-dist/doc/latex/pzccal/pzccal.sty.txt @@ -0,0 +1,105 @@ +pzccal.sty: calligraphic math alphabet with Zapf Chancery +**************************************************************** + +:Copyright: © 2008, 2010 Günter Milde +: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. + +:Identification: + :: + + \NeedsTeXFormat{LaTeX2e} + \ProvidesPackage{pzccal} + [2011/02/03 v0.1 Zapf Chancery calligraphic math alphabet] + +`The Comprehensive LaTeX Symbol List`_ by Scott Pakin describes the +use of Zapf Chancery as a mathematical alphabet that contains capital +and small Latin letters as well as digits. This allows full coverage +of the `script` Unicode Mathematical Alphabet with 8-bit LaTeX +engines. + +This package sets up the Zapf Chancery font as script (calligraphic) +math alphabet ``\mathpzc``. It provides options to scale the font and to +configure the alias command name. By default, `pzccal` overwrites the +predefined math alphabet command ``\mathcal``. + +Options +======= + +Options are defined with the key=value interface provided by +kvoptions_:: + + \RequirePackage{kvoptions} + +cmdname +------- + +The name of the math alphabet command alias (default ``\mathcal``). +An existing command is overwritten without asking. :: + + \DeclareStringOption[mathcal]{cmdname} + +mathcal, mathscr, mathpzc +------------------------- + +For compatibility with eucal_, the ``mathcal`` and ``mathscr`` options +are equivalent to ``cmdname=mathcal`` and ``cmdname=mathscr``. The +option ``mathpzc`` prevents aliasing to a new name:: + + \DeclareVoidOption{mathcal}{} % this is the default + \DeclareVoidOption{mathscr}{\renewcommand{\pzccal@cmdname}{mathscr}} + \DeclareVoidOption{mathpzc}{\renewcommand{\pzccal@cmdname}{mathpzc}} + +scaled +------ +The Zapf Chancery font can be scaled with the ``scaled`` option. The +default is to enlarge the font to get a matching size without making +it too dark:: + + \DeclareStringOption[1.125]{scaled} + + \ProcessKeyvalOptions* + +Implementation +============== + +Scaling +------- + +Define the font family ``pzcm`` as a scaled variant of ``pzc``:: + + \DeclareFontFamily{OT1}{pzcm}{} + \DeclareFontShape{OT1}{pzcm}{mb}{it}{<-> s * [\pzccal@scaled] pzcmi7t}{} + +Setup +----- + +As suggested in `The Comprehensive LaTeX Symbol List`_:: + + \DeclareMathAlphabet{\mathpzc}{OT1}{pzcm}{mb}{it} + +Alias +----- + +Make the new alphabet available under the command specified by the +``cmdname`` option (default: overwrite``\ mathcal``):: + + \@namedef\pzccal@cmdname{\mathpzc} + +References +~~~~~~~~~~ + +.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +.. _`The Comprehensive LaTeX Symbol List`: + http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf +.. _eucal: http://mirror.ctan.org/help/Catalogue/entries/eucal.html +.. _kvoptions: http://mirror.ctan.org/help/Catalogue/entries/kvoptions.html + +Alternative LaTeX script fonts that might be useful in math: + +:Auriocus Kalligraphicus: http://www.tug.dk/FontCatalogue/aurical/ +:Calligra: http://www.tug.dk/FontCatalogue/calligra/ (bitmap) +:Jana Skrivana: http://www.tug.dk/FontCatalogue/janaskrivana/ +:Vicentino: http://www.tug.dk/FontCatalogue/vicentino/ (bitmap) + diff --git a/Master/texmf-dist/tex/latex/pzccal/pzccal.sty b/Master/texmf-dist/tex/latex/pzccal/pzccal.sty new file mode 100644 index 00000000000..50a554ea23d --- /dev/null +++ b/Master/texmf-dist/tex/latex/pzccal/pzccal.sty @@ -0,0 +1,105 @@ +% pzccal.sty: calligraphic math alphabet with Zapf Chancery +% **************************************************************** +% +% :Copyright: © 2008, 2010 Günter Milde +% :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. +% +% :Identification: +% :: + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{pzccal} +[2011/02/03 v0.1 Zapf Chancery calligraphic math alphabet] + +% `The Comprehensive LaTeX Symbol List`_ by Scott Pakin describes the +% use of Zapf Chancery as a mathematical alphabet that contains capital +% and small Latin letters as well as digits. This allows full coverage +% of the `script` Unicode Mathematical Alphabet with 8-bit LaTeX +% engines. +% +% This package sets up the Zapf Chancery font as script (calligraphic) +% math alphabet ``\mathpzc``. It provides options to scale the font and to +% configure the alias command name. By default, `pzccal` overwrites the +% predefined math alphabet command ``\mathcal``. +% +% Options +% ======= +% +% Options are defined with the key=value interface provided by +% kvoptions_:: + +\RequirePackage{kvoptions} + +% cmdname +% ------- +% +% The name of the math alphabet command alias (default ``\mathcal``). +% An existing command is overwritten without asking. :: + +\DeclareStringOption[mathcal]{cmdname} + +% mathcal, mathscr, mathpzc +% ------------------------- +% +% For compatibility with eucal_, the ``mathcal`` and ``mathscr`` options +% are equivalent to ``cmdname=mathcal`` and ``cmdname=mathscr``. The +% option ``mathpzc`` prevents aliasing to a new name:: + +\DeclareVoidOption{mathcal}{} % this is the default +\DeclareVoidOption{mathscr}{\renewcommand{\pzccal@cmdname}{mathscr}} +\DeclareVoidOption{mathpzc}{\renewcommand{\pzccal@cmdname}{mathpzc}} + +% scaled +% ------ +% The Zapf Chancery font can be scaled with the ``scaled`` option. The +% default is to enlarge the font to get a matching size without making +% it too dark:: + +\DeclareStringOption[1.125]{scaled} + +\ProcessKeyvalOptions* + +% Implementation +% ============== +% +% Scaling +% ------- +% +% Define the font family ``pzcm`` as a scaled variant of ``pzc``:: + +\DeclareFontFamily{OT1}{pzcm}{} +\DeclareFontShape{OT1}{pzcm}{mb}{it}{<-> s * [\pzccal@scaled] pzcmi7t}{} + +% Setup +% ----- + +% As suggested in `The Comprehensive LaTeX Symbol List`_:: + +\DeclareMathAlphabet{\mathpzc}{OT1}{pzcm}{mb}{it} + +% Alias +% ----- +% +% Make the new alphabet available under the command specified by the +% ``cmdname`` option (default: overwrite``\ mathcal``):: + +\@namedef\pzccal@cmdname{\mathpzc} + +% References +% ~~~~~~~~~~ +% +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _`The Comprehensive LaTeX Symbol List`: +% http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf +% .. _eucal: http://mirror.ctan.org/help/Catalogue/entries/eucal.html +% .. _kvoptions: http://mirror.ctan.org/help/Catalogue/entries/kvoptions.html +% +% Alternative LaTeX script fonts that might be useful in math: +% +% :Auriocus Kalligraphicus: http://www.tug.dk/FontCatalogue/aurical/ +% :Calligra: http://www.tug.dk/FontCatalogue/calligra/ (bitmap) +% :Jana Skrivana: http://www.tug.dk/FontCatalogue/janaskrivana/ +% :Vicentino: http://www.tug.dk/FontCatalogue/vicentino/ (bitmap) +% |