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
0 answers
11 views

\filecontents worked once but always with error messages. What should I do?

I get error messages that don't make sense running code which I've adapted from https://ftp.acc.umu.se/mirror/CTAN/graphics/circuit_macros/doc/Circuit_macros.pdf. I've rewritten the code with the ...
user avatar
0 votes
0 answers
22 views

Input file filder - doesn't load graphics in multi file project

I suffer from the same problem as in thread Input file folder I tried the suggestions, so far with no different result. The last answer I tried. Just to clarify, are you giving the path names where ...
user avatar
  • 1
0 votes
1 answer
59 views

Framework for interactive graphics in LaTeX documents

I've written a prototype LaTeX package and associated viewing framework to allow LaTeX documents to be viewed in an environment that allows for interaction with figures. The figure might have points ...
user avatar
0 votes
1 answer
25 views

Using answers package in macros

I am compiling a set of problems for my students with hints, and using the answers package for that. The goal would be to have the problems and hints grouped by exercise session, but still within the ...
user avatar
  • 89
0 votes
0 answers
43 views

Latex No Files found

I do not know what happened. I tried everything I found on line. The problem is as follows: If I include \addbibresource{example.bib}, Latex stops recognizing any files. It doesn't matter what is in ...
user avatar
  • 1
3 votes
1 answer
187 views

How to Avoid Fontspec When Invoking an External Font

I have recently downloaded a font from https://www.dafont.com, which, when I call it into my document, requires the fontspec package and compilation with lualatex. This has caused several problems, ...
user avatar
  • 4,775
1 vote
1 answer
56 views

How Might I Use This External Font with Pdflatex?

This post adds another dimension to the question posed in Trying to Imitate an Archaic Gothic Font within a Document Compiled with Pdflatex. There are other fonts outside of TexLive that seem to ...
user avatar
  • 4,775
0 votes
0 answers
19 views

Error when trying to input an external file with xltabular package `\hline ->\noalign` [duplicate]

I am trying to stack several tables one on another. For this I am using xltabular packages. I want to input text from another file. The following code works without problem when removing / commenting ...
user avatar
  • 779
2 votes
1 answer
44 views

Compile on a per-chapter basis, from within subfile

My current project has many chapters, which are included via \input{chapters/chapter1.tex} from the main document. (The actual setup is a little more complex, but close enough.) When I am editing ...
user avatar
  • 4,805
0 votes
1 answer
27 views

Append content to a file containing sharp

In my library, I need to be able to append some text to a file. The problem is that that file may contain the # symbol, and it turns out that every time I append something to a file containing a #, ...
user avatar
  • 5,043
0 votes
0 answers
6 views

Possibility of \newdualentry with multi-paragraph descriptions having indents?

I'm wondering whether there is a way to print multiple-paragraph \dualentries with the glossaries package, having indents? While producing indented multiple-paragraphs works perfectly fine with \...
user avatar
  • 87
3 votes
1 answer
56 views

Accessing characters with \symbol

I'm trying to use the \symbol{} command to output UTF8 haracters, but I can't get access any characters higher than 0x7E The following code just outputs a tilde. \documentclass[a4paper,10pt]{article} \...
user avatar
0 votes
0 answers
17 views

Include `section` headers with `xcomment`

I use the package xcomment to make a stripped down version of mynotes.tex, including only theorems, definitions, etc. E.g.: \documentclass{article} \usepackage{xcomment} \usepackage{docmute} % Other ...
user avatar
2 votes
2 answers
99 views

How to \include files with commas in their path

I am part of a large project working with big documents (>100 chapters and ~1000 pages per document). As it stands, we input our partial files into the main document via \input. The project would ...
user avatar
  • 1,221
1 vote
0 answers
61 views

pdfLaTeX error - [closed]

\documentclass[11pt,a4paper,roman]{moderncv} \usepackage[utf8]{inputenc} \moderncvstyle{classic} \moderncvcolor{green} \usepackage[scale=0.75]{geometry} \usepackage{amsmath} \usepackage{amsthm} \...
user avatar
4 votes
1 answer
126 views

Why does LaTeX tell me that my external text file has a last line which contains the token \par?

Why does LaTeX (TeX Live 2020, Debian) tell me that SomeLines.txt has a 6th line which contains the token \par? I know with \endlinechar being 13 and the catcode of char 13 (carriage return) being 5 ...
user avatar
  • 22.9k
0 votes
0 answers
48 views

Is there a way to read multiple data sets from a single data file in the TikZ visualizer?

Given code: \usetikzlibrary{datavisualization} \begin{tikzpicture} \datavisualization [ scientific axes = clean, x axis = {attribute = t, length = 5cm, label = {$t$}}, y ...
user avatar
  • 155
13 votes
1 answer
240 views

How to force LaTeX to error when an \include file is missing/misspelled?

The only file which was meant to be compiled in my Main.tex was specified by the following line: \include{transformtaion} It was compiled without any error using the following command: pdflatex -...
user avatar
  • 274
1 vote
1 answer
45 views

problem creating tex from tex because of missing space

I have saved a name in \Name. It is ABC. So actually I wrote both possibilities this one \immediate\write\file{\read\noexpand\NoFile to \\Name} and this one \immediate\write\file{\read\noexpand\...
user avatar
  • 119
0 votes
0 answers
35 views

allocate to Variables

I want to use the numbers in Blues.tex, but the number are real number like 234.65 but \setcounter can just use integer like 234. But this is not possible by using \setcounter. I Want to use many txt ...
user avatar
  • 119
0 votes
1 answer
59 views

Generate an expandable error message when a file does not exist

I would like to understand how to use the expl3 command \msg_expandable_error (as used here) with \IfFileExists to get an expandable error message if some external file does not exist. I deliberately ...
user avatar
  • 8,759
1 vote
2 answers
73 views

How to use standalone correctly? Scaling issue between standalone and \input

I have to deal with multiple rather large tikz images which I'd like to run isolated as a standalone file. Now, when integrating these images into my main file, the scaling is off. Meaning that I ...
user avatar
  • 65
0 votes
1 answer
20 views

How to print the value of a counter to a file?

I'm trying to write the value of a counter to a file: \documentclass{article} \begin{document} \newcommand\print[1]{ \newwrite\foo \immediate\openout\foo=foo.txt\relax \immediate\write\foo{#1} ...
user avatar
  • 10.1k
0 votes
0 answers
40 views

Appending Text to Each Line of an External File Using expl3 Syntax

Let us suppose I have an external questionfileone.tex file where each line of this external file represents a particular question text. It is something that I can use, for example, as a test database ...
user avatar
1 vote
1 answer
70 views

tikz figure from file

Lets say i have a tikz figure in a file called tik_fig1.tex and tik_fig2.tex with \documentclass[tikz]{standalone} Is it then possible to add these to a main.tex with \documentclass{article} by ...
user avatar
0 votes
0 answers
22 views

List of extra files used [duplicate]

Is there a way to know the files used to compile a .tex file? This should contain things like... Files imported or "included". Graphics like images (cf \includegraphics for example). ...
user avatar
  • 11.4k
2 votes
2 answers
100 views

Find if a string exists within external files

I'm trying to look for a way to determine if a particular text or string is present in external .tex files. It is like accepting a text input from a user and determining if that text can be found in ...
user avatar
0 votes
0 answers
19 views

Bibliography file with spaces. How to do?

I always store my .bib file in the cloud (usually in dropbox). After having serious issues with the transition to Big Sur, I ended up in a situation in which my .bib file has a path with spaces, like: ...
user avatar
  • 557
0 votes
1 answer
60 views

Redefinition of \includegraphics for inclusion of default figure fails

In an earlier question (Automatic detection of Overleaf for fallback images) I wanted to automatically detect if I am on Overleaf or locally to choose fallback images when on Overleaf, or to re-...
user avatar
  • 1,657
1 vote
2 answers
93 views

Automatically composing documents from multiple text files which are not LaTeX formatted?

I'm looking for a way to create a songbook out of individual song files. Each song file is a self-contained block of text data consisting of: Song name Song author Some details (optional) Lyrics with ...
user avatar
0 votes
0 answers
104 views

Supplementary Material in IEEE template with cross-reference and cross-citation functionality

I am trying to build a supplementary material using IEEEtran.cls. So I have created two .tex files named main.tex and sup.tex. In main.tex the bibliography is defined as \bibliographystyle{IEEEtran} \...
user avatar
  • 101
0 votes
0 answers
34 views

LaTeX Error: File `scan1' not found

Currently, I am trying to generate a LaTeX document with the R package tinytex. The file the package tries to compile looks as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
0 votes
2 answers
223 views

"\includegraphics{}" but for .pgf files?

I'm trying to implement a command that makes it easier to put .pgf files in my document (plots from matplotlib), similar to how \includegraphics[scale=...]{...} works for image files. However, because ...
user avatar
1 vote
4 answers
418 views

Using relative path in \input and \includegraphics commands

I have the following directory structure Thesis/ main.tex Chapter1/ section1.tex subsection1.1.tex figure1.png figure2.png ...
user avatar
  • 13
2 votes
0 answers
99 views

Include bibliography of xr (xcite) citations, that only contains the relevant entries

Short description of my Question: I am using the xr or xcite package in my derivative project supplementary.tex to give references/citations the same number that they already have in an external ...
user avatar
  • 613
0 votes
0 answers
33 views

Error in writing external file [closed]

\documentclass{article} \usepackage[paperwidth=50mm,paperheight=50mm,margin=2mm,footskip=2mm%,showframe ] {geometry} \usepackage{amsmath,fp} \FPset\i{10} \begin{document} \newwrite\outfile \...
user avatar
  • 7,476
0 votes
0 answers
81 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 ...
user avatar
  • 307
1 vote
1 answer
66 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 ...
user avatar
  • 423
1 vote
0 answers
14 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 ...
user avatar
1 vote
1 answer
62 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?
user avatar
4 votes
1 answer
100 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 ...
user avatar
0 votes
1 answer
134 views

LaTeX code in legend table in Qti-Plot

I want to use LaTeX code in the legend table of a plot in the qti-plot software. Does anyone know how one could e.g. write $4\cdot 10^{-5}$?
user avatar
  • 185
2 votes
0 answers
85 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 (...
user avatar
  • 693
0 votes
1 answer
56 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:...
user avatar
  • 103
1 vote
1 answer
247 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 (...
user avatar
0 votes
2 answers
159 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 ...
user avatar
  • 1,099
1 vote
1 answer
53 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 ...
user avatar
1 vote
1 answer
133 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 ...
user avatar
0 votes
2 answers
95 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 ...
user avatar
  • 1,663
1 vote
0 answers
143 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 ...
user avatar
  • 2,479

1
2 3 4 5
13