What are some good resources for understanding the command definitions in LaTeX packages? For example understanding commands in a definition such as this:.
\makeatletter
\def\vectfill@{\traitfill@\relbaredd\relbareda\fldr}
%\end{macrocode}
%Construction of the arrow:
% \begin{macrocode}
\def\traitfill@#1#2#3#4{%
$\m@th\mkern2mu\relax#4#1\mkern0mu%on met \relbaredd au d\’ebut
\cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill%remplit avec relbareda
\mkern0mu#3$%
}
Last edited by ghostanime2001 on Fri Jun 14, 2013 7:15 pm, edited 1 time in total.
I think you mean "Knuth" as TeXbook because there is no PDF file from the link that you provided. Also is there a way to make this definition into a \newcommand macro? I would like to use several customized macro for different settings.
how would I define several versions of this code with length parameters into several macros? the only way I know is with \newcommand but substituting this code messes up.
\makeatletter
\def\vectfill@{\traitfill@\relbaredd\relbareda\fldr}
%\end{macrocode}
%Construction of the arrow:
% \begin{macrocode}
\def\traitfill@#1#2#3#4{%
$\m@th\mkern2mu\relax#4#1\mkern0mu%on met \relbaredd au d\’ebut
\cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill%remplit avec relbareda
\mkern0mu#3$%
}
I must say I don't really understand what goal you're after in the end. Maybe you can elaborate on what the final code should be able to do. Then it would be easier to give specific help.