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

1
vote
1answer
45 views

Color table with data from csv file with colors from csv file

I am trying to create a table (which is from a csv file) which cells are colored (from another csv file (this way I can do preprocessing externally)). I have looked briefly at tools such as datatool, ...
1
vote
1answer
35 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 ...
2
votes
1answer
36 views

How to make `kpse.find_file` aware of `\input@path` modifications?

I'm working on a \graphicspath like feature for GregorioTeX and having some problems making \input@path work with our Lua code. Basically, while \input@path works for \input statements, before we ...
1
vote
1answer
40 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 ...
0
votes
2answers
26 views

How to include an image whose path is set by a user macro?

Assume the following scenario. Some user is required to complete a macro ImagePath{} in order to automatically include an image at some predefined place of the document. No hypothesis is done about ...
0
votes
0answers
15 views

File Path inside Bibliography

I'm trying to include the file location of my bibliography entry but I can't get it to work: @report{Calc, author = {A BV}, title = {{Report Calculations}}, year = {2019}, location = {\\NAS.local\...
0
votes
0answers
42 views

File `expl3.sty' not found in TeXStudio

While I am trying to compile a LaTeX file in TeXStudio the following message appeared: File `expl3.sty' not found. \RequirePackage{expl3}[2018/10/31] However the same file compiled well in ...
1
vote
1answer
49 views

How to write to a text file sequentially in the same text line?

I would like to write a text file from a LaTeX document with the following format: A,C,D,B where A, C, D and B are to be written into the text file from different places of the LaTeX document. Thus, ...
0
votes
0answers
25 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{} ...
2
votes
3answers
70 views

Plot data from external file with floating numbers

I found yesterday this beautiful simple code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{pgfplots} \pagestyle{empty} \begin{document} %\pgfplotstabletypeset{data.dat} \vspace{...
0
votes
0answers
129 views

Error: Files not found

Dear LateX community, I've been working with LateX quite some time now and have now a document that originates from a template from this website. https://www.rsc.org/journals-books-databases/journal-...
5
votes
2answers
72 views

filecontents: select rows of group to display

I have a file that contains 1,000 rows of product data. I want to select only a specific product type to print in my document. Minimal code in main.tex: \documentclass{article} \usepackage{...
5
votes
4answers
337 views

Global variable Array

I have control_array.tex and 10 templateA.tex, templateB.tex, ... TeX files. In control_array.tex: ArrayName = [Name1,Name2,...Name10] ArrayColor = [Color1,Color2,...Color10] With Array in ...
13
votes
3answers
489 views

Populate information from a csv file into a LaTeX document (specifically into the fields/arguments of commands therein)

I have some personal information stored in a plain CSV file personal_info.csv in the following format: personal_info.csv 83 Fancy Avenue,Nowheresville,Gotham City 24061 123 456 7890 someone@xyz.com ...
1
vote
1answer
29 views

Compilation doesn't end when outsourcing tikz standalone file

Here is the code for my Tikz document: \documentclass[tikz,14pt,border=10pt]{standalone} \usepackage{textcomp} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \begin{document} % ...
0
votes
0answers
71 views

Can I store .bib files in an external folder?

I would like to, having the following file structure books/ --callen.bib --munster.bib source/ --thermodynamics.tex where callen.bib and munster.bib store the bibtex information for the respective ...
0
votes
0answers
43 views

How do I cite references in an external bibtex file without printing my references?

Submitting NSF proposals requires you to submit your references in one PDF, and the rest of everything you write in another PDF. So my challenge is to \cite{something} from my external references.tex ...
0
votes
0answers
83 views

Reading data from hdf5 file to plot a graph

Normally when one wishes to to plot some data from a file (.txt, .csv or the like), one would do something like \documentclass[border=5mm]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{...
0
votes
0answers
36 views

LaTeX include filepath/name with non-ascii characters [duplicate]

Trying to compile \documentclass{article} \begin{document} \include{übergröße} \end{document} with pdflatex and the file übergröße.tex in the same directory leads to the error: This is pdfTeX, ...
2
votes
1answer
76 views

How to fix the error when compiled with the same method

All things I have: Install GhostScript 32 bit (My system is Window 7-32bit) . Write a batch file by Text Document and followed by .bat . Its content ( of AS's answer ): echo off rem %1 TeX input ...
2
votes
2answers
185 views

How to remove a temporary PDF file generated by auto-pst-pdf when I use standalone class?

Problem of me as the following: My code is compiled with pdflatex.exe --shell-escape -interaction=nonstopmode %.tex Its image (use TeXstudio) After compiling, there are two files : filename.pdf and ...
11
votes
2answers
1k views

Is it possible to print the file size of a file?

Is it possible to print the size of a given file in latex? For instance, suppose I have a file ./foo.jpg whose size is 381.3 KiB. I want a command \printfilesize so that \printfilesize{./foo.jpg} ...
4
votes
1answer
79 views

Change path to tcbinputlisting to just reflect file name

In the code given below, I have many Matlab files. I put the files into a folder called "Project/Matlab". The name that appears in the first line is now "Project/Matlab/sample.m". [Note: I have ...
5
votes
2answers
378 views

\immediate\write with plain text

I have read the question in TeX.SE, but I don't want user to add ^^J manually. That is, I want writer to output content originally. \documentclass{article} \begin{document} \newwrite\file \immediate\...
2
votes
1answer
102 views

\footnotesize in output stream generates unexpected “Undefined control sequence”

I am writing styled text to an external file (using the newfile package). I can successfully style the text with many attributes, e.g., \large\mdseries\itshape. But, very puzzling to me, when I style ...
0
votes
0answers
39 views

Possible to get included file path?

I know that I can check if a file exists with \IfFileExists{}{}{}. Is it also possible to get the absolute path to that found file? The reason I am asking is that I have a custom documentclass that ...
1
vote
1answer
47 views

Print content only on even pages with notes on odd

I'm creating a series of student worksheets and want to simultaneously create an instructor's guide. Using the multiaudience package, creating content that only instructors see is straightforward. ...
1
vote
1answer
63 views

Is this possible to fix this requirement (explain briefly in this question)?

My code is as follows: \documentclass{book} \usepackage{lipsum} \begin{document} blah blah blah blah blah blah \lipsum[1-2] \begin{figure} \includegraphics{...eps} \caption{caption text} \end{...
1
vote
0answers
21 views

How to cross reference between tex files [duplicate]

I have looked at all the previously posted answers. None have answered my questions. This is my example: I have a main document called paper.tex: \documentclass[11pt,twoside,a4paper]{article} \...
1
vote
1answer
71 views

Reuse external file with user commands in both main file and standalone files

This is a problem I encounter frequently, and for which I don't have a good (i.e., scalable and automatic) solution. Suppose I have a main document MWE.tex, a macro file with custom commands macros....
0
votes
1answer
17 views

how to insert the contents of an `\input`ed file into the source? [duplicate]

Is there a utility that will take a LaTeX source file, find all the \input{some_external_file} lines, and insert the contents of those external files into the master document without compiling to PDF? ...
0
votes
0answers
143 views

What temp files generated by latex can I delete without risk? [duplicate]

My projectfolder consist of several 'real' files and is full of files I don't know. There are some cleaning procedures which deletes specified endings after a run but I am not sure which filetypes I ...
3
votes
1answer
239 views

Read YAML field from LaTeX

Let me explain my problem. I have a simple YAML file automatically generated with a series of experiments that looks like as follows error-metric1: method1: value method2: value method3: ...
0
votes
2answers
67 views

using \newcommand with \immediate\write inside beamer

I'm trying to write some strings to an external file using the \immediate\write as in the MWE below \documentclass[a4paper,9pt]{beamer} \begin{document} \begin{frame}[plain] %< comment out for ...
3
votes
1answer
84 views

Problem to plot data with dates using an external file

Using logs to make statistics, I have a large number of data which contains two columns, like this (dd-mm-aaaa hh-mm float) 27-04-2018 04:43 7.78269552 27-04-2018 04:44 7.901522832 27-04-2018 ...
2
votes
1answer
263 views

Setting axis limits (xmin, xmax, ymin, ymax) from external .dat file

I am importing the data for my plot from a .dat file produced in matlab. I would also like to set axis limits from a .dat file. Is there a way to set xmin, xmax, ymin and ymax from a table in a .dat ...
1
vote
1answer
131 views

Draw signals in TikZ

I am trying to typeset some examples of given signals using tikz/pgf. My initial thought was to plot them from ascii files using pgfplots. My code is the following \documentclass[border=10pt]{...
4
votes
1answer
292 views

Auxiliary files - what does the file-extension '.fof' mean?

Pertaining exactly to the topic of this question which asks about the various auxiliary files produced by tex and friends, I'd like to ask specifically about the .fof file extension. If the main file ...
1
vote
3answers
505 views

Loading glossaries from separate file using TexStudio

I am trying to load many definitions from a separate file into my main file. I tried: \documentclass[a4paper,11pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
75 views

How to read a counter register from a file in Plain TeX?

I am a TeX user, and I would like to read a number from an auxiliary file in order to achieve things like: printing at the footing "page number X out of Total". I was trying to use the primitives ...
7
votes
1answer
157 views

How to import / print a bibliography created from a separate / external document?

I have a document with a bibliography that I create using biblatex with the biber backend. I.e., somewhere in this document, there is a line \printbibliography which prints the bibliography (say ...
1
vote
1answer
80 views

Export datas which we derived in Maple to Latex

I have a numerical solution for an ODE. (You can find the attached Maple code: numerical_solution.mw) What are the simple methods in order to create a table in Latex as follows by using these datas ...
1
vote
0answers
37 views

Is there a convenient way to lower the resolution of pictures without additional software? [duplicate]

Background is that in my lab it is common and convenient to document stuff by simply making a picture of it. Once a project is finished, I will merge these pictures into one file which I will give to ...
2
votes
1answer
91 views

why is pstool-psfrag reducing pdf file size?

I am using pstool & psfrag (with pdflatex) to replace text in eps files generated by Adobe Illustator. I noticed that the pdf files produced by pstool (using the \psfragfig command) are way ...
1
vote
1answer
158 views

Can a GLE code be empaded in Latex document?

I am searching for a good tool for graphs and charts and found Graphics Layout Engine. Am I able to include a code written in GLE within a latex document? The aim is not including it as a file in the ...
2
votes
1answer
109 views

Folders in a latex project/thesis

How do you make folders in a latex project ? I created a folder inside my main folder but my structure window doesn't show it. I am using OSX and Texmaker latest version? This is the folder that I ...
0
votes
0answers
55 views

verbatiminput on a file without .txt extention

I'm wanting to include the git hash automatically into a document using verbatiminput. However I seem to be unable to use verbatiminput on a file name does that not end with an extention. \...
14
votes
1answer
339 views

Embed non-PDF files (e.g., BibTex) into PDF with hyperlink in the PDF

This question led to a new package: intopdf Aim I want to achieve following: Embed paper.bib into PDF paper.bib should be opened with the OS tool associated with mimetype application/x-bibtex ...
1
vote
1answer
194 views

Execute external bash file

This is a follow up to Get write18 to execute after file parsing With the code \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx,grffile} \newcommand{\filename}...
1
vote
1answer
62 views

Get write18 to execute after file parsing

Follow up to Get write18 to accept / expand command I want to crop a pdf and print it. My \the\pdfshellescape is 1, so my shell-escape is working. My MWE is \documentclass[a4paper,10pt]{article} \...