|home| |classes| |research|

khm: a new LaTeX package for typesetting German documents in broken letters (gebrochenen Schriften)

Copyright © Yoshi Nagata
Created: March 22, 2003
Updated: 2022-05-27 11:50:26 [JST: UTC+9] March 16, 2011
Comment to: mail_address

Files available to download

khm.zip (771KB) khmpackage.pdf, textdatabase1819khm.pdf (manuals in Japanese)


Contents

What is it?

The khm-package provides

  1. TeX virtual fonts for T1 variants of Haralambous' broken typefaces yfrak, yswab and ygoth: ntfrak, ntfrakls, ntswab and ntgoth. These are specially arranged from T. Bronger's tfrak, tfrakls, tswab, tgoth and D. Taupin's cmfrak and dcfrak in order to make them possible to be processed properly in "German" texts. See: "Table 1: Broken Letters in Comparison"
  2. khm.sty, which includes a set of LaTeX control sequences for typesetting German texts in broken letters. See: "Table 2: Automatic switching from the same input-form to two different Umlaut types"

Table 1: Broken Letters in Comparison: G for good, NG for not good, letter-strings in parentheses are input forms.
yfrak + yfonts.sty fkt1rm[dcfrak] + mf-frak.sty tfrak ntfrak + khm.sty
Apostroph apostroph (geht's:) G apostroph (geht's:) NG apostroph (geht's) G apostroph (geht's) G
Gänsefüßchen gaensefuesschen (``Deutsch'') or ({\glqq}Deutsch{\qrqq}) NG gaensefuesschen (``Deutsch'') or ({\glqq}Deutsch{\qrqq}) G gaensefuesschen (,,Deutsch`` or {\glqq}Deutsch{\grqq}) NG gaensefuesschen (,,Deutsch``) or ({\glqq}Deutsch{\grqq}) G
halbe Anführungszeichen halbe anfuehrungszeichen ({\glq}halb{\grq}) NG halbe anfuehrungszeichen (,halb`) G halbe anfuehrungszeichen ({\glq}halb{\grq}) NG halbe anfuehrungszeichen (,halb`) or ({\glq}halb{\grq} ) G
a-Umlaut mit e-chen e-chen Umlaut (K*afer) G e-chen Umlaut (K*afer) G nonexistent NG e-chen Umlaut (K"afer) or (K*afer) G
A-Umlaut mit Pünktchen nonexistent NG A-Umlaut ("Arger) G A-Umlaut ("Arger) G A-Umlaut ("Arger) G
was passiert mit bloßer Eingabe »aus«? langes es NG langes es NG rundes es G rundes es G
wie soll man eingeben für ausgeben? (aus:geben) NG[*] (aus:geben) NG[*] (aus"|geben) or (aus\/geben) G[*] (aus"|geben) or (aus\/geben) G[*]
wird ein Leerzeichen automatisch eingefügt vor einem zweiteiligen Satzzeichen [! ? : ;] ? wenn man z. B. eingibt »wie:« wief NG wief NG wierG wier G
was passiert mit der Eingabe »ich preis'«? preisrG preisf2 NG preisf1 NG preisrG

[*]: Input form (aus"|geben) is more ideal because it is the same as of what is defined in german.sty for the ligature unbinding: (Auf"|lage).

Table 2: Automatic switching from the same input-form to two different Umlaut types
input-form using \usepackage{khm} using \usepackage[varumlaut]{khm}
K"afer umlaut mit puenktchen umlaut mit e-chen
"Arger umlaut mit puenktchen aerger

contentsback to contents

Installation


Note:

  1. Make sure that your DVI driver can handle virtual fonts.
  2. cmfrak font (http://www.tex.ac.uk/tex-archive/fonts/gothic/cmfrak/) should already be installed in your LaTeX system.
  3. Haralambous's fonts (http://www.tex.ac.uk/tex-archive/fonts/gothic/yfrak/, http://www.tex.ac.uk/tex-archive/fonts/gothic/ygoth/, http://www.tex.ac.uk/tex-archive/fonts/gothic/yinit/, http://www.tex.ac.uk/tex-archive/fonts/gothic/yswab/) should also exisist in your system.
  4. The lettrine.sty LaTeX-stylefile is additionally required when you typeset khm53var.tex(khm53var.tex is one of the sample test files).

Download khm.zip (771KB). Copy the *.mf, *.pfb, *.tfm, *.vf, *.sty, *.tex and *.map files on where your TeX system can find them. Only you have to do is normally to unzip khm.zip file on /usr/local.

The files are to be installed:

*.mf
$TEXMFMAIN/fonts/source/public/gothic
*.pfb
$TEXMFMAIN/fonts/type1/public/gothic
*.tfm
$TEXMFMAIN/fonts/tfm/public/gothic
*.vf
$TEXMFMAIN/fonts/vf/public/gothic
*.sty
$TEXMFMAIN/tex/latex/khm
*.tex
$TEXMFMAIN/tex/latex/khm
*.map
$TEXMFMAIN/dvips/config

Edit $TEXMFMAIN/dvips/config/config.ps and $TEXMFMAIN/dvips/config/config.pdf and add the following line at the end of each file.

Edit $TEXMFMAIN/pdftex/base/pdftex.cfg and add the following line at the end of the file.

contentsback to contents

Test of typesetting

Compile the LaTeX source files *.tex (which you might find at $TEXMFMAIN/tex/latex/khm) as below:

  1. khm*test.tex
    1. latex khm*test (khm*test.tex --> khm*test.dvi)
    2. dvipdfm khmtest (khm*test.dvi --> khm*test.pdf)
    3. dvips -Ppdf khm*test (khm*test.dvi --> khm*test.ps)
    4. pdflatex khm*test (khm*test.tex --> khm*test.pdf)
  2. khm53*.tex
    1. latex khm53*
      latex khm53* (khm53*.tex --> khm53*.dvi)
    2. dvipdfm khm53* (khm53*.dvi --> khm53*.pdf)
    3. dvips -Ppdf khm53* (khm53*.dvi --> khm53*.ps)
    4. pdflatex khm53*
      pdflatex khm53* (khm53*.tex --> khm53*.pdf)

The output images of these test files are as below. (khmvartest.tex, khm53var.tex)

khmvartest

khm53var

contentsback to contents

contentsback to KHM 2. Ausgabe 1819