summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/aeguill/guil-test2.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/aeguill/guil-test2.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/aeguill/guil-test2.tex')
-rw-r--r--macros/latex/contrib/aeguill/guil-test2.tex74
1 files changed, 74 insertions, 0 deletions
diff --git a/macros/latex/contrib/aeguill/guil-test2.tex b/macros/latex/contrib/aeguill/guil-test2.tex
new file mode 100644
index 0000000000..6d8b2b6f82
--- /dev/null
+++ b/macros/latex/contrib/aeguill/guil-test2.tex
@@ -0,0 +1,74 @@
+% This file was kindly provided by Rolf Niepraschk and shows the
+% differences between the various guillemets, without using the aeguill
+% package. D. Roegel, 2000/05/22.
+%
+% guil-test2.tex
+
+% Rolf Niepraschk, 2000/05/20, email: niepraschk@ptb.de
+% Denis Roegel, 2003/08/02: updated for LM fonts
+
+% dvips -Pwww -Ppl guil-test.dvi -o guil-test.ps
+
+\documentclass[a4paper,11pt]{article}
+\usepackage[T1,OT2,OT4]{fontenc}
+
+\listfiles
+
+\setlength{\parindent}{0pt}
+
+\newcommand\CyrGuillemot{%
+ \def\selectguillfont{\fontencoding{OT2}\fontfamily{wncyr}\selectfont}
+ \def\guillemotleft{\selectguillfont\symbol{60}}
+ \def\guillemotright{\selectguillfont\symbol{62}}
+}
+
+\newcommand\PlGuillemot{%
+ \def\selectguillfont{\fontencoding{OT4}\fontfamily{cmr}\selectfont}
+ \def\guillemotleft{\selectguillfont\symbol{174}}
+ \def\guillemotright{\selectguillfont\symbol{175}}
+}
+
+\newcommand\LaGuillemot{%
+ \def\selectguillfont{\fontencoding{U}\fontfamily{lasy}%
+ \fontseries{m}\fontshape{n}\selectfont}
+ \def\guillemotleft{\selectguillfont\hbox{\symbol{40}%
+ \kern-0.20em\symbol{40}}}
+ \def\guillemotright{\selectguillfont\hbox{\symbol{41}%
+ \kern-0.20em\symbol{41}}}
+}
+
+\newcommand\ECGuillemot{%
+ \def\selectguillfont{\fontencoding{T1}\fontfamily{cmr}\selectfont}
+ \def\guillemotleft{\selectguillfont\symbol{19}}
+ \def\guillemotright{\selectguillfont\symbol{20}}
+}
+
+\newcommand\LMGuillemot{%
+ \def\selectguillfont{\fontencoding{T1}\fontfamily{lmr}\selectfont}
+ \def\guillemotleft{\selectguillfont\symbol{19}}
+ \def\guillemotright{\selectguillfont\symbol{20}}
+}
+
+\newcommand\CyrGLeft{\CyrGuillemot\guillemotleft}
+\newcommand\CyrGRight{\CyrGuillemot\guillemotright}
+\newcommand\PlGLeft{\PlGuillemot\guillemotleft}
+\newcommand\PlGRight{\PlGuillemot\guillemotright}
+\newcommand\LaGLeft{\LaGuillemot\guillemotleft}
+\newcommand\LaGRight{\LaGuillemot\guillemotright}
+\newcommand\ECGLeft{\ECGuillemot\guillemotleft}
+\newcommand\ECGRight{\ECGuillemot\guillemotright}
+\newcommand\LMGLeft{\LMGuillemot\guillemotleft}
+\newcommand\LMGRight{\LMGuillemot\guillemotright}
+
+\begin{document}
+
+\begin{tabular}{l|ccccc}
+ & \textbf{wncyr} & \textbf{polish cmr}
+ & \textbf{lasy} & \textbf{ec} & \textbf{lmr} \\ \hline
+ \verb|\guillemotleft| & \CyrGLeft & \PlGLeft
+ & \LaGLeft & \ECGLeft & \LMGLeft \\
+ \verb|\guillemotright| & \CyrGRight & \PlGRight
+ & \LaGRight & \ECGRight & \LMGRight
+\end{tabular}
+
+\end{document}