{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

1
vote
0answers
27 views

replacing macros parameters by its definition [duplicate]

Usually, I use many macros in my documents to save time. I am searching for clever "ideas, methods, tools" which can replace macros by its definition. For example, if we have a the following document ...
0
votes
0answers
37 views

Saving Chemfig submolecules in a separate file, to be recovered into beamer

Please consider the following code \documentclass[t]{beamer} \usepackage{chemfig} \begin{document} \begin{frame} \frametitle{1st frame} \definesubmol{x}{-[:+30,.6]-[:-30,.6]} ...
3
votes
1answer
48 views

Resize a table imported from another TeX file

Is is possible to resize a table imported from another table without having to modify the LaTeX code in the file from which the table is imported? I was thinking of something like: ...
5
votes
1answer
18 views

Selectively apply \global to some tokens set via an \input file

This should be simple, but I can't quite guess the correct combination of \expandafter needed. The value of \MyTokenGlobal should not be changed via the \input, but the value of \MyTokenLocal should ...
1
vote
0answers
18 views

Include .Rtex as a chapter in latex

I have an Rtex that contains: \documentclass[openany]{book} \chapter{Introduction} \input{./Introduction/Introduction} \chapter{Thesis Outline} \input{./Outline/Outline_Chapter} ...
4
votes
2answers
47 views

Why does \ExecuteMetaData break my paragraphs?

I have a lot of content to assemble in several different ways and would like to use excerpts from one file in another. I have specified: \usepackage{catchfilebetweentags} I then have an external ...
1
vote
1answer
50 views

Inputting files alphabetically

I am creating an anthology of poems and songs, and have a main file where I am using \input to insert separates TeX files which contain the poems. I was wondering if there was a simpler way of ...
5
votes
0answers
55 views

noalign and \include

I have reduced my code to the following lines: \documentclass[9pt,letterpaper,oneside]{amsart} \usepackage{graphicx} \usepackage[table, dvipsnames]{xcolor} \usepackage{longtable} ...
2
votes
1answer
95 views

LyX undefined control sequence \input

I'm a new user. I-m in trouble with lyX and in particular how to use \input{file.tex} correctly. Error: "undefined control sequence". Actually I'm not sure where I have to specify the path so that LyX ...
4
votes
1answer
48 views

Try to use input and currfile together

I have a folder tree a little like this, "document.tex" is the root file, section1 is a folder document.tex |--[section1] | |--index.tex My document.tex code is like that: ...
0
votes
0answers
35 views

How to use shell environment variable with import/include/input?

I would like to create a folder in my home directory to store a few files in it that should serve as templates e.g. handout.tex. I begin to write my specific file somewhere in my filesystem. Now I ...
3
votes
2answers
46 views

identify pieces of text automatically generated from input and new command

I have a document where many of its values are defined in a separate file via \newcommand, and added to the main document using \input in the preamble. The file being included is the output of a ...
1
vote
0answers
30 views

Switching between multiple .tex files and single .tex file [duplicate]

I'm using LaTeX to draft a journal paper and I'm writing with TeXMaker. To make the navigation easier, I broke down the paper into several .tex files. The master .tex file looks like this: ...
11
votes
2answers
150 views

How to get rid of unwanted spaces with \input?

for my project to bring scripting to (Xe)(La)TeX, i need to execute command lines with write18, redirect output to a temporary file, and then insert the produced text using input. i've noticed some ...
2
votes
1answer
130 views

Can't insert/remove a blank page in main document

I'm on Win7 with TeX Live 2013 and TeXstudio. I have a main.tex file (\documentclass[...]{scrartcl}) with 2 \input{file} commands. I want to put a blank page between the table of contents and the ...
5
votes
2answers
129 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
43 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
84 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
99 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
67 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
53 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
51 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
149 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
95 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
33 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
147 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
55 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
39 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
57 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
72 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
81 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
118 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
312 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
110 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
88 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
64 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
74 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
76 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
1k 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
85 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
126 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
169 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
57 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
82 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
149 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
64 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
210 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
127 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
187 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 ...