"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/html/fancysection.hva" (16 Jan 2021, 3085 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 \@ifundefined{@base}{\typeout{'fancysection.hva' must be loaded after base style}\endinput}{}
    2 \usepackage{color}
    3 %%% Color section
    4 \def\fcs@hue{}
    5 \newcommand{\colorsections}[1]{
    6 \def\fcs@hue{#1}%
    7 \definecolor{visited}{hsv}{#1,1,.4}
    8 \definecolor{link}{hsv}{#1,1,.7}
    9 \definecolor{hover}{hsv}{#1,.4,1}
   10 \definecolor{title}{hsv}{#1,1,.7}
   11 \definecolor{titlemain}{hsv}{#1,1,.7}
   12 \definecolor{titlerest}{hsv}{#1,1,.7}
   13 \definecolor{part}{hsv}{#1, 1, .8}
   14 \ifthenelse{\equal{\@base}{article}}{%
   15 \definecolor{section}{hsv}{#1, .8, .9}%
   16 \definecolor{subsection}{hsv}{#1, .6, 1}%
   17 \definecolor{subsubsection}{hsv}{#1, .4, 1}%
   18 \definecolor{paragraph}{hsv}{#1, .2, 1}%
   19 }{%
   20 \definecolor{chapter}{hsv}{#1, .8, .9}%
   21 \definecolor{section}{hsv}{#1, .6, 1}%
   22 \definecolor{subsection}{hsv}{#1, .5, 1}%
   23 \definecolor{subsubsection}{hsv}{#1, .4, 1}%
   24 }%
   25 \definecolor{paragraph}{hsv}{#1, .2, 1}}%
   26 \colorsections{120}%
   27 %%
   28 \renewcommand{\@bibtagstyle}{\@span{style="color:\@getstylecolor{visited}"}}%
   29 %% Define sectioning comands
   30 \AtBeginDocument
   31 {\newstyle{body}{background-color:white}%
   32 \newstyle{a:link}
   33   {color:\@getstylecolor{link};text-decoration:underline;}
   34 \newstyle{a:visited}
   35   {color:\@getstylecolor{visited};text-decoration:underline;}
   36 \newstyle{a:hover}
   37   {color:black;text-decoration:none;background-color:\@getstylecolor{hover}}
   38 \newstyle{.title}
   39   {background-color:\@getstylecolor{title}}%
   40 \newstyle{.titlemain}
   41   {background-color:\@getstylecolor{titlemain}}%
   42 \newstyle{.titlerest}
   43   {ackground-color:\@getstylecolor{titlerest}}%
   44 \newstyle{.part}
   45   {padding:1ex;background-color:\@getstylecolor{part}}%
   46 \newstyle{.section}
   47   {padding:.5ex;background-color:\@getstylecolor{section}}%
   48 \newstyle{.subsection}
   49   {padding:0.3ex;background-color:\@getstylecolor{subsection}}%
   50 \newstyle{.subsubsection}
   51   {padding:0.5ex;background-color:\@getstylecolor{subsubsection}}%
   52 \newstyle{.paragraph}
   53   {padding:0.5ex;background-color:\@getstylecolor{paragraph}}%
   54 \ifthenelse{\equal{\@base}{book}}
   55 {\newstyle{.chapter}{padding:0.5ex;background-color:\@getstylecolor{chapter}}}
   56 {}%
   57 \newstyle{.fmarginpar}
   58 {border:solid thin \@getstylecolor{subsection}; width:20\%; text-align:left}%
   59 \newstyle{.ffootnoterule}
   60 {border:none;margin:1em auto 1em 0px;width:50\%;background-color:\@getstylecolor{part}}}
   61 \setenvclass{marginpar}{fmarginpar}
   62 \setenvclass{footnoterule}{ffootnoterule}
   63 \newcounter{tocstyle}
   64 \renewenvironment{tocenv}
   65   {\setenvclass{itemize}{ftoc\thetocstyle}%
   66    \setenvclass{li-itemize}{\getenvclass{li-toc}}%
   67    \stepcounter{tocstyle}%
   68    \begin{itemize}}
   69   {\end{itemize}\addtocounter{tocstyle}{-1}}
   70 \newcommand{\newftocstyle}[3][0ex]
   71   {\newstyle{.ftoc#2}{list-style:none;margin:#1 1ex;padding:0ex 1ex;border-left:1ex solid \@getstylecolor{#3}}}
   72 \AtBeginDocument
   73 {\newftocstyle{1}{part}%
   74 \ifthenelse{\equal{\@base}{book}}
   75 {\newftocstyle[1ex]{2}{chapter}\newftocstyle{3}{section}%
   76  \newftocstyle{4}{subsection}%
   77  \newftocstyle{5}{subsubsection}%
   78  \newftocstyle{6}{paragraph}}
   79 {\newftocstyle[1ex]{2}{section}%
   80  \newftocstyle{3}{subsection}%
   81  \newftocstyle{4}{subsubsection}%
   82  \newftocstyle{5}{paragraph}}}