% 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}
