Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [currfile]

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

0
votes
1answer
38 views

Include filename in a nested document

I have a large project split in multiple files. I'd like to get each subfile name in the pdf to monitor my document. From different posts on this forum i understand Currfile package could help by ...
1
vote
2answers
66 views

remove “./” of “\currfileabspath” when using lualatex

I have a small problem with the package currfile and the command \currfileabspath. When compiling the file using (pdf|xe)latex I get the expected result, but if I use lualatex it adds ./ to the ...
4
votes
1answer
140 views

Avoid quotation marks when using \jobname or \currfilename

When typesetting a file (using TeXworks on a Windows machine) which includes white spaces, then the jobname will contain the file name enclosed with double quotes. pdflatex Local\ Guide.tex will set ...
0
votes
0answers
68 views

Using the \getpwd command to recover the current directory where this command was used

Does \getpwd command work only with "pdflatex --recorder file.tex" compiling process? I am using the DVI -> PS -> PDF chain to compile in TeXstudio 2.12.6 and the \getpwd is returning empty text. ...
0
votes
0answers
50 views

Absolute dir of an \input'ed file

I'm trying to make a header for all my slides that will include same image as logo. And I want that header to be correctly inputed from any tex file, i.e. use absolute path to included image. Here is ...
2
votes
1answer
85 views

counter value doubled inside \input if \currfilebase present

Using the package currfile: \setcounter{foo}{\inputlineno}% \def\barfile{.aux/\currfilebase\thefoo.bar}% \def\texfile{.aux/\currfilebase\thefoo.tex}% % ... \input{\texfile} then the counter value is ...
13
votes
1answer
164 views

What is the (relevant!) difference between \file_input:n and \input? Or has something else changed?

A while ago I answered a question with code which attempts to set the name of an externalised image, produced with TikZ's external library, to something based on the name of the input file. That ...
1
vote
0answers
145 views

Refer to the current packages file path

I'm writing my Lieder-Package right now, which provides commands to build sty-files which are basically data bases for songs. Inside these data base files, I use \includegraphics and a relative path ...
0
votes
1answer
274 views

Remove underscores from filename

I am using currfile package to get the file name. My file name has the form "code blah blah blah.tex" what is being displayed is "code_blah_blah_blah.tex" How can I remove the underscores? Here ...
2
votes
0answers
79 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
85 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
351 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 ...
3
votes
1answer
201 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&...
7
votes
0answers
785 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 ...
4
votes
1answer
893 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
3k 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
840 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} \...
5
votes
1answer
343 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
632 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 is ...
0
votes
0answers
163 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 ...
2
votes
0answers
67 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. ...
3
votes
1answer
500 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{...
8
votes
1answer
956 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
263 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
507 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. ...
5
votes
1answer
330 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
744 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 ...