Risposte nei forum create
-
AutoreRisposte
-
::
Chiedo scusa!!Ecco il codice compilabile:
`
\documentclass[a4paper, twoside, openright, 10pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage{adjustbox}\begin{document}
\begin{figure}[htp]
\tiny
\centering
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\end{minipage}},rotate=90,center}
\begin{tikzpicture}[>=stealth,sloped]
\matrix (tree) [%
matrix of nodes,
minimum size=0.3cm,
column sep=0.3cm,
row sep=0.1cm,
]
{
2014 & 2015 & 2016 & 2017 & 2018 & 2019 & 2020 & 2021 & 2022 & 2023 & 2024 & 2025 & 2026 & 2027 & 2028 & 2029 \\
& & 1.027.872 & 55.945 & 84.081 & 110.621 & 130.092 & 130.563 & 124.491 & 122.361 & 115.367 & 114.447 & 112.262 & 94.817 & 75.653 & 63.359 \\
& & \textbf{724.059} & & & & & & & & & & & & & \\
& 884.697 & & & & & & & & & \\
& \textbf{311.465} & & & & & & & & & & & & & & \\
761.466 & & 761.466 & 41.445 & 62.289 & 81.950 & 96.375 & 96.723 & 92.225 & 90.648 & 85.466 & 84.784 & 83.166 & 70.242 & 56.045 & 46.937 \\
\textbf{0} & & \textbf{378.295} & & & & & & & & & & & & & \\
& 655.400 & & & & & & & & & \\
& \textbf{50.094} & & & & & & & & & & & & & & \\
& & 564.108 & 30.703 & 46.144 & 60.710 & 71.396 & 71.654 & 68.322 & 67.153 & 63.315 & 62.810 & 61.611 & 52.037 & 41.519 & 34.772 \\
};
\draw[->] (tree-6-1) — (tree-4-2) node [midway,above] {};
\draw[->] (tree-6-1) — (tree-8-2) node [midway,above] {};
\draw[->] (tree-4-2) — (tree-2-3) node [midway,below] {};
\draw[->] (tree-4-2) — (tree-6-3) node [midway,above] {};
\draw[->] (tree-8-2) — (tree-6-3) node [midway,below] {};
\draw[->] (tree-8-2) — (tree-10-3) node [midway,below] {};
\end{tikzpicture}
%}
\end{adjustbox}
\caption{B}
\label{B}
\end{figure}\begin{figure}[htp]
\tiny
\centering
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\end{minipage}},rotate=90,center}
\begin{tikzpicture}[>=stealth,sloped]
\matrix (tree) [%
matrix of nodes,
minimum size=0.3cm,
column sep=0.3cm,
row sep=0.1cm,
]
{
2014 & 2015 & 2016 & 2017 & 2018 & 2019 & 2020 & 2021 & 2022 & 2023 & 2024 & 2025 & 2026 & 2027 & 2028 & 2029 \\
& & 1.027.872 & 55.945 & 84.081 & 110.621 & 130.092 & 130.563 & 124.491 & 122.361 & 115.367 & 114.447 & 112.262 & 94.817 & 75.653 & 63.359 \\
& & \textbf{724.059} & & & & & & & & & & & & & \\
& 884.697 & & & & & & & & & \\
& \textbf{311.465} & & & & & & & & & & & & & & \\
761.466 & & 761.466 & 41.445 & 62.289 & 81.950 & 96.375 & 96.723 & 92.225 & 90.648 & 85.466 & 84.784 & 83.166 & 70.242 & 56.045 & 46.937 \\
\textbf{-68.824} & & \textbf{378.295} & & & & & & & & & & & & & \\
& 655.400 & & & & & & & & & \\
& \textbf{50.094} & & & & & & & & & & & & & & \\
& & 564.108 & 30.703 & 46.144 & 60.710 & 71.396 & 71.654 & 68.322 & 67.153 & 63.315 & 62.810 & 61.611 & 52.037 & 41.519 & 34.772 \\
};
\draw[->] (tree-6-1) — (tree-4-2) node [midway,above] {};
\draw[->] (tree-6-1) — (tree-8-2) node [midway,above] {};
\draw[->] (tree-4-2) — (tree-2-3) node [midway,below] {};
\draw[->] (tree-4-2) — (tree-6-3) node [midway,above] {};
\draw[->] (tree-8-2) — (tree-6-3) node [midway,below] {};
\draw[->] (tree-8-2) — (tree-10-3) node [midway,below] {};
\end{tikzpicture}
\end{adjustbox}
\caption{A}
\label{A}
\end{figure}\end{document}
`Ti ringrazio per il tuo suggerimento.
Preferisco usare il pacchetto adjustbox perché mi permette di ruotare in senso antiorario. E se volessi lasciare che le didascalie non siano ruotate?Grazie.
::
`
\begin{figure}[htp]
\tiny
\centering
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\end{minipage}},rotate=90,center}
\begin{tikzpicture}[>=stealth,sloped]
\matrix (tree) [%
matrix of nodes,
minimum size=0.3cm,
column sep=0.3cm,
row sep=0.1cm,
]
{
2014 & 2015 & 2016 & 2017 & 2018 & 2019 & 2020 & 2021 & 2022 & 2023 & 2024 & 2025 & 2026 & 2027 & 2028 & 2029 \\
& & 1.027.872 & 55.945 & 84.081 & 110.621 & 130.092 & 130.563 & 124.491 & 122.361 & 115.367 & 114.447 & 112.262 & 94.817 & 75.653 & 63.359 \\
& & \textbf{724.059} & & & & & & & & & & & & & \\
& 884.697 & & & & & & & & & \\
& \textbf{311.465} & & & & & & & & & & & & & & \\
761.466 & & 761.466 & 41.445 & 62.289 & 81.950 & 96.375 & 96.723 & 92.225 & 90.648 & 85.466 & 84.784 & 83.166 & 70.242 & 56.045 & 46.937 \\
\textbf{-68.824} & & \textbf{378.295} & & & & & & & & & & & & & \\
& 655.400 & & & & & & & & & \\
& \textbf{50.094} & & & & & & & & & & & & & & \\
& & 564.108 & 30.703 & 46.144 & 60.710 & 71.396 & 71.654 & 68.322 & 67.153 & 63.315 & 62.810 & 61.611 & 52.037 & 41.519 & 34.772 \\
};
\draw[->] (tree-6-1) — (tree-4-2) node [midway,above] {};
\draw[->] (tree-6-1) — (tree-8-2) node [midway,above] {};
\draw[->] (tree-4-2) — (tree-2-3) node [midway,below] {};
\draw[->] (tree-4-2) — (tree-6-3) node [midway,above] {};
\draw[->] (tree-8-2) — (tree-6-3) node [midway,below] {};
\draw[->] (tree-8-2) — (tree-10-3) node [midway,below] {};
\end{tikzpicture}
\end{adjustbox}
\caption{A}
\label{A}
\end{figure}
``
\begin{figure}[htp]
\tiny
\centering
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\end{minipage}},rotate=90,center}
\begin{tikzpicture}[>=stealth,sloped]
\matrix (tree) [%
matrix of nodes,
minimum size=0.3cm,
column sep=0.3cm,
row sep=0.1cm,
]
{
2014 & 2015 & 2016 & 2017 & 2018 & 2019 & 2020 & 2021 & 2022 & 2023 & 2024 & 2025 & 2026 & 2027 & 2028 & 2029 \\
& & 1.027.872 & 55.945 & 84.081 & 110.621 & 130.092 & 130.563 & 124.491 & 122.361 & 115.367 & 114.447 & 112.262 & 94.817 & 75.653 & 63.359 \\
& & \textbf{724.059} & & & & & & & & & & & & & \\
& 884.697 & & & & & & & & & \\
& \textbf{311.465} & & & & & & & & & & & & & & \\
761.466 & & 761.466 & 41.445 & 62.289 & 81.950 & 96.375 & 96.723 & 92.225 & 90.648 & 85.466 & 84.784 & 83.166 & 70.242 & 56.045 & 46.937 \\
\textbf{0} & & \textbf{378.295} & & & & & & & & & & & & & \\
& 655.400 & & & & & & & & & \\
& \textbf{50.094} & & & & & & & & & & & & & & \\
& & 564.108 & 30.703 & 46.144 & 60.710 & 71.396 & 71.654 & 68.322 & 67.153 & 63.315 & 62.810 & 61.611 & 52.037 & 41.519 & 34.772 \\
};
\draw[->] (tree-6-1) — (tree-4-2) node [midway,above] {};
\draw[->] (tree-6-1) — (tree-8-2) node [midway,above] {};
\draw[->] (tree-4-2) — (tree-2-3) node [midway,below] {};
\draw[->] (tree-4-2) — (tree-6-3) node [midway,above] {};
\draw[->] (tree-8-2) — (tree-6-3) node [midway,below] {};
\draw[->] (tree-8-2) — (tree-10-3) node [midway,below] {};
\end{tikzpicture}
%}
\end{adjustbox}
\caption{B}
\label{B}
\end{figure}
`Ho tolto le colorazioni nelle caselle….in teoria ora dovresti riuscire a compilarli……
::
\begin{figure}[!bp]
\centering
\caption{..}
\includegraphics{..}
\includegraphics{..}
\includegraphics{..}
\label{fig:..}
\end{figure}
\begin{figure}[!tbp]\ContinuedFloat
\centering
\includegraphics{..}
\includegraphics{..}
\includegraphics{..}
\includegraphics{..}
\includegraphics{..}
\end{figure}
\begin{figure}[!tbp]\ContinuedFloat
\centering
\includegraphics{..}
\includegraphics{..}
\end{figure}
\begin{figure}[!tbp]
\centering
\caption{**}
\label{fig:**}
\includegraphics{**}
\end{figure}I primi tre \begin{figure} sono riferiti alla stessa Figura, mentre l’ultima è quella che mi compare con la numerazione errata.
::
Ho trovato il problema! Non sono le sezioni che creano il problema, ma \ContinuedFloat…
Come posso risolvere questo problema?Nel primo capitolo ad esempio ho inserito prima una figura a sé stante (Figura 1.1), poi diverse figure con \ContinuedFloat che hanno uina didascalia e un riferimento unico (Figura 1.2) e poi un’altra figura singola che però risulta Figura 1.1 di nuovo…
::
Il preambolo è:\documentclass[a4paper,12pt, twoside]{book}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{frontespizio}
\usepackage[font=small,format=hang]{caption}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{subfig}
\usepackage{longtable}
\usepackage{marvosym}
\usepackage{graphicx}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\pagestyle{fancy}\addtolength{\headwidth}{20pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ #1}{}}
\cfoot{}
\rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\thepage}}
\lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}}
-
AutoreRisposte