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

9
votes
1answer
223 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
30 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
73 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 ...
3
votes
2answers
114 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
69 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
32 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
142 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: ...
3
votes
0answers
329 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
208 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
327 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 ...
4
votes
1answer
253 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
463 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 ...