Questions tagged [filesystem-access]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 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, ...
0
votes
1answer
34 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/...
1
vote
0answers
117 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 ...
0
votes
1answer
56 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 ...
4
votes
3answers
354 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 ...
1
vote
0answers
26 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 ...
1
vote
1answer
125 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 ...
1
vote
1answer
74 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
0answers
18 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...
1
vote
1answer
208 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 ...
0
votes
1answer
110 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 ...
3
votes
1answer
392 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 ...
5
votes
0answers
133 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 ...
3
votes
2answers
83 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 ...
4
votes
2answers
688 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 (...
2
votes
1answer
136 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/...
0
votes
0answers
44 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)....
0
votes
1answer
127 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 ...
0
votes
1answer
95 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 ...
4
votes
1answer
196 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 ...
1
vote
0answers
152 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 ...
2
votes
1answer
48 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 ...
9
votes
3answers
958 views

Read a file and store its contents in a variable

I am trying to implement single sourcing such that same document can be conditionally typeset for number of purposes. This is what I would like to do. \IfFileExists{../DecMaker.txt}{ var x = ...
3
votes
0answers
90 views

Compiling issues with minted: I can't write on file `thesis.pyg' [closed]

In my thesis I am using minted for listings and lots of short inline references. I'm running TeXLive on Windows with python 3.6. I am also using the cache, kpsewhich and outputdir options: \...
6
votes
2answers
608 views

includepdf and file with comma

How can I use filenames with commas with pdfpages? The grffile package didn't help, the \detokenize command didn't help either Also the \string command doesn't work. For ex. \includepdf{\string"C:/...
1
vote
1answer
430 views

How to delete a file in latex code?

How to delete a file in latex code with normal complie tex. I create temporary files and when i finish using them I want to delete them. It not delete by bash or editor. Thankyou!
1
vote
2answers
1k views

! I can't find file `tikzlibraryshape.code.tex'

I am using LaTeX and do not know how to fix this error ! I can't find file `tikzlibraryshape.code.tex'. <argument> ...nput tikzlibrary\pgf@temp .code.tex \catcode `\@ =\csname tikz... l.5 \...
3
votes
0answers
418 views

List all files in a folder [duplicate]

Does anybody know how I can read all the files in a specific folder and use the filenames in my LaTeX document? I want to automatically create a seating chart with the fotos in a folder.
2
votes
2answers
104 views

tlmgr installs files outside /usr/local during update --all in TL2016

texlive 2016 was installed locally in /usr/local/texlive/2016/ on a gentoo Linux system by the install-tl -gui installer. An update with tlmgr returns: /usr/local/texlive/2016/bin/x86_64-linux# ./...
1
vote
1answer
62 views

How do I copy the contents of a file with a given prefix to another file in restricted write18 enabled mode?

I know the prefix of a file - and I also know that there exists exactly 1 file with that prefix. I am running pdftex in restricted write18 enabled mode. I want to copy the contents of that file to a ...
5
votes
1answer
50 views

Are open \newwriter files closed when LaTeX exits prematurely with errors?

I am writing a package that needs to write at various times to an external file. For that I am using the \newwrite\mywriter and \immediate\openout\mywriter method. I know to use \closeout when done ...
7
votes
2answers
536 views

What are the naming rules for \newwrites in TeX? Can \newwrites be created dynamically?

I can create a \newwrite like this: \newwrite\filehandle \immediate\openout\filehandle=\jobname-semantically_useful_suffix.txt \immediate\closeout\filehandle Let's say I have languages stored in a ...
0
votes
1answer
431 views

How to obtain absolute path of Latex file, regadless if it standalone or combined

I need to find the absolute path of a latex file, as it sits on file system. Seems like a simple task, but it turns out to be harder than I thought. Here is a MWE. I have this tree /media/data/latex/...
2
votes
2answers
139 views

How can I remove trailing \par when reading a file and writing the output to the log?

I put together a macro to write the contents of an external file to the log output. Unfortunately, I always read out the trailing \par that LaTeX adds when reading files. How do I test for this and ...
1
vote
2answers
563 views

Find files in subdirectories to use with \input

Is there a way to have TeX find all files ending on .tex in subdirectories of a certain directory to be used as \input? In my document I would like to include a large number of files from a directory-...
1
vote
1answer
311 views

Read a text file by delimiter not by line break

I would like to populate a table, which I created in my LaTeX document, using iterating over cells of a text file. In order to read the text file I use this code. \newread\data \openin\data = data \...
3
votes
3answers
2k views

What's Happening With My Path After Upgrade to El Capitan?

I've tried everything I could find (within good reason) regarding how I should proceed in making my TeX files compile again and nothing works. After hunting it down in the computer, I have found that ...
3
votes
1answer
180 views

How avoid “\T1\ss ” as output from \immediate\write and get ß?

\usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[ansinew]{inputenc} ... \newwrite\outfile \immediate\openout\outfile=\jobname.txt % aßbc is a replacement for a long german text-block, ...
4
votes
3answers
1k views

LuaLaTeX : write latex “commands” to file

I made a randomly chosen quiz machine using LuaLaTeX and beamer for audience part that produce a pdf containning one frame per question, one slide per second to show the count down: it make a pdf with ...
0
votes
0answers
325 views

File keeps reverting to previous version

To prevent all of my files from having a lot of \usepackage{...}'s and such in the top of the document, I've made my own .sty file. I've placed the file in the /Program Files (x86)/Texmaker/...
31
votes
2answers
54k views

Install LaTeX on Mac OS X El Capitan (10.11) [closed]

How do I install MacTex or another LaTeX distribution? Even after installation, LaTeX commands like latex, pdftex or lualatex are not found, and /usr/texbin/ doesn't exist. Even worse, commands ...
2
votes
0answers
125 views

Slow compilation without sudo [closed]

With any *.tex file, even with almost empty template, tex, latex, pdflatex commands takes ages to compile it. strace shows excessive amount of stat calls to all the files in my home directory, which ...
0
votes
0answers
47 views

\graphicpath and FAT system [duplicate]

Well, for some reason that I will try to find out later, my TeX Live under Linux doesn't work anymore and I had to go through windows emulated system. The file I work with include a \graphicspath ...
1
vote
1answer
122 views

SASweave and Sweave.sty

I recently installed SASweave on a linux machine (RHEL 6 to be exact) for a group of developers, but they currently must copy a file called SasWeave.sty to their current project directory in order for ...
1
vote
0answers
176 views

Compiling tex file using pdflatex and cmd - strange behavior [duplicate]

I'm have a really strange problem here. I have a tex file which I compile to a pdf file using the pdflatex.exe which comes with MikTeX. The Problem is now that it seems a problem when the tex-file ...
4
votes
0answers
292 views

Can LaTeX automatically search directories and \include discovered files?

I have a master document that has a lot of entries like the following: \include{entries/20141212-some-article/entry} \include{entries/20141215-another-article/entry} \include{entries/20141225-...
0
votes
0answers
943 views

How to deal with/escape whitespace in file path for bibtex?

I am passing a file path to bibtex via the command \bibliography{/Users/MyName/Dropbox/Bibliography Both/bibo} However, with that whitespace in place (that one's silly just for demo purposes), ...
7
votes
2answers
141 views

How to 'robustly' use file contents in command arguments?

I have the following code which sets up a XeLaTeX document (to be run with --enable-write18) and defines two commands, \showme and \prRaise: \documentclass[a4paper,oneside]{memoir} \usepackage{...
0
votes
1answer
35 views

Copying one file to another, while “expanding” some variables.

The use case is that I have a template LaTeX file, which I would like to be copied several times while replacing variables in it to some other variables. Here is an example of how such a template ...
7
votes
5answers
921 views

Read number from file

I have a file called _runs.ini. Depending on its content, the document is compiled differently. I tried to read the content and executed a \ifthenelse-command without success. Here's my MWE: \...