Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [input]

{input} is about the \input command which makes LaTeX process the content of a given file basically the same way as if it would be written instead of \input.

0
votes
1answer
41 views

Does the \import command slow down typesetting compared to \input?

Using the \import command (instead of the \input command) in order to be able to use relative paths is in some situations very convenient for me. However, it seems that, in particular for large ...
1
vote
1answer
45 views

Saving tikz figures in external file

I have several tikz figures, some of which are over 400 lines of code. This complicates my working on the main file since I have to scroll past all that code quite often so I was thinking I put it in ...
0
votes
0answers
32 views

Preprocess a .tex file and save it as a new file

I have several .tex files that I would like to share with other people. I've included in them (with the command \input) several files with macros that I've written myself. However, I would like to ...
3
votes
1answer
28 views

Include specific parts of a standalone subfile

I'm trying to compile one main file of exercises where each exercise is a standalone TeX file. standalone is the perfect package for that but it lacks the customizability to choose a specific part of ...
0
votes
1answer
20 views

How to input eps_tex from subdirectory?

I have the following directories: maindir '-thesis.tex '-figures '-drawing.eps_tex '-drawing.eps My thesis.tex looks like this: \documentclass{article} \usepackage{graphicx, color} ...
0
votes
0answers
18 views

Partial compilation of part of a document without breaking the page

I'd like to avoid recompilation of unchanged sections of my documents. However, I don't want new sections to be on new pages. Suppose this is my document: I only want the second section to be ...
4
votes
1answer
66 views

Build one single .tex file from a .tex file with multiple \input

Edit: I think this question is sufficiently distinct from this question because I am specifically asking for a method within TeX itself, i.e. not running some Perl script separately to do this, but ...
0
votes
1answer
55 views

I can't find file `luavlna'

For some reason, the package luavlna doesn't seem to be working. I am using MiKTeX and have the luavlna package installed. When I try the following example: \documentclass[a4paper, 12pt]{article} \...
2
votes
0answers
65 views

Data input in LaTeX possible?

For my next project, I want to check my options. I would like to create a lexicographic book with genealogical data as a PDF, probably in XeLaTeX but I am open for suggestions. The book shall contain ...
2
votes
2answers
119 views

Invoking \input without arguments/parameters

I am wondering what the effect is of invoking \input without any arguments/parameters followed by an empty line: Code: .... \input ....
0
votes
0answers
23 views

Is it possible to `\include`/`\input` a text depending on the language set on babel or polyglossia

I would like to know if it is possible to conditionally require, in a given document, the inclusion of a chapter or the input of a particular piece of text, depending on the language set on babel or ...
1
vote
1answer
101 views

pdfLaTeX not accepting shell commands despite shell-escape option

I am testing the shell escape option, but I am stuck on a very early level -trying to do: \input{|"time /t"}}. My pdfLaTeX is complaining: ! LaTeX Error: File `|"time /t".tex' not found. As far as I ...
1
vote
1answer
57 views

question - answer system

Please excuse my poor English. I have a question regarding a "question - answer" system in latex. I want to create a quiz with 1000+ questions/answers like this: Question_1 Question_2 ... Question_n ...
5
votes
2answers
172 views

Can arara detect a rule inside a \input file ?

I started to use the nice arara package to automate my compilation process for my thesis. I know it is better to place the rules using e.g. % arara : pdflatex placed at the beginning of the .tex ...
0
votes
0answers
29 views

How to add my own directory to TexWorks search list

I am using TeXWorks as the front end for the XeTeX format. Just installed this from the TeXLive 2017 CD. I have a directory of my own plain-Tex macro files. I want my plain-TeX coded documents to ...
2
votes
1answer
69 views

\input{} File does not exist [duplicate]

I have written a template for a personal diary. The main tex file \input a file called entries.tex, which will \input all the diary entries, which are in a subdirectory, as well as write the title of ...
0
votes
0answers
17 views

Any way to move content definition to end of latex input file for use earlier in the file?

I would like to make a document template which is a self-contained file. This document will include a logo, defined using PSTricks macros. I actually created this by converting the svg version of the ...
1
vote
1answer
63 views

How to include a file with the verbatim environment

I would like to include a file within the verbatim environment but this of course doesn't work: \begin{verbatim} \input{file.tex} \end{verbatim} Is there way of getting LaTeX to execute \input ...
1
vote
2answers
52 views

I'd like to put a full pdf page in my document, but it doesn't work!

i've got an issue. I'm writing a LaTeX document, i would like to make a page of my final document as a pdf file (that is a text). I searched on this site but no one of the existing topic helped me. I ...
0
votes
0answers
31 views

One latex document to another latex document referencing

I have a latex document named L1. The content of this document to another latex file(L2). Is it possible to referencing L1 to L2 such that all the content of L1 will come to L2. Example: Content of ...
6
votes
1answer
203 views

Does \input really just include the file?

I have an issue with the \input command. As it is stated here, "it's equivalent to typing all the commands from filename.tex right into the current file where the \input line is." I have the feeling ...
5
votes
1answer
165 views

Same absolute path works for \input but does not work for \include, why?

If I use the command "\input{filepath}" then the file is perfectly printed in "main.tex". If I only change the command to "\include{filepath}" I get the following error: I can't write on file `...
2
votes
2answers
85 views

expand variable inside \input

I need to dynamically input a proper .tex file into my document. I wrote the following code that works only if instead of "\realyear{\season}" I explicitly write 2019. Inside the \input all new ...
1
vote
1answer
46 views

\input command recompile error “File ended while scanning use of \@xdblarg.”

Hello i have an annoying problem. Its about the use of \input command I have created a folder called Docs and within that folder i have a folder called cha for chapters. my main file is called ...
2
votes
1answer
74 views

How to \input using relative or absolute path (in plain TeX)

I'd like to have my personal library of macros but I do not know how to import them from different directories other than the current one. And It feels super ugly to have symlinks to all files in my ...
5
votes
1answer
96 views

\scantokens not playing nice with \def or \gdef etc

I working in a context where I'm changing catcodes and need to rescan the tokens before proceeding to process the text. But, I'm running into problems. Even with this bare minimum code, I still have ...
2
votes
1answer
25 views

Disable Draft mode for single input

I am working on a document with many images. Thus, I set the option \documentclass[draft]{scrbook} to have a fast compiliation process. If I still want to look at a specific image, I use \...
1
vote
2answers
52 views

shared common text across many documents

I'm writing my statement of purpose, and I want to have a shared "main" part and a "school-specific" part. I plan on storing the school specific parts in documents like school1.tex, school2.tex... I ...
1
vote
0answers
73 views

relative directory with bibtex

I am currently trying to have a reference for each of the \input of my document. The working tree looks something like this: project |--main.tex |--chapter1 |--chapter1-1.tex |--...
0
votes
2answers
32 views

Letter with scrlttr2: How to include adress and text from one single *.tex file

I was wondering, if it is possible using always the same Latex document for writing different letters without copying the whole folder with all the tex files. To begin a new Letter, I want to input ...
0
votes
1answer
15 views

how to insert the contents of an `\input`ed file into the source? [duplicate]

Is there a utility that will take a LaTeX source file, find all the \input{some_external_file} lines, and insert the contents of those external files into the master document without compiling to PDF? ...
0
votes
0answers
53 views

Local change on command in a global structure.tex

I'm just writing my lessons for my physics students and i decided to write a global structure.tex to input in each of my report. To set up global changes on the toc, chapters title, fancypagestyle and ...
0
votes
0answers
29 views

Using \input{standalone_file.tex} and ignore some lines or commands in it

I want to draw my tikz-pictures inside a standalone class. However, for referencing and bib purposes and to make sure all font setting etc. are correct, I then want to compile the picture from the ...
1
vote
1answer
53 views

Error embedding .tex file (diagram) inside another .tex file: `Error: I do not know the key 'tikz/rectangle split'`

In learning how to create higher quality diagrams, I came across the tikz package and specifically this example tutorial web page (www.texample.net/tikz/examples/class-diagram/). I verbatim took the ...
1
vote
1answer
44 views

Using \input to insert Tikz-code from another file: nested input cause wider border each time called?

I am having a project in which I use Tikz for making my graphics. I "externalize" the coding by using a tikz-editor. I then simply save the achieved tikz-code in a separate .tex file in which only ...
1
vote
0answers
38 views

Problem with absolute path and [ngerman] babel?

I want to get rid of relative paths and defines a new command which point to the root folder of my project: \providecommand{\myPath}{C:/Users/xxx/Google Drive/WS_1819/Bachelorarbeit/_new/} However, ...
1
vote
2answers
51 views

Let tex search a file inside a folder?

As mentioned in my last question i have problems with \input command and relative paths which getting wrong. I also tried the import-package but don't get this to work. Till now I just have two ...
3
votes
1answer
71 views

Possible ways to split up and then recombine lecture notes

I'm teaching Math Methods of Physics this fall, and want to provide written notes after class for the students to use. I'd like for them to be individual lectures, but combinable into one document ...
0
votes
0answers
47 views

\input a .tex file from an url [duplicate]

Is it possible to use \input with an url as parameter: \input{https://mywebsite.com/mylatex.tex} If not, is there any way to achieve this? I am using the TeX Live distribution.
1
vote
1answer
39 views

\input@path and load path priority?

I have a project structure . ├── includes │   ├── apxproof.sty │   └── somecustommodule.sty └── tex └── document.tex including a bugfix version of apxproof.sty and setting \input@path in ...
1
vote
1answer
119 views

Use glossaries-extra + bib2gls with secondary files via \include instead of \input

Explanation I've been writing a larger document for a while and used makeidx to produce my index. However, this seemed to be not flexible enough, so I swapped to the more sophisticated glossaries-...
1
vote
1answer
75 views

\input only part of file, without losing SyncTeX support?

I want to include parts of a child document, specified by a range of line numbers, as LaTeX input, while producing useful SyncTeX information. It should also be possible to re-include lines already in ...
0
votes
0answers
28 views

\input part of a file (but remove line numbers) [duplicate]

Expanding off this post, I want to do the same thing, but with the line numbers removed from the output. Is this possible?
0
votes
0answers
69 views

latex line spacing and included chapters

I am compiling my thesis with latex and using the PhDthesis class from http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/. I have a few objects included using input. My problem is that ...
3
votes
1answer
67 views

Why is the \input command not honored when there is an incorrect use of \texttt before it?

Here is my code: \documentclass{article} \usepackage{listings} \begin{document} Foo { \texttt \input{bar.txt} } Baz \end{document} This produces the output: Foo bar.txt Baz I was expecting this ...
1
vote
1answer
84 views

With pdflatex and the minted package, how do I eliminate whitespace and include entire document?

I'm using tex because it seems to be the most appropriate tool for my workflow... I'm making posters to teach computer programming, these need to be full of syntax-highlighted code. I have a ...
2
votes
1answer
122 views

! Misplaced \omit error when inputting table with multicolumn

I am building a table from several components that I automatically export from STATA. For this, I use \input{} to input the components inside a table and tabular environment. This usually works well, ...
1
vote
0answers
77 views

Creating a multi-file project using figures from a different directory [closed]

I am trying to set up a multi-file document where I use \input to add different .tex files to my main document. Each .tex file is in its own directory/folder. There is also a separate directory for ...
4
votes
1answer
50 views

Different output when using \input command

Suppose, we need to create a block for signatures for a contract consisting of 2 horizontal lines and names below them. main.tex: \documentclass[12pt]{article} \usepackage[a5paper]{geometry} \...
0
votes
2answers
180 views

\input \include

I'm writing a thesis but not modular style. I simply write everything in one big document and want to change it. But there is a problem. For sections mustn't I start with begin{document} again? (...