- Questo topic ha 1 risposta, 2 partecipanti ed è stato aggiornato l'ultima volta 19 anni, 10 mesi fa da .
-
Topic
-
Avrei bisogno di disporre del testo su due colonne con delle tabulazioni. Ho cercato in giro e ho trovato l’ambiente tabbing che però non riesco a far funzionare troppo bene. Ilrisultato che vorrei avere è (dove gli underscore sono per lasciare gli spazi giusti):Syntax:______Cyg\_ErrNo
____________cyg\_io\_lookup(
______________const char *name,
______________cyg_io_handle_t *handle
____________);Description:____Looks up the radio device and returns its handle.
Preconditions:__/
Parameters:__name – pointer to the device name. For the radio module device use
____________”/dev/radio”.
____________handle – pointer to a handle variable. If the desired radio device is found,
____________on return this variable contains the corresponding handle.Questo è il codice latex che utilizzo:
\begin{tabbing}
Preconditions: \= \kill\parbox{3cm}{Syntax:} \> \parbox{10cm}{\texttt{Cyg\_ErrNo}}\\
\> \parbox{10cm}{\texttt{cyg\_io\_lookup(}}\\
\> \parbox{10cm}{\texttt{const char *name,}}\\
\> \parbox{10cm}{\texttt{cyg\_io\_handle\_t *handle}}\\
\> \parbox{10cm}{\texttt{);}}\\ \\
\parbox{3cm}{Description:} \> \parbox{10cm}{Looks up the radio device and returns its handle.}\\ \\
\parbox{3cm}{Preconditions:} \> \parbox{10cm}{/}\\ \\
\parbox{3cm}{Parameters:} \> \parbox{10cm}{name – pointer to the device name. For the radio module device use “/dev/radio”.}\\
\> \parbox{10cm}{handle – pointer to a handle variable. If the desired radio device is found, on return this variable contains the corresponding handle.} \\ \\
\end{tabbing}Il problema è che ad esempio Parameters lo vorrei allineato con la linea di name e invece è in mezzo tra quella e quella seguente (“/devradio”), inoltre le interlinee sono diverse a seconda che la linea vada a capo o che si abbia un comando \\.
Cosa sto sbagliando?
Grazie
michele
- Devi essere connesso per rispondere a questo topic.