Enscript

Aus RegioWIKI

Wechseln zu: Navigation, Suche

Zurück zur: 4win(R)_FIBU#Enscript_Installation

Inhaltsverzeichnis

Fonts in a2ps anmelden

Mit nano /etc/a2ps.cfg die Config-Datei öffnen und folgende Zeile ergänzen:

# It may be useful to extend it so that a2ps can see some
# TeX or X11 resources: it likes AFM files and PF[AB] files.
AppendLibraryPath: /windows/fonts
  • This script asks a2ps for the library path, wanders in this path collecting AFM files, and digging information in them.
  • Once the script has finished, a file `fonts.map.new' was created. Check its integrity, and if it's correct, either replace the old `fonts.map' with it, or rename `fonts.map.new' as `fonts.map' and place it higher in the the library path (for instance in your `~/.a2ps/' directory).
cd /usr/share/a2ps/afm/
make_fonts_map.sh
cp fonts.map.new fonts.map

A2PS and ENSCRIPT Options

Postscript

PdfLaTex

pdfTex

PDF Lib Links

Links

Links zu Fonts


  • Courier New COUR*.TTF
  • Lucida Console LUCON.TTF
  • Andale Mono ANDALEMO.TTF
  • Letter Gothic MT LC*.TTF
  • MS Linedraw LINEDRAW.TTF



  • use one of several TrueType fonts encoded in CodePage 437: MS
  • LineDraw (LINEDRAW.TTF), HyperFont (HYPERTT.TTF), Letter Gothic Line
  • (LETGOTHL.TTF)

Enscript ascii2ps

Informationen zur installierten Software enscript

apt-get install enscript
  • Mit dem Programm enscript können ASCII-Textdateien in das Postscript-Format umgewandelt werden.
  • Postscript ist eine geräteunabhängige Seitenbeschreibungssprache, mit der Dokumente beliebigen Inhalts (Texte, Zeichnungen, Bilder) erstellt und auf Ausgabegeräten, die hard- oder softwareseitig mit einem Postscript-Interpreter ausgestattet sind, ausgedruckt werden können.

Syntax

  • Mit einem Kommando in der Form
enscript [optionen] -p psdatei.ps textdatei[.txt]

wird die ASCII-Textdatei textdatei[.txt] in das Postscript-Format umgewandelt und das Ergebnis in der Datei mit dem Namen psdatei.ps abgelegt. Die hierbei möglichen Optionen sind in der Manual-Page beschrieben.

man enscript
  • Print file foo.txt to the default printer.
enscript foo.txt
  • Print file foo.txt to printer ossu.
enscript -Possu foo.txt
  • Print file foo.txt, but leave PostScript output to file foo.ps.
enscript -pfoo.ps foo.txt
  • Print file foo.txt to two columns.
enscript -2 foo.txt
  • Print file to two columns and rotate output 90 degrees (landscape).
enscript -2r foo.txt
  • Print file in duplex (two side) mode (printer dependant).
enscript -DDuplex:true foo.txt
  • My default code printing command: gaudy header, two columns, landscape, code highlighting, 2-up printing.
enscript -G2rE -U2 foo.c
  • A nice HTML report of your project’s C source files
enscript -E --color -whtml --toc -pfoo.html *.h *.c

-X name, --encoding=name

  • Use the input encoding name. Currently enscript supports the following encodings:
  • 88591, latin1 = ISO-8859-1 (ISO Latin1) (enscript’s default encoding).
  • 88592, latin2 = ISO-8859-2 (ISO Latin2)
  • 88593, latin3 = ISO-8859-3 (ISO Latin3)
  • 88594, latin4 = ISO-8859-4 (ISO Latin4)
  • 88595, cyrillic = ISO-8859-5 (ISO Cyrillic)
  • 88597, greek = ISO-8859-7 (ISO Greek)
  • 88599, latin5 = ISO-8859-9 (ISO Latin5)
  • 885910, latin6 = ISO-8859-10 (ISO Latin6)
  • ascii = 7-bit ascii
  • asciifise, asciifi, asciise = 7-bit ascii with some scandinavian (Finland, Sweden) extensions
  • asciidkno, asciidk, asciino = 7-bit ascii with some scandinavian (Denmark, Norway) extensions
  • ibmpc, pc, dos = IBM PC charset
  • mac = Mac charset
  • vms = VMS multinational charset
  • hp8 = HP Roman-8 charset
  • koi8 = Adobe Standard Cyrillic Font KOI8 charset
  • ps, PS = PostScript font’s default encoding
  • pslatin1, ISOLatin1Encoding = PostScript interpreter’s ‘ISOLatin1Encoding’
Persönliche Werkzeuge