Debian Codegraph @

texmf-dist/doc/latex/ocr-latex/ocr.tex

raw
1 \documentclass{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[utf8]{inputenc}
4 \usepackage{listings,tabularx}
5 \title{The \texttt{ocr} package\medskip\\
6 \large\LaTeX\ support for the OCR fonts (Optical Chatacter
7 Recognition fonts)}
8 \author{version 1.0 \today}
9 \lstset{language=[latex]tex,breaklines=true}
10 \date{Palle J\o rgensen}
11 \newcommand*\ocrfont[1]{{\fontencoding{OT1}\fontfamily{#1}\selectfont 123}}
12 \newcommand*\sourcefile[1]{\subsection{#1}
13 \lstinputlisting{#1}}
14
15 \begin{document}
16 \maketitle
17 \section{Introduction}
18 \label{sec:introduction}
19 The \texttt{ocr} package provides support for the OCR fonts.
20 The OCR fonts are already installed on many systems, this is only
21 support for using the OCR fonts with \LaTeX.
22
23 The license of the ocr pcakage and the related files is GNU General
24 Public License.
25
26 \clearpage
27 \section{Using the ocr package}
28 \label{sec:using-OCR-fonts}
29
30 \subsection{Package options}
31 \label{sec:package-options}
32
33 The \texttt{ocr} package has the following options\bigskip
34
35 \noindent\begin{tabularx}{\linewidth}{>\ttfamily lXlX}
36 \hline
37 \rmfamily Option: & Effect: & Example & Comments: \\\hline
38 ocr-a & Selects the OCR font to be OCR-A & \ocrfont{ocra} \\
39 ocr-b & Selects the OCR font to be OCR-B & \ocrfont{ocrb} & Default \\
40 ocr-b-outline & Selects the OCR font to be an outline of
41 OCR-B & \ocrfont{ocrbo} \\
42 ocr-b-negative & Selects the OCR font to be a negative OCR-B & \ocrfont{ocrbn} \\
43 ocr-b-sharp & Selects the OCR font to be a ``sharp'' OCR-B
44 & \ocrfont{ocrbs} & The sharp fonts are not constructed properly. Use
45 with care \\
46 ocr-b-sharp-negative & Selects the OCR font to be a negative
47 ``sharp'' OCR-B & \ocrfont{ocrbns} & The sharp fonts are not constructed properly. Use
48 with care \\\hline
49 \end{tabularx}
50
51 \subsection{Commands}
52 \label{sec:commands}
53
54 If you want some text typeset with the selected OCR font for a short
55 text you can use the command \verb+\ocr+; ie.\ \verb+\ocr{cheese}+.
56
57 It is possible to use the command \verb+\ocrfamily+ but this command
58 also changes the current fontencoding; use with caution\dots
59
60 \subsubsection{Negative fonts}
61 \label{sec:negative-fonts}
62
63 If you have selectec the option \verb+ocr-b+ or \verb+ocr-b-sharp+ it
64 is possible to use the command \verb+\ocrneg+ which typsesets the text
65 with the ``negative'' of the selected OCR font.
66
67 \clearpage
68 \section{Source of the files in the OCR bundle}
69 \label{sec:source}
70
71 \sourcefile{ocr.sty}
72 \sourcefile{ot1oca.fd}
73 \sourcefile{ot1ocra.fd}
74 \sourcefile{ot1ocrb.fd}
75 \sourcefile{ot1ocrbn.fd}
76 \sourcefile{ot1ocrbns.fd}
77 \clearpage
78 \sourcefile{ot1ocrbo.fd}
79 \sourcefile{ot1ocrbs.fd}
80
81
82 \end{document}
83
84 %%% Local Variables:
85 %%% mode: latex
86 %%% TeX-master: t
87 %%% End: