{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

4
votes
1answer
736 views

How can I input part of a file in verbatim?

I'm writing the documentation to a large piece of Matlab code. I would like include tags in my Matlab code and then read the lines of code between the tags into Latex and output them as verbatim (or ...
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
0answers
38 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 ...
3
votes
2answers
477 views

Disable including of system files [duplicate]

Possible Duplicate: How can I safely compile other people's LaTeX documents? I've got a Linux server that is rendering LaTeX documents, I want to disable the access of LaTeX to system ...
3
votes
2answers
62 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 ...
3
votes
3answers
67 views

\input{} as argument for \inputgraphic{}

I got a question very similar to this post (\includegraphics{\input{|shell command}}) which unfortunately hasn't been really answered. The aim is to make a command that invokes a python script to ...
3
votes
2answers
73 views

Importing Tabular Cells from Text File

Suppose I want to build a table which looks as follows: \begin{tabular}{ccc} 1.23 & 2.98 & Apple \\ -3.78 & 4.01 & Banana \\ \end{tabular} However, the numbers in the table ...
3
votes
2answers
160 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 ...
3
votes
2answers
521 views

Linewidth resets when using input files

I'm trying to set some figure files in standalone .tex files, and then input them in the main file. Those files looks something like this \ifx \plotwidth \undefined \newlength{\plotwidth} ...
3
votes
1answer
600 views

Escape & Sanitize User Input

Background Generate a book with user content. Problem Names like Marie Curie-Sk\l{}odowska, when not escaped (e.g., MARIE CURIE-SKĊODOWSKA) cause LaTeX to fail. Questions What macros are ...
3
votes
1answer
92 views

Spaces in files names in \input or \includegraphics

I'm going crazy... I have a file I want to include which path is C:\Users\Matthieu\Documents\Folder withOneSpace\myFile.tex. (As you can see with the \, I'm on windows actually) I tried the ...
3
votes
1answer
85 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: ...
3
votes
2answers
211 views

Include file with preamble to another tex file

I have two files: paper.tex with text, title, and full preamble with authors and so on. It compiles successfully. The second file (B) has also a full preamble with title, authors, little text. It ...
3
votes
1answer
41 views

Relative path issue with epslatex

I'm trying to include a figure which is saved as two files (eps and tex). I can get it to work if the files are in the same folder as the main document, but not if I move them elsewhere, even just to ...
3
votes
1answer
127 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 ...
3
votes
1answer
1k views

\graphicspath for Inkscape pdf_tex files

For writing a lecture note, I have put my images in a subdirectory named "image". In the main.tex file I have added \graphicspath{{image/}}. I have also included: ...
3
votes
1answer
94 views

Undefined reference using a0poster (\include Vs. \input)

I have an a0poster document (see below an example) which is not loading the cross-references, although bibtex is working fine and compiling the references. I write the main text into a different tex ...
3
votes
1answer
99 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 ...
3
votes
2answers
422 views

Using \input in a fancyvrb verbatim environment - problem with hyphens

I've set up a custom environment with DefineVerbatimEnvironment. Within that environment I'd like to \input{} files, which works all fine and well until one of them includes a hyphen. Here's an ...
3
votes
1answer
93 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 ...
3
votes
1answer
338 views

Including a .bib file with \input does not work

In the following simple document, the bibliography does not work : \documentclass{article} \usepackage[numbers]{natbib} \usepackage{inputenc} \inputencoding{utf8} \begin{filecontents}{\jobname.bib} ...
3
votes
2answers
954 views

Generating a single TeX file by merging different TeX files

I have a main TeX file which inputs many other TeX files i.e. for example \documentclass{article} \begin{document} \input{input1.tex} \input{input2.tex} \input{input3.tex} \end{document} Let's call ...
3
votes
1answer
134 views

How do I best combine several documents?

I have a collection of articles written in latex, and I would like to "merge" them into a larger thesis document, in which each article will be a chapter. I have been looking at include and input, ...
3
votes
1answer
52 views

Scaling an \input within a subfigure

I'm including latex files with \input within a subfigure environment: \documentclass[a4paper]{report} \usepackage[usenames,dvipsnames]{color} \usepackage{linegoal} \usepackage{graphicx} ...
3
votes
0answers
64 views

One tabular with column input from multiple data files with pgfplotstable

I have a question which sort of extends the page Multiple Files input to one pgfplotstable. In the answer to this question, data is read from dataB.dat and subsequently appended to the data as ...
3
votes
0answers
280 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 ...
3
votes
0answers
76 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 : ...
3
votes
0answers
59 views

Store and retrieve content across documents [duplicate]

Possible Duplicate: Automating quoting across LaTeX documents I'm working on 2 documents: 1.tex and 2.tex. 2.tex is a metadocument about 1.tex, so that 2.tex has a lot of quotations from ...
3
votes
0answers
549 views

BibTeX not working with \input or \include [closed]

I need some help with BibTeX. I use a seperate *.bib file which is working perfectly, but when the commands \input or \include are used to input text from another *.tex file the application tells me ...
2
votes
2answers
250 views

Wrong reference using \input twice for the same file

I have a short piece of text with an image that I need to use more than once in my document. The rational solution I came up with is to put the text in a file and call the file when needed, something ...
2
votes
1answer
491 views

Use input file in \thanks{}

Is it possible to acheive something similar to \title{\myTitle \thanks{ \input{../acknowledgement} }} (which doesn't work?) in order to load the content for \thanks on the fly?
2
votes
2answers
73 views

\input produces errors, copy&paste not

I'm working currently on a beamer-document and want to use LaTeX-code. Therefore I set up the listings-package in the following way: \documentclass[12pt]{beamer} \usepackage{listings} ...
2
votes
1answer
926 views

Including TikZ image (with external inputs) inside adjustbox adds horisontal spacing, why?

I'm working on my masters thesis and so I have a bunch of tikz files that I want to include in the thesis. This I do by using adjustbox to limit the size to \textwidth as such \adjustbox{max ...
2
votes
1answer
5k views

TeXnicCenter problem, can't find input index file

I've just installed TeXnicCenter. The first error I have encountered is that when I try and build I get the following error: Couldn't find input index file D:\File location\test nor D:\File ...
2
votes
1answer
2k views

Using \newcommand and \input

I like to use variables for my paths, so that if I migrate to another system/username, I don't have to change every path name. This does not seem to be working with the input command. I have the ...
2
votes
1answer
197 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 ...
2
votes
1answer
135 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 ...
2
votes
2answers
797 views

lstinputlistings syntax highlighting

I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like class MyClass(Yourclass): def __init__(self, ...
2
votes
1answer
1k views

Is there a way to get TexMakerX to recognize commands defined in an input file?

I have a file that defines a bunch of commands for various variables that I use in other documents. Here's a small example of what it contains: \newcommand{\varElevation}{\ensuremath{\alpha_{el}}} ...
2
votes
5answers
1k views

How to automatically inline \input commands and bibliography?

I have a document that uses some \input commands and creates the bibliography via an external .bib file and bibtex. Now I have to inline the \input commands (i.e. replace each \input command with ...
2
votes
1answer
109 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
141 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 ...
2
votes
1answer
132 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}{} ...
2
votes
1answer
180 views

if the remote file exists then include it, else include the local one

Here's the path where my tex file stands : /home/me/documents/foo.tex I also have one import file here : /home/me/texmf/tex/latex/personal/bar.tex However for security purpose I also include it ...
2
votes
1answer
149 views

Complex latex document: how to locate offending package dependency [solved: was using dirty build] [closed]

For final distribution, certain appendix includes the pdfpages package. However, appendices should be skipped for normal "draft" versions, or while working on individual chapters. I am having ...
2
votes
1answer
70 views

How to display text different place than the source in LaTeX?

As an example: I would like to put the text of a math problem and the solution of the problem in the same input file next to each other, but in the pdf book I want to separate them into different ...
2
votes
1answer
458 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 ...
2
votes
2answers
73 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 ...
2
votes
1answer
176 views

Can't use animations with \input?

I have two different animations, made with TikZ and the animate package, that I want to include in a beamer presentation. When I had the code inside of my presentation's .tex file everything worked ...
2
votes
1answer
339 views

Include source text from URI (e.g., Wikipedia)

Background Wikipedia content is reasonably current and free to use. Consider the tabular content at: http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks#Java Problem Copying ...