Risposte nei forum create
-
AutoreRisposte
-
27 Febbraio 2020 alle 15:46 in risposta a: Urgente (consegna tesi venerdì) – Tabelle e immagini accoppiate #117352::
Grazie mille di tutte le risposte.Ho subito implementato nei giorni scorsi la soluzione di aggiungere [p] ed e’ andata, ora sto rivedendo tutta l’impaginazione, se salta applico le soluzioni piu’ avanzate suggerite dopo e vi faccio sapere
Grazie ancora, soprattutto per la velocità’ di risposta
Giovanni
26 Febbraio 2020 alle 11:48 in risposta a: Urgente (consegna tesi venerdì) – Tabelle e immagini accoppiate #117349::
Si non metto alcuna opzione. Il codice che uso e’ questo:`
\begin{table}%[htbp]
\centering
\caption{Summary of postfit yields for both data and all considered MC samples. Control region names follow the convention defined in Tab.~\ref{tab:prefit_yields}.}
{\footnotesize
\begin{tabular}{lccccccccc}
\toprule
& SR & Zee & Zmm & Wep & Wen & Wmp & Wmn & Wepf & Wenf \\
\midrule
VBF & 61.77 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
ggF & 8.78 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
Z strong & 1292.95 & 96.10 & 116.23 & 2.03 & 4.68 & 19.87 & 18.37 & 32.80 & 18.35 \\
Z EWK & 211.38 & 19.58 & 22.54 & 0.66 & 0.18 & 1.95 & 2.60 & 3.11 & 2.93 \\
W strong & 905.17 & 0.40 & 0.13 & 372.25 & 193.81 & 543.73 & 313.51 & 181.95 & 160.56 \\
W EWK & 186.56 & 0.00 & 0.00 & 111.45 & 54.65 & 142.22 & 78.48 & 62.84 & 45.80 \\
ttbar & 38.83 & 4.87 & 5.09 & 27.42 & 20.70 & 31.35 & 22.68 & 5.40 & 5.90 \\
e fakes & 0.00 & 0.00 & 0.00 & 13.64 & 13.71 & 0.00 & 0.00 & 128.68 & 128.56 \\
multijet & 9.87 & 0.00 & 0.00 & 0.00 & 0.00 & 0.00 & 0.00 & 0.00 & 0.00 \\
\midrule
data & 2721 & 124 & 138 & 527 & 285 & 745 & 430 & 421 & 357 \\
total bkg & 2644.76 & 120.95 & 143.99 & 527.45 & 274.02 & 739.12 & 435.64 & 414.78 & 362.10 \\
data/bkg & 1.03 & 1.03 & 0.96 & 1.00 & 1.04 & 1.01 & 0.99 & 1.01 & 0.99 \\
\bottomrule
\end{tabular}%
}
\label{tab:postfit_yields}%
\end{table}%\begin{figure}
\centering
\includegraphics[width=1.0\textwidth]{../figures/chapter4/fitResults/postfit_histogram_3bin_axis}
\caption{Summary postfit plot, showing postfit yields for all considered MC samples. The uncertainty bands include both statistical and systematic uncertainties combination.}
\label{fig:postfit_histogram_3bin}
\end{figure}
`Provo ad implementare le soluzioni che proponete e vi faccio sapere, grazie.
Giovanni
::
Grazie,potresti dirmi meglio come usare balance?
Il mio documento non contiene immagini nell’ultima pagina, ma sembra non funzionare lo stesso.Ho semplicemente messo in tutta la lista dei pacchetti
\usepackage{balance}
e niente altro nel testo.
—-
Vorrei poi chiedere se sapete un modo per far tornare il sommario a piena pagina. Ora, con l’opzione twoclumns per tutto il documento mi fa il sommario solo in una colonna, e se provo ad usare il comando
\begin{onecolumn}
\end{onecolumn}prima e dopo l’abstract (già lo faccio per inserire le tabelle a piena pagina e funziona), inspiegabilmente tutto il documento diventa ad una colonna.
::
Allora ho risolto il problema passando dall’ambiente multicols all’opzione twocolumns globale per tutto il documento.
Il documento ha una appendice che contiene delle tabelle, per quella zona torno alla singola colonna usando\begin{onecolumn}
\end{onecolumn}Ora l’ambiente
\begin{figure}
\end{figure}
funziona, con tutte le opzioni: ho messo [htb].Leggo su l’arte di scrivere in Latex (Pantieri) che twocolumns non bilancia il testo nell’ultima pagina, mentre multicols lo faceva. Se avete qualche pacchetto da suggerire per risolvere questo inconveniente, sennò va benissimo così.
Grazie di tutti gli altri consigli extra.
::
Certo! Ti posto i pacchetti ed il codice per le tabelle, sia quelle “belle” che facevo circa un anno fa, sia quelle “brutte” che mi escono adesso. In entrambi i casi uso Excel2Latex e copio e incollo il codice che fa lui di sana pianta senza cambiare nessuna impostazione predefinita.TABELLE “BELLE”
1)Pacchetti (disordinatissimo….)%PACCHETTI
%scelta della classe del documento
\documentclass[10pt]{article} % use larger type; default would be 10pt%scelta della lingua
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{float}%
\usepackage{tikz}
\usepackage{rotating}%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or….
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information\usepackage{graphicx} % support the \includegraphics command and options
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another…%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout…
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\usepackage{multirow}
\usepackage[output-decimal-marker={,}]{siunitx}2) Codice tabella
% Table generated by Excel2LaTeX from sheet ‘Foglio1’
\begin{table}[H]
\centering
\caption{Raggio del disco}
\begin{tabular}{rrrrrr}
\toprule
\multicolumn{2}{c}{Raggio($cm$)} & err L($cm$) & Media($cm$) & err C($cm$) & err T($cm$) \\
\midrule
17,70 & 17,50 & \multicolumn{1}{c}{\multirow{2}[0]{*}{0,05}} & \multicolumn{1}{c}{\multirow{2}[0]{*}{17,68}} & \multicolumn{1}{c}{\multirow{2}[0]{*}{0,20}} & \multicolumn{1}{c}{\multirow{2}[0]{*}{0,11}} \\
18,00 & 17,50 & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%TABELLE “BRUTTE”
1)Pacchetti
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel} %
\usepackage[T1]{fontenc}%
\usepackage{float}%
\usepackage[export]{adjustbox}%
\usepackage{caption}%
\usepackage{subcaption}%
\usepackage{booktabs}%
\usepackage{array}%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{xcolor} %Excel2Latex
\usepackage{colortbl} %Excel2Latex
\usepackage{rotating} %Excel2Latex
\usepackage{multirow} %Excel2Latex
\usepackage{booktabs} %Excel2Latex
\usepackage{geometry}
\usepackage{multicol}2)Codice tabella
\begin{table}[htbp]
\centering
\caption{Misura del fondo}
\begin{tabular}{|cc|cc|cc|}
\toprule
\textbf{n. mis} & \textbf{I (mV)} & \textbf{n. mis} & \textbf{I (mV)} & \textbf{n. mis} & \textbf{I (mV)} \\
\midrule
1 & 5,42 & 11 & 5,63 & 21 & 5,28 \\
2 & 6,02 & 12 & 5,52 & 22 & 5,62 \\
3 & 5,79 & 13 & 5,64 & 23 & 5,54 \\
4 & 5,43 & 14 & 5,62 & 24 & 5,52 \\
5 & 5,70 & 15 & 5,63 & 25 & 5,66 \\
6 & 5,92 & 16 & 5,61 & 26 & 5,69 \\
7 & 5,94 & 17 & 5,65 & 27 & 5,68 \\
8 & 5,83 & 18 & 5,69 & 28 & 5,70 \\
9 & 5,75 & 19 & 5,77 & 29 & 5,75 \\
10 & 5,73 & 20 & 5,40 & 30 & 5,60 \\
\bottomrule
\end{tabular}%
\label{tab:fondo}%
\end{table}%
::
Grazie della risposta.Non capisco bene cosa si intende per “coda” e “svuotamento della coda”.
Ad ogni modo sapevo che è importante evitare l’opzione [H]. Il problema è che se la rimuovo l’immagine sparisce. Anche con altre opzioni l’immagine non viene inserita. Questo problema mi si presenta nei documenti che sto scrivendo di recente, con il formato a due colonne (uso \begin{multicols}{2}), penso sia legato a questo perché non l’ho mai incontrato prima.
Lascio qui la lista dei pacchetti che ho inserito ed il codice che uso per inserire una immagine, se può essere utile a comprendere il problema:
PACCHETTI
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel} %
\usepackage[T1]{fontenc}%
\usepackage{float}%
\usepackage[export]{adjustbox}%
\usepackage{caption}%
\usepackage{subcaption}%
\usepackage{booktabs}%
\usepackage{array}%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{xcolor} %Excel2Latex
\usepackage{colortbl} %Excel2Latex
\usepackage{rotating} %Excel2Latex
\usepackage{multirow} %Excel2Latex
\usepackage{booktabs} %Excel2Latex
\usepackage{geometry}
\usepackage{multicol}CODICE PER INSERIRE IMMAGINE
\begin{figure}[H]
\centering
\includegraphics[width=0.9\linewidth]{apparato}
\caption{Apparato sperimentale}
\label{fig:apparato_sperimentale}
\end{figure}Grazie, a presto.
-
AutoreRisposte