Hello everyone, good morning europe, I want to generate an API- documentation. For this I use a table (bTABLE) for every function definition. That's a lot of code, which is in part dynamic (number of rows for example depends on number of arguments). Here is a simple example, but I will need colors and different fonts, different lines between in/out and so on. \startalignment[middle] \midaligned{\ss \bTABLE \bTR \bTD[nc=3] validateRegistration \eTD \eTR \bTR \bTD[nr=3] \rotate[rotation=90]{Input} \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD[nr=3] \rotate[rotation=90]{Output} \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter3 \eTD \bTD Beschreibung zu Parameter 3 \eTD \eTR \eTABLE} \stopalignment Are there any examples to do this more generally or better approaches to set this up? With regards, __Janko -- Janko Hauser email: jhauser@zscout.de mobile: +49 1721 641552
2007/4/13, Janko Hauser
Hello everyone, good morning europe, I want to generate an API- documentation. For this I use a table (bTABLE) for every function definition. That's a lot of code, which is in part dynamic (number of rows for example depends on number of arguments). Here is a simple example, but I will need colors and different fonts, different lines between in/out and so on.
\startalignment[middle] \midaligned{\ss \bTABLE \bTR \bTD[nc=3] validateRegistration \eTD \eTR \bTR \bTD[nr=3] \rotate[rotation=90]{Input} \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD[nr=3] \rotate[rotation=90]{Output} \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter3 \eTD \bTD Beschreibung zu Parameter 3 \eTD \eTR \eTABLE} \stopalignment
Are there any examples to do this more generally or better approaches to set this up?
With regards,
__Janko
Hi Janko, \starttext \placetable {none} {\setupTABLE[style=sans] \setupTABLE[c][1][left=\rotate\bgroup,right=\egroup] \setupTABLE[1][1][left=,right=] \bTABLE \bTR \bTD[nc=3] validateRegistration \eTD \eTR \bTR \bTD[nr=3] Input \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD[nr=3] Output \eTD \bTD parameter1 \eTD \bTD Beschreibung zu Parameter 1 \eTD \eTR \bTR \bTD parameter2 \eTD \bTD Beschreibung zu Parameter 2 \eTD \eTR \bTR \bTD parameter3 \eTD \bTD Beschreibung zu Parameter 3 \eTD \eTR \eTABLE} \stoptext you can use \placetable or any other coammand defined with \definfloat to center your figures, tables ... Another positive effect is that setups are local to the current float. Greetings from Ingolstadt Wolfgang
participants (2)
-
Janko Hauser
-
Wolfgang Schuster