| 1 |
\def\filename{calligra.dtx} |
| 2 |
\def\fileversion{1.11} |
| 3 |
\def\filedate{2026/05/19} |
| 4 |
\let\docversion=\fileversion |
| 5 |
\let\docdate=\filedate |
| 6 |
% \iffalse meta-comment |
| 7 |
% |
| 8 |
% Copyright 1996-2026 by Gerd Neugebauer |
| 9 |
% |
| 10 |
% This file may be distributed and/or modified under the conditions |
| 11 |
% of the LaTeX Project Public License, either version 1.3c of this |
| 12 |
% license or (at your option) any later version. The latest version |
| 13 |
% of this license is in http://www.latex-project.org/lppl.txt and |
| 14 |
% version 1.3c or later is part of all distributions of LaTeX |
| 15 |
% version 2005/12/01 or later. |
| 16 |
% |
| 17 |
% This file has the LPPL maintenance status "maintained". |
| 18 |
% |
| 19 |
% \fi |
| 20 |
% \iffalse |
| 21 |
%%% File: calligra.dtx |
| 22 |
%% Copyright (C) 1996-2026 Gerd Neugebauer |
| 23 |
%% all rights reserved. |
| 24 |
%<package>\NeedsTeXFormat{LaTeX2e} |
| 25 |
%<package>\ProvidesPackage{calligra}[2026/05/19 v1.11 LaTeX package calligra] |
| 26 |
%<*driver> |
| 27 |
\documentclass{ltxdoc} |
| 28 |
\usepackage{german} |
| 29 |
\selectlanguage{\english} |
| 30 |
\usepackage{calligra} |
| 31 |
\GetFileInfo{calligra.sty} |
| 32 |
\RecordChanges |
| 33 |
\PageIndex |
| 34 |
\begin{document} |
| 35 |
\title{The \texttt{calligra} package\thanks |
| 36 |
{This file has version number \fileversion, dated \filedate.}\\ |
| 37 |
for use with \LaTeX2e} |
| 38 |
\author{Gerd Neugebauer\\Brechklinge 10\\69256 Mauer\\Germany\\ |
| 39 |
\texttt{[email protected]}} |
| 40 |
\date{\docdate} |
| 41 |
\maketitle |
| 42 |
\DocInput{calligra.dtx} |
| 43 |
\end{document} |
| 44 |
%</driver> |
| 45 |
% \fi |
| 46 |
% |
| 47 |
% \CheckSum{22} |
| 48 |
%% \CharacterTable |
| 49 |
%% {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 |
| 50 |
%% 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 |
| 51 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 52 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 53 |
%% Dollar \$ Percent \% Ampersand \& |
| 54 |
%% Acute accent \' Left paren \( Right paren \) |
| 55 |
%% Asterisk \* Plus \+ Comma \, |
| 56 |
%% Minus \- Point \. Solidus \/ |
| 57 |
%% Colon \: Semicolon \; Less than \< |
| 58 |
%% Equals \= Greater than \> Question mark \? |
| 59 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 60 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 61 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 62 |
%% Right brace \} Tilde \~} |
| 63 |
% |
| 64 |
% \changes{v1.0}{1996/03/03}{First release.} |
| 65 |
% \changes{v1.1}{1996//0519}{Macro textcalligra added.} |
| 66 |
% \changes{v1.2}{1996/07/18}{Some commands made robust.} |
| 67 |
% \changes{v1.9}{2012/04/10}{License clarified and address updated.} |
| 68 |
% \changes{v1.10}{2026/05/18}{Address updated.} |
| 69 |
% \changes{v1.11}{2026/05/19}{Minor fixes for CTAN.} |
| 70 |
% |
| 71 |
% |
| 72 |
% \section{Introduction} |
| 73 |
% |
| 74 |
% The font calligra provides a calligraphic font. Calligra can be |
| 75 |
% found on the CTAN in the |
| 76 |
% directory \texttt{tex-archive/fonts/calligra}. This package |
| 77 |
% provides means to use this font in \LaTeXe. |
| 78 |
% |
| 79 |
% This package has been created for an article in "`Die \TeX nische |
| 80 |
% Kom\"odie"' \cite{dtk96.1:neugebauer:krakelig}. This article |
| 81 |
% contains some more details on the package and its use. |
| 82 |
% |
| 83 |
% |
| 84 |
% \section{Usage} |
| 85 |
% |
| 86 |
% This file can be used as a package by placing its name in the |
| 87 |
% argument of |\usepackage|. Afterwards the font family calligra is |
| 88 |
% defined. This could also have been done by providing a font |
| 89 |
% definition file. |
| 90 |
% |
| 91 |
% The font definitions in this file scale down the original fonts |
| 92 |
% to allow \LaTeX{} to choose the right baselineskip. |
| 93 |
% |
| 94 |
% |
| 95 |
% \DescribeMacro{\calligra} The command |\calligra| changes the |
| 96 |
% current font family to calligra and the encoding to T1. Usually |
| 97 |
% this should be used in a \TeX{} group only since the macros |\ss| |
| 98 |
% is redefined as well. |
| 99 |
% |
| 100 |
% The following example on the left produces the result on the |
| 101 |
% right.\smallskip |
| 102 |
% |
| 103 |
% \noindent |
| 104 |
% \begin{minipage}{.55\textwidth}\small\tt\raggedright |
| 105 |
% \verb|{\calligra| Lorem ipsum dolor sit amet, consectetur |
| 106 |
% adipisicing elit, sed do eiusmod tempor incididunt ut labore et |
| 107 |
% dolore magna aliqua. Ut enim ad minim veniam, quis nostrud |
| 108 |
% exercitation ullamco laboris nisi ut aliquip ex ea commodo |
| 109 |
% consequat. Duis aute irure dolor in reprehenderit in voluptate |
| 110 |
% velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint |
| 111 |
% occaecat cupidatat non proident, sunt in culpa qui officia |
| 112 |
% deserunt mollit anim id est |
| 113 |
% laborum. \verb|}| \end{minipage}\hfill |
| 114 |
% \begin{minipage}{.40\textwidth} |
| 115 |
% \calligra Lorem ipsum dolor sit amet, consectetur adipisicing |
| 116 |
% elit, sed do eiusmod tempor incididunt ut labore et dolore magna |
| 117 |
% aliqua. Ut enim ad minim veniam, quis nostrud exercitation |
| 118 |
% ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis |
| 119 |
% aute irure dolor in reprehenderit in voluptate velit esse cillum |
| 120 |
% dolore eu fugiat nulla pariatur. Excepteur sint occaecat |
| 121 |
% cupidatat non proident, sunt in culpa qui officia deserunt mollit |
| 122 |
% anim id est laborum. \end{minipage} |
| 123 |
% \medskip |
| 124 |
% |
| 125 |
% \DescribeMacro{\textcalligra} The command |\textcalligra| |
| 126 |
% typesets its argument with the calligra font. |
| 127 |
% |
| 128 |
% The following example on the left produces the result on the |
| 129 |
% right.\smallskip |
| 130 |
% |
| 131 |
% \noindent |
| 132 |
% \begin{minipage}{.55\textwidth}\small\tt\raggedright |
| 133 |
% \verb|\textcalligra{| Lorem ipsum dolor sit\verb|}| amet, |
| 134 |
% consectetur adipisicing elit, sed do eiusmod tempor incididunt ut |
| 135 |
% labore et dolore magna aliqua.\end{minipage}\hfill |
| 136 |
% \begin{minipage}{.40\textwidth} |
| 137 |
% \textcalligra{Lorem ipsum dolor sit} amet, consectetur adipisicing |
| 138 |
% elit, sed do eiusmod tempor incididunt ut labore et dolore magna |
| 139 |
% aliqua. \end{minipage} |
| 140 |
% \medskip |
| 141 |
% |
| 142 |
% \begin{minipage}{.55\textwidth}\small\tt |
| 143 |
% \verb|\textcalligra{Mainzer Stra\ss e}|\end{minipage}\hfill |
| 144 |
% \begin{minipage}{.40\textwidth} |
| 145 |
% \textcalligra{Mainzer Stra\ss e} \end{minipage} |
| 146 |
% \medskip |
| 147 |
% |
| 148 |
% |
| 149 |
% \begin{thebibliography}{1} |
| 150 |
% |
| 151 |
% \bibitem{dtk96.1:neugebauer:krakelig} |
| 152 |
% Gerd Neugebauer. |
| 153 |
% \newblock Von {\glqq}krakelig{\grqq} bis {\glqq}wie gemalt{\grqq}. |
| 154 |
% \newblock {\em {D}ie {\TeX}nische {K}om{\"o}die}, 1/96:25--42, June 1996. |
| 155 |
% |
| 156 |
% \end{thebibliography} |
| 157 |
% |
| 158 |
% \StopEventually{} |
| 159 |
% |
| 160 |
% |
| 161 |
% \section{Implementation} |
| 162 |
% |
| 163 |
% |
| 164 |
% First we declare a new font family for the calligra font. |
| 165 |
% \begin{macrocode} |
| 166 |
\DeclareFontFamily{T1}{calligra}{} |
| 167 |
% \end{macrocode} |
| 168 |
% |
| 169 |
% This font is only available in the normal shape. Here we can get the |
| 170 |
% desired font by (silently) scaling the only present calligra15. The |
| 171 |
% appropriate factor seems to be magstep 2 = 1.44. |
| 172 |
% |
| 173 |
% \begin{macrocode} |
| 174 |
\DeclareFontShape{T1}{calligra}{m}{n}{<->s*[1.44]callig15}{} |
| 175 |
% \end{macrocode} |
| 176 |
% |
| 177 |
% Now we define the font changing command. |
| 178 |
% |
| 179 |
% \begin{macro}{\calligra} |
| 180 |
% The macro |\calligra| selects the calligra family. Since the kerning |
| 181 |
% of the \ss{} is terribly wrong we correct it within the macro |\ss|. |
| 182 |
% \begin{macrocode} |
| 183 |
\DeclareRobustCommand\calligra{% |
| 184 |
\renewcommand\ss{\symbol{255}\kern-.22em}% |
| 185 |
\fontfamily{calligra}% |
| 186 |
\fontencoding{T1}% |
| 187 |
\selectfont} |
| 188 |
% \end{macrocode} |
| 189 |
% \end{macro} |
| 190 |
% |
| 191 |
% |
| 192 |
% \begin{macro}{\textcalligra} |
| 193 |
% The macro |\textcalligra| typesets its argument with the calligra font. |
| 194 |
% \begin{macrocode} |
| 195 |
\newcommand\textcalligra[1]{\begingroup |
| 196 |
\renewcommand\ss{\symbol{255}\kern-.22em}% |
| 197 |
\fontfamily{calligra}% |
| 198 |
\fontencoding{T1}% |
| 199 |
\selectfont #1\endgroup} |
| 200 |
% \end{macrocode} |
| 201 |
% \end{macro} |
| 202 |
% |
| 203 |
% \PrintChanges |
| 204 |
% \PrintIndex |
| 205 |
% |
| 206 |
% \Finale |
| 207 |
% |
| 208 |
\endinput |