Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
0 answers
28 views

\graphicspath but for tables [duplicate]

I want to do something similar to this post Separate directory for tables I want to have a standard directory path for tables like I have it for figures. For figures, I have the following: \...
cascom's user avatar
  • 1
1 vote
0 answers
48 views

\input{} does not work inside \longtable{} [duplicate]

I want to create multiple reports with dynamic tables. When I try to insert columns with \input{inputfile.tex} it gives me the errors: "Misplaced \noalign. \midrule ->\noalign" and "...
HauptDa's user avatar
  • 11
2 votes
4 answers
92 views

Loop to input content into tabular

I'm trying to input files that represent rows of a table into a tabular environment using a loop, but I'm having trouble using input. Here is a MWE of my code without using loops. I have files with ...
Nicolas Suarez's user avatar
0 votes
0 answers
26 views

\input with multicols pagebreaks

I have multiple .tex files that I insert into a main document.tex file. This is done for separating the different parts of my paper. The .tex files that are called with \input in document.tex contain ...
ptushev's user avatar
0 votes
0 answers
15 views

TeXstudio: create chapters in subfolders and figurtes in subsubfolders

I'd like to setup my document as such: /folder/main.tex %includes the preamble info /folder/chapter1/CH1.tex /folder/chapter1/Figures/<all_Ch1pictures.png> /folder/chapter2/CH2.tex /folder/...
MrI2C's user avatar
  • 125
0 votes
0 answers
31 views

Importing parts of a .txt file in LaTeX document [duplicate]

Can you define which lines and columns from a .txt file to show up in LaTeX? I tried the \lstinputlisting command where it seems I can only limit the output to specific lines and not columns as well, ...
Charles TeXavier's user avatar
0 votes
1 answer
135 views

Easy way to iterate through files in directory

I've already read multiple solutions where the poster iterates over the number of the files, but what I'm looking for is a simple way to iterate through the files in a directory. For example, \...
Figaro's user avatar
  • 3
0 votes
1 answer
35 views

nested relative inputs

Problem: This is something that that bothered me for quite a time. If you have multiple files, then you have to make all input paths relative to the main tex file (or actually the directory from where ...
Nathanael Skrepek's user avatar
0 votes
0 answers
149 views

How to determine where does `\input{}` search for a file?

I have some file foo-<YYYY>.tex which I update every year and is located in the following path: C:\Git\directory\texmf\tex\latex\folder My MiKTeX configuration contains the previous path in its ...
Daneel Olivaw's user avatar
0 votes
0 answers
47 views

several table of contents

How does the code have to be edited if an external tex file is included (via \input)? The external file should have its own independent table of contents. \documentclass[a4paper]{article} % ...
nobody's user avatar
  • 1
1 vote
1 answer
62 views

breakable textfield

is there any way to have a fillable textfield which is breakable across two pages, i.e. not to be forced to one page only? MWE: \documentclass[11pt,a4paper]{letter} \usepackage[utf8]{inputenc} \...
Stefanos Rotas's user avatar
0 votes
0 answers
63 views

pdflatex for pdf with interactive/fillable box with adjustable height to input

Following up on this question from August 2023, is there any update on creating a form on a hyperref generated pdf, with height adjustable (without rescaling) to the context, so it can be saved/...
Stefanos Rotas's user avatar
1 vote
1 answer
38 views

When inputting a file, can I extract the title as a section header?

To move sections and sections down the hierarchy, I have: \let\section\subsection \let\subsection\subsubsection In case it's needed, here is ExampleFile.tex \documentclass{article} \title{Example ...
Claire's user avatar
  • 13
2 votes
4 answers
76 views

How to turn string read from (CSV) file into counter

I have a csv file with tags and (page) nrs, as follows: tag,nr t1,1 t2,5 t3,9 The nr-column refers to page numbers in a pdf file. Each page has a corresponding tag. Given a tag, I want to show the ...
avandeursen's user avatar
0 votes
0 answers
182 views

How to properly define TEXINPUTS

There are numerous questions on this site (and elsewhere on the web) how to define $TEXINPUTS and other strategies for including non-standard locations to be searched by TeX. See, for instance the ...
jan's user avatar
  • 2,256
2 votes
1 answer
53 views

Input under conditions

I have a main document with inputs of several others. This is my main document \documentclass[11pt, a4paper]{article} \newcommand{\years}[1]{\textbf{Years} #1} \newcommand{\corps}[1]{#1} \begin{...
Laura G's user avatar
  • 23
1 vote
1 answer
56 views

input tex from variable

This PR0101_Enunciado.tex file is inside the folder Ejercicios and contains this line only : Un enunciado de pregunta Then, in another folder at the same level of somefolder, I have this main.tex: \...
Lev's user avatar
  • 157
0 votes
0 answers
113 views

How to create a latex file with html input value?

I have a latex file and a website. On the website I have an input field, in which you can write text. Then when you click a download-button on the website I want that it automatically creates a pdf (...
mat's user avatar
  • 1
0 votes
0 answers
80 views

longtable contents from file

I observed a difference in a longtable environment that reads it contents via an "\input" command. longtable package version 4.17 creates an additional empty line, that is not present with ...
chrisF682's user avatar
3 votes
1 answer
78 views

Redefining \input with itself leads to unexpected behaviour

I am trying to intercept calls to \input and branch of functionality for some filetypes. However, I have run into the following strange error: Consider the M(n)WE given below, where the macro \input ...
marc's user avatar
  • 701
0 votes
0 answers
38 views

Wrong pathnames with latexdiff -- flatten and multiple files added with \input

I've written my thesis in latex and have one folder per chapter and in each chapter folders, I've subfiles per sections. Now, I'm using latexdiff on my mac's terminal to look at difference between the ...
Alice's user avatar
  • 1
4 votes
4 answers
231 views

Using \input for command arguments

I'm making an rpg system. I want to separate the contents of the spell from the formatting of the spell to, for example, be able to format the spells differently for character sheets vs a dedicated ...
Amit's user avatar
  • 43
2 votes
1 answer
125 views

\Include working on mac, but not on windows

I am working on a big LaTeX document (thesis), that's broken down into multiple .tex files, and I thus have only a thesismain.tex file to compile that uses \include. On a MacBook, compilation goes ...
Kal8578's user avatar
  • 175
1 vote
2 answers
540 views

Change build root directory in VSCode

tldr: how to change build root to different path from main tex file. Using VSCode and the Latex-workshop extension, I want to compile a document. My folder structure is as follows: /workspace_folder/ ...
Vahiel's user avatar
  • 61
0 votes
1 answer
139 views

List of acronyms as an input of a separate file .tex and not in the main

I'm trying to have a list of acronyms in my paper, but since it will be really long I don't want to write all the \newglossaryentry in the main. I tried to create a separate .tex file and use \input{} ...
Gin's user avatar
  • 1
0 votes
2 answers
160 views

Executing python script or code using \input not working

Im trying to execute a python script from within LaTeX by means of using the \input command, however I get a strange error that I can't really understand. Im following the working example taken from ...
Charlie's user avatar
  • 1,135
4 votes
4 answers
601 views

scanf functionality in TeX?

Is there a function akin to scanf of C that can simultaneously parse stdin or txt and assign them to variables? For example, I am trying to typeset a pdf from a text file. The first line contains the ...
qem69331's user avatar
1 vote
0 answers
39 views

Space after \input in tables causes new blank row

I have an issue with \input when using the new versions of LuaLateX. I include this MWE and afterwards some figures of the issue. I'm testing the code in Overleaf. The problem is that when I'm using ...
jlanza's user avatar
  • 1,259
1 vote
0 answers
44 views

Error with \input: runaway argument

I have the following two .tex files which won't compile: \documentclass[a4paper, twoside, 14pt, pdftex, pdfa]{extreport} \usepackage[utf8]{inputenc} \usepackage[czech]{babel} \usepackage{comment, ...
JoudaBouda's user avatar
3 votes
2 answers
276 views

pgffor with foreach inputted from another file does not work anymore with MiKTeX 23.4

This piece of code used to compile just fine with MiKTeX 2.9.6300: \documentclass{article} \usepackage{pgffor} \begin{document} \input{forEachInput.tex} { test \fruit } \end{document} The file ...
Giulio's user avatar
  • 327
0 votes
1 answer
126 views

eqref from another documents perspective

In the following code, I have two documents sharing the same input file (myeq.tex), which has a labeled equation. In Document 1, the equation would be referred to as equation 1 since it is the first ...
lostinmath's user avatar
0 votes
0 answers
125 views

Python from LaTeX: Strange Networkx/Graphviz error

It is hard to give a minimal example, because Python3 with some packages is needed. I want to call Python from LaTeX, here is an example how I want to do it (--shell-escape is needed): \documentclass[]...
Titanlord's user avatar
  • 541
0 votes
0 answers
10 views

bundledoc problem: \def\input@path does not translate to .dep properly

I define the root path for my \input files in the main.tex files as: \makeatletter \def\input@path{ {../fig/} } \makeatother When I input a tex file whose address is ../fig/tikz_plots/...
Hüseyin Can Önel's user avatar
1 vote
0 answers
47 views

Are header guards necessary for LaTeX packages? If so, how to implement one?

A header guard is used in some programming languages to avoid repeatedly importing the same file. Here's one example of this scenario in LaTeX: Let's say we have header1.sty, header2.sty and main.tex ...
Long Horn's user avatar
  • 115
1 vote
1 answer
76 views

How to input lyx file into .tex file

I would like to input the body of a lyx file into a tex file. Currently I convert the .lyx file (say child.lyx) to child.tex in Lyx with File > Export > Latex, and use \input{child.tex} in the ...
Alexei Alexei's user avatar
1 vote
1 answer
49 views

Piping shell command output to another command

I'm trying to write a command that wraps \href with a QR code to the given URL. For this I need to generate a temp file and reuse it later, so I wrote a \mktemp command that wraps the mktemp utility: %...
user84207's user avatar
  • 145
1 vote
2 answers
241 views

chapterbib with subfiles for sections

I'm using chapterbib for a long document and the creation of bibliographies for each chapter works fine. Each chapter is in its own file that gets included. Is there any option to split the chapter ...
gothicVI's user avatar
  • 588
2 votes
1 answer
128 views

A funny bug with input, newcommand, ifthenelse in a beamer

First I write a tex named thequest like: \begin{quest} Just a problem. \end{quest} Then in the main tex, I write \newtheorem{quest}{Question} \newcommand{\Fakeframe}[1]{\ifthenelse{\equal{#1}{}}{}{ ...
Ngiap's user avatar
  • 89
0 votes
1 answer
112 views

Add search path for \usetikzlibrary

How could I add a folder to the search path of tikz? More precisely, I have a structure like this (see below for exact content): mycachedfiles/a.tex myinput.tex tikzlibrarymy.test.code.tex I’d like ...
tobiasBora's user avatar
  • 8,804
1 vote
0 answers
118 views

With luatexbase.add_to_callback() how can I conditionally get default behavior for open_read_file and find_read_file?

Rationale: The goal I have is to create a system where I pretend -- via Lua -- that a file is being read, while in reality the contents come from elsewhere. A concept elsewhere called VFS (virtual ...
0xC0000022L's user avatar
0 votes
0 answers
61 views

Input and biber

I think it's a trivial question, but I cannot find the answer elsewhere. I am using a file to include other files through \input. Everything works fine except from bibliography, which does not work ...
Giacomo's user avatar
  • 133
0 votes
1 answer
68 views

Alignment of \input images in tabular

I'm trying to create a tabular environment using two images: one is \input from gnuplot, while the other is \input from a \typesetarray from the array package. My goal is to have them both aligned to ...
cmp's user avatar
  • 57
0 votes
0 answers
92 views

How to make an \input file build on its own?

I am working on an article in LaTeX that I am splitting into multiple files with \input commands. Each section is in one such file of its own. Is there a way to make these files build on their own ...
aquaticapetheory's user avatar
2 votes
1 answer
25 views

Inputing data for a tabular environment leads to a weird extra space [duplicate]

I'm writing a table and I'm trying to import its contents from an external file. Curiously, I found out that when importing the contents TeX seems to add a weird space to the last entry. This does not ...
Níckolas Alves's user avatar
2 votes
1 answer
468 views

What is the correct way to import files within subfiles?

The subfiles docs explains that it handles path issues when main files and subfiles are in different directories and subfiles contain paths relative to their own directories using the \import package. ...
socialscientist's user avatar
3 votes
2 answers
200 views

How do (relative) paths work with the subfile package?

I am trying to understand how (relative) paths need to be used with the subfiles package. In particular, it's not clear how content that I usually would include with \include, \input, \includegraphics,...
socialscientist's user avatar
0 votes
0 answers
93 views

How to input folders into latex?

I'm trying to compile my PhD thesis which contains three chapters. The relevant preamble I'm using is \documentclass[12pt]{report} \usepackage{titling} \usepackage{graphicx} \graphicspath{ {figures/} }...
Jan3's user avatar
  • 67
0 votes
1 answer
256 views

TeXstudio problem compiling

I am writing a long document (thesis). I have a main.tex file, and several individual files, for each thesis' chapter. These files are included in the main file using the \include command. I had ...
Marlon Calispa's user avatar
0 votes
1 answer
91 views

How to protect \input shell command args with backslashes

I want to \input"|..." to invoke a shell command and consume its output as LaTeX code. In particular, I want to write something like: \expandableShellCmdProtectCmdArgsWithBackslashes{echo}{2(...
David Fink's user avatar
0 votes
1 answer
88 views

Consuming variable's value (produced from shell call) as `\input`

Note: \input is not expandable: Why is \input not expandable? However, \@@input is. The goal is to \@@input some text produced from a shell call, obtained via \sys_get_shell:nnN (for how, see egreg's ...
David Fink's user avatar

1
2 3 4 5
18