New answers tagged

5

Use this master: \documentclass{article} \usepackage{standalone} \title{My Book} \author{Me} \begin{document} \maketitle \input{Section1.tex} \end{document} and this section1 \documentclass{article} \begin{document} \section{Chapter 1} Contents of Chapter 1. \end{document}


1

I just found out that removing the last comma, after the last page number definition will do the job. \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdfmerge[scale=0.5, delta=10pt 10pt, nup=2x2]{ black.pdf, 1, black.pdf, 1, black.pdf, 1, black.pdf, 1 } \includepdfmerge[scale=0.5, delta=10pt 10pt, nup=2x2]{ black.pdf, 1, black.pdf, ...


9

There is no inconsistency. The \include command should have an argument that is a file name without extension; this is the documented behavior an requirement. The command is only meant for inputting .tex files in order to do “selective processing” of the material by means of \includeonly. On the other hand, \input can be used for any kind file (even ...


5

The clue is in the terminal output that you show. (./bar.tex.aux) \include needs to construct the name of an aux file, and in tex if the user requests foo you can not tell if the actual file input is foo or foo.tex so the most reliable way (if you have reliable users) is to document that the file should always have an extension, and the \include argument ...


2

The following is a bit of a sabotage approach: before your summary, replace the command that extract uses to write to the file with an empty command. MWE: \documentclass{article} \usepackage{verbatimcopy} \VerbatimCopy{foo.aux}{foo-final.aux} \usepackage[active,generate=foo.aux,extract-env=equation,header=false,handles=false,copydocumentclass=false]{...


17

There are lots of incorrect latex input constructs that don't actually give an error, they just do whatever they do by accident and luck. \include only does anything useful if used after the preamble, if used before it probably works like an inefficient version of \input and you manage to avoid an error just the way it works out, but no part of the behaviour ...


17

The \include command uses \clearpage at the beginning, however there's no page build up so far in the preamble, so it has no effect. Here's some code from the latex.ltx file (shortened!) \def\include#1{\relax \ifnum\@auxout=\@partaux \@latex@error{\string\include\space cannot be nested}\@eha \else \@include#1 \fi} \def\@include#1 {% \clearpage %....


6

You can not need \include functionality here as there is no way to use \includeonly to specify just one of the inclusions as they have the same name. So use \input not \include then you can input the file as often as you like.


10

Here is the theory; the image does not seem to align to the top and bottom of the integral sign because it has some white space above and below that I didn't remove. Use your own image, of course. \documentclass{article} \usepackage{graphicx} \makeatletter \DeclareRobustCommand{\duckintegral}{% \mathop{\mathpalette\duck@integral\relax}\nolimits } \...


4

Adding PDF pages as-is to an existing LaTeX document is easily achieved via pdfpages. In your preamble add \usepackage{pdfpages} and wherever you want to include the PDF, add \includepdf[<opts>]{<file>} in your document. To include the entire <file>, use pages=- in your <opts>, or specify the pages.


1

The commands \nomname, \nomenclature{}{} and \printnomenclature are defined in the package nomencl. Hence, you should use: \usepackage{nomencl} instead of \usepackage[acronyms]{glossaries} in the preamble.



Top 50 recent answers are included