Questions tagged [filesystem-access]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
81 views

Include a file path (.bib) containing spaces & special characters

I have this path "~/Library/Mobile Documents/com~apple~CloudDocs/Sync/160329_3DPP.bib". I cannot change that since the .bib file is synced through iCloud and updated frequently. I read that ...
massisenergy's user avatar
0 votes
0 answers
10 views

Generate a citable list of files in appendix

In my overleaf project, I created an \appendix folder to store a lot of plots that should be in the appendix: Is there a way to automatically create a citable list of the file names in that folder? ...
Tianjian Qin's user avatar
1 vote
0 answers
32 views

Creating a clickable link to a local file only in source code

The following situation: I use a program for my data analysis. The program creates a project file. From this file I export the graphics I'm including as figures in the TeX code. Is there a way to ...
dropbear's user avatar
0 votes
0 answers
79 views

How to input folders into latex?

I'm trying to compile my PhD thesis which contains three chapters. The relevant preamble I'm using is \documentclass[12pt]{report} \usepackage{titling} \usepackage{graphicx} \graphicspath{ {figures/} }...
Jan3's user avatar
  • 67
3 votes
0 answers
39 views

Clean project from unnecessary files not needed for compilation [duplicate]

I was wondering whether there's an automated way to detect unnecessary files (not auxiliary files) that are not needed for compilation of a LaTeX document, perhaps during or after compilation? For ...
aaragon's user avatar
  • 3,049
1 vote
1 answer
149 views

\ShellEscape fails in certain cases with lualatex

This question stems from my question here about minted and lualatex, with similar issues reported by another user here. I think I've isolated the issue to the following. minted relies on \ShellEscape ...
mbert's user avatar
  • 2,615
0 votes
2 answers
46 views

Nested Include Loop Acting Strangely

I'm trying to implement filesystem based file includes for a paper I'm writing and have previously asked a question on this topic. The accepted answer seems to work in the case that I only have a ...
ScottishTapWater's user avatar
3 votes
3 answers
261 views

Struggling to Implement FileSystem Based Includes

I'm trying to follow along with this answer to automagically include files based on the filesystem hierarchy. My file structure looks like: article.tex sections/ |-- 00-introductions.tex |-- 10-data....
ScottishTapWater's user avatar
1 vote
1 answer
111 views

Put file contents as PDF comment (respecting UTF-8)

I want to have file contents rendered as comment in a PDF file. I decided for pdfcomment, which works. pdfcomment requires newlines being typeset as \textCR\textLF. Which leas me to the following ...
koppor's user avatar
  • 3,122
1 vote
0 answers
85 views

Getting input filename in lualatex

As in title; I know status.filename gets the name of the exact file being currently compiled, but I want to know the one given as argument to lualatex. \jobname is also unhelpful because it may be ...
Atai Ambus's user avatar
1 vote
0 answers
404 views

TeXLive 2022 tries to use /root/.texlive2022 directory for an ordinary user

I installed TeXLive 2022 on Linux Slackware 15.0 PC. The installation was done as root. Then I added a script texlive.sh to /etc/profile dir: #!/bin/bash export PATH=$PATH:/usr/local/texlive/2022/bin/...
user4035's user avatar
  • 4,955
0 votes
0 answers
101 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 ...
Lasse Karagiannis's user avatar
4 votes
0 answers
84 views

Can you detect from within TeX how the name of a file accessed by TeX is encoded?

This question is inspired by the question Input dynamically generated file name which basically is about truncating a given filename/the expansion of \jobname by two characters. In utf-8 the byte-...
Ulrich Diez's user avatar
  • 26.9k
0 votes
1 answer
88 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 #, ...
tobiasBora's user avatar
  • 7,427
2 votes
1 answer
440 views

Execute System Command In LuaTeX

(Edit: How to do file system operations and binary execution with LuaTeX in an OS-independent manner? I had written a set of macros for pdfTeX to do this using the \write18 command. These macros were ...
Gerolf's user avatar
  • 69
0 votes
0 answers
53 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 ...
beethovengg14's user avatar
1 vote
1 answer
120 views

how to display part of the path

I use the currfile package to help keep track of the source of my latex files. I use Linux, and the full path of the file looks like this: /home/username/(various directories)/project-one/proposal/...
underflow's user avatar
  • 447
2 votes
1 answer
137 views

\include pattern instead of filename

I'm fairly new to LaTeX. I am using Overleaf for my thesis, and, in order for Overleaf to display my chapters in the right order, I've prepended a number next to each of them: 01-intro.tex 02-...
xdhmoore's user avatar
  • 153
-1 votes
1 answer
81 views

TeXstudio unable to notice different files that have the same name

I have duplicated a project contains "./TeX_files/chapter01..05". Now I am editing the new one. However, when I try to open "./TeX_files/chapterX" from the old one, TeXstduio opens ...
Faruk UNAL's user avatar
1 vote
1 answer
117 views

File extension *.pag when compiling document with pdflatex and bibtex

I'm compiling my document with pdflatex and bibtex, using the following command: pdflatex main && bibtex main && pdflatex main && pdflatex main This generated a couple of ...
Quang Thinh Ha's user avatar
2 votes
3 answers
185 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 ...
cis's user avatar
  • 7,499
2 votes
0 answers
126 views

Why my \AtBeginDocument and \AtEndDocument don't work in .sty file...?

I'm looking to set up a class that allows me to type a document for both teacher (complete) and students (with holes instead of text) that is differentiated using an \ifprof boolean. My macros and my ...
Samsagace's user avatar
1 vote
0 answers
42 views

Problem with latex files

I have a problem with one of my latex files. I was writing when my laptop stopped working. I don't know why, but I had to force it to restart and when I turned it on I had problem with my latex file: ...
Ground-110's user avatar
1 vote
0 answers
97 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} ...
Cowboy_Patrick's user avatar
0 votes
1 answer
49 views

Conditionally overriding the includegraphics command to print file size in the corresponding caption

I want to analyze the file size of each graphics file used in my report. Therefore, I am trying to implement a new command by conditionally overriding the includegraphics command to print file size in ...
ravi's user avatar
  • 1,618
0 votes
1 answer
348 views

Permission problems in accessing my local folder

I am having problems with file permissions in Windows 10. I am using TeX Live 2020. PdfLaTeX/LuaLaTeX is unable to access files in my local texmf tree. I am getting the following error: Process ...
S. Venkataraman's user avatar
2 votes
1 answer
115 views

LuaLaTeX: How to include a generated file size in document?

How to include a generated file size in document with LuaLaTeX? Similar question was answered, but for pdflatex case here. The solution does not work with LuaLaTeX.
sergiokapone's user avatar
  • 5,368
2 votes
1 answer
94 views

Which files can be found by \(pdf)filesize?

Compiling the following code with pdfTeX: \documentclass{article} \begin{document} 1 \pdffilesize{XITS-Regular.otf} \par 2 \pdffilesize{/usr/local/texlive/2020/texmf-dist/fonts/opentype/public/xits/...
stone-zeng's user avatar
  • 2,645
0 votes
1 answer
186 views

Accidentally restricted TexShop from a folder

I made an extremely stupid error. I installed TexShop on a new computer and the first time I went to compile a document, it asked me if it was ok for TexShop to access the Documents folder. I, ...
Ash115's user avatar
  • 1
0 votes
1 answer
724 views

XeLaTeX Can't Write to File [duplicate]

Occasionally, when running xelatex (using TeX Live 2018 on Linux Mint 19.2), I encounter the following error message: (/usr/local/texlive/2018/texmf-dist/tex/latex/microtype/mt-cmr.cfg)) (/usr/local/...
John Frazer's user avatar
1 vote
0 answers
295 views

Filenames and ps2pdf

System: Windows 10, MikTeX 2.9, WinEdt 10.2 Workflow: tex -> ps -> pdf Problem: I created a file named "TeoriaTehtäviä.tex" containing two characters outside the 7 bit ASCII range. Here's what ...
Jyrki Lahtonen's user avatar
1 vote
1 answer
194 views

Can input command in pdflatex read files with extra long file names on Windows?

Is LaTeX (pdflatex) able to read files with extra long file names on Windows? (up to 32767 unicode characters) https://ss64.com/nt/syntax-filenames.html The NTFS file system supports large paths ...
Awaaaaarghhh's user avatar
4 votes
3 answers
731 views

Read file contents to variable and iterate over each character in file (hexdump)

I need to read file content as string (binary file) to variable, then iterate over each character in that string, convert each character to its hexadecimal representation, use comma (or any other ...
Awaaaaarghhh's user avatar
1 vote
0 answers
86 views

filename contains Chinese characters unable to be compiled by XeLaTeX [closed]

windows 10 TeXstudio 2.12.16 texlive2019 default installation it said: Could not start Build & View:XeLaTeX: xelatex.exe -synctex=1 -interaction=nonstopmode "hashujixian-副本".tex but it ...
nevermind_15's user avatar
1 vote
1 answer
1k views

opening a local .tex file in overleaf

I'd like to open a .tex file on my local system in overleaf. The api allows for this over by passing the uri https://www.overleaf.com/docs?snip_uri=http://pathtoyourfile.tex I would like to do ...
noPounch's user avatar
2 votes
2 answers
331 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 ...
SollteSoSein's user avatar
0 votes
0 answers
26 views

Where is the spelling exception list that TeXShop uses?

Does someone know where this file is on a Mac? I would like to access this file in order to make a copy of it, just in case TeXShop looses it...
Bernard Marcheterre's user avatar
1 vote
1 answer
635 views

LuaLaTeX: How to correctly resolve absolute path with \directlua on Windows

I need to resolve absolute path to fonts: \setmainjfont[ Path = \currfileabsdir, UprightFont = fonts/HGS_Mincho/HGRMB.ttc, BoldFont = fonts/HGS_Mincho/HGRME.ttc ]{HGS ...
Gurebu Bokofu's user avatar
0 votes
1 answer
218 views

make tex glossaries files accessible for all documents across system

I created some rather big glossaries files with symbols, acronyms, ... Glossary_Acronyms.tex Glossary_Glossary.tex Glossary_Symbols.tex for a programming project with multiple tex documents as their ...
raedma's user avatar
  • 1,754
3 votes
1 answer
512 views

Different file opened by \openin (was: between 2017 and 2018)

Short version: It seems that some trivial behavior of file opening (\openin) changed between TeX Live 2017 and 2018 differs between environment. Only Overleaf one behaves differently. I did not see ...
Hironobu YAMASHITA's user avatar
6 votes
1 answer
783 views

Include standalone files in subdirectories which read other files

I want to use package standalone together with PGFPlots and TikZ to generate figures. In particular, I want figures to be generated only if missing, using buildmissing package option for standalone ...
Claudio's user avatar
  • 1,997
3 votes
2 answers
456 views

File name not handled correctly in /foreach loop

For some reason when I try to specify a file name for \includegraphics in a loop, either using \foreach or using \clist, I get a file not found error. The error displays a valid path for the file, and ...
Eric's user avatar
  • 33
4 votes
2 answers
2k views

LaTeX Fonts with fontspec-package

Today i figured out how to use system-installed-fonts with the fontspec-package and LuaLaTeX. But i can't figure out how to use fonts, that are installed in my texmf-tree! The fontspec-Manual says (...
Tim Hilt's user avatar
  • 828
2 votes
1 answer
483 views

Write to a file outside of the current folder

Is it possible with TeX to write somewhere else than in the current folder? The following does not work: \documentclass{article} \begin{document} \newwrite\tempfile \openout\tempfile=/Users/colas/...
Colas's user avatar
  • 6,658
0 votes
0 answers
49 views

Save data from all my .tex files to a global file

I want to keep track of some info of my .tex files. More precisely, I give an id (an integer) to my math exercises and would like to keep somewhere the maximal id already given (and maybe other info)....
Colas's user avatar
  • 6,658
0 votes
1 answer
286 views

Shared MikTex install on windows server 2012 to generate PDF from IIS

I'm trying to install a shared MikTex on a Windows server 2012, so my web application (Perl CGI / IIS 8) can generate PDF files on the fly through pdflatex, and send them to the user. I managed to ...
Spendius's user avatar
0 votes
1 answer
370 views

Export code samples AND display verbatim

I'd like to write a LaTeX document with code samples in a verbatim environment. I'd also like to export those code samples to named files so that they can be built and run. This allows me to easily ...
user207442's user avatar
4 votes
1 answer
357 views

morewrites: Failure to Compile, "Bad Number"

I have a project for which I have needed to resort to the morewrites package due to getting a No room for new \write. Up until a few months ago (which was when I last worked on it), this worked quite ...
alpenwasser's user avatar
  • 2,445
1 vote
0 answers
282 views

Where does TeXworks hide temporary files?

I am running TeXWorks under Windows 10. If I've made some changes to a .tex file, but have not yet saved those changes, then there surely must be a temporary file someplace where TeXworks keeps the ...
WillO's user avatar
  • 279
2 votes
1 answer
65 views

Proper way of passing parametric filenames to \openin using xstring

I would like to open a file programmatically within latex depending on its filename. For example, if the filenames begin with '0' I know the path is in some folder, if it starts with '1' in another ...
dabbede's user avatar
  • 23