"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/text/hevea.hva" (16 Jan 2021, 8138 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 %%% Une précaution.
    2 \ifhtml\hva@warn{text/hevea is for text and info mode !!!}\endinput\fi
    3 %%%% package used by all packages
    4 \input{plain.hva}
    5 \newif\ififthen\ifthenfalse
    6 \input{ifthen.hva}
    7 %% Style sheet information is ignored
    8 \newcommand{\newstyle}[2]{}
    9 \newcommand{\@getstylecolor}[1]{}
   10 \newcommand{\class@attr}[2]{}
   11 \newcommand{\setenvclass}[2]{}
   12 \newcommand{\getenvclass}[1]{}
   13 \newcommand{\envclass@attr}[2][]{}
   14 \newcommand{\loadcssfile}[1]{}
   15 %% Packages
   16 \input{packages.hva}
   17 %%%%%% Spacing
   18 \input{spaces.hva}
   19 \renewcommand{\
   20 }{ }
   21 %%
   22 \input{latexcommon.hva}
   23 \input{iso-text.hva}
   24 %%% Special characters
   25 %%% Logos
   26 \def\TeX{\@print{TeX}}
   27 \def\LaTeX{\@print{LaTeX}}
   28 \def\LaTeXe{\@print{LaTeX2e}}
   29 \newcommand{\hevea}{\@print{HeVeA}}
   30 \newcommand{\hacha}{\@print{HaChA}}
   31 \newcommand{\html}{\@print{HTML}}
   32 %%% HTML related stuff (TEX equivalents are in the hevea.sty file)
   33 \newcommand{\@aelement}[2]{#2}
   34 \newcommand{\@footahref}[2]{#2\footnote{#1}}
   35 \newcommand{\ahref}[2]{\@footahref{#1}{#2}}
   36 \let\footahref\ahref
   37 \newcommand{\ahrefurl}[1]{\texttt{#1}}
   38 \newcommand{\mailto}[1]{{#1}}
   39 \newcommand{\imgsrc}[2][]{\hva@warn{Image in text}*#2*}
   40 \newcommand{\anchor}[1]{}
   41 %% Hyper-text references inside the document:
   42 \newcommand{\@openlocref}[1]{}
   43 \newcommand{\@closelocref}[1]{}
   44 \newcommand{\@locref}[2]{{#2}}
   45 \newcommand{\@locname}[2]{{#2}}
   46 \newcommand{\@locnameref}[3]{{#3}}
   47 %%% Two exported commands
   48 \let\ahrefloc\@locref
   49 \let\aname\@locname
   50 %%%Set output translator
   51 \newcommand{\@charset}{US-ASCII}
   52 \newcommand{\@def@charset}[1]
   53 {\renewcommand{\@charset}{#1}\@set@out@translator{mappings/#1.map}}
   54 %%% footer and header, useful ???
   55 \newsavebox{\@htmlhead}
   56 \newsavebox{\@htmlfoot}
   57 \newcommand{\htmlhead}[1]{\sbox{\@htmlhead}{#1}}
   58 \newcommand{\htmlfoot}[1]{\sbox{\@htmlfoot}{#1}}
   59 %%%%%%%%%%% Footnotes text dependant part
   60 \newcommand{\@open@footnotetext}{}
   61 \newcommand{\@close@footnotetext}{}
   62 \newcommand{\@noteref}[4]{#4}
   63 \newcommand{\@notepointer}[3]{#3}
   64 \newcommand{\@notetextstyle}[1]{~(#1)}
   65 \newcommand{\@notenotestyle}[1]{(#1)}
   66 \newcommand{\footnoterule}{\@hr[align=left]{.5\textwidth}{1pt}}
   67 \newenvironment{thefootnotes}[2][]
   68   {\footnoterule\begin{list}{}{\renewcommand{\makelabel}[1]{##1}}}
   69   {\end{list}}
   70 %%% Captions
   71 \newenvironment{hva@capted}
   72   {\begin{center}\begin{flushleft}}
   73   {\end{flushleft}\end{center}}
   74 %%% Neutral definitions for hacha
   75 \newcounter{cuttingdepth}
   76 \setcounter{cuttingdepth}{1}
   77 \newcommand{\cutdef}[2][]{}
   78 \newcommand{\cutend}{}
   79 \newcommand{\cuthere}[2]{\footnoteflush{#1}}
   80 \newcommand{\@secbegin}{}
   81 \newcommand{\@secend}{}
   82 \newcommand{\@secanchor}{}
   83 \newenvironment{cutflow}[1]{}{}
   84 \newcommand{\cutname}[1]{}
   85 \newcommand{\toplinks}[3]{}
   86 \newcommand{\setlinkstext}[3]{}
   87 %%%%%%%%%%%%%
   88 % Maketitle %
   89 %%%%%%%%%%%%%
   90 \newcommand{\title@tohaux}[1]{}
   91 \newcommand{\maketitle}{%
   92 \bgroup
   93 \newcommand{\checkcmd}[2]
   94 {\@ifundefined{@##1}
   95   {\hva@warn{No ##1 given}}
   96   {\usebox{\csname @##1\endcsname}##2}}%
   97 \@open{align}{center}%
   98 \@open{head}{*}%
   99 \usebox{\@title}\\%
  100 \@close{head}%
  101 \@open{head}{=}%H3
  102 \checkcmd{author}{\par}%
  103 \checkcmd{date}{}%
  104 \@close{head}%
  105 \@close{align}%
  106 \egroup%
  107 \global\let\maketitle\relax}
  108 %%%%%%%%%%%% Bibliography
  109 \newcommand{\@bibref}[3]{#2\@bib@post{#3}}
  110 \newcommand{\@biblabel}[1]{[\@bibread{\bibtaghook{#1}}]}
  111 %%%%%%%%%%%%%%%%%%%%%%%%
  112 % Document environment %
  113 %%%%%%%%%%%%%%%%%%%%%%%%
  114 \newenvironment{document}{%
  115 \@end{document}
  116 \@restartoutput\unskip%
  117 \@atbegindocument%
  118 \cutdef[\thecuttingdepth]{\cuttingunit}%
  119 }{%
  120 \@atenddocument\@final@footer\@footnoteflush{document}\@raise@enddocument}
  121 \newenvironment{center}{\@open{align}{center}}{\@close{align}}
  122 \newenvironment{flushleft}{\@open{align}{left}}{\@close{align}}
  123 \newenvironment{flushright}{\@open{align}{right}}{\@close{align}}
  124 \newcommand{\centerline}[1]{\begin{center}#1\end{center}}
  125 \newenvironment{quote}{\@open{quote}{}}{\@close{quote}}
  126 \newenvironment{quotation}{\@open{quotation}{}}{\@close{quotation}}
  127 \newcommand{\centering}{\@insert{align}{center}}
  128 \newcommand{\raggedleft}{\@insert{align}{right}}
  129 \newcommand{\raggedright}{\@insert{align}{left}}
  130 %%%%%%%%%%% Figures
  131 %For figure & tables
  132 \newcommand{\@open@quote}[1]{\@open{quote}{}}
  133 \newcommand{\@close@quote}{\@close{quote}}
  134 \newcommand{\rule}[3][]{\@printHR{left}{100}\@print{
  135 }}%
  136 %%%%%%%%%%%%%%%% LaTeX 2.09 style declarations
  137 \newenvironment{tt}{\@style{tt}}{}
  138 \newenvironment{bf}{\@style{b}}{}
  139 \newenvironment{em}{\@style{em}}{}
  140 \newenvironment{it}{\@style{i}}{}
  141 \newenvironment{rm}{\@anti{\sf,\tt}}{}
  142 \newenvironment{tiny}{\@fontsize{1}}{}
  143 \newenvironment{footnotesize}{\@fontsize{2}}{}
  144 \newenvironment{scriptsize}{\@fontsize{2}}{}
  145 \newenvironment{small}{\@fontsize{3}}{}
  146 \newenvironment{normalsize}{\@fontsize{3}}{}
  147 \newenvironment{large}{\@fontsize{4}}{}
  148 \newenvironment{Large}{\@fontsize{5}}{}
  149 \newenvironment{LARGE}{\@fontsize{5}}{}
  150 \newenvironment{huge}{\@fontsize{6}}{}
  151 \newenvironment{Huge}{\@fontsize{7}}{}
  152 \newenvironment{purple}{\@fontcolor{purple}}{}
  153 \newenvironment{silver}{\@fontcolor{silver}}{}
  154 \newenvironment{gray}{\@fontcolor{gray}}{}
  155 \newenvironment{white}{\@fontcolor{white}}{}
  156 \newenvironment{maroon}{\@fontcolor{maroon}}{}
  157 \newenvironment{red}{\@fontcolor{red}}{}
  158 \newenvironment{fuchsia}{\@fontcolor{fuchsia}}{}
  159 \newenvironment{green}{\@fontcolor{green}}{}
  160 \newenvironment{lime}{\@fontcolor{lime}}{}
  161 \newenvironment{olive}{\@fontcolor{olive}}{}
  162 \newenvironment{yellow}{\@fontcolor{yellow}}{}
  163 \newenvironment{navy}{\@fontcolor{navy}}{}
  164 \newenvironment{blue}{\@fontcolor{blue}}{}
  165 \newenvironment{teal}{\@fontcolor{teal}}{}
  166 \newenvironment{aqua}{\@fontcolor{aqua}}{}
  167 \def\cal{\red}
  168 \def\sf{\purple}
  169 \def\sc{\navy}
  170 \def\sl{\it\maroon}
  171 %%%% LaTeX2e verbose declarations
  172 \newenvironment{mdseries}{\@anti{\bf}}{}
  173 \newenvironment{bfseries}{\bf}{}
  174 \newenvironment{rmfamily}{\rm}{}
  175 \newenvironment{sffamily}{\@anti{\tt}\sf}{}
  176 \newenvironment{ttfamily}{\@anti{\sf}\tt}{}
  177 \newenvironment{upshape}{\@anti{\it,\sl,\sc}}{}
  178 \newenvironment{itshape}{\@anti{\sl,\sc}\it}{}
  179 \newenvironment{slshape}{\@anti{\it,\sc}\sl}{}
  180 \newenvironment{scshape}{\@anti{\it,\sl}\sc}{}
  181 \newenvironment{normalfont}{\rm\mdseries\upshape}{}
  182 %%%%%%%%%%%%%%%%
  183 \def\textrm#1{\mbox{\rmfamily#1}}
  184 \def\textup#1{\mbox{\upshape#1}}
  185 \def\textmd#1{\mbox{\mdseries#1}}
  186 \def\textnormal#1{\mbox{\normalfont#1}}
  187 \def\texttt#1{\mbox{\ttfamily#1}}
  188 \def\textit#1{\mbox{\itshape#1}}
  189 \def\textbf#1{\mbox{\bfseries#1}}
  190 \def\textsf#1{\mbox{\sffamily#1}}
  191 \def\textsl#1{\mbox{\slshape#1}}
  192 \def\textsc#1{\mbox{\scshape#1}}
  193 \newcommand{\emph}[1]{\mbox{\em#1}}
  194 %%%%%%%%%%%% Emulate hyphenation
  195 \newcommand{\soft@hyphen}{}
  196 \newcommand{\zero@width@space}{}
  197 \newcommand{\zero@width@non@joiner}{}
  198 \newcommand{\breakable@hyphen}{-}
  199 \newcommand{\zero@width@joiner}{}
  200 \newcommand{\word@break@opportunity}{}
  201 \newcommand{\-}{}
  202 \newcommand{\discretionary}[3]{%
  203   \ifthenelse{\equal{#1#2#3}{}}{}{%
  204     \ifthenelse{\equal{#1}{-}\and\equal{#2#3}{}}{}{%
  205       \ifthenelse{\equal{#1}{-}\and\equal{#2}{}\and\equal{#3}{-}}{-}{%
  206         #3}}}}
  207 %%%%%%%%% Index formating
  208 \newenvironment{indexenv}{\begin{itemize}}{\end{itemize}}
  209 \newcommand{\indexitem}{\item}
  210 \newcommand{\indexspace}{\vspace*{1em}}
  211 %%%%%%%%concrete minipage
  212 \setenvclass{minipage}{minipage}
  213 \newenvironment{@minipage}{}{}
  214 %%%%%%%%margin par
  215 \newif\ifmarginright\marginrighttrue
  216 \newcommand{\normalmarginpar}{\marginrighttrue}
  217 \newcommand{\reversemarginpar}{\marginrightfalse}
  218 \newcommand{\marginpar}[2][]{%
  219   \def\hva@mtemp{#1}%
  220   \ifmarginright
  221     \@print{ >>}#2\@print{>> }%
  222   \else
  223     \@print{ <<}\ifx\hva@mtemp\@empty #2\else #1\fi\@print{<< }%
  224   \fi
  225 }
  226 %%%%%% format theorems
  227 \let\th@font\em
  228 \newcommand{\set@th}[1]
  229 {\global\let\csname#1@font\endcsname\th@font}
  230 \newenvironment{th@env}[3]
  231 {\begin{flushleft}%
  232 \refstepcounter{#2}\textbf{#3~\csname{}the#2\endcsname}%
  233 \def\th@tmp{#1}\th@kont}
  234 {\end{flushleft}}
  235 \newcommand{\th@kont}[1][]
  236 {\ifoptarg~\textbf{(#1)}\fi\quad\csname\th@tmp{}@font\endcsname}
  237 %%%%%%%%%% No attributes for arrays and tabular
  238 \newcommand{\@table@attributes}{}
  239 \newcommand{\@table@attributes@border}{}
  240 %%%%%%%%%% No CSS styles of course
  241 \newenvironment{divstyle}[1]{\begingroup}{\endgroup}
  242 %% Over
  243 \def\csname hevea@loaded\endcsname{}