summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-05 00:36:08 +0000
committerKarl Berry <karl@freefriends.org>2012-05-05 00:36:08 +0000
commit69763be32bfe1e90e08819dfc251c1fbf1d0b8a7 (patch)
treebc0f5acb0eb3f69ae1521058cc6088980a895337 /Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex
parent779adbaa19cc8f97203ea9938e435799989240b4 (diff)
new latex package substitutefont 0.1.1 (30apr12)
git-svn-id: svn://tug.org/texlive/trunk@26199 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex')
-rw-r--r--Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex49
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex b/Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex
new file mode 100644
index 00000000000..43ea44b17f2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/substitutefont/test-txtt.tex
@@ -0,0 +1,49 @@
+% Example and test for the substitutefont package:
+\documentclass{minimal}
+\usepackage{lmodern}
+\usepackage{parskip}
+\usepackage[T1]{fontenc}
+\pagestyle{empty}
+
+\usepackage{substitutefont}
+\substitutefont{T1}{txtt}{cmtt}
+
+% Teststring
+\newcommand{\alphabet}{
+ABGDEZHJIKLMNXOPRSTUFQYW
+abgdezhjiklmnxoprsctufqyw
+}
+
+\begin{document}
+
+The Computer Modern and Latin Modern fonts provide a monospaced font only in
+upright shape. The \emph{txfonts} package comes with a nice monospaced font
+in the common shapes and real small caps.\\
+
+
+Normal: \alphabet
+
+Italic: \textit{\alphabet}
+
+Slanted: \textsl{\alphabet}
+
+Bold: \textbf{\alphabet}
+
+Bold Italic: \textbf{\textit\alphabet}
+
+Small-Caps: \textsc{\alphabet}
+
+Monospaced: \texttt{\alphabet}
+
+Monospaced Bold: \texttt{\textbf \alphabet}
+
+Monospaced Italic: \texttt{\textit \alphabet}
+
+Monospaced Slanted: \texttt{\textsl \alphabet}
+
+Monospaced Bold Slanted: \texttt{\textbf{\textit \alphabet}}
+
+Monospaced Small-Caps: \texttt{\textsc \alphabet}
+
+
+\end{document}