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
1
vote
0answers
88 views

Using external (delimited) data files for Asymptote contour plots

I need to plot two-dimensional data, which I would like to do in a contour plot. From my personal experience in trying to get nice contour plots using pgf/tikz and what I read in Fill a contour-plot, ...
0
votes
1answer
39 views

Using listinputlisting to include a specific (git) commit

I am discussing code which is in version control and would like to specify which version of the code to include. I did some research and found packages like gitlatex and gitinfo, but though useful, ...
3
votes
1answer
92 views

What does the BBL file-extension stand for in LaTeX?

The file format extension of .bib stands for the "bibliography"; a file that the BibTeX engine gets as an input. The file-format-extension of .bst has been derived from the expression of "...
1
vote
2answers
32 views

Print number of lines of an external file

I would like to print in a .tex file the number of lines of some other file (not the content, just how many lines). For example in the following code I would like to have 3 print in the text \...
0
votes
0answers
20 views

Override assumed extension in compiling with pdflatex

I compile all my latex documents using pdflatex. Now, I have a bunch of figures from some simulations with filenames of the style of fig1_N32s5.0t0.5.pdf. If I do \includegraphics[width=0.3\linewidth]...
1
vote
0answers
20 views

datatool: How to read out values, if *.table-format is given

I have an external file, named jobname.word.table (*.table-format!), with its content # aaa # bbb # x y type 3.1415927e+000 5.0000000e+000 i 2.0000000e+000 3.0000000e+000 i (BTW: I can not change ...
1
vote
1answer
76 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
37 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
37 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
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 ...
0
votes
2answers
34 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
101 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
52 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
30 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
75 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
218 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
77 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
343 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
515 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
31 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
86 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
51 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
91 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
78 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
188 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
82 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
467 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
122 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
42 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
48 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
64 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
72 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
21 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
175 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
263 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
69 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
89 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
277 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
145 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
298 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
598 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
81 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
174 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
85 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
97 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 ...