• No results found

The twcal package

N/A
N/A
Protected

Academic year: 2021

Share "The twcal package"

Copied!
3
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The twcal package

for use with L

A

TEX2e

Gerd Neugebauer

Im Lerchelsb¨

ohl 5

64521 Groß-Gerau

Germany

gene@gerd-neugebauer.de

2012/04/10

1

Introduction

The METAFONT font twcal provides a calligraphic font. This font has been written by Thomas Weinmann. It can be found on the CTAN in the directory tex-archive/fonts/twcal. This package provides means to use this font.

This package has been created for an article in

”Die TEXnische Kom¨odie“ [1]. This article contains some more details on the package and its use.

2

Usage

This file can be used as a package by placing its name in the argument of \usepackage. Afterwards the font family twcal is defined. This could also have been done by providing a font definition file.

The command \twcal changes the current font family to twcal and the

encod-\twcal

ing to OT1. Usually this should be used in a TEX group only since it changes the font encoding and redefines the umlaut macro.

The following example on the left produces the result on the right.

This file has version number v1.3, dated 2012/04/10.

(2)

{\twcal Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. }

LoŸm ipum dolor Ä a“t, con†cŽ-ur adipiicin lÄ, …d do iumod Žmpor incididuÁ ¦ laboŸ Ô do-loŸ magna aliqua . Ut nim ad minim £niam, qui noˆrud xercĹion u-lamco labori nii ¦ aliquip _ a commodo con†qu¹. Dui aª iruŸ dolor in ŸpŸ‘nŠrÄ in voluä½ £lÄ † ciƒum doloŸ u fugi¹ nuƒa pari¹ur. Exceåur iÁ occaec¹ cu-pid¹¹ non proiŠÁ, uÁ in culpa qui o€icia Š†ruÁ moƒÄ anim id ˆ laborum .

The macro \texttwcal typesets its argument in the twcal font.

\texttwcal

The following example on the left produces the result on the right.

\texttwcal{ Lorem ipsum dolor sit} amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

LoŸm ipum dolor Ä amet, con-sectetur adipisicing elit, sed do eiusmod tempor incididunt ut la-bore et dolore magna aliqua. The command \twcallogo typesets the logo for the twcal font as defined by

\twcallogo

the author of the font.

The following example on the left produces the result on the right.

\twcallogo TWCAL14

References

[1] Gerd Neugebauer. Von

”krakelig“ bis”wie gemalt“. Die TEXnische Kom¨odie, 1/96:25–42, June 1996.

3

Implementation

First we declare a new font family for the twcal font.

\DeclareFontFamily{OT1}{twcal}{}

This font is only available in the normal shape. Here we can get the desired font by (silently) scaling the only present fonts.

\DeclareFontFamily{OT1}{twcal}{}

\DeclareFontShape{OT1}{twcal}{m}{n}{<->s*[0.7]twcal14}{}

Next we define some macros to perform the mapping of umlaut characters to the unusual positions used in this font.

\newcommand\twcal@a{\char26} \newcommand\twcal@o{\char27} \newcommand\twcal@u{\char28} \newcommand\twcal@A{\char29}

(3)

\newcommand\twcal@O{\char30} \newcommand\twcal@U{\char31}

Now we define the font changing command.

\twcal The macro \twcal selects the twcal family.

\DeclareRobustCommand\twcal{% \let\twcal@original@umlaut=\" \def\"##1{% \@ifundefined{twcal@##1}{% \twcal@original@umlaut{##1}}{% \@nameuse{twcal@##1}}}% \fontfamily{twcal}% \fontencoding{OT1}% \selectfont}

\texttwcal The macro \texttwcal typesets its argument in the twcal font.

\newcommand\texttwcal[1]{\begingroup\twcal #1\endgroup}

\twcallogo Finally we provide the logo for this font as defined by the author of the font.

\newcommand\twcallogo{\mbox{\({ \lower-0.3ex\hbox{T}\kern-0.22em \lower0.3ex\hbox{W}\kern-0em \lower-0.3ex\hbox{C}\kern-0.24em \lower0.3ex\hbox{A}\kern-0.14em \lower-0.3ex\hbox{L}}\kern-0.19em \lower0.1ex\hbox{1}\kern-0.14em \lower-0.1ex\hbox{4}\)}}

Change History

v1.0

General: First release. . . 1 v1.1

General: Macro texttwcal added. . 1 v1.2

General: Some commands made

ro-bust. . . 1 v1.3

General: License clarified and ad-dress updated. . . 1

Index

Numbers written in italic refer to the page where the corresponding entry is de-scribed; numbers underlined refer to the definition; numbers in roman refer to the pages where the entry is used.

T

\texttwcal . . . 2, 3

\twcal . . . 1, 3 \twcallogo . . . 2, 3

Referenties

GERELATEERDE DOCUMENTEN

Praesent pretium, magna in eleifend egestas, pede pede pretium lorem, quis consectetuer tortor sapien facilisis magna.. Mauris quis magna varius nulla

Cras sagittis Shannon (1948), nibh id blandit viverra, purus lacus dignissim nisl, id ultrices turpis arcu sit amet enim.. Vestibulum aliquet lorem sit

Donec pellentesque, erat ac sagittis semper, nunc dui lobortis purus, quis congue purus metus ultricies tellus.. Proin

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.. Lorem ipsum dolor sit

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque sit amet pede ac sem eleifend consectetuer.. Nullam elementum, urna vel

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.. Ut enim ad minim veniam, quis nostrud exercitation

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.. Löffler (1996a) Lorem

Donec pellentesque, erat ac sagittis sem- per, nunc dui lobortis purus, quis congue purus metus ultricies tellus.. Proin