{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

0
votes
1answer
29 views

Footnote in input file - missing number treated as zero

Let's say I have a document Foo.tex: \documentclass[a4paper,11pt,titlepage]{article} %... %%Packages \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{hyperref} ...
3
votes
1answer
60 views

Outsourcing Tikz and relative paths

Summary: How do I get includegraphics to be relative to the current file, when using tikzscale? Details Similar to pmav I like to have a .tikz file which contains only the tikzpicture ...
0
votes
1answer
52 views

new \input{file} Package, Command wrapper: microtype .tex with reserved symbols

I know enough basics in LaTeX to produce a decent looking document. LaTeX makes it more difficult to NOT do that. But I don't know plainTeX or "@" and other advanced, cryptic programming tricks that ...
0
votes
0answers
29 views

Get error on calling \chapter (…) \input{chapters/intro}

So, I'm writting a dissertation in portuguese and I'm using the class REPORT, and I've put the chapters of my disseration in a separated folder containing these chapters, so that I call them ...
1
vote
1answer
9 views

File not found when importing figures produced by gnuplot (epslatex) from another folder

I have recently started using gnuplot's epslatex terminal to create graphs to a report I am writing. I have, however, encountered an unexpected problem. I usually keep my chapters and figures in ...
0
votes
0answers
17 views

Change name of table in caption and reference

I have multiple tables in my thesis with model results. I want to change these tables' names, meaning it wouldn't say Table 1 but Model 1 (also when referencing them). Also, a special table of content ...
3
votes
1answer
46 views

Splitting a class file

I am writing a class file and I use a lot of constants (length, colours, strings…) that I would like to take out of the cls file for cleanliness. I have tried ...
0
votes
1answer
28 views

epslatex tex-document faulty [closed]

I want to create a .texdocument with Gnuplot to insert in my Latexdocument with the following code reset set terminal epslatex color size 12cm, 9cm font 'Helvetica,16' set output "test.tex" set ...
0
votes
1answer
22 views

Main file setting ignored when using \include command

I want to split my tex file into several parts. When it was in the form of a single file, it compiled perfectly. After I cut out a chapter and created a separate file containing it (and imported it ...
2
votes
1answer
23 views

How can I include external macros for every line of the source code?

An answer to my last question gave a solution for hooking a small command onto line breaks in the TeX source. \documentclass{memoir} \usepackage[spacing, tracking]{microtype} \usepackage{libertine} ...
4
votes
0answers
63 views

\includestandalone cannot compile \section or \subsection commands

Main.tex \documentclass{scrartcl} \usepackage{standalone} \begin{document} \section{A} \includestandalone{Subfile} \end{document} Subfile.tex ...
1
vote
2answers
33 views

Using external inputs to be included based on \if switches

I am working on a specifications file which should be used for multiple projects. Ideally what I would like to have is a generic latex file where I can enable project specific additions, but these ...
0
votes
0answers
36 views

Input/import trouble

I've been trying to import tex-tables produced by Stata into a new document, but I keep getting an error that the imported file can't be found, even when I copy/paste the file path directly. My code ...
0
votes
1answer
53 views

Appendix will not work at all, please help.

I would like to include an appendix (just one appendix) in my thesis, following the bibliography. I am using book class, and have each chapter in a separate file. When I try to add an appendix, the ...
1
vote
0answers
31 views

Modular document compiling without some child documents [closed]

I am creating a modular TeX document with many child documents, using the \input command. After inputting the first 10 child documents, everything compiles as it should. However, after I add another ...
0
votes
1answer
47 views

Is it possible to input a file from the web

I am using PHP on my server to create a latex table from a database, which is working fine. The problem I have now is getting that into my latex document. I thought that giving it the path would ...
0
votes
1answer
22 views

Nested inputs with unwanted pagebreak

Let's say I have a document for which all sections and subsections are separate .tex-files. As I cannot nest \include, I'm using \input. \documentclass[a4paper,11pt,titlepage]{article} \title{...} ...
3
votes
2answers
41 views

How to \caption a longtable imported from a file by \input{file} and use a smaller font?

I'm generating a boring longtable from a database into a file. My goals are: Import the generated longtable into another document. The longtable data is dynamic and must be imported periodically. ...
2
votes
2answers
47 views

\input with wildcards (regex) in the file name

I would like to \input all tex-files in a certain directory starting with "prefix", in alphabetical order. Something like \input{prefix*tex} would be nice, but it doesn't work. Is there some ...
3
votes
0answers
24 views

How to import multiple fragments of file labled with the same label?

I want to make include of labled part of file. I need something like catchfilebetweentags but with the support of multiple usage of the same lable. Catchfilebetweentags include just the first ...
2
votes
1answer
31 views

Automated plotting with \input inside \addplot

I'm trying to draw some figures with externally generated data. I'd like to draw a simple line inside a tikzpicture using pgfplots like so: \documentclass{article} \usepackage{pgfplots} ...
5
votes
1answer
96 views

Define path for packages in the LaTeX file (analog of \input@path or \graphicspath for \usepackage)

How to specify path for additional packages in the LaTeX file itself? For graphics, you use \graphicspath{{a}{b}}, and then \includegraphics{file} finds b/file.pdf. EDIT: it should be ...
3
votes
0answers
47 views

Including chapter as a separate TeX file [duplicate]

I am trying to include a separate TeX file that will contain the text of a chapter, however when I try to point the main TeX file to the chapter TeX file, there is an error which claims to not be able ...
4
votes
2answers
83 views

Add version number to document from file

I have been going crazy looking for a solution. Essentially, I need to add the version number of the document somewhere on the title page. What I want to do is have a file such as version.tex which ...
1
vote
1answer
40 views

How to input text from a file

I need to do the following: I have a file A which consists out of short fragments of text: Text 1 Text 2 Text 3 Text 4 I have another file file B in which I need to input ...
2
votes
2answers
144 views

Split thesis chapters into separate files for compilation speed

I am writing a thesis using a template similar to this template. The main file (dissertation.tex) uses \include{} to include each chapter. I have a large chapter (over 60 pages with 70 images) that ...
1
vote
0answers
31 views

Error after inputting frmttable stata table

I am using the Stata user written command frmttable to create journal-like tables and to write them to LaTex. When I use the command \input{... .tex} the table is displayed like I want it, but LaTex ...
1
vote
2answers
56 views

Input a tex file in my document, but it's not placed well

Recently, I input a .tex file (just name it as table1.tex, which contains a table I needed in my paper) in my main document, but it's not placed well, I want it be in the middle, but it's on the ...
3
votes
1answer
48 views

eplain macros in CWEB

I would like to use eplain macros in a CWEB program, but eplain and cwebmac seem to conflict in their PDF support. Specifically, they both define \ifpdf. The cweave program turns the code below ...
0
votes
0answers
53 views

Listings tcbinputlisting

This is a follow up question. Have a look at my comment on the answer to this one: Listings: line number separator rule How do I use the input and the environment of tcolorbox? I have created a ...
1
vote
1answer
147 views

package inputenc error : the keyboard character used is undefined

I have a simple text line that I get the above error in it , I don't see anything strange in the line , shall you please help me about it ? I am sure it's not about reading the help again ! thank you ...
5
votes
1answer
49 views

What to \input and what to \include in a very large document?

I have a large notebook (~300 pages and growing at ~50 per month) with: Deep hierarchy (I use parts, chapters, sections, subsections, subsubsections and paragraphs) Document is broken into many ...
0
votes
1answer
81 views

Image File Not Found in LaTeX

I am trying to use the includegraphics command alongside a custom command to include an image in my PDF file, however I'm running into an issue where LaTeX can't seem to find a file that clearly ...
3
votes
3answers
75 views

Include/input every subfile from a subfolder

Our chemistry teacher gave us a collection of vocabulary cards which include every term we should be able to explain (looking forward for the final exams). Because just having those cards doesn't help ...
9
votes
2answers
82 views

Workaround to make catchbetweenfiletags work with lualatex

I recently discovered that a basic example of the package catchbetweenfiletags doesn't work with lualatex (while it works with pdflatex). What follows is the MWE. Do you know if there is workaround ...
1
vote
0answers
53 views

Unwanted line break after \input{} [closed]

I have two tikz / pgfplots figures that I'm including in my document va two calls to \input: \input{file1.tex} % There seems to be an unwanted line break after this \input{file2.tex} I can't have ...
3
votes
1answer
116 views

Using latexmk with multiple tex files in the directory

edit solution to compile : latexmk -pdf mainfile.tex I have left this example up as it might contain language used by others unfamiliar with this area :) At the very least it provides a Minimal ...
0
votes
1answer
106 views

\input can't find file (nested directory structure)

I have the following directory structure in my project: main.tex LaTeX mypackage.sty content chapter2.tex figures LaTeX figure.tex In main.tex I input content/chapter2.tex. ...
3
votes
1answer
42 views

Reusing the same tex files in different base files

I have a number of .tex files containing sections which are \input{} into a large document. I'd now like to create an "excerpt" document that includes only a subset of these sections. The problem is, ...
1
vote
1answer
53 views

Including a file with relative path

I'm trying to include a file whose path relative to the main tex file is ../folder/chapter.tex. I tried \input{../folder/chapter.tex} but it doesn't work: I get an error of file not found. I'm ...
1
vote
1answer
111 views

Latex Macros: Local Variables and Path Names

I initially have a group of TeX codes that looks like so: paper.tex assignment.tex Where paper.tex is the main TeX and takes in the assignment.tex file and adds it in there. The assignment.tex is ...
1
vote
1answer
49 views

How can I use relative paths?

I want to add a table from a separate tex file to my document. I get an error saying the file vr_sets.tex is not found, when I do this in Chapter2/chapter2.tex: \input{tab/vr_sets} This also fails: ...
4
votes
3answers
87 views

How to randomly input a specified range of files?

The LaTeX file below outputs the numbers 1,2...,20, in natural order \documentclass[12pt]{article} \usepackage{multido} \begin{document} \multido{\i=1+1}{20}{\i\ } \end{document} The output is ...
0
votes
0answers
23 views

Is there a file path behaviour fixup

I have the following structure: In main file \input{figs/figure.tex_t} In figs/figure.tex_t: \includegraphics{figure.pdf} This results in build failure, since \input does not affect the current ...
2
votes
1answer
67 views

Issue with \scalebox, \makeatletter, and \input

A colleague of mine had a LaTeX-specific issue for which I did not exactly know the cause of the issue. I have distilled a Minimal Working Example to illustrate the issue. Originally my colleague had ...
3
votes
1answer
102 views

Is there a way to limit the scope of the Table of Contents (\tableofcontents command)?

Question If I have a document with multiple tables of contents, can I limit the scope of a toc sections are added and reset the toc? Situation I have a document made up of 10 languages. (using ...
1
vote
0answers
64 views

The blank page between last chapter and list of symbols

I have problem with blank page but the answers I've found here didn't work. I have found two (unwanted) ways how to get rid of the page (under the code): \documentclass[12pt]{report} ...
0
votes
1answer
75 views

Why cannot I input a tex file to the main tex file?

I want to insert a old tex file to the new tex file which I'm currently working on, I made it like this: however, it always has error, such as ./1.tex:1:LaTeX Error: Can be used only in ...
0
votes
0answers
36 views

Child Documents have different sectioning levels than Master Document. How can I incorporate?

I have three Lyx documents I would like to insert into a Master Document as Child Documents. However, the child documents begin with a Chapter. I need them to begin with a Subsection in the Master ...
2
votes
1answer
85 views

Place circuit figures side by side in tabularx environment

My MWE, \documentclass[a4paper,11pt]{book} \usepackage{tabularx} \usepackage{tikz} \begin{document} \begin{enumerate} \newcommand{\OOO}[4]{% \begin{tabularx}{\linewidth}{@{}X@{}l@{}} \textbf{A)} #1 ...