{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

5
votes
2answers
135 views

The least intrusive and most elegant for removing \documentclass?

Here is the context: I have a file named (say) 00.tex, which I use in the following elaborate way. Compiling the file, generates auxiliary tex files, which in turn execute \include{00.tex}. The ...
2
votes
1answer
86 views

Same input file twice, error in table of contents

I'm having some difficulties with my table of contents. I want my conclusion to be in the start of the document and in the end. To do this I've included the same input file twice as you can see here ...
2
votes
1answer
112 views

How to scale images when imported as .tex files

I have quite a few diagrams created by Gnu Octave/MathLab which I need to include in a document. Octave can create several different outputs, but its PDF output is not really that nice as it has a lot ...
3
votes
1answer
198 views

Relative paths for \input and building from different directories

The minimal example If I have a directory containing my main LaTeX source file and it uses \input to incorporate some data in another file, I can use a relative pathname. E.g., with these files: ...
3
votes
1answer
82 views

Floats in ConTeXt: changing caption name and making the \input command work

I have defined a new float for logic circuits called logigram: \definefloat [logigram] [logigrams] Taking advantage of the modes of ConTeXt (i.e. conditional processing), I am making in parallel a ...
4
votes
1answer
64 views

How to make LyX process TeX code without converting it into .lyx format?

When I do \input{file} in a .tex document I later import in LyX, LyX converts file.tex into file.lyx and changes \input{file} to \input{file.lyx}. But LyX doesn't do well with the TeX code it does not ...
4
votes
0answers
53 views

What is the difference between putting macros in a .sty package file vs. simply \input them from another .tex file? [duplicate]

If \input just "imports the commands from the [target file]" into your new document, then what is the difference between calling a set of commands via \input{filename} (where filename is some .tex ...
4
votes
1answer
275 views

Combining different projects into one (papers into PhD Thesis)

My question is similar to this one, but I have a problem with relative paths when including files. Assume I have three projects which all start with \documentclass[12pt,a4paper]{article} ...
2
votes
0answers
132 views

load tikz library from relative path

I recently externalized some of my often used TikZ commands into a library. This is as simple as writing the commands to a dedicated file and naming it tikzlibraryname.code.tex. Then it can be ...
4
votes
0answers
37 views

Select specific items located outside a main file

I have a data base of questions (simply individual .tex-files) and include some of them in a main file with the help of simple \input commands, in order to create an exercise. Some of those question ...
1
vote
1answer
314 views

Fit tables read in with \input to page-width

I'm trying to fit tables to page-width that I include in the .tex document via the /input method. I'm doing this because I'm exporting tables from Stata to Latex with the estout methods, and include ...
10
votes
1answer
56 views

Reading (input) a file whose name is created with a label

I don't want to get into the details of why I want to do this, but I would like to: create a new counter called filenumber; create a file whose filename is \jobname\thefilenumber.txt and write to ...
0
votes
0answers
45 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
2answers
69 views

How to: put definition of figures together, then generate picture at different places

A little explanation: For better writing experience, I want to organize all definition (I mean \begin{figure}... stuff) of figures into one file, and \input it to my main .tex, then generate the ...
1
vote
2answers
85 views

Latex - Changing behavior of encoding in the same document

Currently, I am trying to achieve a German inputencoding (inputenc) for my thesis. My solution works just fine with a small exception: Whenever my umlauts are correctly input-encoded in the normal ...
3
votes
1answer
92 views

\vref and input command

You've saved my life in some occasions, I am writing my master thesis and as I am working with MATLAB, I found a very useful MATLAB function which "translate" MATLAB images to TeX tikzpicture. I ...
7
votes
1answer
125 views

What are the pros and cons of packages versus \input for a preamble?

For a some simple cases it seems to me that there would be no important difference between putting some code in a file preamble.tex and having \input{preamble.tex} in the main .tex file putting it ...
12
votes
2answers
324 views

How can I easily use the same preamble on all my documents?

I use multiple computers (Mac and PC), so creating a path (e.g. \input{c:/folder/Preamble}) won't work. I really want to assign a URL (in Dropbox) to the file and input the file via the URL, but I ...
7
votes
1answer
145 views

\renewcommand of \input for embedding input files without embed ALL source files

I would like to redefine the \input command so that it also embed the input file to the generated pdf. So far I used the code from thi s question (Mark on document where input starts and what is the ...
3
votes
2answers
132 views

Bad table references with \input{…}

I have been searching a bit, but couldn't find the proper answer to my problem. I have multiple tables defined for a report. Let's say some tables are presented in the main content of the report and ...
0
votes
0answers
75 views

Parametric Title Page

I'm relatively new to writing TeX, but have hopes and dreams of being able to do this with it. I've done some looking around, and had little luck finding much detail on it. If someone could either ...
1
vote
1answer
77 views

Include vs Input in my case

Suppose you have two fully finished thesis, with their own bibliography and their own appendices. When I include one into the other, there is (obviously) some interference between the two different ...
1
vote
0answers
50 views

displaying tex file from external file [duplicate]

I have som .tex with are input for a program, how do I display this files? Is there any way to input it, or do i have to write it alle in or make a screen shot?! I'm gonna be chaining these files a ...
1
vote
0answers
82 views

TeX files got overwritten during input

I'm quite new to LaTeX. I'm writing notes on a course at School. Found out that the document was going to be quite large so I tried to divide it into two documents, which was supposed to be imported ...
3
votes
1answer
2k views

Blank pages after \include in LaTeX report class

I'm writing my thesis as several separate chapters and incorporating them into one .tex file. Some of the chapters are pdfs of articles, and they are simply added to my master.tex using \input. ...
2
votes
0answers
103 views

Use input inside a spreadtab environment with calculations

My aim is to create a command for inserting tables, which will format the table, and add calculations on its values, given a file containing the raw data of the rows only. ...
4
votes
1answer
156 views

Using a non-centralized structure for tex files - similar to \graphicspath

I have a fairly large document, that I have picked apart into different sections etc, each in their own file. To include graphics that are not in one central directory I use \graphicspath which works ...
3
votes
0answers
231 views

No citations/bibliography processed/produced when using \include

I use TextMate 2 to write my LaTeX documents. I've noticed that when I use \include to add chapters, my citations don't process, whereas when I use \input, they do. I would like my document to have ...
1
vote
1answer
60 views

Have subfiles declare sections to be included in different places of the document

I'd like to have several Latex files, imported or included in a master document.tex file, which declare different sections to be included in the master file, like: % in file a.tex \begin{notes} My ...
1
vote
2answers
98 views

Errors produces when using `\readline`

This question, while related to this earlier question of mine, is less about removing content from the beginning of each line and more about how to preprocess lines of a file as it is read in. Here ...
5
votes
2answers
170 views

How can I use `catchfile` package to gobble first characters on a line

When using the fancyvrb environment Verbatim, you can gobble the first n characters of each line before printing it out. I'd like to be able to do something similar, but not via verbatim. In the ...
2
votes
1answer
95 views

subimport including wrong file

I am trying to learn the import package but I find it extremely unreliable - perhaps I am missing something? One case study I tried is as follows: Created 3 tex files: ./main.tex ./bla.tex ...
6
votes
1answer
284 views

Including LaTeX documentation as comments in source code

I am working on a large C# project (hundreds of source files). I am trying to add documentation on various user inputs and options. For maintainability I would ideally like to be able to write the ...
7
votes
1answer
136 views

does LaTeX support native multifile management?

This is not really a practical question, but more of an academic one: I use emacs to write my LaTeX files and in order to process multifile documents I include at the end of each file a local ...
0
votes
2answers
207 views

How to include tex files

Is there any way that I can add different .tex files (From different folders) into another folder's .tex file? I meant that all of the .tex files will be fine and separated and I just need to ...
1
vote
1answer
243 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 ...
0
votes
1answer
229 views

Issues when including a tex file [closed]

I have this without any issues if I use it alone. However if I call it with input or include I get this Why?
1
vote
1answer
242 views

Automatic report generation

I am trying to automatically create a curriculum vitae (or any other document if one would prefer) from a datafile that holds all values/entries. Here are my individual files that go into this ...
7
votes
3answers
128 views

Command that expands to the contents of a file

I'd like to make a macro that expands to the contents of a file. Basically something like \def{\mycommand}{\input{file.txt}} % file.txt contains "Hello%" \anothercommand{\mycommand} ...
2
votes
1answer
127 views

How can I make German characters from \input file display correctly?

I'm working with a Rnw file in RStudio and knitr. Everything works correctly so far, but I stumbled upon a problem when I included a chapter to the report that is written in German. I wrote the ...
3
votes
0answers
69 views

Using catcode in conjunction with lstnewenvironment and lstinputlisting

(This is related to Injecting text contained in file into custom environment, but I was asked to put this in a separate post) From regular expression in listings the following code works fine : ...
4
votes
2answers
215 views

Is there a quick way to split a (very) long equation?

I'm generating LaTeX code from Mathematica, which I must insert into my input .tex file. The problem is that equations are too long to fit on the page, and it takes a long time to split them up. Is ...
2
votes
1answer
130 views

Injecting text contained in file into custom environment

how can I inject text contained in a file input.tex into a custom environment. Something like : \documentclass{report} \usepackage{listings} \lstdefinelanguage{text}{} ...
5
votes
1answer
92 views

Mark on document where input starts and what is the filename

I have a master document, and use many input{...} commands to compile the total document from many parts. I would like to mark on the working document, the start of each new input, and, what the ...
8
votes
3answers
187 views

How to join two or more external .tex file using another .tex file and then compile?

Suppose I have two tex files file1.tex and file2.tex. I want to join them in another tex file. I have tried to do this with the following one : \documentclass{book} \begin{document} ...
5
votes
2answers
358 views

Argument to \input or \include statement?

I produce a lot of plots in Matlab which I export to TikZ with matlab2tikz. In matlab2tikz I can specify the plot width and height, for instance. This works out quite nicely, but as I write my ...
4
votes
1answer
103 views

catchfile(betweentags) and obeylines

I'm writing two large documents, both containing much of the same text. To ease the maintenance, I'd like no redundant paragraphs, but rather to use catchfilebetweentags. Everything works well, ...
1
vote
0answers
189 views

Cross-referencing (input) multiple tex. files on multiple levels [closed]

I´ve recently discovered this site and you might be able to give me some advice working with LaTeX. Here´s my problem: My company is working on several user manuals. Each user manual is located in ...
1
vote
1answer
559 views

epslatex: relative path issue

Please, how one could directly include epslatex graphics into main latex file, say main.tex? main.tex has its own template provided by a third party. I used this command within main.tex file to ...
1
vote
1answer
117 views

Include a value and its uncertainty both rounded properly

The output of a program is a value and its uncertainty. I want to include them in a tex document correctly rounded. value_uncertainty.txt: 12345.67890 0.987654321 scientific_document.tex is ...