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.

3
votes
1answer
40 views

\section causes citations to display as [0]

I have a main .tex file where I input some chapters which are other .tex files. Then I have a bibliography that I input in the main. If I have some \section in my input file, some citation become "[0]"...
0
votes
0answers
14 views

using input to capture random questions in a folder

I have a directory with multiple questions, each question has a number, example, quest1 ... questn. Using random numbers I want to get the questions randomly, I'm using \input {} because the questions ...
0
votes
1answer
21 views

How to take path from batch in LyX2.3.2?

I'm using LyX in Windows 10 and searching to display the path where the file.tex is placed, this file is supposed to be placed in different places and used from different users. I try to explain what ...
0
votes
0answers
13 views

pgfplots input axis settings from an external file [duplicate]

I want to plot multiple figures with the same settings, but different content. I would then like to be able to change the settings in all plots at the same time. To achieve this, I'd like to store the ...
1
vote
0answers
33 views

Cannot input utf8 encoding with csvreader

I am trying to generate a table with \csvreader. The problem is latex is ignoring when I have some german chars such as; ü,ä,ö How can I fix this? Here is the code: \documentclass{article} \...
0
votes
1answer
26 views

How can i remove this blank page after my list of figures?

All chapters of my work have enough text in them to fill atleast two pages, so this is not an issue, but for my list of figures, i get this empty page after wards: This is my main page: \...
3
votes
2answers
65 views

expl3-strategy to automatically update the title of a document, depending on its content

Context The current question arises: as an attempt to improve the aim explained in a question of mine (Expl3' tl variable storing the result of a \seq_map_inline: OK in article's title but ...
0
votes
0answers
23 views

change the default path where Latex looks for everything

I'm trying to throw different projects into one document that are in different folders. These folders include images and texfiles. I know that I can always include files with \input{} or \include{} ...
0
votes
1answer
39 views

Include filename in a nested document

I have a large project split in multiple files. I'd like to get each subfile name in the pdf to monitor my document. From different posts on this forum i understand Currfile package could help by ...
0
votes
0answers
23 views

Running into performance issues when working with a multi-chapter book

I am typesetting a 600+ page document on 6.125"x9" paper and running into two performance issues: TexStudio is becoming increasingly slow with its code-completion; and compilation is taking a very ...
1
vote
3answers
32 views

Variables with Input from Separate File

I just started learning Latex for work but I'm having trouble with a code I'm writing. I'm trying to create a file that will take variables from another file and print them out with their assigned ...
1
vote
1answer
44 views

\input{} command inside custom .sty package

Here's my setup : Two PCs (one desktop and one laptop) Two installations of Texmaker and MikTex (exactly the same versions) i've created my own package (.sty file) and this package uses external ...
0
votes
0answers
21 views

input a file and then input a modified version of this file again

I want to create short profiles for people that open up when someone clicks on the name and also a list of all people at the end of the document. I got a command that sets up how the box should look: ...
0
votes
1answer
33 views

Suppress pages in Beamer presentation

My project uses multiple inputs to tex files that contain frames for a specific topic. Example: main.tex topics topic1.tex topic2.tex topic3.tex This is in the main.tex: \documentclass{beamer} \...
0
votes
1answer
43 views

Including file in .cls

I have created a class and defined a command in there, to create a titlepage: class.cls : \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myclass}[2019/03/25 myLaTeX class] \LoadClass{scrartcl} \...
0
votes
1answer
19 views

How to make an \input{} function with error-message?

I am frequently using the \input{} command in my master.tex file to import text from other files, e.g. \input{./texts/myText.tex} for inserting the text file "myText.tex", from the folder "texts" ...
4
votes
2answers
53 views

What is the purpose of ../ in \input and \include?

I sometimes see \include{../foo} and \input{../bar.tex} in code examples online. What does the ../ means? What does it changes? What are its advantages? How is it possible to use it?
0
votes
1answer
45 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
66 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
39 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
52 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
55 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
21 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
86 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
84 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
70 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
130 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
30 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
116 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
58 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
178 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
41 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
83 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
18 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
79 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
56 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
34 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
224 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
172 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
93 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
85 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
89 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
110 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
32 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
53 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
108 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
34 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
73 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
31 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 ...