wie kann man ein standalone und ein article/amsart dokument zusammenfügen
"Uwe Brauer" (via tex-d-l Mailing List) <[email protected]>
| Newsgroups | gmane.comp.tex.german |
|---|---|
| Message-ID | <[email protected]> |
Hallo
Ich würde gerne eine PDF Datei mit LaTeX nicht mit einem pdfunite
Kommando oder so, daß aus
1. Seiten im normalen DINA4 portrait (article/amsart) und aus
2. Seiten die standalone \documentclass[preview,border={10cm 4cm
10cm 4cm}]{standalone}
Erzeugt werden.
Ich dachte an subfiles, aber das ist wohl nicht möglich mit standalone.
Dann habe ich
https://de.overleaf.com/learn/latex/Multi-file_LaTeX_projects
ein Beispiel gefunden was bei mir nicht so ohne weiteres funktioniert:
,----
|
| \documentclass[12pt]{article}
| \usepackage[subpreambles=true]{standalone} % [1]
| \usepackage{import}
| \begin{document}
| \section{First section}
| \import{sections/}{introduction}
| \end{document}
`----
extra ein unterverzeichnis sections angelegt mit
,----
| \documentclass[class=article, crop=false]{standalone}
| \usepackage[subpreambles=true]{standalone}
| \usepackage{import}
| \usepackage{blindtext}
| \begin{document}
| A TikZ figure will be rendered below this line
| \end{document}
`----
Kann mir jemand sagen wo das Problem ist?
Danke
Uwe Brauer
Footnotes:
[1] die option subpreambles macht Ärger ohne diese Option kann ich
kompilieren, ich hänge den log an
--
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 NATO membership of Ukraine.
I support the EU membership of Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
proof-diagram-main.log
(application/octet-stream, 14 KB)
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex 2023.5.12) 1 NOV 2023 17:16
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**proof-diagram-main.tex
(./proof-diagram-main.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-05-11>
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty
Package: standalone 2022/10/10 v1.3b Package to include TeX sub-files with prea
mbles
(/usr/local/texlive/2023/texmf-dist/tex/latex/tools/shellesc.sty
Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX
Package shellesc Info: Restricted shell escape enabled on input line 77.
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
))
(/usr/local/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2022/06/16 v2.9 package option processing (HA)
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count193
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
(/usr/local/texlive/2023/texmf-dist/tex/latex/currfile/currfile.sty
Package: currfile 2022/10/10 v0.8 Provides the file path elements of the curren
t input file
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
(/usr/local/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO)
))
(/usr/local/texlive/2023/texmf-dist/tex/latex/filehook/filehook.sty
Package: filehook 2022/10/25 v0.8b Hooks for input files
(/usr/local/texlive/2023/texmf-dist/tex/latex/filehook/filehook-2020.sty
Package: filehook-2020 2022/10/25 v0.8b Hooks for input files
))
\c@currfiledepth=\count194
)
\sa@out=\write3
(build//proof-diagram-main.sta)
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:555: Ext
ra }, or forgotten \endgroup.
l.555 }
%
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:601: Arg
ument of \standaloneignore has an extra }.
<inserted text>
\par
l.601 ...tandaloneignore\space}{\standaloneignore}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:601: Par
agraph ended before \standaloneignore was complete.
<to be read again>
\par
l.601 ...tandaloneignore\space}{\standaloneignore}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:644: LaT
eX Error: Command \sa already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.644 }
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:718: Use
of \sa doesn't match its definition.
l.718 {\sa@f
ramegobbleopt}{\sa@framegobbleargs}}{}%
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:718: Use
of \sa doesn't match its definition.
l.718 {\sa@framegobbleopt}{\sa@f
ramegobbleargs}}{}%
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2023-04-19 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count195
\l__pdf_internal_box=\box51
)
(build//proof-diagram-main.aux)
\openout1 = `proof-diagram-main.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 733.
LaTeX Font Info: ... okay on input line 733.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 733.
LaTeX Font Info: ... okay on input line 733.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 733.
LaTeX Font Info: ... okay on input line 733.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 733.
LaTeX Font Info: ... okay on input line 733.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 733.
LaTeX Font Info: ... okay on input line 733.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 733.
LaTeX Font Info: ... okay on input line 733.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 733.
LaTeX Font Info: ... okay on input line 733.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:733: Und
efined control sequence.
\__hook begindocument ...nepreambles \relax \ifsa
@sortsubpreambles \let \sa...
l.733 \let\sa@orig@document\document
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:733: Mis
sing \endcsname inserted.
<to be read again>
\let
l.733 \let\sa@orig@document\document
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:733: Use
of \??? doesn't match its definition.
<argument> \???
! LaTeX Error: \let invalid in file name. Lost: .\@pkgexten...
l.733 \let\sa@orig@document\document
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:733: Mis
sing \endcsname inserted.
<to be read again>
\let
l.733 \let\sa@orig@document\document
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
/usr/local/texlive/2023/texmf-dist/tex/latex/standalone/standalone.sty:733: Use
of \??? doesn't match its definition.
<argument> \???
! LaTeX Error: \let invalid in file name. Lost: .\@pkgexten...
l.733 \let\sa@orig@document\document
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
)
Runaway argument?
\@nil \@pushfilename \xdef \@currname {\string@makeletter \reserved@a \ETC.
./proof-diagram-main.tex:3: File ended while scanning use of \reserved@c.
<inserted text>
\par
l.3 \usepackage
{import}
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.
(/usr/local/texlive/2023/texmf-dist/tex/latex/import/import.sty
Package: import 2020/04/01 v 6.2
)
(build//proof-diagram-main.aux)
\openout1 = `proof-diagram-main.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
./proof-diagram-main.tex:5: LaTeX Error: Something's wrong--perhaps a missing \
item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.5 \section
{First section}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
./proof-diagram-main.tex:5: LaTeX Error: Something's wrong--perhaps a missing \
item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.5 \section
{First section}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
./proof-diagram-main.tex:5: Missing } inserted.
<inserted text>
}
l.5 \section{First section}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
./proof-diagram-main.tex:6: Undefined control sequence.
l.6 \import
{sections/}{introduction}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
./proof-diagram-main.tex:7: Undefined control sequence.
\__hook enddocument ->\sa
@write{\string \endstandalonepreambles }\immediate...
l.7 \end{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
./proof-diagram-main.tex:7: Undefined control sequence.
\__hook enddocument ... }\immediate \closeout \sa
@out \__hook_toplevel endd...
l.7 \end{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
./proof-diagram-main.tex:7: Missing number, treated as zero.
<to be read again>
@
l.7 \end{document}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
[1
{/usr/local/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(build//proof-diagram-main.aux) )
(\end occurred inside a group at level 1)
### semi simple group (level 1) entered at line 551 (\begingroup)
### bottom level
Here is how much of TeX's memory you used:
1562 strings out of 476047
30046 string characters out of 5790050
1850999 words of memory out of 5000000
22011 multiletter control sequences out of 15000+600000
513191 words of font info for 35 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
76i,5n,76p,242b,435s stack positions out of 10000i,1000n,20000p,200000b,200000s
</usr/local/texlive/2023/texmf-dist/fonts/type1/public/amsfonts
/cm/cmr12.pfb>
Output written on build//proof-diagram-main.pdf (1 page, 12813 bytes).
PDF statistics:
13 PDF objects out of 1000 (max. 8388607)
7 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
smime.p7s
(application/pkcs7-signature, 5.5 KB) - not displayed