mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
335 lines
7.9 KiB
Text
335 lines
7.9 KiB
Text
COMMENT(The following macros are used to define upcoming sections and
|
|
files. Once they are available, simply remove the `c' to activate
|
|
them)
|
|
DEFINEMACRO(cincludefile)(1)()
|
|
DEFINEMACRO(csect)(1)()
|
|
DEFINEMACRO(csubsect)(1)()
|
|
DEFINEMACRO(csubsubsect)(1)()
|
|
DEFINEMACRO(rowfive)(5)(\
|
|
row(cell(ARG1)cell(ARG2)cell(ARG3)cell(ARG4)cell(ARG5)))
|
|
INCLUDEFILE(version)
|
|
|
|
SUBST(BSSP)(\ )
|
|
SUBST(MYEMAIL)(f.b.brokken@rug.nl)
|
|
SUBST(MAILTO)(CHAR(109)ailto:MYEMAIL)
|
|
SUBST(URLEMAIL)(url(email)(MAILTO))
|
|
SUBST(OPENPAR)(CHAR(40))
|
|
SUBST(CLOSEPAR)(CHAR(41))
|
|
SUBST(AFFILIATION)(\
|
|
Center of Information Technology,nl()
|
|
University of Groningen nl()\
|
|
Nettelbosje 1,nl()\
|
|
P.O. Box 11044,nl()\
|
|
9700 CA Groningen nl()\
|
|
The Netherlands nl())
|
|
|
|
setlatexfigureext(.eps)
|
|
sethtmlfigureext(.gif) COMMENT(While converting figures to .jpg)
|
|
|
|
htmlstylesheet(cplusplus.css)
|
|
|
|
IFDEF(latex)
|
|
(\
|
|
redef(XXsetlatexdocumentheader)(3)(\
|
|
IFEMPTY(ARG1)
|
|
(\
|
|
NOTRANS(% no \title{..} info)\
|
|
)
|
|
(\
|
|
TYPEOUT(Document title: ARG1)\
|
|
NOTRANS(\title{)ARG1+CHAR(})\
|
|
)
|
|
XXnl()\
|
|
IFEMPTY(ARG2)
|
|
(\
|
|
NOTRANS(% no \author{..} info)\
|
|
)
|
|
(\
|
|
NOTRANS(\author{)ARG2\
|
|
+XXifnempty(XXaffilstring)
|
|
(\
|
|
nl()\
|
|
XXnl()\
|
|
SYMBOLVALUE(XXaffilstring)\
|
|
)\
|
|
CHAR(})\
|
|
)\
|
|
XXnl()\
|
|
IFEMPTY(ARG3)
|
|
(\
|
|
NOTRANS(% no \date{..} info)\
|
|
)
|
|
(\
|
|
NOTRANS(\date{)ARG3+CHAR(})\
|
|
)\
|
|
XXnl()\
|
|
NOTRANS(\begin{document})
|
|
IFEMPTY(ARG1)\
|
|
(\
|
|
NOTRANS(% no \author{..}, no \maketitle required here)\
|
|
)
|
|
(\
|
|
NOTRANS(\maketitle\cleardoublepage)\
|
|
)\
|
|
XXnl()\
|
|
XXabstract()\
|
|
XXnl()\
|
|
IFEMPTY(ARG1)
|
|
(\
|
|
NOTRANS(% no title, so no \maketitle)
|
|
)
|
|
(\
|
|
XXsettitleclearpage()\
|
|
)\
|
|
XXnl()\
|
|
NOTRANS(\pagestyle{plain})\
|
|
XXnl()\
|
|
NOTRANS(\pagenumbering{roman})\
|
|
XXnl()\
|
|
XXtableofcontents()\
|
|
ATEXIT(\
|
|
NOTRANS(\end{document})\
|
|
XXnl()\
|
|
)\
|
|
)\
|
|
latexoptions(a4paper,twoside)\
|
|
latexpackage(latin1)(inputenc)\
|
|
latexpackage()(makeidx)\
|
|
COMMENT(
|
|
latexpackage()(bookman)\
|
|
)\
|
|
latexpackage()(newcent)\
|
|
latexpackage()(epsf)\
|
|
IFDEF(us)(\
|
|
latexpackage()(cplusplusus)\
|
|
)(\
|
|
latexpackage()(cplusplus)\
|
|
)\
|
|
makeindex()\
|
|
sloppyhfuzz(50)\
|
|
noxlatin()\
|
|
latexlayoutcmds(\setcounter{secnumdepth}{3})\
|
|
latexlayoutcmds(\pagestyle{empty})\
|
|
)()
|
|
|
|
DEFINEMACRO(linebreak)(0)(\
|
|
IFDEF(latex)\
|
|
(latexcommand(\linebreak ))\
|
|
())
|
|
|
|
DEFINEMACRO(turl)(2)(\
|
|
IFDEF(html)\
|
|
(htmlcommand(<a target=_top href="ARG2">)ARG1+htmlcommand(</a>))\
|
|
(url(ARG1)(ARG2)))
|
|
|
|
DEFINEMACRO(tlurl)(1)(\
|
|
IFDEF(html)\
|
|
(htmlcommand(<a target=_top href="ARG1">)ARG1+htmlcommand(</a>))\
|
|
(lurl(ARG1)))
|
|
|
|
DEFINEMACRO(lshift)(0)(\
|
|
IFDEF(latex)(\
|
|
NOTRANS($<<$)\
|
|
)(\
|
|
<<\
|
|
)\
|
|
)
|
|
|
|
DEFINEMACRO(verbinsert)(1)(\
|
|
TYPEOUT(REPLACE VERBINSERT BY VERBINCLUDE - ARG1)\
|
|
)
|
|
|
|
redefinemacro(verbinclude)(1)(\
|
|
PIPETHROUGH(yodlverbinsert -N ARG1)()\
|
|
)
|
|
|
|
COMMENT( DO NOT USE TO ADD INDEX ENTRIES )
|
|
DEFINEMACRO(rshift)(0)(\
|
|
IFDEF(latex)(\
|
|
NOTRANS($>>$)\
|
|
)(\
|
|
>>\
|
|
)\
|
|
)
|
|
|
|
COMMENT( DO NOT USE TO ADD INDEX ENTRIES )
|
|
DEFINEMACRO(oplshift)(0)(\
|
|
tt(operator)\
|
|
IFDEF(latex)(\
|
|
NOTRANS($<<$)\
|
|
)(\
|
|
<<\
|
|
)\
|
|
)
|
|
|
|
COMMENT( DO NOT USE TO ADD INDEX ENTRIES )
|
|
DEFINEMACRO(oprshift)(0)(\
|
|
tt(operator)\
|
|
IFDEF(latex)(\
|
|
NOTRANS($>>$)\
|
|
)(\
|
|
>>\
|
|
)\
|
|
)
|
|
|
|
DEFINEMACRO(decrement)(0)(\
|
|
IFDEF(latex)(\
|
|
NOTRANS($--$)\
|
|
)(\
|
|
NOTRANS(--)\
|
|
)\
|
|
)
|
|
|
|
DEFINEMACRO(opdecrement)(0)(\
|
|
tt(operator)\
|
|
IFDEF(latex)(\
|
|
NOTRANS($--$)\
|
|
)(\
|
|
NOTRANS(--)\
|
|
)\
|
|
)
|
|
DEFINEMACRO(iopdecrement)(0)(\
|
|
hix(operator--)\
|
|
opdecrement()\
|
|
)
|
|
|
|
DEFINECOUNTER(htmlAnchor)(0)
|
|
|
|
DEFINEMACRO(annotations)(0)(\
|
|
bf(C++) Annotations\
|
|
)
|
|
|
|
def(x)(1)(IFDEF(html)(htmlcommand(<!--!)ARG1+htmlcommand(!-->))()ARG1)
|
|
def(linkit)(2)(it()link(Chapter )(ARG1)ref(ARG1)link(: ARG2.)(ARG1))
|
|
def(itt)(1)(it()tt(ARG1))
|
|
|
|
def(rangett)(1)(tt(CHAR(91)ARG1+CHAR(41)))
|
|
def(endOfFile)(1)(tt(CHAR(69)CHAR(79)CHAR(70)))
|
|
|
|
def(c)(1)(COMMENT(ARG1))
|
|
|
|
def(hix)(1)(\
|
|
IFDEF(html)(\
|
|
label(an+USECOUNTER(htmlAnchor))\
|
|
htmlcommand(
|
|
<index) \
|
|
COUNTERVALUE(htmlAnchor) \
|
|
ARG1\
|
|
+htmlcommand(>
|
|
)\
|
|
)(\
|
|
IFDEF(latex)(\
|
|
latexcommand(\index{)\
|
|
ARG1\
|
|
+latexcommand(})\
|
|
)()\
|
|
)\
|
|
)
|
|
|
|
def(hi)(1)(hix(ARG1))
|
|
def(i)(1)(hix(ARG1)ARG1)
|
|
def(tthi)(1)(hix(ARG1: header file)tt(<ARG1>))
|
|
def(ti)(1)(hix(ARG1)tt(ARG1))
|
|
def(bi)(1)(hix(ARG1)bf(ARG1))
|
|
def(emi)(1)(hix(ARG1)em(ARG1))
|
|
def(ithi)(1)(it()hi(ARG1: header file)tt(<ARG1>))
|
|
def(iti)(1)(it()ti(ARG1))
|
|
def(rangeti)(1)(ti(CHAR(91)ARG1+CHAR(41)))
|
|
def(itht)(2)(it()hix(ARG1)tt(ARG2))
|
|
def(ittq)(2)(it()tt(ARG1):quote(ARG2))
|
|
def(ithtq)(3)(it()hix(ARG1)tt(ARG2):quote(ARG3))
|
|
|
|
def(cellq)(0)(cell(IFDEF(latex)()(quote())))
|
|
|
|
DEFINEMACRO(cXIV)(0)(\
|
|
i(C++14)\
|
|
)
|
|
|
|
IFDEF(html)(\
|
|
redef(XXsubsubsect)(1)(\
|
|
XXtocentry(sssect SYMBOLVALUE(XXlastnumber): ARG1)\
|
|
NOTRANS(<h4>)\
|
|
SYMBOLVALUE(XXlastnumber): ARG1\
|
|
+NOTRANS(</h4>)\
|
|
)\
|
|
redef(subsubsubsect)(1)
|
|
(
|
|
NOTRANS(<h5>)\
|
|
ARG1\
|
|
+NOTRANS(</h5><br>)\
|
|
)
|
|
)()
|
|
|
|
redef(XXsethtmldocumentheader)(3)(\
|
|
XXifnzero(XXhtmlfive)(NOTRANS(<!DOCTYPE html>))\
|
|
NOTRANS(<html><head>)XXnl()\
|
|
XXifnempty(XXhtmlmetacharset)
|
|
(\
|
|
NOTRANS(<meta charset=")\
|
|
SYMBOLVALUE(XXhtmlmetacharset)NOTRANS(">)XXnl()\
|
|
INTERNALINDEX(preset metacharset SYMBOLVALUE(XXhtmlmetacharset))\
|
|
)\
|
|
XXifnempty(ARG1)
|
|
(\
|
|
TYPEOUT(Document title: ARG1)\
|
|
NOTRANS(<title>)ARG1+NOTRANS(</title>)XXnl()\
|
|
INTERNALINDEX(preset title ARG1)\
|
|
)\
|
|
XXifnempty(XXheadopt)(\
|
|
SYMBOLVALUE(XXheadopt)\
|
|
INTERNALINDEX(preset headopt SYMBOLVALUE(XXheadopt))\
|
|
)\
|
|
XXifnzero(XXhtmlimgstyle)(\
|
|
htmlstyle(figure)(text-align: center)\
|
|
htmlstyle(img)(vertical-align: center)\
|
|
)
|
|
XXifnempty(XXhtmlstyleopt)(\
|
|
NOTRANS(<style type="text/css">)XXnl()\
|
|
EVAL(SYMBOLVALUE(XXhtmlstyleopt))\
|
|
NOTRANS(</style>)XXnl()\
|
|
)\
|
|
IFSTREQUAL(XXmailto)()(\
|
|
WARNING(no NOTRANS(mailto(..)) set, document will be without!)\
|
|
)(\
|
|
NOTRANS(<link rev="made" href="mailto:)\
|
|
SYMBOLVALUE(XXmailto)\
|
|
NOTRANS(">)XXnl()\
|
|
)\
|
|
XXifnempty(XXheadfile)(\
|
|
INTERNALINDEX(preset headfile SYMBOLVALUE(XXheadfile))\
|
|
EVAL(NOTRANS(includeverbatim+CHAR(40))\
|
|
SYMBOLVALUE(XXheadfile)CHAR(41))\
|
|
)
|
|
NOTRANS(</head>)\
|
|
XXnl()\
|
|
NOTRANS(<body)\
|
|
XXifnempty(XXbodyopt)(\
|
|
SYMBOLVALUE(XXbodyopt)\
|
|
INTERNALINDEX(set bodytagopt SYMBOLVALUE(XXbodyopt))\
|
|
)\
|
|
NOTRANS(>)\
|
|
XXnl()\
|
|
NOTRANS(<hr>)\
|
|
XXnl()\
|
|
NOTRANS(<h1 id="title">)ARG1+NOTRANS(</h1>)\
|
|
XXnl()\
|
|
XXifnempty(ARG2)
|
|
(\
|
|
NOTRANS(<h2 id="author">)ARG2+NOTRANS(</h2>)\
|
|
XXnl()\
|
|
)\
|
|
XXifnempty(XXaffilstring)
|
|
(\
|
|
XXnl()\
|
|
NOTRANS(<h2 id="affiliation">)SYMBOLVALUE(XXaffilstring)NOTRANS(</h2>)\
|
|
)\
|
|
XXifnempty(ARG3)
|
|
(\
|
|
NOTRANS(<h2 id="date">)ARG3+NOTRANS(</h2>)\
|
|
XXnl()\
|
|
)\
|
|
XXabstract()\
|
|
XXnl()\
|
|
XXsettitleclearpage()\
|
|
XXtableofcontents()\
|
|
)
|