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
Questions tagged [currfile]
45 questions
3
votes
2 answers
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 there anyway I can make it just give me dirB?
theobear
- 837
- 6
- 17
2
votes
1 answer
Currfile and acutes
I'm currently working on a document with LaTeX and I want to make all sectioning in a separate document.
On main.tex I have the following
\documentclass[fontsize=12pt,…
TheRepSter
- 23
- 3
2
votes
1 answer
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…
dejongbrent
- 422
2
votes
0 answers
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. Could someone please tell me what I am doing wrong…
1
vote
0 answers
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.
Follow the Minimum Work Exemple (MWE) that I want…
Adriano
- 315
0
votes
2 answers
Change path separator in currfile
How do I change the path separator from \ to / ?
I use MikteX on Windows.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[abspath]{currfile}
\begin{document}
Absolute directory:…
JeT
- 3,020
0
votes
0 answers
currfile does not show file path
I tried to use the currfile package to print the name + path of the source file. Here is a minimal example:
\documentclass{amsart}
\usepackage{currfile}
\begin{document}
Filename: \currfilename
Path: \currfiledir
\end{document}
The latex output…
underflow
- 559