{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.

learn more… | top users | synonyms

0
votes
0answers
10 views

Citing in included(input-ed) tex file

I'm LaTeXing user with Sublime Text3. When working with several texfiles(ie one tex file for each chapters) and if bibliography command is called in main tex file, then cite command cannot be used in ...
1
vote
0answers
25 views

! Missing } inserted. <inserted text> } l.212 \end{figure}

i work with gnuplot and latex and i had the following problem ! Missing } inserted. <inserted text> } l.212 \end{figure} this is my code \begin{figure}[htb] \centering \input{essai} // ...
2
votes
0answers
26 views

Texmaker jumps to the “wrong” position

I'm writing a bigger document right now. Because of that I have "exported" each chapter. So my document.tex file looks like: \documentclass[a4paper, 11pt, oneside]{article} \begin{document} ...
1
vote
1answer
39 views

Automatic lettrine to input file

I'm learning LaTex but have a strong programming background. My document consist of several .tex files I will \input at entry .tex file. I would like to add a lettrine to every one of them, but would ...
1
vote
1answer
30 views

Can I specify a parameter that I pass with input?

I made my own preamble and saved it into a separate file. I include it with \input{Preamble} Now in the preamble there is \title{MyTitle} Now I want to pass MyTitle from my main document. How ...
4
votes
2answers
37 views

Which file is really used with \input command

how to know which file is included when we use the command \input if we have many files with the same name in various directories
0
votes
0answers
30 views

Precompile pgfplots

I have a latex document that includes a lot of plots built with pgfplots. As of now, I just include a tikzpicture that loads the plot data from a CSV file. This is starting to take up quite some time ...
2
votes
1answer
43 views

Is there any way to include the literal text of another file?

From what I have read, input processes text and includes commands found, and include can't be used in the preamble for some reason (correct me if I'm wrong). I just want a command that replaces itself ...
2
votes
1answer
35 views

Difference in behaviour using one input file and many input files

I have noticed difference in behaviour when loading a single file \input{letters/all_letters} and when loading several files using a command \newcommand*{\alphabetF}{% ...
3
votes
1answer
16 views

Input difficulties with \usepackage{devanagari}

I am using the standard miktex package \usepackage{devanagari} however, using the same input examples as written in the file manual produces very different results, i.e. there is a duplication of ...
2
votes
1answer
26 views

lstinputlisting not recognizing comment character

I have some code which I like to incorporate in to my latex document. I have set up the aesthetic so the code is easy to read as follows \lstdefinestyle{numbers}{numbers = left, stepnumber =1, ...
2
votes
0answers
28 views

Blank rule after end of paragraph while using the \input{}

At this moment I am writing my first .tex file using the \input{} command. My 'master' file will look like this. %preamble \begin{document} \input{introduction.tex} %et cetera \end{document} ...
9
votes
2answers
166 views

How can I use the \input command in pgfplots?

I have to create a set of groupplots with pgfplots and want to use one centralized definition of the plot style (width, height, x-axis label, etc.). It seemed to me that this should be easily done by ...
1
vote
2answers
64 views

How to insert footnote with latex \input?

I have two tex files and use the command \input to include the table on my main file as follows: Main.tex \documentclass{article} \usepackage[T1]{fontenc} \usepackage{inconsolata} \usepackage{url} ...
7
votes
3answers
119 views

Reading the data to iterate over with \foreach from a file

I have a \foreach that should read the data points from a file. The points are stored in such a way that a simple copy paste would do. In fact, I don't want to do more than copy paste (if ever ...
1
vote
1answer
31 views

Input command arguments from file

I created some new commands that take arguments. Several of my commands take the same (lengthy) arguments. Because of this I put those arguments in a separate file. But I seem unable to input or ...
2
votes
1answer
49 views

Useing \begin{longtable} inside \begin{table} to keep captions and list of tables working

To make a long story short, we have: \begin{table} \input{table.tex} \caption{The table too long for one page} \end{table} And the table.tex file has a \begin{longtable} format in it. I will ...
1
vote
0answers
22 views

version of multiple files: all document in one .tex file

I am using latexpand to Replace \input{fileX} by the content of fileX automatically using the following command in ubuntu: perl latexpand mainfile.tex > newfile.tex But I am obtaining a warning ...
2
votes
1answer
22 views

Defining command \file#1 and use it with \input command, and counter \thefile#1

I would like to define a command as \file#1 in order to use it with \input{\file#1}, where #1 is a entry given, as well as counter \thefile#1 The MWE is the next code \documentclass{article} ...
1
vote
1answer
33 views

Input files whose names are dates

I have a lot of files named by date, e.g., 20151118.tex, 20151117.tex, 20151116.tex, etc. These in a directory separated by month and year (2015/11/20151118.tex). I would like to input these files ...
2
votes
1answer
43 views

Is it possible to input tex files from subfolders inside subfiles?

I want to automate the process of inputting tex files from subfolders. Previously I managed to automate the inclusion of images from "images" subfolder within the subfolder of each subfile. I would ...
0
votes
0answers
23 views

cross-references from other documents [duplicate]

I'm writing on a large document with many tables. Rules require me to provide every table as a standalone PDF file as well, so I do this: In main.tex: \documentclass{article} \usepackage{standalone} ...
1
vote
0answers
22 views

Caption in \lstinputlisting environment gives keyval error

I am trying to include the table shown in my example below (shown in the verbatim environment - but saved in a text file), but I get a keyval error stating that "Package keyval Error: $r2v$. ...
1
vote
0answers
40 views

Todos won't show up from multiple \input{texdoc} documents

I have split a paper into several .tex document chapters to input them in the main.tex document later. The problem is, the many todo notes I have made throughout my file are no longer showing up ...
0
votes
0answers
101 views

Relative paths to tex files? [duplicate]

In the preamble of my tex document I can set graphicspath. Is it also possible to set a path to sub sections and tables, so I can do \input{relative-path/filename.tex} from any tex file and move that ...
2
votes
2answers
51 views

Input a list of files

I want to include multiple files in my source. The files are to be included in a file liste.tex in the following format: fichier1.tex files2.tex test3.tex .... I relied on answering the questions ...
2
votes
1answer
26 views

Label not listed for table while using Kile

I am using Kile on Ubuntu 12.04 for a project. I have a table in a separate file from the main document. This table has a label \label{table} The table is called by the document with ...
1
vote
1answer
47 views

Polyglossia problem: “italian not defined, using english instead”

I have the problem mentioned above, reported in the log. I have a master-file where I insert first a preamble-file with the \input command and then a config-file in the same way. The first one ...
0
votes
1answer
51 views

LaTeX input call doesn't inherit encoding from main file

I'm including TeX files with \input{file} but when I compile the main file with pdflatex I get: \textyen unavailable in encoding T1 This doesn't occur if I keep it all in one tex file, which at ...
2
votes
2answers
97 views

Typeset output from Maxima using input{}, specifically left justify

First of all, apologies if there is an answer for this already. I'm outputting symbolic results from Maxima using tex(<output>,"filename")$, which leaves me with an expression with $$ on each ...
1
vote
2answers
53 views

How can I include a new command in \input

I'm trying to variate the file name by creating a newcommand \lbname in LaTeX. by printing out \lbname, I got lo3.txt in this case, but it wouldn't work in \input command. I get an error "TeX capacity ...
2
votes
0answers
23 views

Where should I put my input files that should be accessible from anywhere? [duplicate]

I'm using MiKTeX and TeXnicCenter to compile my projects. Is there a folder where I can store all your input files which I want to include in another document, so I don't have to put all the files in ...
0
votes
1answer
77 views

Problem with graphicspath and pdf_tex

I use \input for a subsection, in which I would like to include a pdf_tex file MK.pdf_tex via \input. The pdf_tex files are in a folder /fig. If I use \input{./fig/MK.pdf_tex} it returns the error ...
0
votes
1answer
32 views

Have \input{} print the filename

I want to print the filename of the file that I'm calling (\input{file_name}). Clearly this includes the file contents but is there anyway to get the corresponding filename to print as well?
1
vote
0answers
62 views

Texmaker - nested document structure

Let's say I have a file that inputs files who input files. foo.tex: \input{bar} bar.tex: \input{baz} baz.tex: Hello World! When I am in foo.tex, Texmaker shows the structure foo --- bar ...
2
votes
1answer
82 views

How to input external file in figure caption with tufte-latex?

With the tufte-handout class, I want to insert some text in a figure caption, from an external text file generated with R. \documentclass[a4paper]{tufte-handout} ...
0
votes
1answer
47 views

Keep two inserted tables on the same page [duplicate]

I have produced two tables that when ran from the same LaTeX file are positioned on the same page, one under the other. However, when the two tables are called upon by using \input they appear on two ...
2
votes
0answers
30 views

Is there a way to input part of a file that includes sagetex?

I am trying to build a sort of jumbling program for Tex Files. Specifically I want to randomly order problems on quizzes/exams that are generated. I have gotten most of the work done, but I am left ...
5
votes
2answers
67 views

Truncate compilation of an “input” file

When writing mathematical results, I often jot down several quasi-proofs before deciding on the actual structure. Nevertheless, I like to keep these alternative sketches as a reference in case I ...
3
votes
1answer
126 views

Include .tex file from texmf folder

Suppose I have the following files in texmf/tex/latex/ myclass.cls mystyle.sty mydoc.tex What I would like to do is % file.tex \documentclass{myclass} \usepackage{mystyle} \begin{document} ...
0
votes
1answer
167 views

Footnote in input file - missing number treated as zero

Let's say I have a document Foo.tex: \documentclass[a4paper,11pt,titlepage]{article} %... %%Packages \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{hyperref} ...
3
votes
1answer
148 views

Outsourcing Tikz and relative paths

Summary: How do I get includegraphics to be relative to the current file, when using tikzscale? Details Similar to pmav I like to have a .tikz file which contains only the tikzpicture ...
0
votes
1answer
78 views

new \input{file} Package, Command wrapper: microtype .tex with reserved symbols

I know enough LaTeX to produce great looking documents. LaTeX makes it more difficult to NOT do that. But I don't advanced LaTeX or TeX or plainTeX or "@" or other advanced, cryptic programming ...
1
vote
1answer
63 views

File not found when importing figures produced by gnuplot (epslatex) from another folder

I have recently started using gnuplot's epslatex terminal to create graphs to a report I am writing. I have, however, encountered an unexpected problem. I usually keep my chapters and figures in ...
0
votes
0answers
30 views

Change name of table in caption and reference

I have multiple tables in my thesis with model results. I want to change these tables' names, meaning it wouldn't say Table 1 but Model 1 (also when referencing them). Also, a special table of content ...
3
votes
1answer
51 views

Splitting a class file

I am writing a class file and I use a lot of constants (length, colours, strings…) that I would like to take out of the cls file for cleanliness. I have tried ...
0
votes
1answer
130 views

epslatex tex-document faulty [closed]

I want to create a .texdocument with Gnuplot to insert in my Latexdocument with the following code reset set terminal epslatex color size 12cm, 9cm font 'Helvetica,16' set output "test.tex" set ...
0
votes
1answer
29 views

Main file setting ignored when using \include command

I want to split my tex file into several parts. When it was in the form of a single file, it compiled perfectly. After I cut out a chapter and created a separate file containing it (and imported it ...
2
votes
1answer
28 views

How can I include external macros for every line of the source code?

An answer to my last question gave a solution for hooking a small command onto line breaks in the TeX source. \documentclass{memoir} \usepackage[spacing, tracking]{microtype} \usepackage{libertine} ...
4
votes
0answers
97 views

\includestandalone cannot compile \section or \subsection commands

Main.tex \documentclass{scrartcl} \usepackage{standalone} \begin{document} \section{A} \includestandalone{Subfile} \end{document} Subfile.tex ...