Questions tagged [filesystem-access]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
18 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
41 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
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
0answers
16 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
103 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
102 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
289 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 ...
3
votes
0answers
70 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
64 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
469 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
83 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
40 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
104 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
74 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
154 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
122 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
46 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 ...
7
votes
3answers
811 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
79 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: \...
5
votes
2answers
522 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
359 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
201 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
92 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
60 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
49 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
468 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
369 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
118 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
427 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-...
0
votes
1answer
275 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
167 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
913 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
294 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
117 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
116 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
173 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
283 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
861 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), ...
6
votes
2answers
123 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
34 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 ...
6
votes
5answers
784 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: \...
16
votes
1answer
694 views

Is it possible to compile hidden files?

(This question may make sense only in Linux.) I have the following simple file called .main.tex. Note that it is a "hidden" file because of its name. \documentclass[]{article} \begin{document} ...
1
vote
0answers
298 views

Referencing BibTeX file on network drive (UNC)

Hello fellow typesetters. I've messed with bibliographies before, creating a bibliography file for every folder where there were .tex files that needed them. Recently though, I ventured to create a ...
1
vote
0answers
442 views

Warning about writing .cls files in texpad [closed]

I'm using texpad to typeset my documents. Everytime texpad compiles a document, a popup warning about denied writing permissions on the .cls file appears. Since I'm new to LaTeX, I do not know how ...
2
votes
0answers
235 views

Command to flush log file

For the tikzDevice, I want to communicate with a LaTeX process by sending input (generated LaTeX code) to its stdin and parsing output that is written using \immediate\write. In some cases I need also ...
3
votes
2answers
352 views

copy file using \write18 that works on both Windows and Unix

I would like to make an exact copy of a file during a TeX run. It is important that the copy be exact, since I am also comparing files and taking action depending on whether they have exactly the same ...