The currfile package provides macros for holding the file name information (dir, base name, extension, full name and full path) for files read by LaTeX's \input and \include macros

learn more… | top users | synonyms

3
votes
0answers
23 views

Only name appears when using currfile

My problem was partly addressed in this question. Since I cannot comment yet, I will continue Ulrike Fischer's answer with a new question. The expample worked on my system as well with pdflatex, but ...
3
votes
1answer
37 views

File Name not exactly shown

MWE \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{currfile} \begin{document} %File Name: ÖüğşiÇ.tex \jobname \...
2
votes
2answers
85 views

get part of the filename in the file content

I would like to print only the characters between Ch and - in the filename, so I use the packages currfile and xstring. As example : \StrBetween[1,1]{\currfilename}{Ch}{-} should gives 2 or 14 if ...
4
votes
1answer
65 views

File stack underflow problem

I was wondering if this is a bug in the currfile package. I am getting warning: File stack underflow! while running the given code. Also, I run into warnings: Font shape 'OT1/cmss/m/n' in size <4&...
3
votes
0answers
157 views

Tikz externalize not working when jobname is specified for main document

I'm not sure if it's a well known fact or not, but using the tikz externalization library does not work very well if a LaTeX document is compiled with a jobname that is different from the filename of ...
3
votes
1answer
248 views

Outsourcing Tikz and relative paths

Summary: How do I get includegraphics to be relative to the current file, when using tikzscale? Details Similar to pmav I like to have a .tikz file which contains only the tikzpicture environment....
11
votes
1answer
804 views

Is it possible to use Lua to obtain the current working directory?

Package currfile with the abspath option can obtain the absolute path of the current file. However, it relies on running pdflatex with the -recorder flag. Would it be possible to achieve the same ...
1
vote
1answer
139 views

how to display directory name

I'm trying to use the \currfiledir command on my homework template, so I can change even less of my header every time I start a new document, see mwe: \documentclass[letterpaper,12pt]{article} \...
4
votes
1answer
139 views

Using currfile and Datetime to format a diary page

To create something like a diary, I am using a number of input files within 2 directories a MONTH directory named 01-12 and a day directory within each month...01-31 so 12/ (December) which has a ...
4
votes
2answers
182 views

The currfile Package

I am using a number of input files within 2 directories: dirA/ which has a file dirA/A.tex which inputs dirA/dirB/B.text I'm using currfile to print out the currfiledir which gives me dirA/dirB ...
0
votes
0answers
93 views

Using macros in Memoir chapter for a Diary

I'm trying to create an automatic chapter head which displays the day of the week and date (kind of like a diary entry) I have a directory called "august" within which is a file called 01.tex. The ...
3
votes
0answers
51 views

Getting right currfile with own class loaded from subdirectory

When writing my own class in a subdirectory, e.g. myclass/aclass.cls, and I use the currfile package to load that class's current file path, it always returns the information of my main file only. ...
4
votes
1answer
259 views

Try to use input and currfile together

I have a folder tree a little like this, "document.tex" is the root file, section1 is a folder document.tex |--[section1] | |--index.tex My document.tex code is like that: \documentclass{...
7
votes
1answer
593 views

What does “File stack underflow!” mean?

I am getting two times the error: Package currfile Warning: File stack underflow! on input line xxx. I am not explicitly loading currfile, but standalone seems to do. I am getting this warning ...
5
votes
2answers
223 views

Can't get real currfile if used in precompiled .fmt file

Background: I am not sure if this is a bug with the currfile package, or if I not properly using the package, or perhaps an issue with using .fmt files. BTW, this is my first attempt at using .fmt ...
2
votes
0answers
436 views

Incompatibility between currfile and enumitem? [closed]

The MWE below yields: Missing number, treated as zero. <to be read again> enit@cv@currfiledepth \item testing. for the itemize list....
4
votes
1answer
290 views

Corrupted TeXLive2012 installation? (Option clash for currfile)

Background: As per Manually copy older TeXLive2011 from one Mac to a new Mac, I attempted to get TeXLive2010 and TeXLive2011 (with the latest libraries) on a newer mac. The older releases are not ...
10
votes
1answer
548 views

In a multiple file LaTeX document, is there a way to tag each page with the file that generated it?

I've got a LaTeX document that's build from many smaller files. When I'm editing text or formulas I usually look for some characteristic text and do something like: find -name "*.tex" > t grep -n ...