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
1
vote
2answers
28 views

give a document input to lstnewenvironment

I recently asked this question: Independent caption and numbers on different lstlisting language script And the answer for my need was to use \lstnewenvironment. Problem is that I'm still working on ...
1
vote
0answers
24 views

Best practice of placing commonly used pgfplots settings in a separate file?

As years go by and make more and more figures I have started to accumulate code I reuse often, new commands, settings etc for pgfplots. After a while it start to get a bit cumbersome, so I'm looking ...
0
votes
1answer
46 views

Is there a central location where I can keep input files?

I made a macros file which I use in every paper I write. For years, I've included a copy of this file in every LaTeX folder, but this is inconvenient because when I add a macro, the change appears ...
1
vote
1answer
36 views

draft mode does not respect \input command

I'm using the elsarticle document class with the draft option enabled. I thought that the draft mode would skip the files imported with the \input{} command as well but it is not the case. I use the \...
1
vote
1answer
24 views

How can I read the input to the pgfmathsetmacro command

I want to read the number from the external file into the \pgfmathsetmacro command, but it does not seem to work that way \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \...
3
votes
1answer
56 views

Inserting tokens after \input

The answer for this should be pretty simple, but I just can't seem to find how to do it. I'm trying to use \afterassignment to make syntax for a section header and then use TeX's lexing for \input to ...
0
votes
2answers
62 views

How to create sections and input file provided a different file exists?

My Issue: I have to compile a LaTeX file which contains a series of possible outcomes for a series of possible case studies. As not all the outcomes I list in the first \clistmapline have a case ...
1
vote
2answers
26 views

Using surrounding list items in inner loops to input composite filenames (forarray package)

I am trying to compile a document where a section is made up of various subsections (one for each topic I want to report), each of them made up of a different number of subsubsections (varying ...
0
votes
1answer
39 views

latex conditional include input files

I have the following latex file structure (for a good reason) and I would like to use preamble in both main.tex and other_main.tex |-main.tex |-subsections |-preamble.tex |-input1.tex |-...
0
votes
0answers
20 views

Duplicate header when using input with author and institute element

I have an issue with a duplicate header. I'm using lyx 2.3.2 and a beamer template with no additional modules. The issues lies in including via 'input' a lyx document containing only author, institute ...
0
votes
0answers
24 views

Include subitem from a file into master file

I am currently working on my resume and I am trying to make it modular. I have a content folder which has different .tex file for each section in resume such as education.tex, experience.tex, and ...
0
votes
1answer
39 views

Using \input for the gantt options

I am having an issue with using \input to enter the gantt chart options. The command for a gantt chart is: \begin{ganttchart}[options]{start tss}{end tss} · · · \end{ganttchart} In place of [...
5
votes
1answer
88 views

Can labels be “reset”, so the same file can be inputted multiple times?

I am trying to implement LaTeX at my company to avoid a lot of manual work and errors 😊 A report contains the same section multiple times – with only several component “tags” varying. The tags ...
0
votes
0answers
22 views

Does any LaTeX IDE embed files after `\input` commands?

I am working on a complex document that variously needs to be compiled as a single document, individual sub-documents or smaller-sub-sub-documents. This means I have to juggle a lot of 'frame ...
3
votes
1answer
46 views

Why is \everyeof{\noexpand} needed to avoid “File ended while scanning definition of” with expandable read from file?

Consider this code: \documentclass{article} \usepackage{filecontents} \begin{filecontents}{foo.txt} abc \end{filecontents} \begin{filecontents}{bar.txt} abc \end{filecontents} \begin{document} \...
1
vote
0answers
40 views

Pdflatex not compiling when a separate section file is not included [closed]

I'm working on a multi-section document, where each section is written in a separate .tex file. The main file contains the following code snippet: \input{introduction} \input{genrate} \input{setup} \...
11
votes
1answer
1k views

Dealing with strict rules for paper submission using LaTeX

My dear LaTeX users, I'm quite new to Latex and as PhD student in Chemistry at want to prepare all my manuscripts in LaTeX even though my groups is not a big LaTeX user (I'm tired of Word). ...
0
votes
0answers
57 views

\input working but \include not showing anything

I am facing the following issue. I have a big project on Overleaf that I split into many separate files. All those files are included into the main.tex file using the \input command. After some time I ...
1
vote
0answers
18 views

Is there a way to add a directory to the search path on the fly / not redefine?

Numerous examples (see this one for instance) describe the the use of: \makeatletter \def\input@path{% {<path1>}% {<path2>}% }% \makeatother as way to broaden the compiler's search ...
7
votes
2answers
199 views

Insert text with terminal color escape sequences

I have a log file generated in unix shell, with bunch of shell/terminal color escape sequences. E.g. echo -e '\e[1;34mBLUE TEXT\e[0m' outputs "BLUE TEXT" in blue, and so on. How can insert this log ...
0
votes
1answer
39 views

MiKTeX/TeXstudio doesn't find .pdf graphics after changing PC

I am writing my bachelor thesis with MiKTeX/TeXstudio and I am using \input with seperately defined graphic paths for inserting my .pdf_tex graphics. Everything worked fine until I changed my PC. Now ...
5
votes
1answer
141 views

Inputting extension-less files with LuaTeX fails after recent LaTeX update

After the recent (last week) LaTeX update, inputting extension-less files in LuaTeX fails. The workarounds in Error with LuaLaTeX, tcolorbox with the listings library and an extension-less file don't ...
0
votes
0answers
92 views

Option clash for package inputenc

031019manuscript.tex, line 13 LaTeX Error: Option clash for package inputenc. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... ...
0
votes
0answers
23 views

synctex doesn't work with a `.tex` file contains `\input` command which pathname include chinese characters

synctex doesn't work with a .tex file contains \input command which pathname include chinese characters when I ctrl+click on a .pdf page, TeXworks's error reporter will say "no file name ...
4
votes
0answers
80 views

A version of \includeonly for \input

I have a pretty long paper that is getting sluggish to compile. Different sections are imported with \input. I'd like to have something like \includeonly but that works on \input rather than \include ...
1
vote
1answer
72 views

How to include a highlighted source code from external tex file?

I have tried to minimise my scenario here. Basically, I would like to call each piece of highlighted code from external tex file over the beamer class. There are two .tex files code.tex main.tex ...
0
votes
3answers
95 views

\input{\<variable>} yields “Undefined Control Sequence”

I am creating a class that I want to use for creating my own worksheets. As such, I want each course that I teach to have its own information file, stored in the file , which, in the assignment, I can ...
1
vote
0answers
24 views

Directories searched by \input primitive

I use MacTeX 2019. The question is as follows: if a TeX source file says \input <file name>, where does TeX look for a file with the specified file name, and in what order?
2
votes
1answer
58 views

How to fix an issue about multiple output lines in algorithm

When I write a pseudo code using algorithm and algorithmic. Output statement overflow a line like below. \begin{algorithm}[!h] \textbf{Input:} The set of public $parameters$\\ \textbf{Output:} ...
1
vote
0answers
38 views

Passing parameters to \input{text}

I'd like to create an exam from several .tex files. I'd like the master exam .tex file to include (or input, etc) a file for each question. I'd like each question to list the number of points that ...
0
votes
1answer
126 views

LaTeX changing svg text font

I followed this answer to use a svg image in my LaTeX document, but LaTeX changes the font I used when I created the image. How can I keep the "original" I set in Inkscape?
0
votes
0answers
34 views

Incompatibility between import and minted?

minted doesn't seem to work with import using \subimport*. Is there a way to fix that because I'm becoming addicted to the package import? Main file \documentclass[12pt,a4paper]{article} \...
1
vote
2answers
56 views

Two multi-file LaTeX projects sharing files

I'm new here so I'll probably ask a naive question. Please let me know if an dhow I can improve my question. I have written a long Latex document and I have split the chapters into different tex ...
1
vote
1answer
50 views

Input several Tables tex file with a fixed head columns

I have two tex files that I want to combine in order to make one table. In the first.tex, the data is like this: var 1 & num & num & num & num \\ & num & num & num &...
15
votes
1answer
705 views

What do these commands specifically do?

\makeatletter \providecommand*{\input@path}{} \g@addto@macro\input@path{{./level1//}{./level1/level2//}{./level2//}} \makeatother I understand: \makeatletter \makeatother are just necessary for ...
3
votes
0answers
66 views

Inputting a big number of tables into LaTeX

I am working on the project in LaTex that requires me to input a large number of tables produced in R via xtable packages. Let's say I have already output a large number of tables (about 150 of them). ...
0
votes
1answer
37 views

Centering a pair of overfull PDFs

I'm trying to get to the bottom of how to position and center things. Here I've placed two very large PDFs side-by-side. I scaled them down to the current size and tried to center them: \...
1
vote
0answers
27 views

Using \input in \title with amsart affects case

I have a bunch of documents that should all have a common string in their title, so I wanted to move that string into a separate file and include it using \input. That way if I want to change the ...
2
votes
1answer
42 views

How to avoid automatic indents after \input caused by a preceeding line break

MWE: \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \begin{document} \section{Some Section} First (long) paragraph. \\ Second (long) paragraph. \\ \input{some_figure} Third (long) ...
4
votes
3answers
71 views

\input{} inside \chemfig{}

I'm likely ignoring something fundamental here and was hoping for some hints. Please see the inset mwe. Towards having a library of chemfig symbols, I see value in being able to point to a ...
0
votes
1answer
23 views

restricting the folders available in \input (etc) in LaTeX

I am running LaTeX on a server, users are collaborating and contributing files and the server runs LaTeX on a root file I produce which \inputs user files (each user has her own special folder). The ...
0
votes
1answer
41 views

VS Code, Latex Workshop: saving a chapter imported with \input recompiles everything

I'm editing a long document with VS Code and Latex Workshop (my master's thesis). It is split into 7 chapters, each in its own .tex file. They are imported into an overarching thesis.tex file with \...
0
votes
0answers
29 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
133 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
42 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
37 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
15 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
65 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
49 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
56 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 2 3 4 5 14