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.
877
questions
1
vote
0
answers
20
views
Can a variable be passed to the same program to iterate over, instead of editing the source and running it with distinct values?
My MWE is:
\PassOptionsToPackage{rgb,dvipsnames,svgnames,dvipsnames,hyperref}{xcolor}
\documentclass[border={2pt},tikz]{standalone}
\usetikzlibrary{math, calc}
\begin{document}
\begin{tikzpicture}[...
0
votes
1
answer
34
views
How can I use \input with relative figure folders? [closed]
I am trying to make a main file with \input of a bunch of tex files. These tex files use \Figures... . png as images in each folder of each tex file. The \input in the main tex file gives the error ...
0
votes
1
answer
70
views
How can I input external files by using a list of names?
My code is the following:
\documentclass[ngerman,german,14pt,twoside,openany]{scrbook}
\usepackage[left=2.5cm,right=2.5cm,top=2cm,bottom=2.5cm]{geometry}
\usepackage[ngerman]{babel}
\usepackage[utf8]{...
0
votes
1
answer
53
views
Problem with \input with pdflatex [closed]
I'm having a problem when using the \input command with PdfLatex to compile. I have two files, the first one and the other to include with \input.
\documentclass[12pt]{article}
\usepackage{lipsum}
\...
0
votes
0
answers
26
views
Include all chapters, but compile only one?
Instead of one big tex file, I put the chapters into separate tex files for faster compilation. My main tex file now looks like this:
\include{ch-abstract}
\include{ch-acknowledgments}
\include{ch-...
0
votes
0
answers
18
views
Errorin compiling using color package and input
I'm using Overleaf to do a report for school, and in order to be readable, I've chosen to write every chapter in different .tex and then take them in the main .tex with all the packages, and do \input....
0
votes
1
answer
39
views
Difficulty with template for multiple chapters
Folks:
I am a Latex newbie.
I have a book consisting of 24 chapters in word.
I would like to be able to work on each chapter separately, but compile them as one Latex file. I copied code from ...
0
votes
2
answers
49
views
Importing a section from another document (with begin document)
I have two different latex files, which I would like to import one to another file. Here's what I've searched previously in older posts.
This one
Another one
To understand my case, I provide the ...
0
votes
0
answers
29
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:
\...
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
"...
2
votes
4
answers
110
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 ...
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 ...
0
votes
0
answers
18
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/...
0
votes
0
answers
34
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, ...
0
votes
1
answer
149
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,
\...