| 1 |
%% File is part of the "msg" package for LaTeX |
| 2 |
%% which is designed to localize any LaTeX package |
| 3 |
%% or document class. |
| 4 |
%% |
| 5 |
%% This is the package writer's guide. |
| 6 |
%% |
| 7 |
\documentclass[10pt]{ltxdoc} |
| 8 |
\makeatletter |
| 9 |
\let\msg@MPC\MakePercentComment |
| 10 |
\let\msg@MPI\MakePercentIgnore |
| 11 |
\makeatother |
| 12 |
\usepackage[T1]{fontenc} |
| 13 |
\usepackage{lmodern}% You can remove it if you don't have that font. |
| 14 |
\usepackage{msg} |
| 15 |
\begin{document} |
| 16 |
|
| 17 |
\makeatletter |
| 18 |
\def\skipmacrocode{\macro@code\frenchspacing\@vobeyspaces\ymacro@code} |
| 19 |
\def\hardmacrocode{\macro@code\frenchspacing\@vobeyspaces\zmacro@code} |
| 20 |
\def\hard{\let\macrocode\hardmacrocode} |
| 21 |
\def\endhard{\let\macrocode\skipmacrocode} |
| 22 |
\endhard |
| 23 |
\let\endhardmacrocode\endmacrocode |
| 24 |
\catcode`\!=\catcode`\% |
| 25 |
\begingroup |
| 26 |
\catcode`\|=\z@ \catcode`\[=\@ne \catcode`\]=\tw@ |
| 27 |
\catcode`\{=12 \catcode`\}=12 |
| 28 |
\catcode`\%=12 \catcode`\ =\active \catcode`\\=\active |
| 29 |
|gdef|zmacro@code#1% \end{macrocode}[#1|end[macrocode]] |
| 30 |
|gdef|ymacro@code#1% \end{macrocode}[|end[macrocode]] |
| 31 |
|endgroup |
| 32 |
\catcode`\!=12 |
| 33 |
\makeatother |
| 34 |
\let\ifguide\iftrue\let\PrintIndex\relax |
| 35 |
|
| 36 |
\DocInput{msg.dtx} |
| 37 |
\end{document} |
| 38 |
%%%%%%%%%%%%%%%% |