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
3
votes
0answers
31 views

inputting a big number of tables into LaTex

I am working on the project in LaTex that requires me to input a large number of tables produced in R via xtable packages. Let say I have already output a large number of tables (about 150 of them). ...
0
votes
1answer
35 views

Centering a pair of overfull PDFs

I'm trying to get to the bottom of how to position and center things. Here I've placed two very large PDFs side-by-side. I scaled them down to the current size and tried to center them: \...
1
vote
0answers
23 views

Using \input in \title with amsart affects case

I have a bunch of documents that should all have a common string in their title, so I wanted to move that string into a separate file and include it using \input. That way if I want to change the ...
2
votes
1answer
30 views

How to avoid automatic indents after \input caused by a preceeding line break

MWE: \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \begin{document} \section{Some Section} First (long) paragraph. \\ Second (long) paragraph. \\ \input{some_figure} Third (long) ...
4
votes
3answers
56 views

\input{} inside \chemfig{}

I'm likely ignoring something fundamental here and was hoping for some hints. Please see the inset mwe. Towards having a library of chemfig symbols, I see value in being able to point to a ...
0
votes
1answer
19 views

restricting the folders available in \input (etc) in LaTeX

I am running LaTeX on a server, users are collaborating and contributing files and the server runs LaTeX on a root file I produce which \inputs user files (each user has her own special folder). The ...
0
votes
1answer
18 views

VS Code, Latex Workshop: saving a chapter imported with \input recompiles everything

I'm editing a long document with VS Code and Latex Workshop (my master's thesis). It is split into 7 chapters, each in its own .tex file. They are imported into an overarching thesis.tex file with \...
0
votes
0answers
27 views

Inputting only a single environment from a file inside an enumerate environment using xcomment?

I am trying to input problem assignments into an exercise template from individual problem files, that also happen to contain the right answers to the exercises in question. The assignments and right ...
5
votes
2answers
114 views

Combining latex input and sed

I need to include file, but I want to manipulate it directly from PDFLaTeX. I must remove any text which is betweem \{ and \}, including backslashes and parenthesis. I have tried many escaping options,...
0
votes
0answers
42 views

\input ignores table of contents? [duplicate]

I have divided my tex files as follows: . ├── content │   ├── abstract.tex │   ├── mainA │   │   └── a.tex │   ├── mainB.tex │   ├── mainC.tex │   └── MainD │   ├── d.tex │   └── dd.tex ├── ...
0
votes
1answer
32 views

Problem with a child-document within a table

I ran into a problem with the \include/\input command. I want to generate a table based on the child document somedoc.tex, which looks as follow $$12.67$$ & $$6.18$$ & $$5.00$$ & $$60.33$$...
0
votes
0answers
13 views

Include a listing but set the caption in the enclosing file

I have a document with many large listings. To keep things organised I'd prefer to keep these listings in separate files and using \input in the appropriate location in the text. However, I'd also ...
0
votes
0answers
40 views

How to import a tex document as appendix?

I have two tex file "one is "cornell" template another one is "article" template that one is created from jupiter notebook. If I input this article front is missing but it run successfully as an ...
1
vote
1answer
38 views

LaTeX code with input dependent on some integer parameters

Suppose that I have a large number of .tex files with names 1.tex, 2.tex, ..., N.tex (with N = some integer). I would like to write a LaTeX document, where I set some parameters for example: howMany ...
1
vote
0answers
50 views

include files from specific folder

New linux (mint) user, with pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian), using TexStudio (that might change) I have custom files (sty's and whatnot) in a folder that I cannot move (...
1
vote
1answer
45 views

Recursively search parent directories when including/inputting file

I'm wondering if it's possible to modify the function of the \input command so that e.g. \input{macros} would work recursively. Variant 1 Check if macros.tex exists in the current directory. If ...
3
votes
1answer
47 views

\section causes citations to display as [0]

I have a main .tex file where I input some chapters which are other .tex files. Then I have a bibliography that I input in the main. If I have some \section in my input file, some citation become "[0]"...
0
votes
0answers
16 views

using input to capture random questions in a folder

I have a directory with multiple questions, each question has a number, example, quest1 ... questn. Using random numbers I want to get the questions randomly, I'm using \input {} because the questions ...
0
votes
0answers
29 views

How to take path from batch in LyX2.3.2?

I'm using LyX in Windows 10 and searching to display the path where the file.tex is placed, this file is supposed to be placed in different places and used from different users. I try to explain what ...
0
votes
0answers
13 views

pgfplots input axis settings from an external file [duplicate]

I want to plot multiple figures with the same settings, but different content. I would then like to be able to change the settings in all plots at the same time. To achieve this, I'd like to store the ...
1
vote
0answers
41 views

Cannot input utf8 encoding with csvreader

I am trying to generate a table with \csvreader. The problem is latex is ignoring when I have some german chars such as; ü,ä,ö How can I fix this? Here is the code: \documentclass{article} \...
0
votes
1answer
35 views

How can i remove this blank page after my list of figures?

All chapters of my work have enough text in them to fill atleast two pages, so this is not an issue, but for my list of figures, i get this empty page after wards: This is my main page: \...
3
votes
2answers
73 views

expl3-strategy to automatically update the title of a document, depending on its content

Context The current question arises: as an attempt to improve the aim explained in a question of mine (Expl3' tl variable storing the result of a \seq_map_inline: OK in article's title but ...
0
votes
0answers
33 views

change the default path where Latex looks for everything

I'm trying to throw different projects into one document that are in different folders. These folders include images and texfiles. I know that I can always include files with \input{} or \include{} ...
0
votes
1answer
67 views

Include filename in a nested document

I have a large project split in multiple files. I'd like to get each subfile name in the pdf to monitor my document. From different posts on this forum i understand Currfile package could help by ...
0
votes
0answers
24 views

Running into performance issues when working with a multi-chapter book

I am typesetting a 600+ page document on 6.125"x9" paper and running into two performance issues: TexStudio is becoming increasingly slow with its code-completion; and compilation is taking a very ...
1
vote
3answers
71 views

Variables with Input from Separate File

I just started learning Latex for work but I'm having trouble with a code I'm writing. I'm trying to create a file that will take variables from another file and print them out with their assigned ...
1
vote
1answer
69 views

\input{} command inside custom .sty package

Here's my setup : Two PCs (one desktop and one laptop) Two installations of Texmaker and MikTex (exactly the same versions) i've created my own package (.sty file) and this package uses external ...
0
votes
0answers
23 views

input a file and then input a modified version of this file again

I want to create short profiles for people that open up when someone clicks on the name and also a list of all people at the end of the document. I got a command that sets up how the box should look: ...
0
votes
1answer
33 views

Suppress pages in Beamer presentation

My project uses multiple inputs to tex files that contain frames for a specific topic. Example: main.tex topics topic1.tex topic2.tex topic3.tex This is in the main.tex: \documentclass{beamer} \...
0
votes
1answer
49 views

Including file in .cls

I have created a class and defined a command in there, to create a titlepage: class.cls : \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myclass}[2019/03/25 myLaTeX class] \LoadClass{scrartcl} \...
0
votes
1answer
24 views

How to make an \input{} function with error-message?

I am frequently using the \input{} command in my master.tex file to import text from other files, e.g. \input{./texts/myText.tex} for inserting the text file "myText.tex", from the folder "texts" ...
4
votes
2answers
54 views

What is the purpose of ../ in \input and \include?

I sometimes see \include{../foo} and \input{../bar.tex} in code examples online. What does the ../ means? What does it changes? What are its advantages? How is it possible to use it?
0
votes
1answer
48 views

Does the \import command slow down typesetting compared to \input?

Using the \import command (instead of the \input command) in order to be able to use relative paths is in some situations very convenient for me. However, it seems that, in particular for large ...
1
vote
1answer
116 views

Saving tikz figures in external file

I have several tikz figures, some of which are over 400 lines of code. This complicates my working on the main file since I have to scroll past all that code quite often so I was thinking I put it in ...
0
votes
0answers
41 views

Preprocess a .tex file and save it as a new file

I have several .tex files that I would like to share with other people. I've included in them (with the command \input) several files with macros that I've written myself. However, I would like to ...
3
votes
1answer
73 views

Include specific parts of a standalone subfile

I'm trying to compile one main file of exercises where each exercise is a standalone TeX file. standalone is the perfect package for that but it lacks the customizability to choose a specific part of ...
0
votes
1answer
93 views

How to input eps_tex from subdirectory?

I have the following directories: maindir '-thesis.tex '-figures '-drawing.eps_tex '-drawing.eps My thesis.tex looks like this: \documentclass{article} \usepackage{graphicx, color} ...
0
votes
0answers
24 views

Partial compilation of part of a document without breaking the page

I'd like to avoid recompilation of unchanged sections of my documents. However, I don't want new sections to be on new pages. Suppose this is my document: I only want the second section to be ...
4
votes
1answer
96 views

Build one single .tex file from a .tex file with multiple \input

Edit: I think this question is sufficiently distinct from this question because I am specifically asking for a method within TeX itself, i.e. not running some Perl script separately to do this, but ...
0
votes
1answer
123 views

I can't find file `luavlna'

For some reason, the package luavlna doesn't seem to be working. I am using MiKTeX and have the luavlna package installed. When I try the following example: \documentclass[a4paper, 12pt]{article} \...
2
votes
0answers
81 views

Data input in LaTeX possible?

For my next project, I want to check my options. I would like to create a lexicographic book with genealogical data as a PDF, probably in XeLaTeX but I am open for suggestions. The book shall contain ...
2
votes
2answers
144 views

Invoking \input without arguments/parameters

I am wondering what the effect is of invoking \input without any arguments/parameters followed by an empty line: Code: .... \input ....
0
votes
0answers
33 views

Is it possible to `\include`/`\input` a text depending on the language set on babel or polyglossia

I would like to know if it is possible to conditionally require, in a given document, the inclusion of a chapter or the input of a particular piece of text, depending on the language set on babel or ...
1
vote
1answer
127 views

pdfLaTeX not accepting shell commands despite shell-escape option

I am testing the shell escape option, but I am stuck on a very early level -trying to do: \input{|"time /t"}}. My pdfLaTeX is complaining: ! LaTeX Error: File `|"time /t".tex' not found. As far as I ...
1
vote
1answer
66 views

question - answer system

Please excuse my poor English. I have a question regarding a "question - answer" system in latex. I want to create a quiz with 1000+ questions/answers like this: Question_1 Question_2 ... Question_n ...
5
votes
2answers
183 views

Can arara detect a rule inside a \input file ?

I started to use the nice arara package to automate my compilation process for my thesis. I know it is better to place the rules using e.g. % arara : pdflatex placed at the beginning of the .tex ...
0
votes
0answers
50 views

How to add my own directory to TexWorks search list

I am using TeXWorks as the front end for the XeTeX format. Just installed this from the TeXLive 2017 CD. I have a directory of my own plain-Tex macro files. I want my plain-TeX coded documents to ...
2
votes
1answer
98 views

\input{} File does not exist [duplicate]

I have written a template for a personal diary. The main tex file \input a file called entries.tex, which will \input all the diary entries, which are in a subdirectory, as well as write the title of ...
0
votes
0answers
19 views

Any way to move content definition to end of latex input file for use earlier in the file?

I would like to make a document template which is a self-contained file. This document will include a logo, defined using PSTricks macros. I actually created this by converting the svg version of the ...