Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/book/hevea.sty
Views: 531
% hevea : hevea.sty1% This is a very basic style file for latex document to be processed2% with hevea. It contains definitions of LaTeX environment which are3% processed in a special way by the translator.4% Mostly :5% - latexonly, not processed by hevea, processed by latex.6% - htmlonly , the reverse.7% - rawhtml, to include raw HTML in hevea output.8% - toimage, to send text to the image file.9% The package also provides hevea logos, html related commands (ahref10% etc.), void cutting and image commands.11\NeedsTeXFormat{LaTeX2e}12\ProvidesPackage{hevea}[2002/01/11]13\RequirePackage{comment}14\newif\ifhevea\heveafalse15\@ifundefined{ifimagen}{\newif\ifimagen\imagenfalse}16\makeatletter%17\newcommand{\heveasmup}[2]{%18\raise #1\hbox{$\m@th$%19\csname S@\f@size\endcsname20\fontsize\sf@size 0%21\math@fontsfalse\selectfont22#2%23}}%24\DeclareRobustCommand{\hevea}{H\kern-.15em\heveasmup{.2ex}{E}\kern-.15emV\kern-.15em\heveasmup{.2ex}{E}\kern-.15emA}%25\DeclareRobustCommand{\hacha}{H\kern-.15em\heveasmup{.2ex}{A}\kern-.15emC\kern-.1em\heveasmup{.2ex}{H}\kern-.15emA}%26\DeclareRobustCommand{\html}{\protect\heveasmup{0.ex}{HTML}}27%%%%%%%%% Hyperlinks hevea style28\newcommand{\ahref}[2]{{#2}}29\newcommand{\ahrefloc}[2]{{#2}}30\newcommand{\aname}[2]{{#2}}31\newcommand{\ahrefurl}[1]{\texttt{#1}}32\newcommand{\footahref}[2]{#2\footnote{\texttt{#1}}}33\newcommand{\mailto}[1]{\texttt{#1}}34\newcommand{\imgsrc}[2][]{}35\newcommand{\home}[1]{\protect\raisebox{-.75ex}{\char126}#1}36\AtBeginDocument37{\@ifundefined{url}38{%url package is not loaded39\let\url\ahref\let\oneurl\ahrefurl\let\footurl\footahref}40{}}41%% Void cutting instructions42\newcounter{cuttingdepth}43\newcommand{\tocnumber}{}44\newcommand{\notocnumber}{}45\newcommand{\cuttingunit}{}46\newcommand{\cutdef}[2][]{}47\newcommand{\cuthere}[2]{}48\newcommand{\cutend}{}49\newcommand{\htmlhead}[1]{}50\newcommand{\htmlfoot}[1]{}51\newcommand{\htmlprefix}[1]{}52\newenvironment{cutflow}[1]{}{}53\newcommand{\cutname}[1]{}54\newcommand{\toplinks}[3]{}55\newcommand{\setlinkstext}[3]{}56\newcommand{\flushdef}[1]{}57\newcommand{\footnoteflush}[1]{}58%%%% Html only59\excludecomment{rawhtml}60\newcommand{\rawhtmlinput}[1]{}61\excludecomment{htmlonly}62%%%% Latex only63\newenvironment{latexonly}{}{}64\newenvironment{verblatex}{}{}65%%%% Image file stuff66\def\toimage{\endgroup}67\def\endtoimage{\begingroup\def\@currenvir{toimage}}68\def\verbimage{\endgroup}69\def\endverbimage{\begingroup\def\@currenvir{verbimage}}70\newcommand{\imageflush}[1][]{}71%%% Bgcolor definition72\newsavebox{\@bgcolorbin}73\newenvironment{bgcolor}[2][]74{\newcommand{\@mycolor}{#2}\begin{lrbox}{\@bgcolorbin}\vbox\bgroup}75{\egroup\end{lrbox}%76\begin{flushleft}%77\colorbox{\@mycolor}{\usebox{\@bgcolorbin}}%78\end{flushleft}}79%%% Style sheets macros, defined as no-ops80\newcommand{\newstyle}[2]{}81\newcommand{\addstyle}[1]{}82\newcommand{\setenvclass}[2]{}83\newcommand{\getenvclass}[1]{}84\newcommand{\loadcssfile}[1]{}85\newenvironment{divstyle}[1]{}{}86\newenvironment{cellstyle}[2]{}{}87\newif\ifexternalcss88%%% Postlude89\makeatother909192