At 10:33 AM 3/31/2003 +0200, you wrote:
\installprettytype [CPP] [CPP] \definetyping [CPP][option=CPP]
\appendtoks\optimizeverbatimfalse\to\everytabulate \definetabulate [CodeExample] [|p|p|] \definebuffer[Snippet] \startSnippet \startCPP void f(bar& x, bar &y, struct foo *z) { x += z->y; x.*ptr(); z->*ptr(); /* comment */ y = 3; y += x; } \stopCPP \stopSnippet \startCodeExample \NC This is an example\footnote{of non-working} footnote. \NC \typebuffer[Snippet] \NC \NR \stopCodeExample
think so, but probably changed a bit; this is what i have now \def\pseudoencodeddj % like in babel, but safer {\leavevmode\hbox\bgroup \setbox\scratchbox\hbox{d}% \scratchdimen\ht\scratchbox \advance\scratchdimen 1ex \scratchdimen.45\scratchdimen \dimen2\expandafter\withoutpt\the\fontdimen1\font\dimen0 \advance\dimen2 .5ex \hbox to \wd\scratchbox {\box\scratchbox\hss \raise\scratchdimen\hbox{\kern\dimen2\vbox{\hrule\!!height0.1ex\!!width0.3em}}}% \egroup} \def\pseudoencodedDJ % like in babel, but safer {\leavevmode \hbox\bgroup \setbox\scratchbox\hbox{D}% \scratchdimen.55\ht\scratchbox \dimen2\expandafter\withoutpt\the\fontdimen1\font\scratchdimen \advance\dimen2 .15ex \advance\dimen2 -.15\fontdimen7\font \hbox to \wd\scratchbox {\box\scratchbox\hss \raise\scratchdimen\hbox{\kern\dimen2\vbox{\hrule\!!height0.1ex\!!width0.3em}}}% \egroup} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (1)
-
Hans Hagen