[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: callouts in TEX
Hello, i could need some help to realize callouts in pdf. I'm using the following docbook-construct: /*==================================================================== <screen> $ default <co id="connect-to-default"/> $ anyfunction $ cdbsql <co id="connect-to-cdbsql"/> $ cdbsql foo <co id="connect-to-foo"/> </screen> <calloutlist> <callout arearefs="connect-to-default"> <para>Description of default.</para> </callout> <callout arearefs="connect-to-cdbsql"> <para>Description of cdbsql</para> </callout> <callout arearefs="connect-to-produktion"> <para>Description of foo.</para> </callout> </calloutlist> ==============================================================*/ The result in HTML is fine and looks like: /*============================================================= $default 1 $anyfunction $cdbsql 2 $cdbsql 3 1 Description of default 2 Description of cdbsql 3 Description of foo ==============================================================*/ Well, I'm trying to create the same output in TEX (I'm using the db2latex -Stylesheets). I know how to write callouts in TEX. I've to create something like this: /*============================================================= \verb|$ default |\co{connect-to-default}\\ \verb|$ anyfunction \verb|$ cdbsql |\co{connect-to-cdbsql}\\ \verb|$ cdbsql foo |\co{connect-to-foo}\\ \begin{description} \item[\ref{connect-to-default}] Description of default \item[\ref{connect-to-cdbsql}] Description of cdbsql. \item[\ref{connect-to-foo}] Description of foo. \end{description} ===============================================================*/ In the header comes a definition for the counter: /*=============================================================== % callout counter \newcounter{cocnt} % step the counter, print it and make a label for referencing \def\co#1{% \refstepcounter{cocnt}\hfill\label{#1}\thecocnt} ===============================================================*/ I've no idea how to create the necessary TEX-code from the docbook-tags. The main problem for me seems to be the fact that the tag "co" is between CDATA. So i think i must read line by line in xsl and parse the string to create from a string like "$ default <co id="connect-to-default"/>" something like "\verb|$ default |\co{connect-to-default}\\" I've no idea how to do this. It would be nice if someone could assist. Kai
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]