Stack Exchange Network

Stack Exchange network consists of 174 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
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
66 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
56 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
166 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
23 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
58 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
16 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 ...
0
votes
0answers
12 views

line-breaking behaviour changes after \subfile

In my document, the line-breaking behaviour changes, depending on the parts I have \subfiled before. I haven΄t been able to isolate it in a MWE to make it visible. If I compile a document that ...
1
vote
1answer
29 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
50 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
29 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
196 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
160 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 `...
0
votes
0answers
29 views

\input{} with Tikz picture reference

I have a problem with \input{my_tikz_picture.tex} in my document. With my_tikz_picture.tex includes something like: \begin{figure} \begin{tikzpicture} ... \end{tikzpicture} \label{fig:a_label} \...
0
votes
0answers
27 views

convert (serialize) to single file

I have written a PhD thesis in LaTeX as well as several more articles and presentations. They are all situated in the same directory structure and they all use the same low level files, .tex, .pdf, ....
2
votes
2answers
71 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 ...
0
votes
0answers
20 views

\epigraph and \include: breaking pages indiscriminately

I'm trying to use \include (and I also tried \input with \newpage) to add some parts containing the usage of the command \epigraph. Unfortunately, no matter what I try to do, or both parts merge in a ...
1
vote
1answer
37 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
63 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
89 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
24 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
51 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
40 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
29 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
12 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
43 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
24 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
49 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
43 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
33 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
48 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
69 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
38 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
24 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
93 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
70 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
57 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
75 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 ...
0
votes
0answers
58 views

Problem with \cref across multiple input files

When using \usepackage{cleverref} the code doesn't see other labels from other input files. If I have: \documentclass[a4paper,article,12pt,openany,twocolumn]{memoir} \usepackage{graphicx} \...
2
votes
1answer
97 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
72 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
48 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
97 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? (...
1
vote
2answers
74 views

Including only a part of a TEX file

I am writing a report and want to include another TEX file in it, which I update separately. I use the input command \documentclass[11pt,a4paper]{report} \usepackage{amsmath,amssymb} \usepackage{...
0
votes
0answers
29 views

Unicode char not set up for use with latex [duplicate]

I am trying to display something like ó í ö ß ... basicalliy European alphabet Italy, France, Spain, Portugal, Germany. Should not be too hard. I load this package \usepackage[utf8]{inputenc}. As ...
1
vote
1answer
112 views

\input inside \newcommand and macro parameters

I would like to divide a list of parameters for a series of tikz graphics into a bunch of separate, named tex files. Specifically: each parameter file should be loaded by an \input command which in ...
0
votes
1answer
141 views

Does splitting tex documents into multiple ones improve build performance

I've seen this mentioned often, for example, in several answers here. But I have my doubts. Do LaTeX engines (latex/pdflatex/xelatex/lualatex) do incremental compilation at all? Besides, even if they ...
4
votes
1answer
297 views

How to input certain puzzles from a collection?

I'm building a database of math puzzles that each TEX file gathers puzzles in one year such as 2017.tex may have 10 of them, each puzzle and its solution with a label. Now I give talks and want to ...