{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

6
votes
1answer
85 views

How does \input adds a space?

Consider the following : A\input{foo1}C A\input{foo2}C A\input{foo3}C A\input{foo3} C with foo1.tex containing "B", foo2.tex containing "B%" and foo3.tex containing "B\n%". In the first case, ...
1
vote
1answer
517 views

Including a tikz figure with a reference to a table on file, problems with folder structure

I am trying to include a tikz figure in the chapter 6 of my thesis. I am using separate folders and .tex files for each chapter, as you may notice in the example. This means that in my main document I ...
1
vote
0answers
23 views

Using 4 column page and mdframes! No correct view

I'm writing a summary and I'm using a 4-column page with a lot of mdframed boxes (boxes that contains theorems and other stuff). I use also different files and I merge them like this: \begin{...
0
votes
0answers
17 views

The difference between \input and \include [duplicate]

I would like to know what is the difference between the \input command and the \include command. Much thanks!
3
votes
1answer
137 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
0answers
32 views

Encoding problem with accents and inputenc package

I have this problem, it seems i'm doing something wrong while writing letters with accents like "è", on that line the compiler says: package inputenc Error: unicode char \u8:èun not set up for use. ...
2
votes
1answer
33 views

Why can't I use accents in files included with \input?

I am creating an article in which each section is a separate file, and I include them with \input. The following document compiles without error: \documentclass{article} \usepackage[spanish,...
0
votes
1answer
48 views

\include not working in SageMath LaTeX

I'm using SageMathCloud's LaTeX. So I've got five .tex documents (all pretty long) with similar formatting. I want to add all five files into one large file that will respect the preambles of all ...
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
149 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++ ...
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 I'...
1
vote
0answers
31 views

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

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
34 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
25 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
28 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
24k 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} \input{\...
23
votes
3answers
26k 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
37 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
24 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
48 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
364 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
266 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
63 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 \babelhyphenation[...
1
vote
1answer
18 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
43 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 I'...
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
76 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
30 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
24 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
56 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
343 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, I'...
3
votes
1answer
81 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
46 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
76 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
42 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
79 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
75 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
50 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
78 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
64 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
15 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
43 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
55 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} \input{...
1
vote
1answer
39 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
24
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} \...