Questions tagged [input]

{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.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Uploaded Article projects not uploading in my Report project and therefore my Table of Context not appearing

I am writing a thesis and I am using Overleaf. I have upload all the chapter from different articles to make up the chapters in my thesis. For some very strange reason, only one \chapter{...} \input{.....
0
votes
0answers
41 views

Unrecognized commands when using \input

I have a side document where I define new commands, load packages, etc, which I then include in the main document with "\input". The main document compiles correctly, but no command defined ...
0
votes
1answer
24 views

Compiling the main document from a chapter file

I have a main document calling on several different chapter files. What I would like to do is have split-screen open with one chapter tex file on one side and a compiled pdf on the other side that I ...
0
votes
1answer
22 views

Trouble with input command using pdf_tex files generated by Inkscape

I have a problem when I use \input{} command with pdf_tex files generated by Inkscape in subfolders. It appears an error that says ​! Package pdftex.def Error: File `X.pdf' not found: using draft ...
2
votes
1answer
48 views

The effect of triggering the re-writing/creating anew of a text file which currently is processed via `\input` puzzles me?

I tried to create a .tex-file fileb.tex which can be \input by filea.tex and which - when being input - stops being input and triggers rewriting itself. In my first attempts I erroneously omitted \...
0
votes
0answers
14 views

Figure not showing in multi-file latex project

I am trying to include a figure in a large document. It works fine directly. But when I call it in another file using \include or \input, the figure does not show. It is a simple code as below. \begin{...
1
vote
0answers
44 views

How to Arrange Graphics (TikZ) If Using Input Command?

I am trying to arrange several figures e.g. as follows: Those are .tikz files, and I am using \input to insert them. What I am trying right now is this: \begin{figure}[p] \centering \...
1
vote
1answer
26 views

Letter formatting in Latex main and input files

I have created a single file ('main.tex') for letter where I will add other tex files ('letter_1.tex') using \input in Latex. The document format is letter (for cover letters). I am struggling with ...
0
votes
0answers
49 views

Error when compiling: ! Missing = inserted for \ifnum caused by \input Acorn.fd

I've looked for solutions but unfortunately, no solution was applicable to my current case. I do not know where it comes from. This is my sample: \documentclass[a4paper]{article} \usepackage[utf8]{...
5
votes
2answers
92 views

Why does `\endinput` bring TeX into interactive mode while there are still tokens to process?

Minimal example consists of two files: fileA.tex: \def\foo#1{#1} \foo{\endinput\input fileB.tex}% fileB.tex: This is file B. \bye I assumed that compiling fileA.tex would lead to a file fileA.pdf ...
0
votes
1answer
42 views

Restructuring multiple files with inputs and macros in it

i have a multifile document, that is weirdly structured and i want to improve the structure. the hierarchy looks like this: dir0 ├──header.tex ├──dir1 | ├──main1.tex | └──img1.png ├──dir2 | ├──...
3
votes
3answers
124 views

Is it possible to conditionally input a file in LaTeX?

I'm new to LaTeX, and here's what I'm trying to accomplish: I have Markdown and LaTeX files in my working directory, say markdown_1.md and latex_1.tex. In my main LaTeX file, main.tex, I have defined ...
1
vote
1answer
36 views

code input with linenumbers

I write a thesis and want to have my code/textfile in the appendix. I dont want to copy the code, I only want to write the path of my file into tex. I already tried \verbatiminput{main.py} and \...
0
votes
0answers
20 views

Import my article in my thesis while still accessing figures and section labels

I am writing my Thesis and I need to include one of my articles in the document. In the rest of the thesis, I need to refer directly to figures or sections hence I cannot just include the pdf. Also ...
1
vote
1answer
48 views

Addressing package collusion when building a library

I wish to create a "library" of commands that I often use, say lib.tex, so that every time I wish to use them, I write \input{lib} and get on with life. The problem, however, arises when my ...
1
vote
1answer
25 views

I want to have access inside the body not to the \arg[n] list but with \A[n] if I call \MAT{A, 1, 2, 3, 4}?

I would like to set matrices using the code: \newcommand{\MAT}[1]{ \setsepchar{,} \readlist\arg{#1} \arg[1]= \begin{pmatrix} \arg[2]& \arg[3] \\ \arg[4]& \arg[5] \end{pmatrix} } and inside ...
0
votes
0answers
31 views

Error in compiling main .tex file when separate section file is included

I want to use this LaTeX template for writing my thesis. I downloaded the files and tried to run it using Texstudio (with MikTex distribution) on my new machine, without modifying anything in the ...
0
votes
0answers
19 views

What is causing undefined control sequence? \input

I'm trying to input a .tex file but keep getting undefined control sequence with the error showing on the \input line: \documentclass{report} \usepackage{booktabs} \usepackage{pdflscape} \begin{...
1
vote
0answers
24 views

How print the latex commands in document with line numbers in a coloured box [duplicate]

I want to write the latex commands in the document ina coloured box with line numbers. Much like in here the latex commands display in a gray coloured box. I want that with line numbers. And also i ...
0
votes
1answer
36 views

Include external plantuml file [duplicate]

I want to include an external .puml file and have the diagram generated. My current approach does not work and I do not understand why. Following I pasted what I think is relevant from my current ...
0
votes
1answer
58 views

insert 3 Tiks as a one picture

I want to insert this 3 tikz like the picture above I use Matlab2Tikz and i have a problems with it I can change every position (at=) but this hard to do and take a long time this is the 3 tikz ...
0
votes
0answers
11 views

Continuous \inputlineno for documents with \include and \input

The \inputlineno counter represents the current line of code in the .tex file. \the\inputlineno returns said number. If, however, I have a document which \includes or \inputs other .tex files, \...
5
votes
3answers
273 views

Conditional \bye?

Editing a huge document is painfully slow. So one splits it into pieces and has a main document that does \input this and \input that. But: While I'm editing this.tex I want a \bye at the end to make ...
1
vote
1answer
30 views

How to avoid \input files being displayed in the terminal output?

As indicated in https://tex.stackexchange.com/a/316779/5471 , files with content included via the \input command are displayed as (file) on the terminal output. Assume there are specific files, the ...
0
votes
0answers
190 views

Package inputenc Error: Invalid UTF-8 byte sequence using {lstlisting}

I have the next code error codealcance.tex 58 Package inputenc Error: Invalid UTF-8 byte sequence. See the inputenc package documentation for explanation. Type H <return> for immediate help....
0
votes
0answers
20 views

Error: Unicode character ​ (U+200B) [duplicate]

I'm getting this error marcoteorico.tex 31 Package inputenc Error: Unicode character ​ (U+200B) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for ...
3
votes
2answers
51 views

Convert \input to number

I'm reading several txt-files from disk and I want to do some simple calculations on them and be able to print them on the page. Basically I have: \newcommand\getinput[2]{ \immediate\write18{do-...
1
vote
0answers
37 views

\input nested tikz pictures leads to unexpected change in the picture

I'm trying to put together a composite tikz picture made up of sub tikz pictures - placing the subpictures in seperate tex files (they may have lots of lines of code), and then using \input to bring ...
0
votes
0answers
33 views

Compile/referencing error with input and standalone

I'm trying to break up a large project into chapters, and include all the chapters in a single file that I can compile at the end, using standalone.sty to strip the individual files of their preambles....
0
votes
0answers
39 views

Manage a large project in Overleaf

I'm trying to manage a large project which is my Graduation Report , I'm trying to import each chapter , in the 1st chapter everything was fine and each section appeared correctly in the table of ...
0
votes
0answers
19 views

Combine multiple questions and answers from individual q+a files with PythonTex

Objective: I am using LaTeX-PythonTeX with Jinja templating to individualise assignments. I would like to have the questions and answers in their own files. Background: Presently I prepare a single ...
0
votes
1answer
32 views

how to include a sub tex file in include file of latex

I already include file in main.tex like this: \documentclass{book} \begin{document} \include{chapter1} \end{document} how to include a subfile in chapter1.tex like this(or recursive include): \...
1
vote
1answer
46 views

How to use integer from one command into another?

I have following way to get number of spaces in a string \ExplSyntaxOn \NewDocumentCommand{\HowManySpaces}{ m }{ \seq_set_split:Nnn \l_tmpa_seq { } { #1 } \int_eval:n {(\seq_count:N \l_tmpa_seq) ...
0
votes
0answers
39 views

Problem with \input .eps_tex figure created by inkscape

I'm trying to input a .eps_tex figure created by inkscape but get the following error, File `pic11.pdf_tex' not found. \input{pic11.pdf_tex} My code is, \documentclass[10pt, twocolumn, twoside, ...
3
votes
1answer
28 views

Pass content file to macro

I'm trying to execute a macro that get a string as a parameter. I want to load the string from as a verbatim content of a file. I'm oriented mostly on catchfile package with no success. I've already ...
0
votes
1answer
21 views

input{file} for local file not found

I have a .tex file which tries to input another local file: %!TEX root = ../rings.tex \pagebreak \chapter{Analisis} \input{toLatex} Both files analisis.tex and toLatex.tex reside in the same folder: ...
0
votes
0answers
26 views

Table of Contents only shows appendix

I am trying to make a table of contents, but it only shows abstract, acknowledgements, abbreviations and symbols from the appendix. The main file and one of the 6 chapter files is given below. Also, ...
0
votes
0answers
17 views

No chapter header on page with large table

I've got a table of 16 columns that i'm putting in a specific file. In order to get the whole table on to it, I have to rotate it 90 degrees and make the text size very small but that I still miss one ...
-1
votes
1answer
23 views

Failing to write to file and input the same

\documentclass{minimal} \usepackage{etoolbox} \newwrite\tempfile \makeatletter \let\features\@gobble \makeatother \newcommand{\feature}[1]{% \expandafter\def\expandafter\features\expandafter{\...
0
votes
0answers
27 views

Skipping some lines when using `input` or `include`

I would like to know if it is possible to use input or include skipping some lines in the imported source.
0
votes
1answer
28 views

Copy all graphics files called by a LaTeX document in a subdirectory, irrespective of its original path?

I want an easy (automatic) way to copy all image files called by latex into as single directory. A similar issue was addressed here: Create list of all external files used by master LaTeX document? ...
1
vote
1answer
33 views

Using \input{} in inline mathmode — extra `}`

I generate certain values and print them in single .tex-files (example.tex) in python, mostly in the form \SI{<value>}{\percent} or as single lines for tabular environments & \SI{<value&...
1
vote
1answer
64 views

Get relative path to class file from inside the document class

Is it possible to get the relative path used in the call to \documentclass so that I can use \input inside a document class, to import files relative to the .cls file? Example folder structure: ./...
0
votes
1answer
47 views

Scaling a tikzpicture generated with matlab2tikz

I have a figure Plot1.tex generated with matlab2tikz (matlab2tikz by Nico Schlömer). I want to include it in my document and scale its width and height like this: \documentclass[a4paper]{report} \...
0
votes
1answer
162 views

Can i trim a SVG in Latex Code?

I want to trim my figure in latex code. Unfortunately, it is a SVG figure therefore I import it with: \begin{figure}[h] \centering \def\svgwidth{0.8\columnwidth} \input{MessAbsch.eps_tex} \...
0
votes
0answers
12 views

Include template files in up folder

I want to use the same template for multiple courses. Now my course is structured as: Course Name/ |-- lecture1.tex |-- lecture2.tex `-- template/ `-- template_layout_lecture.tex and I include ...
0
votes
0answers
17 views

Subfile with input - subfile directory auto added path?

I have a LaTeX project that will compile on my computer with MiKTeX, but not on my colleagues with TeX Live. The issue is that when I input the subfile, it appears that my computer adds the subfile's ...
0
votes
1answer
32 views

extract different parts of a document

I'm doing my phd right now and I want to prepare a dummy folder for new research projects. I have one problem where I don't know how to start: For a journal submission I need several slightly ...
2
votes
1answer
52 views

How to input a tex file in a newcommand statement?

I read about my task here. But I didn't get working it for my needs. MWE: \begin{filecontents*}{compensation.tex} \begin{tikzpicture}[auto] %placing the nodes \node[signal] (input) {}; ...
1
vote
2answers
61 views

give a document input to lstnewenvironment

I recently asked this question: Independent caption and numbers on different lstlisting language script And the answer for my need was to use \lstnewenvironment. Problem is that I'm still working on ...

1
2 3 4 5
15