- Questo topic ha 10 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 7 anni, 7 mesi fa da .
-
Topic
-
Buongiorno a tutti,
intanto un ringraziamento particolare per la guida “L’arte di disegnare con LaTeX” di Gordini e Pantieri: l’ho trovata veramente utile e soprattutto chiara! 🙂Ho un problema di referenze incrociate usando la classe standalone.
Mi spiego meglio. Questo è il main.tex:`
%** Main.tex**\documentclass{article}
\usepackage[italian]{babel}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{pgfplots}
\usepackage{standalone}
\usepackage{tikz}
\usetikzlibrary{spy}
\usetikzlibrary{decorations.fractals}
\usetikzlibrary{external}
\tikzexternalize\newtheorem{theorem}{Teorema}
%*********************************************************************************
% Impostazioni di hyperref
%*********************************************************************************
\hypersetup{%
hyperfootnotes=true,pdfpagelabels,
colorlinks=true, linktocpage=true, pdfstartpage=1, pdfstartview=FitV,
breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
hypertexnames=true, pdfhighlight=/O,
urlcolor=blue, linkcolor=blue, citecolor=webgreen,
pdfsubject={},%
pdfkeywords={},%
pdfcreator={pdfLaTeX}
}\begin{document}
Si consideri la seguente equazione
\begin{equation}
\label{eqn:a=b}
A=B\,\,.
\end{equation}
Con riferimento all'eq.\,\eqref{eqn:a=b} si consideri la tabella~\ref{tab:AB}.\\\tikzset{external/remake next=true}
\begin{table}
\hspace{-1cm}\includegraphics[width=1.2\textwidth]{DisgnRq}
\caption{A vs B}
\label{tab:AB}
\end{table}
Lorem ipsum …
\begin{theorem}
\label{thm:L}
Dolor sit amet…
\end{theorem}Dal Teorema~\ref{thm:L} segue…
\end{document}
`e questo è il DisgnRq.tex :
`
%** DisgnRq.tex**\documentclass[%
border={1cm .5cm 2cm .5cm} % left bottom right top
]{standalone}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{preview}
\hypersetup{%
hyperfootnotes=true,pdfpagelabels,
colorlinks=true, linktocpage=true, pdfstartpage=1, pdfstartview=FitV,
breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
hypertexnames=true, pdfhighlight=/O,
urlcolor=blue, linkcolor=blue, citecolor=webgreen,
pdfsubject={},%
pdfkeywords={},%
pdfcreator={pdfLaTeX}
}
\PreviewEnvironment{tikzpicture}
\usetikzlibrary[positioning]
\usetikzlibrary{patterns}\tikzset{S1/.style = {draw, text centered,
minimum height = 1.5cm,
minimum width = 13em,
fill = green!15
}}
\tikzset{S2/.style = {draw, text centered,
minimum height = 1.5cm,
minimum width = 8em,
fill = yellow!30,
text width = 12.35 em
}}\begin{document}
\begin{center}
\begin{tikzpicture}[node distance=0 cm,outer sep = 0pt]\node[S1,minimum height = 1cm] (A) at (-7,5.5) {A};
\node[S2,minimum height = 1cm] (B)
{B};
% A
\node[S1] (A1) [below=of A] {A1 (cfr.\,eq.\,\eqref{eqn:a=b})};% B
\node[S2] (B1) [below=of B] {B1\\ \vspace{.2em}\fontsize{7.5}{5}\selectfont{Lorem ipsum (vd.\,Teorema~\ref{thm:L})}};\end{tikzpicture}
\end{center}\end{document}
`Come potete vedere non si compilano i riferimenti relativi:
[attachment=2193]Compilazione.png[/attachment]
Avete qualche soluzione?
Grazie anticipatamente
- Devi essere connesso per rispondere a questo topic.