Questions tagged [external-files]

{external-files} is about external files included in a document, e.g., pictures via \includegraphics, or parts of a document via \input or \include. For questions about files automatically generated by LaTeX (.aux, .log, .out, .toc, ...) use {auxiliary-files}.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Subfiles are not anymore displayed on the structure tab

I'am editing my PhD dissertation in TexStudio. I am using subfile package in order to manage my multifile project (abstract, chapterts, etc.). Suddenly, the different files I loaded from the main.tex ...
0
votes
0answers
27 views

Issues in hyperlink to an external document

I have two latex files: one for the actual paper and one for the appendix. In the paper, I want to refer to section of the appendix. I follow what I found around on referring to external dcouments but ...
1
vote
1answer
31 views

How to reuse color profile file in multiple documents?

I am trying to reuse files in multiple documents, but I am having problems with the color profile file. The idea is to have the .icc file in the icc folder inside the main folder and access that file ...
1
vote
0answers
8 views

Sub file references main file, but references do not appear when compiling main file

I am trying to write a large document, and for the sake of organized editing, it makes sense to have each chapter as a standalone document. I am using the standalone package to accomplish this. I have ...
1
vote
1answer
56 views

unwanted text artefact

There is this unwanted text in my pdf result. I do not where it comes from. there is nothing related with that text in my code. can someone help me with this?
3
votes
1answer
61 views

Reference line number of string from text file

I want to reference a line from a non-TeX text file that contains a fixed string. I just want to be able to get its line number. I'll need to do this several times for the same file, so it'd be nice ...
0
votes
0answers
49 views

\inputminted can't find the source code file

I'm trying to import a Python script into my LaTeX document using \inputminted, but it only works if I use the absolute path. E.g. this works: \inputminted{python}{C:/Documents/example.py} This does ...
2
votes
0answers
63 views

Make a summary version of lecture notes

My aim is to make a summary of my lecture notes. More precisely I would like to write in the same file (per chapter), the whole structure (section, sub-sections), and then: by default the tcolorbox (...
0
votes
1answer
43 views

Can Latex copy external files around the computer's file system

I have a latex document like the below \documentclass{article} \usepackage{graphicx} \newcommand{\plott}[1]{ \begin{figure} \includegraphics{#1} \end{figure} } \begin{document} \plott{"c:...
1
vote
1answer
174 views

MiKTeX file location for plain TeX macros using WinEdt

I use plain TeX (not LaTeX) on a Windows 10 PC to create worksheets for my HS math classes. I've been using MiKTeX 2.4 and WinEdt5 (since 2001) but decided to try upgrading to the latest of each (...
0
votes
1answer
50 views

Compilation Error: “File ended while scanning for \documentclass” (Subfile package)

I'm getting this error constantly, since setting up a new TexLive instillation with TexStudio on a new laptop. This compiled fine on my desktop, and I'm stuck in knowing what the real root of the ...
1
vote
1answer
31 views

Write CSV in document with dynamic filename

I'm super new to Latex and I'm trying to do automatic documents that present information regarding each project. Every folder and project has a different name/code and I'd like the document to add a ...
1
vote
1answer
51 views

Alternatives to tikzexternalize

I know this may sound too broad, but: is there any alternative approach to tikzexternalize out there? Especially when using pgfplots. At least for me, it is not always easy/straightforward to have the ...
0
votes
1answer
50 views

Preserving newlines in body of \NewDocumentEnvironment when writing to an external file

I am working on a system for providing hints for exercises in a different location of the typeset document. The current approach is based on saving the content of the hint environment to a file. This ...
1
vote
0answers
61 views

How to insert external pdf file in beamer

Question: I am making a presentation with beamer in which I want to give link of external pdf file. Because I am using most of the content of that .pdf file in my beamer. Rather than typing all ...
1
vote
0answers
71 views

LuaLaTeX: How to reduce the file size of the generated PDF on the fly?

I'm using LaTeX to generate a PDF that will have around 1500 - 2000 pages. The PDF includes a lot of pictures. Approximately 5000 photographs (JPG) that are each 2MB and a couple of hundred smaller ...
0
votes
0answers
37 views

Launch a program from a pdf file created with LaTeX

I have found a similar question here, but it regards opening a .pdf file from another one. I would like to open a .ods file from a link in the .pdf file, meaning it should launch LibreOffice Calc. I'm ...
0
votes
0answers
17 views

Latex and file management: chained \include{…} and reference to active directory

For each chapter of a document I am working on I have a separate folder, and all folders are contained in a common superfolder, together with a file main.tex which should put them all together. ...
2
votes
1answer
34 views

Create a nested comma-separated-list from a CSV file

In my Latex document I define a nested list that looks like this: \def\recipes{ { test1@ test2@ test3@ test4@ test5a*test5b@ test6a*test6b }, { test1@ test2@ test3@ test4@ test5a*test5b@ test6a*test6b ...
1
vote
0answers
40 views

What's a good way to add a non tex table from external file?

I'm seeking for your advice and ideas regarding a way to add all my tables in the pdf file as non tex files. The goal is to make it harder (much harder) for someone to edit the way the tables look in ...
0
votes
0answers
74 views

Luacode with several .tex files [duplicate]

I wrote some luacode in my main.tex and I'm a adding several other files due to \input{code.tex} I already asked this question here and it works on a standalone environment but not in my case. I can't ...
0
votes
1answer
21 views

How to make \InputIfFileExists force end the compilation with a descriptive error message when the file is missing?

The following gives me a message saying the Process exited normally with a corrupted output PDF file despite the absence of any file called dummy. So, I need to have a compilation-halting error with a ...
2
votes
1answer
48 views

Incorrect Results from \IfFileExists with updates to TeXLive2020

Following an update to my packages with TeXLive2020 I am seeing different behaviour than in TeXLive2019. The following test is run in the directory Testing/ which besides the MWE in the file ...
0
votes
0answers
19 views

Automatic creation of caching directories

The following MWE writes a cache file to the tikzcache directory \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize \tikzsetexternalprefix{tikzcache/} \begin{...
0
votes
1answer
26 views

PDFLatex not finding files (tex, pdf) after exporting from R statistics software

I installed Kile 3 and MiKTeX on Windows 10 and can not include any PDF graphics nor Tikz-painted .tex files from subdirectories. Minimal example: \documentclass{scrartcl} \usepackage{tikz} \begin{...
0
votes
2answers
69 views

\input gives error, but copy-pasting the code does not

I have the following main.tex file: \documentclass{examdesign} \begin{document} \begin{examtop} {\LARGE Math Test} \end{examtop} \begin{multiplechoice}[rearrange=no] \input{myquestion.tex} \end{...
0
votes
1answer
62 views

Warning in REVTeX 4.2 for references to an external document: “… has been referenced but does not exist, replaced by a fixed one”

First, I build the following external document, ExternalDoc.tex file, 3+ times. \documentclass[prl,aps,10pt]{revtex4-2} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{thm}{Theorem} \...
0
votes
1answer
35 views

Escaping quotes when writing to a file

When using quotes as part of strings one often needs to escape the quotes. I now have a string My nice title stored in \mytitle and I want to write, from LaTeX, a JSON file which reads {title: "...
4
votes
0answers
88 views

The latest release of LaTeX2e changes behavior of \IfFileExists. Why?

The output of the following latex document has changed since the last LaTeX2e release: \documentclass{article} \begin{document} \IfFileExists {} { yes } { no } \end{document} Release 2020-02-02:...
0
votes
0answers
71 views

Input{xxx} : file not found

I'm using TexMaker and MikTex, and I created a folder called "first" where i put the .tex file and another file called xxx.txt. Now I want to import the file into latex by saying \input{xxx} ...
1
vote
0answers
23 views

Input a file from the web via Overleaf

I want to include some code in a document, but it would be very nice if that code would automatically update whenever it was updated on GitHub. Looks like I can include text from a remote file as ...
1
vote
1answer
34 views

What order does LaTeX check for image file extentions? [duplicate]

I'm reading the tutorial on LaTeX by overleaf, and in their section Adding Images they have some example code: \documentclass{article} \usepackage{graphicx} \graphicspath{ {images/} } \begin{...
0
votes
1answer
50 views

includegraphics: one single picture not found

I include about 100 pics in a LaTeX document and only one of these pics is not found: ! Package pdftex.def Error: File pic_053_001_A_ccc_SS_bb_TT21_test.pdf not found All pics are in the same folder—...
0
votes
1answer
31 views

TOC contains “Contents” in Mainfile document / DRAFT-Background without using package

if this question has already been asked, just let me know! I seperated a big document into smaller files and my table of content displays "contents" as the first entry and I want to delete ...
1
vote
1answer
61 views

Partial file input

Is there a way to input a part of a LaTeX file1.tex specified by say some markers into another LaTeX file file2.tex? (For example, I don't want to input \begin{document}, \maketitle, etc.) I know that ...
1
vote
1answer
26 views

Configuring build.lua to install images

I have a bunch of logos I want to package up into a module within a LaTeX bundle. But my build.lua file won't install them. I have a subdirectory logos a the top level of my bundle. In that ...
1
vote
0answers
35 views

How to auto-complete filenames in texstudio

I have lots of images to be used in a specific folder ./figures/, so I set \graphicspath{{./figures/}}. However, how can I auto-complete filenames of these images in \includegraphics{}?
2
votes
3answers
146 views

How to query if a file has changed (a \IfFileHasChanged conditional)?

We know \IfFileExists{<file>}{<yes>}{<no>}. How can I create a command \IfFileHasChanged{<file>}{<yes>}{<no>} for a file which has changed (and does exist!). I mean ...
0
votes
1answer
62 views

reference external figures from supplementary inside overleaf

I try to reference external figures from the supplementary information inside the main text. How to reference figures that are in the supplementary content in main text? describes an approach I try to ...
3
votes
3answers
211 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
52 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
1answer
82 views

Koma-Script scrartcl.cls + newfile.sty: \readstream stops after \section+newline in file

I am using newfile.sty to generate a file, which I then read again. With Koma-Script it stopped working since TeXLive 2020: If the file contains a newline after a sectioning command like \chapter or \...
1
vote
0answers
70 views

How to compile a PGF/TikZ plot several times using the standalone package?

In my main document mwe.tex is a PGF/TikZ plot integrated using the package standalone. This plot contains several frames so that several axis with different axis scalings/ axis sections are ...
1
vote
0answers
46 views

Use file with non-ascii letters in filename in \inputminted

I want to import some code into a LaTeX-File. The problem is, that in the path some special caracters appear. This still works fine: \inputminted[autogobble,breaklines]{java}{C:/Path/to/my/File.java} ...
1
vote
1answer
241 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 ...
6
votes
2answers
166 views

Include file contents into LaTeX on the same line

I'm trying to generate a pdf file where a certain part contains user input. I want it to be put on the same line, with the same font, and without special characters messing up the parsing. I thought I ...
3
votes
2answers
68 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-...
0
votes
1answer
30 views

I want to remove links which direct us to our browser from my doc. How can do that?

\documentclass[letterpaper,10pt]{article} \usepackage{latexsym} \usepackage[empty]{fullpage} \usepackage{titlesec} \usepackage{marvosym} \usepackage[usenames,dvipsnames]{color} \usepackage{verbatim} \...
1
vote
1answer
84 views

Include word/pdf files in latex?

I was wondering if it is possible to integrate Word (or PDF) files in LaTeX in such a way, that one can still use the hyperlinks provided in that word / pdf.
0
votes
1answer
49 views

Journaling calls to a function taking inline code as argument / macro param in horizontal mode issue

In the code below \Foo evaluates inline code. \Baz is a 'journal-ed' version, meaning it writes calls to \Foo to a file. Reading the file fails (Hook 2) due to a "'macro parameter character #' in ...

1
2 3 4 5
12