Section about importing files / tex files in particular
This commit is contained in:
33
README.md
33
README.md
@@ -377,3 +377,36 @@ pages = {<PAGES_OF_NEWSPAPER_RELEVANT>},
|
||||
To cite your sources you've defined in your bibliography file, you can use the syntax of `\cite{<CITING_ID>}` as you can
|
||||
see, you need your citing-id here again. This is to reference your citing in the text to the correct entry in your
|
||||
bibtex-file.
|
||||
|
||||
# Importing other files
|
||||
|
||||
With LaTeX you can import other files (such as other LaTeX files or pdfs) into your main file. This is very useful for
|
||||
attachments or external documents, which you want to include in your documentation.
|
||||
|
||||
## Import .tex files
|
||||
|
||||
To import .tex files, you can use `\input{<FILEPATH>}` or `\import{<FILEPATH>}`.
|
||||
|
||||
## Import one .tex file
|
||||
|
||||
To import a single text file, you can just use `\input{<FILEPATH>}`.
|
||||
|
||||
## Import multiple .tex files after each other
|
||||
|
||||
If you want to import multiple .tex files directly after each other, the syntax is a bit special. You use
|
||||
`\input{<FILEPATH>}` for the first .tex file, and `\import{<FILEPATH>}` for all the following .tex files. As soon as
|
||||
there is a text, heading or float (graphics/tables) between two imported .tex files, you can use `\input{<FILEPATH>}`
|
||||
again. See the example below for clarification.
|
||||
|
||||
```latex
|
||||
\input{<FILEPATH_1>}
|
||||
\include{<FILEPATH_2>}
|
||||
\include{<FILEPATH_3>}
|
||||
\include{<FILEPATH_4>}
|
||||
|
||||
|
||||
\section{New header}
|
||||
This is a text for this header.
|
||||
|
||||
\input{<FILEPATH_5>}
|
||||
```
|
||||
Reference in New Issue
Block a user