summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/aeguill/guil-test2.tex
blob: 6d8b2b6f82ff064a9389e3cdc799be53584d83d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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}