Re: mehrere Files, standalone vs subfiles

Gernot Salzer <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo Uwe,

meiner Erinnerung nach ist der "normale" Use Case, ein standalone
Bild "graphik.tex" (beginnt mit \documentclass[...]{standalone}) in
ein Dokument einzubinden, indem dort \usepackage{standalone} und
\includestandalone{graphik} verwendet wird.

Es sollte auch die Vermischung von subfiles und standalone möglich sein:

A.tex:
\documentclass{article}
\usepackage{tikz}
\usepackage{standalone}
\usepackage{subfiles}
\begin{document}
\subfile{B}
\end{document}

B.tex:
\documentclass[A]{subfiles}
\begin{document}
\includestandalone{C}
\end{document}

C.tex:
\documentclass{standalone}
% \usepackage{tikz}% falls C.tex alleine kompilierbar sein soll
% \usepackage{standalone}% falls C.tex alleine kompilierbar sein soll
\begin{document}
\includestandalone{D}
\end{document}

D.tex:
\documentclass{standalone}
% \usepackage{tikz}% falls D.tex alleine kompilierbar sein soll
\begin{document}
\begin{tikzpicture}
\node[draw]{};
\end{tikzpicture}
\end{document}

A und B können unabhÀngig kompiliert werden. Wenn auch C und D fÌr sich
kompiliert werden können sollen, muss man noch \usepackage{tikz} zur
PrÀamble von C.tex bzw D.tex hinzufÌgen, sowie \usepackage{standalone}
zur PrÀambel von C.tex. Andernfalls wird alles Notwendige bereits in
A.tex definiert.

LG, Gernot

On Sun, Nov 19, 2023 at 04:58:56PM +0000, Uwe Brauer wrote:
> 
> Hallo 
> 
> Ich schreibe momentan mehrere Diagramme (mit Hilfe von quiver
> https://q.uiver.app/) und  benutze dazu standalone, weil ich dazu die
> Dimensionen der Seite gut bestimmen kann.
> 
> Aus Bequemlichkeit wÃŒrde ich gerne eine master/main Datei haben.
> 
> Mit subfiles geht das gut MWE:
> Main
> --8<---------------cut here---------------start------------->8---
> \documentclass[preview,border={5cm 4cm 20cm 4cm},multi=true,multi={minipage}]{standalone}
> %                              left buttom right  top
> \usepackage{amsmath,amsthm}
> \usepackage{quiver}
> \usepackage{subfiles}
> \begin{document}
> \subfile{proof-diagram-energy}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
> 
> 
> Und unter Datei
> --8<---------------cut here---------------start------------->8---
> \documentclass[proof-diagram-main.tex]{subfiles}
> \begin{document}
> \begin{minipage}{1.0\linewidth}
> \section{Outline Proof of the  energy decay estimate for the acoustical wave }
> \label{sec:outline-proof-energy}
> 
> \[\begin{tikzcd}
> 	{\boxed{\| \partial_t g^{jk} + 2 \omega g^{jk} \|_{H^N}  \leq C e^{-(2+q)\Omega} S_{g;N}}} \\
> 	\\
> 	{\boxed{\| \partial_t g^{jk} + 2 \omega g^{jk} \|_{L^{\infty}}  \leq C e^{-(2+q)\Omega} S_{g;N}}}
> 	\arrow["{\text{Sobolev embedding}}", from=1-1, to=3-1]
> \end{tikzcd}\]
> \end{minipage}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
> 
> 
> Das Problem ist nur, alle Seiten mÃŒssen dann die gleich Dimension,
> bestimmt durch den Master file haben. Ich hatte es so verstanden, daß
> standalone genau da ansetzt. Also habe ich probiert
> --8<---------------cut here---------------start------------->8---
> \documentclass{standalone}
> %                              left buttom right  top
>  \usepackage{amsmath,amsthm}
> \usepackage{quiver}
> 
> \begin{document}
> \input{proof-diagram-energy}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
> 
> Und unter file
> --8<---------------cut here---------------start------------->8---
> \documentclass[preview,border={5cm 4cm 20cm 4cm},multi=true,multi={minipage}]{standalone}
> \usepackage[subpreambles=true]{standalone}
> %% \usepackage{amsmath,amsthm}
> %% \usepackage{quiver}
> 
> \begin{document}
> \begin{minipage}{1.0\linewidth}
> 
> \section{Outline Proof of the  energy decay estimate for the acoustical wave }
> \label{sec:outline-proof-energy}
> 
> \[\begin{tikzcd}
> 	{\boxed{\| \partial_t g^{jk} + 2 \omega g^{jk} \|_{H^N}  \leq C e^{-(2+q)\Omega} S_{g;N}}} \\
> 	\\
> 	{\boxed{\| \partial_t g^{jk} + 2 \omega g^{jk} \|_{L^{\infty}}  \leq C e^{-(2+q)\Omega} S_{g;N}}}
> 	\arrow["{\text{Sobolev embedding}}", from=1-1, to=3-1]
> \end{tikzcd}\]
> \end{minipage}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
> 
> Kompiliert nicht
> Hauptfile beschwert sich das usepackage eingebunden sind, und wenn ich
> die auskommentiere lÀuft der Unterfile nicht, die Option
> \usepackage[subpreambles=true]{standalone}
> 
> Scheint auch nicht zu helfen.
> 
> Was verpasse ich hier?
> 
> Danke und Gruß
> 
> Uwe Brauer 
> 
> -- 
> I strongly condemn Hamas heinous atrocities on Israel, especially the despicable pogroms.
> I strongly condemn Putin's war of aggression against Ukraine.
> I support to deliver weapons to Ukraine's military. 
> I support the EU and NATO membership of Ukraine. 
> 
> 

> -- 
> FAQ: http://texfragen.de/
> Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
> Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.