# Tag Info

2

When working on big documents, you might want to split the input file into several parts. LaTeX has two commands that help you to do that. \include{filename} Use this command in the document body to insert the contents of another file named filename.tex. Note that LATEX will start a new page before processing the material input from filename.tex. The ...

1

\documentclass{article}% \usepackage{graphicx} \usepackage{hyperref,catchfile}% for the links \usepackage{verbatim}% for the input %To generate a text file for demonstration \begin{filecontents*}{1.txt} https://www.youtube.com/ \end{filecontents*} \usepackage{hyperref,catchfile} \newcommand\hrefFromFile[1]{% \CatchFileDef\myurl{#1}{\catcode`\#=12\...

2

Use the external TikZ library instead. With that library, each tikzpicture is compiled in a separate LaTeX run (you need to compile with -shell-escape) and then a generated PDF file of that picture is included. The example document below takes 2 s in the first run, and then 0.3 s in the next runs. Also, since the draft option is used and the ...

3

\input doesn't perform an assignment, so you have no guarantee of when the \afterassignment token will be inserted. With ε-TeX you can use \everyeof to add tokens at the end of the input file: % Example file: \newwrite\temp \immediate\openout\temp=example.tex \immediate\write\temp{Some text\par} \immediate\closeout\temp \def\section#1;{% \...

Top 50 recent answers are included