Risposte nei forum create
-
AutoreRisposte
-
::
egreg9″ post=80353
Salve, la mia domanda è molto semplice: esiste un modo per continuare la numerazione anche per le subsubsection e/o i paragrafi? (visto che di default latex numera fino alle subsection).
Cioè vorrei avere ad esempio sottosezione numero 5.3.3.1Non farlo, ti prego! Se proprio vuoi avere lunghe serie di numeri che disorientano il lettore invece di aiutarlo, cerca [tt]secnumdepth[/tt] in una qualsiasi guida.
Prevenendo la domanda successiva, cioè come si rende l’indice simile all’elenco telefonico con le sezioni di tutti i livelli e i loro numerini, cerca [tt]tocdepth[/tt]. 🙂
Ciao
Enricoahah! non farò l’indice tipo elenco telefonico non preoccuparti! 🙂 però mi è stato espressamente richiesto di numerare alla profondità delle subsubsections, quindi… magari faccio finta di non aver sentito 😉
grazie!
::egreg9″ post=80010
Ho modificato un po’ il codice che mi hai dato e questo è il risultato finale che sono riuscito ad ottenere:
[…]Perché non provi questo? La rotazione delle scritte rende la tabella di difficile lettura.
`\documentclass{article}
\usepackage{array,booktabs,siunitx}
\begin{document}
\begin{tabular}{>{\raggedright}m{6cm}*{9}{c}}
\toprule
&\multicolumn{9}{c}{\emph{Radar}} \\
\cmidrule(l){2-10}
\emph{Requisiti per un radar di sorveglianza HABITAT} & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
\midrule
Distanza minima di sorveglianza di \SI{60}{m} &
x & x & x & & & & & &\\
\midrule
Portata radar di \SI{5}{km} su un bersaglio di RCS$=\SI{1}{m^2}$ con $P_d = 0.9$ e $P_{fa} = 10^{-6}$ &
x & x & x & & & & & & \\
\midrule
Copertura “all weather'' in tutta la zona di interesse &
x & x & x & & & & & & \\
\midrule
Risoluzione in distanza di \SI{7.5}{m} &
x & x & x & & & & & &\\
\midrule
Risoluzione in cross-range a \SI{5}{km} di \SI{31}{m} &
x & x & x & & & & & &\\
\midrule
PRF di circa \SI{3000}{Hz}&
x & x & x & & & & & &\\
\midrule
Rotazioni d'antenna di \SIrange[range-units=single,range-phrase=$\div$]{22}{60}{rpm} &
x & x & x & & & & & &\\
\bottomrule
\addlinespace
\multicolumn{10}{l}{\footnotesize
\begin{tabular}{@{}lll@{}}
1. Scanter 2001 & 2. SeaFalcon & 3. Port Sentry \\
4. Sentinel 100 & 5. Sentinel 200 & 6. SuperNet serie 1000 \\
7. FAR serie 21×7 & 8. JMA serie 5200 & 9. Selesmar Selux
\end{tabular}
}
\end{tabular}
\end{document}`Ti suggerisco di dare un’occhiata a come ho inserito le unità di misura: siunitx ha modi un po’ più pratici dei tuoi. 🙂
Ciao
EnricoMa anch’io uso siunitx per le unità di misura..infatti il comando è \si{
}. Ma il mio editor (TexStudio) non riconosce il corrispondente maiuscolo \SI, ecco perché non lo avevo mai usato. La tabella deve per forza essere con i nomi in quel modo, non dipende da me! Ma grazie lo stesso!!
::franen” post=80003Certo che se dicessi come le hai create quelle scritte ruotate sarebbe più comodo 🙂
Col codice che scrivo sotto le scritte dell’intestazione sono già allineate in basso. La scritta della prima colonna (che suppongo sia stata fatta con \multirow) la puoi centrare con l’argomento opzionale del comando \multirow.
Per centrare i pallini: nel mio esempio non si pone il problema, perché per scrivere il contenuto delle celle della seconda colonna uso delle table.
Se volessi fare a meno dei filetti verticali e volessi usare i comandi di booktabs verrebbe certo più bella.No è completa, lascio a te il lavoro.
Fran
`\documentclass[]{article}
\usepackage[paperwidth=500mm]{geometry}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{graphicx}
\newcommand{\myrot}[1]{\rotatebox{90}{#1}}\begin{document}
\begin{tabular}{|c|l|c|c|c|c|c|c|c|c|c|}
\cline{3-11}
\multicolumn{1}{c}{} & \multicolumn{1}{c|}{} & \multicolumn{9}{c|}{Radar} \\
\cline{3-11}
\multicolumn{1}{c}{} & \multicolumn{1}{c|}{} & \myrot{Scanxxxxxxx } & \myrot{Sea} & \myrot{Pot} & \myrot{100} & \myrot{200} & \myrot{Super} & \myrot{FAR} & \myrot{JMA} & \myrot{Sel} \\
\hline
\multirow{3}{*}[-2ex]{\myrot{Requisiti}} & \begin{tabular}{@{}l} Distanza minima di \\ sorveglianza di 60~m\end{tabular} & x & x & x & & & & & &\\
\cline{2-11}
& \begin{tabular}{@{}l} Portata \\ bersaglio \\ $P_d$\end{tabular} & x & x & x & & & & & & \\
\cline{2-11}
& Copertura & x & x & x & & & & & &\\
\hline
\end{tabular}
\end{document}`Ho modificato un po’ il codice che mi hai dato e questo è il risultato finale che sono riuscito ad ottenere:
[attachment=530]Immagine_2012-11-21.png[/attachment]
Ecco il codice utilizzato (nel preambolo ho messo la definizione del comando \myrot come avevi suggerito):
`
\begin{table}[!ht]
\centering
\footnotesize
\resizebox{\columnwidth}{!}{%
\begin{tabular}{p{.5cm}lccccccccc}
\cmidrule{3-11}
\multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{9}{c}{Radar} \\
\cmidrule{3-11}
\multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \myrot{Scanter $2001$} & \myrot{SeaFalcon} & \myrot{Port Sentry} & \myrot{Sentinel $100$} & \myrot{Sentinel $200$} & \myrot{SuperNet serie $1000$ } & \myrot{FAR serie $21$x$7$} & \myrot{JMA serie \num{5200}} & \myrot{Selesmar Selux} \\
\midrule
\multirow{7}{*}[-2ex]{\myrot{Requisiti radar sorveglianza HABITAT}} & \begin{tabular}{@{}l} Distanza minima di\\ sorveglianza di $60\,\si{m}$\end{tabular} & x & x & x & & & & & &\\
\cmidrule{2-11}
& \begin{tabular}{@{}l} Portata radar di $5\, \si{km}$\\ su un bersaglio di RCS $= 1\, \si{m^2}$\\ con $P_d = 0.9$ e $P_{fa} = 10^{-6}$\end{tabular} & x & x & x & & & & & & \\
\cmidrule{2-11}
& \begin{tabular}{@{}l} Copertura “all weather'' in\\ tutta la zona di interesse\end{tabular} & x & x & x & & & & & &\\
\cmidrule{2-11}
& \begin{tabular}{@{}l} Risoluzione in distanza\\ di $7.5\, \si{m}$\end{tabular} & x & x & x & & & & & &\\
\cmidrule{2-11}
& \begin{tabular}{@{}l} Risoluzione in cross-range\\ a $5\, \si{km}$ di $31\, \si{m}$\end{tabular} & x & x & x & & & & & &\\
\cmidrule{2-11}
& \begin{tabular}{@{}l} PRF di circa \num{3000} \si{Hz}\end{tabular} & x & x & x & & & & & &\\
\cmidrule{2-11}
& \begin{tabular}{@{}l} Rotazioni d'antenna\\ di $22\div 60\, \si{rpm}$\end{tabular} & x & x & x & & & & & &\\
\bottomrule
\end{tabular}}
\label{tab:requisitiHABITATradar2}
\end{table}
`Dato che la scritta in verticale nella prima colonna mi sembrava troppo attaccata alle righe della seconda colonna ho definito la sua larghezza con il comando p{.5cm}.
Grazie mille e se hai commenti sul codice accetto suggerimenti!
Attachments:
You must be logged in to view attached files.::franen” post=79994http://www.guitex.org/home/en/forum/5-tex-e-latex/77962-rendere-tabella-complessa
Questo caso non è molti diverso dal tuo, vedi se ti aiuta almeno a iniziare.
FranHo dato un’occhiata grazie, e sono arrivato a questo:
[attachment=527]Immagine.png[/attachment]
Sai per caso come si fa a centrare i pallini nelle celle e ad allineare a sinistra (o meglio in basso perché sono ruotate) le intestazioni delle colonne?
E comunque non è che sono molto entusiasta del risultato…
Attachments:
You must be logged in to view attached files.::lorenzo.pantieri” post=79332Il tuo esempio non è compilabile.
In ogni caso, ti basta togliere la riga
`\usepackage[Bjornstrup]{fncychap}`
per avere quello che vuoi.Ti consiglio di lasciar perdere fncychap e anche fancyhdr. Se il layout delle classi standard non ti piace, cambia classe.
ma la personalizzazione delle intestazioni e piè di pagina mi serve, e anche lo stile che ho specificato! quindi non c’è un metodo alternativo per risolvere il problema?
::
`\documentclass[11pt,a4paper,titlepage]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english, italian]{babel}
\usepackage[babel]{csquotes}
\usepackage[style=numeric-comp, babel=other]{biblatex}
\bibliography{bibliografia}\usepackage[titletoc, title]{appendix}
\usepackage[Bjornstrup]{fncychap}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[R]{\bfseries\thepage}
\fancyhead[L]{\bfseries\rightmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{%
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}\begin{document}
\appendix
\chapter{Capitolo 1 appendice}
testo…\end{document}`
Sto provando ad usare il pacchetto appendix, ma fino ad ora sono riuscito a mettere la scritta appendice davanti ai capitoli solo nel TOC. Ma non riesco a metterlo davanti ai capitoli veri e propri nel testo!
::OldClaudio” post=79282Allora prima colora la metà superiore e poi la sovrascrivi con un \multirow grigio messo nella metà inferiore specificando correttamente con i parametri opzionali che vuoiallineare la cella \multirow in basso e vuoi sovrascirvere le celle precedenti; esamina bene le opzioni sul manuale di multirow.
facendo ciò che mi hai suggerito di fare ho risolto, grazie mille!
::OldClaudio” post=79264A un certo punto della tabella scrivi:`\cellcolor[gray]{0.8} & $36/35/34$ (fascio largo)\\`
Se lasciassi la cella grigia vuota senza colore che cosa verrebbe?` & $36/35/34$ (fascio largo)\\`
Non prendere sotto gamba il fatto che label va DOP caption, ma non prendere nemmeno sottogamba che le unità di misura non si scrivono fra parentesi quadre: caso mai tonde, ma le norme UNI sul disegno tecnico raccomandano di non metterle fra parentesi e di mettere, invece, la preposizione “in”, per esempio: `$f$ in MHz`
Se lasciassi la cella vuota verrebbe la scritta nella colonna a sinistra ben leggibile, ma la metà superiore della cella multirow sarebbe grigia, la metà inferiore sarebbe bianca..e io la vorrei tutta grigia..
::franen” post=79256La prima è facile… Metti \caption PRIMA di \label, come deve essere sempre fatto.
Per la seconda, non ho mai colorato le tabelle, non ti so dire.Fran
EDIT: le unità di misura fra parentesi tonde, mi raccomando! 🙂
ok è vero la prima era più che altro una svista, grazie! Ma per il secondo quesito? Qualcuno ha idee?
::
cosa stranissima..dopo aver ricompilato per l’ennesima volta, ora non mi dà più problemi e codifica tutto correttamente..anche il BOM non c’è più.
ma io non ho cambiato niente! bah..meglio così, spero solo che non lo rifarà al prossimo capitolo!! grazie a tutti comunque, siete stati di grande aiuto!
::
sto provando a toglierlo ma non so proprio che opzione modificare..e sinceramente ho paura di combinare qualche casino..
questo è il codice che mi sembra più attinente al problema, ma la riga relativa al BOM sembra ok (è posto a 0):`
// ===============================================================================
// -*- DATA:INI:EDT -*-
//
// WinEdt Unicode / UTF-8 Support
//
// ===============================================================================[BUILD]
REQUIRES=20111025
// ===============================================================================
[UNICODE]
// ===============================================================================
// Character Sets in Regular Expressions can only contain characters in range:
// 0..256*UNICODE_CHARSET_RANGE-1
//
// Use Character Map to see what is the maximum value
// for your use of Sets in RegEx…
//
// Specify what you need but remember that large values use extra
// memory and make set expressions slower!UNICODE_CHARSET_RANGE=8 // 1 (Western) .. 256 (Full Unicode Character Set)
// ===============================================================================
// Use Code Page-specific Character Map for non-unicode Documents
CP_CHAR_MAP=1// ===============================================================================
// UNICODE (UTF-16) format is detected automatically using Windows API
// If loaded file contains BOM it will be preserved when the file is saved
// Document Settings Dialog shows Current Format, BOM, and Code Page
// (it can be changed there)…// In the absence of BOM WinEdt has to know how to load a file!
// UTF-8 is the default format:UTF8_BOM=0
UTF8_ENABLED=1
UTF8_MODE_FILTER=”*;UTF-8;EDT;INI|UNICODE;UTF-7;ACP;OEM”// If you want WinEdt to use default Windows code page
// (like non-unicode versions of WinEdt 5 or 6) remove *; from
// UTF8_MODE_FILTER and add it to ANSI CCP_MODE_FILTER below!// ===============================================================================
// The options from here on are for advanced users that need more than UTF-8!
// Wide (16-bit) Characters (UTF-16)
UNICODE_BOM=0
UNICODE_ENABLED=1
UNICODE_MODE_FILTER=”UNICODE|UTF-8;UTF-7;ACP;OEM”// ===============================================================================
// Alternative non-UNICODE formats linked to (Code Page) submode ACP or OEM…
CCP=”ANSI”
CCP_ENABLED=1
CCP_MODE_FILTER=”ACP|UNICODE;UTF-8;UTF-7;OEM”
CCP_VALUE=0CCP=”OEM”
CCP_ENABLED=1
CCP_MODE_FILTER=”OEM”
CCP_VALUE=1CCP=”UTF-7″
CCP_ENABLED=1
CCP_MODE_FILTER=”UTF-7″
CCP_VALUE=65000// If the mode ends with submode :CP
then the indicated code page
// is used to load the file in unicode format.
// For example: TeX:CP1251 uses Cyrillic code page// List of Code pages available in CP Converter (Document Settings Dialog)
// Remove code pages that are no interest to you
// You can also reorder available code pages…
LIST=”END_LIST”
-1 Auto Detect
0 Default ANSI code page
1 Default OEM code page
2 Default MAC code page
3 Current thread's ANSI code page
42 SYMBOL translations
437 OEM MS-DOS United States
708 OEM Arabic (ASMO 708)
709 OEM Arabic (ASMO 449+, BCON V4)
710 OEM Arabic (Transparent Arabic)
720 OEM Arabic (Transparent ASMO)
737 OEM Greek (formerly 437G)
775 OEM Baltic
850 OEM MS-DOS Multilingual (Latin I)
852 OEM MS-DOS Slavic (Latin II)
855 OEM IBM Cyrillic (primarily Russian)
857 OEM IBM Turkish
860 OEM MS-DOS Portuguese
861 OEM MS-DOS Icelandic
862 OEM Hebrew
863 OEM MS-DOS Canadian-French
864 OEM Arabic
865 OEM MS-DOS Nordic
866 OEM MS-DOS Russian (former USSR)
869 OEM IBM Modern Greek
874 OEM Thai
932 OEM Japan
936 OEM Chinese (PRC, Singapore)
949 OEM Korean
950 OEM Chinese (Taiwan, Hong Kong)Korean (Johab)
1200 Unicode (BMP of ISO 10646)
1250 Windows 3.1 Eastern European
1251 Windows 3.1 Cyrillic
1252 Windows 3.1 Latin 1 (US, Western Europe)
1253 Windows 3.1 Greek
1254 Windows 3.1 Turkish
1255 Hebrew
1256 Arabic
1257 Baltic
1361 OEM Korean (Johab)
65000 UTF-7
65001 UTF-8
END_LIST// ===============================================================================
[END]
`cosa posso modificare?
grazie
::
sto provando a toglierlo ma non so proprio che opzione modificare..e sinceramente ho paura di combinare qualche casino..
questo è il codice che mi sembra più attinente al problema, ma la riga relativa al BOM sembra ok (è posto a 0):`
// ===============================================================================
// -*- DATA:INI:EDT -*-
//
// WinEdt Unicode / UTF-8 Support
//
// ===============================================================================[BUILD]
REQUIRES=20111025
// ===============================================================================
[UNICODE]
// ===============================================================================
// Character Sets in Regular Expressions can only contain characters in range:
// 0..256*UNICODE_CHARSET_RANGE-1
//
// Use Character Map to see what is the maximum value
// for your use of Sets in RegEx…
//
// Specify what you need but remember that large values use extra
// memory and make set expressions slower!UNICODE_CHARSET_RANGE=8 // 1 (Western) .. 256 (Full Unicode Character Set)
// ===============================================================================
// Use Code Page-specific Character Map for non-unicode Documents
CP_CHAR_MAP=1// ===============================================================================
// UNICODE (UTF-16) format is detected automatically using Windows API
// If loaded file contains BOM it will be preserved when the file is saved
// Document Settings Dialog shows Current Format, BOM, and Code Page
// (it can be changed there)…// In the absence of BOM WinEdt has to know how to load a file!
// UTF-8 is the default format:UTF8_BOM=0
UTF8_ENABLED=1
UTF8_MODE_FILTER=”*;UTF-8;EDT;INI|UNICODE;UTF-7;ACP;OEM”// If you want WinEdt to use default Windows code page
// (like non-unicode versions of WinEdt 5 or 6) remove *; from
// UTF8_MODE_FILTER and add it to ANSI CCP_MODE_FILTER below!// ===============================================================================
// The options from here on are for advanced users that need more than UTF-8!
// Wide (16-bit) Characters (UTF-16)
UNICODE_BOM=0
UNICODE_ENABLED=1
UNICODE_MODE_FILTER=”UNICODE|UTF-8;UTF-7;ACP;OEM”// ===============================================================================
// Alternative non-UNICODE formats linked to (Code Page) submode ACP or OEM…
CCP=”ANSI”
CCP_ENABLED=1
CCP_MODE_FILTER=”ACP|UNICODE;UTF-8;UTF-7;OEM”
CCP_VALUE=0CCP=”OEM”
CCP_ENABLED=1
CCP_MODE_FILTER=”OEM”
CCP_VALUE=1CCP=”UTF-7″
CCP_ENABLED=1
CCP_MODE_FILTER=”UTF-7″
CCP_VALUE=65000// If the mode ends with submode :CP
then the indicated code page
// is used to load the file in unicode format.
// For example: TeX:CP1251 uses Cyrillic code page// List of Code pages available in CP Converter (Document Settings Dialog)
// Remove code pages that are no interest to you
// You can also reorder available code pages…
LIST=”END_LIST”
-1 Auto Detect
0 Default ANSI code page
1 Default OEM code page
2 Default MAC code page
3 Current thread's ANSI code page
42 SYMBOL translations
437 OEM MS-DOS United States
708 OEM Arabic (ASMO 708)
709 OEM Arabic (ASMO 449+, BCON V4)
710 OEM Arabic (Transparent Arabic)
720 OEM Arabic (Transparent ASMO)
737 OEM Greek (formerly 437G)
775 OEM Baltic
850 OEM MS-DOS Multilingual (Latin I)
852 OEM MS-DOS Slavic (Latin II)
855 OEM IBM Cyrillic (primarily Russian)
857 OEM IBM Turkish
860 OEM MS-DOS Portuguese
861 OEM MS-DOS Icelandic
862 OEM Hebrew
863 OEM MS-DOS Canadian-French
864 OEM Arabic
865 OEM MS-DOS Nordic
866 OEM MS-DOS Russian (former USSR)
869 OEM IBM Modern Greek
874 OEM Thai
932 OEM Japan
936 OEM Chinese (PRC, Singapore)
949 OEM Korean
950 OEM Chinese (Taiwan, Hong Kong)Korean (Johab)
1200 Unicode (BMP of ISO 10646)
1250 Windows 3.1 Eastern European
1251 Windows 3.1 Cyrillic
1252 Windows 3.1 Latin 1 (US, Western Europe)
1253 Windows 3.1 Greek
1254 Windows 3.1 Turkish
1255 Hebrew
1256 Arabic
1257 Baltic
1361 OEM Korean (Johab)
65000 UTF-7
65001 UTF-8
END_LIST// ===============================================================================
[END]
`
-
AutoreRisposte