143 lines
3.7 KiB
TeX
143 lines
3.7 KiB
TeX
%\documentclass[11pt]{book}
|
|
%\documentclass[b5paper]{book}
|
|
|
|
\newif\iftth
|
|
|
|
\iftth
|
|
\documentclass[english, a4]{article}
|
|
%\newcommand{\section}[1]{\subsection{#1}}
|
|
|
|
\else % tth doesn't support \usepackage.
|
|
\documentclass[english, a4]{article}
|
|
%\setpapersize{b5}
|
|
%\usepackage[cam, a4, center]{crop}
|
|
\addtolength{\parskip}{\baselineskip}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%
|
|
\usepackage{color}
|
|
%\pdfoutput=0 % uncomment this if running PdfTeX in TeX mode
|
|
\usepackage{ifpdf}
|
|
\ifx\pdftexversion\undefined %if using TeX
|
|
\usepackage{graphicx}
|
|
\else %if using PdfTeX
|
|
\usepackage[pdftex]{graphicx}
|
|
\fi
|
|
\ifpdf %if using PdfTeX in PDF mode
|
|
\DeclareGraphicsExtensions{.pdf,.png,.mps}
|
|
\usepackage{pgf}
|
|
\else %if using TeX or PdfTeX in TeX mode
|
|
\usepackage{graphicx}
|
|
\DeclareGraphicsExtensions{.eps,.bmp}
|
|
\DeclareGraphicsRule{.emf}{bmp}{}{}% declare EMF filename extension
|
|
\DeclareGraphicsRule{.png}{bmp}{}{}% declare PNG filename extension
|
|
\usepackage{pgf}
|
|
\usepackage{pstricks}%variant: \usepackage{pst-all}
|
|
\fi
|
|
|
|
\usepackage{bookman}
|
|
\usepackage{latexsym}
|
|
\usepackage[left=3cm, right=3cm, top=2cm, bottom=2cm]{geometry}
|
|
\usepackage{parskip}
|
|
\usepackage[perpage]{footmisc}
|
|
\usepackage{fixfoot}
|
|
\usepackage{color}
|
|
\usepackage{hyperref}
|
|
\usepackage{html}
|
|
\usepackage{moredefs,lips}
|
|
%\usepackage[german, francais, latin, italian, american]{babel}
|
|
\usepackage[german, francais, american]{babel}
|
|
%\usepackage{graphicx}
|
|
\usepackage{dpfloat}
|
|
\usepackage{epic,bez123}
|
|
\usepackage{floatflt} % package for floatingfigure environment
|
|
\usepackage{wrapfig} % package for wrapfigure environment
|
|
\usepackage{parallel}
|
|
|
|
%\usepackage{makeidx}
|
|
%\makeindex
|
|
|
|
\graphicspath{{images/}}
|
|
|
|
\fi %\iftth
|
|
|
|
% MACROS
|
|
\iftth
|
|
\newcommand{\TODO}[1]{}
|
|
\newcommand{\EmDash}{\special{html:<EMDASH>}} %%—
|
|
\newcommand{\EnDash}{\special{html:<ENDASH>}} %%–
|
|
\else
|
|
\newcommand{\TODO}[1]{#1}
|
|
\newcommand{\EmDash}{---}
|
|
\newcommand{\EnDash}{--}
|
|
\fi
|
|
|
|
\newcommand{\Title}[1]{\textit{#1}}
|
|
|
|
\iftth
|
|
\newcommand{\MyRule}{\begin{html}<hr>\end{html}}
|
|
\else
|
|
\newcommand{\MyRule}{\begin{center}\rule{3cm}{1px}\end{center}}
|
|
\fi
|
|
|
|
\newenvironment{Advertisement}{\begin{quote}\footnotesize}{\end{quote}}
|
|
\newenvironment{Program}{\begin{quote}\scriptsize}{\end{quote}}
|
|
\newenvironment{Intro}{\footnotesize}{}
|
|
|
|
\setcounter{secnumdepth}{0}
|
|
\iftth\else
|
|
\setcounter{tocdepth}{4}
|
|
\fi
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
% other formatting macros
|
|
\newcommand{\omicron}{o}
|
|
|
|
% four dots (elipsis at the end of a sentence)
|
|
\def\ldotsplus{\mathinner{\ldotp\ldotp\ldotp\ldotp}}
|
|
\def\fourdots{\relax\ifmmode\ldotsplus\else$\m@th \ldotsplus\,$\fi}
|
|
|
|
\iftth
|
|
|
|
\newcommand{\footnotemark}[1]{\newcounter{foo}\setcounter{foo}{#1}\addtocounter{foo}{1}\special{html:<a href='#tthFtNtAA}\Alph{foo}\special{html:'><sup>}#1\special{html:</sup></a>}}
|
|
|
|
\newcommand{\checkfn}[3]{
|
|
\ifnum\footnote = #2
|
|
\renewcommand{#1}{\special{html:<a href='#tthFtNtAA}#3\special{html:'>}\special{html:<sup>}#2\special{html:</sup></a>}}%
|
|
\fi
|
|
}
|
|
|
|
\newcommand{\DeclareFixedFootnote}[2]{\newcommand{#1}{\footnote{#2}%
|
|
\checkfn{#1}{1}{B}%
|
|
\checkfn{#1}{2}{C}%
|
|
\checkfn{#1}{3}{D}%
|
|
\checkfn{#1}{4}{E}%
|
|
\checkfn{#1}{5}{F}%
|
|
\checkfn{#1}{6}{G}%
|
|
\checkfn{#1}{7}{H}%
|
|
\checkfn{#1}{8}{I}%
|
|
\checkfn{#1}{9}{J}%
|
|
\checkfn{#1}{10}{K}%
|
|
\checkfn{#1}{11}{L}%
|
|
\checkfn{#1}{12}{M}%
|
|
\checkfn{#1}{13}{N}%
|
|
\checkfn{#1}{14}{O}%
|
|
\checkfn{#1}{15}{P}%
|
|
\checkfn{#1}{16}{Q}%
|
|
\checkfn{#1}{17}{R}%
|
|
\checkfn{#1}{18}{S}%
|
|
\checkfn{#1}{19}{T}%
|
|
\checkfn{#1}{20}{U}%
|
|
\checkfn{#1}{21}{V}%
|
|
\checkfn{#1}{22}{W}%
|
|
\checkfn{#1}{23}{X}%
|
|
\checkfn{#1}{24}{Y}%
|
|
\checkfn{#1}{25}{Z}%
|
|
}%
|
|
}
|
|
|
|
\else
|
|
\fi
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|