- Questo topic ha 3 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 7 anni, 9 mesi fa da .
-
Topic
-
Salve a tutti, sto creando varie tabelle. A volte uso tabular, quando sono piccole e con poche voci, altre volte uso tabularx.
Questa seconda scelta è stata necessaria per i seguenti motivi:
– celle fisse per alcune colonne
– testo che non sfori i margini della pagina e quindi vada a capo nella stessa colonnaPurtroppo, però, sono neofita e i benefici hanno portato dei costi:
– la tabella con tabularx viene posizionata non dove voglio io , ma altrove sballando l’intero documento (e ho anche forzato la posizione)
– ho caricato tabularx e booktabs
– vorrei, per alcune tabelle, settare la dimensione della colonna, perchè in alcune i valori sono solo numeri brevi, mentre nell’altra colonna molto testo. Quando va a capo l’effeetto visivo è davvero pessimo!!`
\documentclass[12pt,a4paper,oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{array}
\usepackage{tabularx}
\usepackage{booktabs}\begin{document}
\begin{table}[!h]
\begin{center}
\begin{tabularx}{\textwidth}{XXXX}
Tag & Type of value & Default value & Description \\
\hline
start = & string & *[ & This TAG specifies the beginning of the information in the package \\
stop = & string & ]* & This TAG specifies the end of the information's package \\
spS = & Char & \& & This TAG specifies the beginning of each string sent from the machine \\
spT = & Char & : & This TAG delimits the value outside of the channel tag \\
spD = & Char & : & This TAG delimits the value inside of the channel tag \\
Cnd =|n,tag1,tag2,tag3,…,tagn| & string & & This TAG specifies the tags that are associated to a channel, while ” | ” after ” cnd = | ” Identifies the end ; ” n , ” is the number of the channel . Inside the channel the variables are separated from the Tag ” spD ” \\
skip & Char & ? & This TAG identifies which variable you want to skip in the decoding procedure \\
FError & String & Warning & This TAG is used by the decoder to understand if the machine that is attached to has gone in error, during its works. “Warning” is an example, you have to substitute this value with a correct value that you can found looking for in the manual of the machine that you want to connect at
\end{tabularx}
\end{center}
\end{table}\end{document}
`
- Devi essere connesso per rispondere a questo topic.