"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/info/hevea.hva" (16 Jan 2021, 2332 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \input{text/hevea.hva}
    2 % << slight change from text/
    3 % emacs info mode does not fontify title if it's not flushed left
    4 % redefine \maketitle without env align{center}
    5 \renewcommand{\maketitle}{%
    6 \bgroup
    7 \newcommand{\checkcmd}[2]
    8 {\@ifundefined{@##1}
    9   {\hva@warn{No ##1 given}}
   10   {\usebox{\csname @##1\endcsname}##2}}%
   11 %   \@open{align}{center}%
   12 \@open{head}{*}%
   13 \usebox{\@title}\\%
   14 \@close{head}%
   15 \@open{head}{=}%H3
   16 \checkcmd{author}{\par}%
   17 \checkcmd{date}{}%
   18 \@close{head}%
   19 %   \@close{align}%
   20 \egroup%
   21 \global\let\maketitle\relax}
   22 %>>
   23 \renewcommand{\@locname}[2]{\@infoname{#1}#2}
   24 \renewcommand{\@locref}[2]
   25 {#2{\@nostyle\@print{\@reference}\{#1\}}}
   26 \renewcommand{\@locnameref}[3]
   27 {\@infoname{#1}#3{{\@nostyle\@print{\@reference}\{#2\}}}}
   28 \let\textdocument=\document
   29 \let\endtextdocument=\enddocument
   30 \renewenvironment{document}
   31 {\textdocument\@infonode{Top}{Racine}}
   32 {\newboolean{infofoot}\setboolean{infofoot}{\boolean{footer}}\footerfalse
   33 \endtextdocument\setboolean{footer}{\boolean{infofoot}}}
   34 %%%%%%%%%%% Footnotes
   35 %%%% References only from text to note
   36 \renewcommand{\@noteref}[4]
   37 {\ifthenelse{\equal{#2}{text}}
   38 {\@locref{#1#3}{#4}}
   39 {\@locname{#2#3}{#4}}}
   40 \renewcommand{\@notepointer}[3]{\@locref{#1#2}{#3}}
   41 %%%% Number footnote nodes
   42 \newcounter{footnotesflush}
   43 \newcommand{\theflush}{Notes \arabic{footnotesflush}}
   44 \newsavebox{\footflushed}
   45 \renewenvironment{thefootnotes}[1]
   46   {\begin{lrbox}{\footflushed}
   47   \footnoterule%
   48   \begin{list}{}{\renewcommand{\makelabel}[1]{##1}}}
   49   {\end{list}\end{lrbox}%
   50   \@infoextranode{\theflush}{Notes}{\usebox{\footflushed}}%
   51   \stepcounter{footnotesflush}}
   52 %%%%%%%%%%%%%%Menus are introduced by redefining \@makesection
   53 %% #1 is section name, #2 is section depth number
   54 \newcounter{menudepth}
   55 \newcounter{lastnode}\setcounter{lastnode}{-1000}
   56 \newcommand{\@insertmenu}[3]
   57   {\ifthenelse{\value{menudepth} > #2}
   58      {\ifthenelse{#2 > \value{lastnode}}
   59        {\@infomenu{#1}}
   60        {}%
   61        \setcounter{lastnode}{#2}%
   62        \@infonode[#1]
   63          {\csname #1name\endcsname\ \csname the#1\endcsname}
   64          {#3}}
   65      {}}%
   66 \renewcommand{\@makesection}[7]{%
   67 \newcommand{#1}[2][!*!]
   68 {\@checkdepth{#2}{\refstepcounter{#3}}%
   69 \@footnoteflush{#3}%
   70 \@insertmenu{#3}{#2}{\begin{@norefs}##2\end{@norefs}}%
   71 #4\@checkdepth{#2}{#5#6} ##2#7\@secend}%
   72 \newcommand{#1*}[1]{#4##1#7\@secend}}