{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

2
votes
1answer
33 views

Using standalone to combine multiple .tex into a single file

I have a number of latex files section1.tex, section2.tex, etc. Each of them should be able to be compiled individually to give a normal LaTeX document. I would like to write a file master.tex that ...
1
vote
0answers
21 views

Page numbering only on the first page when using \input command

When I use the \input command in an article environment, only the first page show the page number. What can I do to have numbering on all pages of my paper?
4
votes
2answers
44 views

Using \input inside environment fails

I'm trying to use the filecontents package in combination with listings as suggested in How to define macro that only makes argument substitution? in order to produce a side-by-side view of LaTeX code ...
4
votes
1answer
64 views

Is it possible to inject a token after another token?

Something like: If next token is some token that artificially creates a page break (e.g. \newpage, \clearpage Then inject something after it Else inject something before it I want to modify \...
3
votes
1answer
50 views

How can I scale a graphic to text width without framebox?

I have exported a diagram created with Dia to LaTeX PGF macro (.tex) and now I want to include it. I have found the code below. It works great but the framebox creates border around my image which I ...
8
votes
2answers
197 views

Why do \include and \input handle extension name differently?

I have a file bar.tex that I include in other files. $ cat bar.tex hello, world $ cat foo.tex \documentclass{article} \begin{document} \include{bar.tex} \end{document} $ pdflatex foo.tex This ...
3
votes
1answer
143 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 /...
1
vote
1answer
26 views

Dots in filename, underscores in extension

I have the following svg I want to include, that I've nicely converted to a pdf following How to include SVG diagrams in LaTeX?. Now I want to include it in my document, however the document's name ...
0
votes
0answers
20 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 word. ...
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 ...
2
votes
0answers
43 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 ...
0
votes
0answers
29 views

Weird sign after/before file input / wrapfigure / subsection

I am new to latex, and encountered quite a lot problems in the recent weeks. Some I solved on my own some with your excellent help (thanks for that!). I am currently having a weird problem ...
2
votes
0answers
61 views

Best practices for “factoring” relatively small snippets of shared code

My particular use case is that I have a long academic CV, and a short résumé. The two of them share a reasonable amount of textual content, but, for example, the order of the content varies, some ...
1
vote
1answer
76 views

Merge different tex files

I've already searched stackexchange but I couldn't find what I was looking for. The thing is that I have different .tex files (five in total, the main files), each of them includes other tex files. ...
3
votes
1answer
41 views

Input file starting with a multicolumn

I have constructed a table (table with a tabularx environment) which takes an input file as input. When I begin this input file with a \multicolumn command the compilation fails and gives me the ...
6
votes
1answer
90 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
529 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
26 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!
2
votes
0answers
39 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
34 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
57 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
150 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
69 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
33 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 (...
1
vote
0answers
26 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 ...
10
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
27k 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
40 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
49 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
368 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
273 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
69 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
21 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
45 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'...
2
votes
2answers
85 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} \...
3
votes
1answer
27 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
21 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
57 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
347 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
83 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
86 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
44 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
92 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 ...