# Tag Info

3

Changing the pagination parameters is not the best thing to do. Here's a working version: \documentclass[a4paper]{scrreprt} \usepackage{graphicx,picture} \newcommand{\includegraphicsfullpage}[1]{% \newpage \bgroup \thispagestyle{empty}% \parindent=0pt \begin{picture}(0,0) \put(% ...

0

By shrinking the code to an MWE, an unprocessed-floats error came up. Using a for-loop for multiple invoking of the same tikz, the error shows up after the 18th iteration (image). After including the morefloats package it was solved and successfully tested up to 30 images.

0

I got it working with import package and linux terminal command sed that creates inputFileDis.tex with the text between \begin{document} and \end{document} from inputFile.tex: sed -n -e '0,/^\\begin{document}$/d' -e '/^\\end{document}/,$d' -e p test/inputFile.tex > test/inputFileDis.tex which I need to run every time before I compile main.tex. Then ...

1

Have your main document in the current editing window. Now select Options-Define Current >Document as "Master Document". This will do what you are asking for, I just did it. Also, now >you can compile from any of the files and it will work. Just worked for me, thanks heaps. that was really annoying me. Much happier now...

2

The solution for png and jpg is: https://github.com/zerotoc/pdfinlimg. haven't found one for pdf (yet). (Thanks for pointing me into the correct direction, Jake!)

2

Here is a MWE which employs the standalone package. The main file main.tex is the following: \documentclass{article} \usepackage{standalone} \begin{document} \input{file1} \pagebreak \input{file2} \end{document} In turn, file1.tex is: \documentclass{standalone} \begin{document} Hello world! \end{document} and file2.tex is: ...

3

I think what you want is an easy way to select which part(s) should be compiled in the master file. The following supposes that you have two chapters in the book, and each of them has three sections as you described. STEP 1 This is the master file: % master file: main.tex \documentclass{book} \includeonly{chapter1, chapter2} \begin{document} ...

4

Just another approach without loading any package. The feature that I have to emphasize here is that \input can be nested as long as the files being referenced are all in the same directory. It means that nesting \input in nested directory is not possible without additional tricks. My answer below does the trick so you can have nested \inputs in ...

1

Check the package docmute. It is close to what you want as long as the preamble for the main file includes all the other preambles main.tex \documentclass{beamer} \input{fullpreamble} \usepackage{docmute} \begin{document} \input{doc1.tex} \input{doc2.tex} \end{document} doc1.tex \documentclass{beamer} \inpute{fullpreamble} \begin{document} body1 ...

2

I have a different method using "Ghostscript" and "GeoGebra" Extract pages file in two different formats (pages 5 to 10): gs -sDEVICE=jpeg -dNOPAUSE -dBATCH -dFirstPage=5 -dLastPage=10 -sOutputFile=figure-%d.jpg input.pdf gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dFirstPage=5 -dLastPage=10 -sOutputFile=figure-%d.pdf input.pdf we have the files: ...

4

You can use the following code to determine the viewport to trim anything outside. % cropper.tex \documentclass[preview,border=12pt]{standalone}% remove border option to get a tight output \usepackage{pstricks} \def\M{10}% columns \def\N{10}% rows \def\scale{1}% scale \def\filename{example-image-a.pdf}% filename \def\page{1}% page \usepackage{graphicx} ...

5

graphicx is able to add only one page from a PDF file and to trim it. \documentclass{article} \usepackage{graphicx} \begin{document} Some text \includegraphics[ page=15, trim=14.8cm 5cm 1cm 21cm, clip ]{../calcolo/trigonometria/trigonometria.pdf} Some other text \end{document} This is the original page: Some trial and error in determining ...

Top 50 recent answers are included