{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
1answer
39 views

Compilation Error after running algorithm2e in document

This post is building of the solution posted here. When I try to put this code into my main code (or even \input the file, I get the error ! Argument of \reserved@a has an extra }. If I run the ...
0
votes
0answers
11 views

file not found error even though file is added [duplicate]

I am using Texnic center as editor. I have added a file using \input{filename} and file is present in directory but it shows error that file not find. Can someone tell me the possible reason. Thanks ...
3
votes
3answers
146 views

Input a parameter from another file

Thank to the people asking and answering this question for how to import a part of a file into Latex. I want to extend this question a bit more. What if you have such a file resulted from a C++ ...
3
votes
1answer
131 views

Copy figures and “input”ed LaTeX source files from absulute directories to a local one

For example, In my main.tex I use \input{/home/certain-directory/chapter-1.tex} and \input{/home/another-directory/chapter-2.tex} I also have some figures included by their absolute paths in my ...
2
votes
1answer
68 views

Import single macro from file

I have an automatically generated .tex file containing some content and a couple, usually just one, \newcommand calls. Usually I display the content and load the commands with \input but sometimes ...
1
vote
0answers
30 views

How to \input a .tex file in a chapter from a folder in a latex (separate files) [on hold]

I am working on a template which is classified into different folders. Like Chapter1, Chapter2, Chapter3, etc. In chapter one (Chapter1), I need to insert a .tex file as a figure from a subfolder ...
2
votes
0answers
28 views

Is it possible to replace certain words in a subdocument in LyX? How?

I have an amount of LyX-subdocuments that should be recombined into a new (main-)document via input. I would like to replace certain words in the subdocuments when the publication is generated ...
1
vote
0answers
23 views

Move /input left

I have a .tex file with a table included as an input (\input{file.tex}) in my document, but I want to move the table to the centre of the page (left). For graphics this can be done with \hspace, but ...
9
votes
4answers
2k views

How to make “\input” in a “\include”-d file use the correct current path?

I'm having a master file let's say test.tex and also some folders sub1/ and sub2/. There is also a TeX file in each of them: sub1/sub1.tex and sub2/sub2.tex. In the sub1/ and sub2/ are also some ...
1
vote
1answer
25 views

Expanding #1 for use in addtostream

I'm attempting to use the newfile package and \input to automate some document generation, specifically to generate a test specification's result log from a list of actions and each action's expected ...
24
votes
4answers
23k views

\input and absolute paths

Sometimes it is convenient to use an absolute path to include a preamble. To do so, I use the following "hack": \documentclass[a4paper, 12pt]{article} \newcommand{\folder}{/path/to/folder} ...
23
votes
3answers
25k views

Include data from a .txt verbatim

I am using a finite element program that outputs data in .txt files. And I want to input these data in my latex code. Is there a way to input the data files so that they appear as the program output ...
2
votes
1answer
30 views

Metapost : input file within macros

I like to have separate .mp files to organize my Metapost projects. But I'm facing this error message when I try to input file within a macro File names can't appear within macros. Even with this very ...
1
vote
0answers
23 views

Referencing to inputted table

I have many tables generated automatically in separated tex files which i input in my main document using \input{table1} \input{table2} ... Is it possible to refer to this table by using its name or ...
0
votes
0answers
43 views

Figures inside tables. Too long horizontal lines

I'm trying to put figures inside a table using the command \input but the horizontal lines becomes to long and I'm not sure why? When the figures not are included, the lines length are adjusted to ...
1
vote
0answers
358 views

How can I make a beautiful form to input in latex? [closed]

I want to make a form, with multiple choice, or buttons or whatever... And I want that this form will give me an output that I can use in LaTex, but I don't know how make this. an output like: ...
9
votes
2answers
258 views

What is the maximum nesting depth of \input?

Large documents are best split into various files. Using \input allows to nest multiple files. What is the technical limit of \input regarding the nesting depth? I haven't found any clue searching ...
4
votes
3answers
57 views

Inserting hyphenation file into \babelhyphenation

\documentclass{article} \usepackage[british]{babel} \usepackage{filecontents} \begin{filecontents*}{english.yp} hom-ony-mous gene-ral-ly \end{filecontents*} \makeatletter ...
1
vote
1answer
17 views

Inputting a separate hyphenation file

\documentclass{article} \usepackage[english]{babel} \usepackage{filecontents} \begin{filecontents*}{english.yp} hom-ony-mous gene-ral-ly \end{filecontents*}{english.yp} \hyphenation{ ...
3
votes
1answer
39 views

combine documents of different classes

I need to add to an article another document, class exam. include and input don't work properly if the preamble is different. I must add some multiple choice and clozes as an appendix to the article ...
0
votes
0answers
14 views

Is there a version of \include and \input for bibtex? [duplicate]

I'd like to spread out my references between multiple bibtex files. I tried putting all my references into a file called "etho.bib," then put \input{etho.bib} into my main bibtex file. This didn't ...
2
votes
2answers
63 views

PDF inclusion error when using \input or \include

I have set up a LaTeX file for a book-type document with the following preamble: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{textgreek} ...
1
vote
1answer
29 views

siunitx custom file with subfiles

I recently decided to divide my thesis into several nested files as it follows: % Main.tex \documentclass{memoir} \usepackage{subfiles} \usepackage{siunitx} \include{units} \begin{document} ...
2
votes
1answer
22 views

Figure problem with catchfilebetweentags

This question is a follow up and based on this answer by touhami Situation I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements ...
0
votes
0answers
20 views

Merging small documents into big document when small documents use paths

How can I make my paths when merging documents together? I now have written several big documents and I would like to know how to merge them into one big document. I created BIGDOCUMENT.tex. that ...
3
votes
1answer
55 views

Import several parts of file at once

As a follow up to this Question Situation I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (theorems & definitions). I seek ...
4
votes
3answers
340 views

LaTeX: automatically convert “…” to “\ldots” upon \input

I already read Automatically convert "..." to "\ldots" but this question was asked/answered to help the asker save a lot of replace operations through several files. In my case, ...
3
votes
1answer
78 views

“\input only part of a file” and keep numbering

I would like to create an excerpt from a script that I have TeX'ed as a compendium of the most important statements (theorems & definitions). The question \input only part of a file has an ...
4
votes
1answer
43 views

Open and decode

I use \pato{R}{2015}{07}{27}{A}{1}{4}{black} to \input my sub-archive R20150727A1-4.tex, and it works for me. How can I perform a new command, say \otap{R20150727A1-4}, that decode and assign for ...
2
votes
0answers
65 views

Beamer : several \input files

A would like to make several lectures, and I had organized the main file as follow : %********************************************************************* %*** Document maître de l'ensemble ...
2
votes
1answer
38 views

Piping \write18 commands and ltxguide

The following works in an article: \documentclass[a4paper]{article} \title{Foo} \author{Me} \begin{document} \input{|"echo foo bar | grep foo"} \end{document} Instead of that \input, this also ...
3
votes
1answer
69 views

Horizontal shift when using scalebox and input within center environment

I would like to use \scalebox to scale a TikZ picture (included with \input) that is located inside a center environment (I don't need a float environment in this specific case). But \scalebox ...
3
votes
0answers
63 views

How to escape double quotes in \input

I'm trying to call shell commands that contain multiple (nested) quotation marks. This is, for instance, what I would write on the shell: $ python -c "print \"Hello World\"" which produces Hello ...
0
votes
2answers
46 views

input and graphicx - look for images where file is located

I have a LaTeX document split in multiple text files, inside various folders, as follows: \section{Foo} \subsection{Foo1} \input{foo/1} \subsection{Foo2} \input{foo/2} \section{Bar} ...
4
votes
3answers
75 views

Manual input of table of contents file (\jobname.toc) empty in some circumstances

According to Using .toc external files, the following file should display the table of contents twice: \documentclass{report} \begin{document} \tableofcontents \chapter*{Contents (manual input)} ...
6
votes
1answer
81 views

distribute contents of two input-files to left and right pages

Is it possible to import two tex files with \input and to have the content of the one file be always on the left page facing the content of the other file being always on the right? The page numbers ...
5
votes
2answers
16k views

input index file not found

Dear experts I am using TeXnicCentre. After compiling, while I get an output pdf file, an error is found that says Could't find input index file *pathname* nor *pathname*.idx I am afraid I cant ...
1
vote
1answer
59 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 ...
0
votes
0answers
14 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
37 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
50 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
34 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
38 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
23
votes
2answers
9k views

Inputting multiple files in LaTeX

Suppose I have a directory containing a bunch of LaTeX source files, and I want to input all of them into a single main file. I could do this by saying \input{dir/file1.tex} \input{dir/file2.tex} ...
0
votes
0answers
43 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 ...
3
votes
1answer
68 views

How to pass parametres to an external file included by `\input{<filename>}`

I have a class file to set up agreements. I want to define a command that choose boilerplate text to include using a parameter pass a parameter to the included file to run a test and choose correct ...
2
votes
1answer
67 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
38 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
27 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
61 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, ...