COMMENT(Macros to create tables used before version 1.22 of yodl) COMMENT(Needed by compatibility with old (before XII/97) yodl files) COMMENT( ---------------------------------------------------------------- Tables definition by Frank B. Brokken ---------------------------------------------------------------- ) UNDEFINEMACRO(cell) UNDEFINEMACRO(row) UNDEFINEMACRO(table) UNDEFINEMACRO(endtable) UNDEFINEMACRO(starttable) COMMENT(Required counters. One is the table width, the other is a counter.) NEWCOUNTER(XXcellcountern) NEWCOUNTER(XXtablewidthn) COMMENT(Set a table cell, i.e., one element in a row. For HTML we need: text , so that's fairly easy. If we're already at the last cell, we need text
. For LaTeX: we need text followed by &, unless we're already at the last cell 'cuz in that case we need only text. Also we need to decrement the cell counter..) DEFINEMACRO(cell)(2)(\ whenhtml(htmlcommand() ARG1 \ IFZERO(XXcellcountern)\ (htmlcommand(
))\ ()\ htmlcommand() XXnl())\ whenlatex( ARG1 \ IFZERO(XXcellcountern)\ ()\ (latexcommand(&)))\ whentxt( ARG1 )\ whenms( ARG1 )\ whenman( ARG1 )\ ADDTOCOUNTER(XXcellcountern)(-1)) COMMENT(Set a row of cells. For HTML, we need cells . For LaTeX, we need the cells, followed by \\. In all formats, the cell counter must be set to the table width - 1.) DEFINEMACRO(row)(1)(\ SETCOUNTER(XXcellcountern)(XXtablewidthn)\ ADDTOCOUNTER(XXcellcountern)(-1)\ whenhtml(htmlcommand() XXnl()\ ARG1 XXnl()\ htmlcommand() XXnl())\ whenlatex(ARG1 latexcommand(\\))\ whentxt(ARG1 XXnl())\ whenman(ARG1 XXnl())\ whenms(ARG1 XXnl())) COMMENT(Finally, here's how a table looks. Or first, the start of it. The arguments is the width and the alignment specs for LaTeX. For HTML, we'll need , for
LaTeX we'll need \begin{tabular}[alignment]. Also, we don't want paragraph delimiters.) DEFINEMACRO(starttable)(4)(\ SETCOUNTER(XXtablewidthn)(ARG1)\ whenhtml(htmlcommand(
) XXnl())\
whenlatex(+latexcommand(\begin{tabular}{ARG2}) XXnl())\ SETCOUNTER(XXparcounter)(0)) COMMENT(How to end a table.) DEFINEMACRO(endtable)(0)(\ whenhtml(htmlcommand(
))\
whenlatex(latexcommand(\end{tabular}))\ SETCOUNTER(XXparcounter)(1)) COMMENT(Now a table without start.. end.., a-la how itemize(...) goes in respect to startit() and endit().) DEFINEMACRO(table)(3)(\ starttable(ARG1)(ARG2) XXnl()\ ARG3 XXnl()\ endtable() XXnl()) COMMENT( ---------------------------------------------------------------- End of Tables definition ---------------------------------------------------------------- ) DEFINEMACRO(tilde)(0)(\ +latexcommand(~)+htmlcommand( )) DEFINEMACRO(emdash)(0)(\ +latexcommand(---)COMMENT(htmlcommand(ߞ))+htmlcommand(--)+txtcommand(---)) DEFINEMACRO(endash)(0)(\ +latexcommand(--)+htmlcommand(-)+txtcommand(-)) DEFINEMACRO(minus)(0)(\ +latexcommand($-$)+htmlcommand(-)+txtcommand(-)) DEFINEMACRO(tat)(1) (\ whentxt('ARG1')\ whenlatex(tt(ARG1))\ whenhtml(tt(ARG1))\ whenman('ARG1')\ whensgml(tt(ARG1))) DEFINEMACRO(bbf)(1) (\ whentxt("ARG1")\ whenlatex(bf(ARG1))\ whenhtml(bf(ARG1))\ whenman("ARG1")\ whensgml(bf(ARG1))) DEFINEMACRO(tut)(1) (\ whentxt("ARG1")\ whenlatex(latexcommand(\url{)ARG1+latexcommand(}))\ whenhtml(tt(ARG1))\ whenman("ARG1")\ whensgml(tt(ARG1))) DEFINEMACRO(dia)(1)(\ SETCOUNTER(XXsubsectcounter)(0)\ SETCOUNTER(XXsubsubsectcounter)(0)\ ADDTOCOUNTER(XXsectcounter)(1)\ XXsetlastnumber(XXsetchapternum()COUNTERVALUE(XXsectcounter))\ whenlatex(latexcommand(\section{)ARG1+latexcommand(}))\ whenhtml(htmlcommand(

)ARG1+htmlcommand(

)\
XXtocentry(htmlcommand(

)ARG1\

htmlcommand()))\ whentxt(XXnl()\ ARG1\ XXnl()\ XXtocentry(ARG1))\ whenman(XXroffcmd(.SH)("ARG1")()()\ XXtocentry(ARG1)\ XXtocentry(NOTRANS(.YODLTOCCOMMAND. .br)))\ whenms(XXroffcmd(.SH)()(ARG1)(.PP)\ XXtocentry(ARG1)\ XXtocentry(NOTRANS(.YODLTOCCOMMAND. .br)))\ whensgml(sgmlcommand()ARG1+sgmlcommand(

)))

DEFINEMACRO(pounds)(0)(\ +latexcommand(\pounds)+htmlcommand(£)+txtcommand(L)) DEFINEMACRO(dollars)(0)(\ +latexcommand(\$)+htmlcommand($)+txtcommand($)) DEFINEMACRO(turl)(2)(\ whenlatex(latexcommand(\url{)ARG1+latexcommand(}))\ whenhtml(htmlcommand()ARG1+htmlcommand())\ whenman(ARG1)\ whenms(ARG1)\ whentxt(ARG1)\ whensgml(sgmlcommand())) DEFINEMACRO(bendtt)(1)(\ whenlatex(latexcommand(\url{ARG1}))\ whenhtml(tt(ARG1))\ whenman(ARG1)\ whenms(ARG1)\ whentxt(ARG1)) htmlbodyopt(bgcolor)(#ffffff) htmlbodyopt(text)(#000000) htmlbodyopt(vlink)(#ff4337) htmlbodyopt(alink)(#004040) htmlbodyopt(LINK)(#0000FF) mailto(WoPEc@netec.mcc.ac.uk) latexlayoutcmds( \makeatletter \renewcommand{\section}{ \setcounter{equation}{0} \setcounter{figure}{0} \setcounter{table}{0} \@startsection{section}{1}{0mm} {-3.25ex plus-1ex minus-.2ex} {1.5ex plus.2ex} {\normalfont\large\bfseries}} \renewcommand{\subsection}{\@startsection{subsection}{2}{0mm} {-3.25ex plus-1ex minus-.2ex} {1.5ex plus.2ex} {\normalfont\normalsize\bfseries}} \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm} {-3.25ex plus-1ex minus-.2ex} {1.5ex plus.2ex} {\normalfont\normalsize}} \makeatother \setlength{\parskip}{0pt} \setlength{\parindent}{1.5em} \setlength{\hfuzz}{.1pt} \def\noprint#1{\relax} \bibliographystyle{ecplain} \usepackage{url} \usepackage{Vmargin} \renewcommand{\UrlFont}{\rm} ) DEFINEMACRO(dot)(0)(.+latexcommand(~)htmlcommand( )) DEFINEMACRO(tturl)(1)(+whenlatex(latexcommand(\url{)ARG1+latexcommand(}))+whenhtml(htmlcommand()ARG1+htmlcommand())+whentxt(ARG1)+whensgml(sgmlcommand())) DEFINEMACRO(ems)(1)(em(ARG1)+latexcommand(\/)) DEFINEMACRO(furl)(2)(+whenlatex(latexcommand(ARG1 at \url{)ARG2+latexcommand(}))+whenhtml(htmlcommand() ARG1+htmlcommand())+whentxt(ARG2)+whensgml(sgmlcommand(href="ARG1" name=")ARG1+sgmlcommand(">))) DEFINEMACRO(dq)(1)(+latexcommand(``)+htmlcommand(")ARG1+latexcommand('')+htmlcommand(")) DEFINEMACRO(noindent)(0)(+latexcommand(\noindent)) DEFINEMACRO(amp)(0)(htmlcommand(&)+latexcommand( \&)) DEFINEMACRO(allowbreak)(1)(+latexcommand(\url{)ARG1latexcommand(})) DEFINEMACRO(parag)(1)(+latexcommand(\paragraph{ARG1}) +htmlcommand(

ARG1

))
DEFINEMACRO(par)(0)(+latexcommand(\par)+htmlcommand(

))

latexoptions(11pt,a4paper)