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.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Inputting only a single environment from a file inside an enumerate environment using xcomment?

I am trying to input problem assignments into an exercise template from individual problem files, that also happen to contain the right answers to the exercises in question. The assignments and right ...
5
votes
2answers
112 views

Combining latex input and sed

I need to include file, but I want to manipulate it directly from PDFLaTeX. I must remove any text which is betweem \{ and \}, including backslashes and parenthesis. I have tried many escaping options,...
0
votes
0answers
41 views

\input ignores table of contents? [duplicate]

I have divided my tex files as follows: . ├── content │   ├── abstract.tex │   ├── mainA │   │   └── a.tex │   ├── mainB.tex │   ├── mainC.tex │   └── MainD │   ├── d.tex │   └── dd.tex ├── ...
0
votes
1answer
30 views

Problem with a child-document within a table

I ran into a problem with the \include/\input command. I want to generate a table based on the child document somedoc.tex, which looks as follow $$12.67$$ & $$6.18$$ & $$5.00$$ & $$60.33$$...
0
votes
0answers
40 views

How can I include a TikZ picture into a beamer slide without losing proportions?

For work I need to put a TikZ-Picture into a beamer presentation. For the presentation I was given a template and the pictures are also written by someone else, so unfortunately, I'm not able to ...
0
votes
0answers
11 views

Include a listing but set the caption in the enclosing file

I have a document with many large listings. To keep things organised I'd prefer to keep these listings in separate files and using \input in the appropriate location in the text. However, I'd also ...
0
votes
0answers
38 views

How to import a tex document as appendix?

I have two tex file "one is "cornell" template another one is "article" template that one is created from jupiter notebook. If I input this article front is missing but it run successfully as an ...
1
vote
1answer
37 views

LaTeX code with input dependent on some integer parameters

Suppose that I have a large number of .tex files with names 1.tex, 2.tex, ..., N.tex (with N = some integer). I would like to write a LaTeX document, where I set some parameters for example: howMany ...
1
vote
0answers
45 views

include files from specific folder

New linux (mint) user, with pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian), using TexStudio (that might change) I have custom files (sty's and whatnot) in a folder that I cannot move (...
1
vote
1answer
42 views

Recursively search parent directories when including/inputting file

I'm wondering if it's possible to modify the function of the \input command so that e.g. \input{macros} would work recursively. Variant 1 Check if macros.tex exists in the current directory. If ...
3
votes
1answer
45 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
16 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
0answers
28 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
40 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
31 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
72 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
28 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
57 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
24 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
42 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
59 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
23 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
46 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
22 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
46 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
92 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
40 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
63 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
80 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
23 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
93 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
109 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
77 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
139 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
32 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
123 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
62 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
179 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
46 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
94 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
19 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
95 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
66 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 ...
6
votes
1answer
236 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
180 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
104 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
112 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 ...