Skip to main content

Questions tagged [file-lookup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Save specific parent folder name to variable?

I'm trying to obtain the parent folder name since the parent folder name changes but the subfolder's structure is the same. For example, I have scripts in the directories: C:\Users\User1\Desktop\<...
ChenMaster's user avatar
3 votes
3 answers
269 views

Struggling to Implement FileSystem Based Includes

I'm trying to follow along with this answer to automagically include files based on the filesystem hierarchy. My file structure looks like: article.tex sections/ |-- 00-introductions.tex |-- 10-data....
ScottishTapWater's user avatar
0 votes
1 answer
84 views

How to find absolute path of the parent working directory without needing additional command line parameters

I have an answer for this, but it's been bugging me that all solutions I could previously find required either --shell-escape or (using currfile) -recorder, making it pretty much impossible to write a ...
Dennis Müller's user avatar
4 votes
1 answer
1k views

lcdf typetools- kpathsea library not found

I am not sure this is the right place, but considering that involves a tex-based library, I hope so. I am on ubuntu 14.04, texlive 2014 manually installed (on /media/pierpaolo/Seagate/texlive_linux/...
Pierpaolo's user avatar
  • 796
7 votes
2 answers
504 views

Search for files first in the texmf trees

If I want to check first if a file is in the current dir and then look for it in the texmf tree I can do it like this: \documentclass{article} \begin{document} \IfFileExists{./biblatex.def} {yes, ...
Ulrike Fischer's user avatar
2 votes
1 answer
91 views

Finding a file in various locations

I have a central BibTeX file that I have in my home folder. Sometimes, I use it as a git submodule in the subfolder central-bibtex. The relative location can vary a bit. Since I want my preamble to do ...
Martin Ueding's user avatar
2 votes
1 answer
196 views

Is there a ConTeXt command to print the path of the file in which it is evoked?

I would like to put a URL-link in the output PDF of a ConTeXt file. It should point to the directory in which the ConTeXt file and its output PDF reside. Currently, I am using a shell script in my ...
Serge Stroobandt's user avatar
12 votes
1 answer
2k views

Organizing images for multiple latex files

This is kind of a soft question. In my work, I generate a lot of images (graphs with data, sketches of the experimental system, etc..) which I later use in various latex files (papers, beamer ...
yohbs's user avatar
  • 1,479
5 votes
1 answer
1k views

Using microtype protrusion with XeTeX and Ubuntu

I believe I have all the correct versions of the software at hand and installed (v. 2.5 of microtype and .9998 of XeTeX) to get protrusion to work with XeTeX on my Ubuntu system but I keep getting an ...
bfootdav's user avatar
  • 1,457
1 vote
1 answer
20k views

BibTeX can't open file `myfile.bib.aux'

I have created a document called "myfile.tex" with the following code. \documentclass{article} \begin{document} As we can see in \cite{goossens93}... \bibliographystyle{plain} \bibliography{...
Chris Headleand's user avatar
5 votes
1 answer
1k views

How to check image exists or not?

I'm working on Sweave and using includegraphics for include image in report dynamically. Pseudocode: <<> for ( i to 100) # run loop 1 to 100 { includegraphics(image....
manish's user avatar
  • 9,181
1 vote
0 answers
500 views

Loop to include multiple files [duplicate]

Possible Duplicate: How to iterate through the name of files in a folder I would like to include all the *.tex files from a directory in a document. To avoid me having to add manually the \input{...
François Chaix's user avatar
16 votes
1 answer
3k views

Why isn't kpathsea picking up my local version of a file?

I've just made a minor alteration to a file from a TeX package. I copied it into my local texmf tree and made the change there. When I tried kpsewhich <filename> to test that it was finding my ...
Andrew Stacey's user avatar
1 vote
1 answer
696 views

problem with pk fonts with texlive in linux [closed]

I have installed TexLive 2012 on a Linux CentOS 5.8 via the user root. The installation has been placed at /usr/local/texlive/2012; but for some reason, some pk fonts were placed at /root/.texlive2012/...
M.A's user avatar
  • 255
8 votes
1 answer
11k views

Unable to load picture or PDF file

XeLaTeX has stopped including .eps files in my document. I get errors such as: ! Unable to load picture or PDF file './images/deBuitleir.fig4.eps'. The image file is there, I double-checked. ...
mhwombat's user avatar
  • 477
10 votes
1 answer
1k 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 ...
Peeter Joot's user avatar
  • 3,025
1 vote
1 answer
323 views

Multiple graphics.cfg?

I'm using tex-live on a Ubuntu machine. I got a customized graphics.cfg file (configuration file for the graphix package) that I'd like to use as default on my system. I've tried to locate the ...
lucacerone's user avatar
8 votes
1 answer
727 views

Is it possible to place standalone graphics in subdirectories

When using standalone sub-directories do not seem to work properly. While \documentclass{article} \usepackage[subpreambles,mode=buildnew]{standalone} %standalone tikz \begin{document} \...
Martin's user avatar
  • 545
23 votes
2 answers
4k views

What are the allowed characters in filenames?

What characters can be used in filenames for the main document and input files, both .tex and images etc.? I'm not asking about which are recommended to be used, but about a list of all possible ...
Martin Scharrer's user avatar
6 votes
1 answer
893 views

kpathsea and path prefixes

On page 27, the kpathsea manual states: [A search path is a colon-separated list of path elements.] ... To check a particular path element e, Kpathsea first sees if a prebuilt database applies to e, ...
user avatar
36 votes
4 answers
20k views

Full path of current file

This question led to a new package: currfile-abspath (subpackage to currfile) How can I display the full path of the tex file that I compile? It is a simple file, no include or input present. Edit:...
digital-Ink's user avatar
  • 3,083
4 votes
2 answers
820 views

How to include graphics from a complex file structure

I am writing a Latex file that needs to include figures from a directory graphs. graphs has several sub-directories say, one , two and three. These individually contain several graphics that should ...
Ankit's user avatar
  • 835
12 votes
1 answer
16k views

Including all files within a directory [duplicate]

Possible Duplicate: How to iterate through the name of files in a folder Using \input{filename}, I can input a file canned "filename.tex". I have a directory containing all of the files I want to ...
Village's user avatar
  • 13.3k
22 votes
2 answers
2k views

Macro to retrieve the real name of the source file if pdflatex is invoked with -jobname

This question led to a new feature in a package: As of version 0.6 currfile supports the requested feature via a new package option and the -recorder compiler switch. For details, see Martin's ...
Daniel's user avatar
  • 37.7k
20 votes
2 answers
8k views

Directory name as a variable

Is it possible to use the directory where the current tex-file is in as variable? For example, suppose I am in the directory /path/to/foo/ and compile there the document bar.tex (absolute path is /...
HeinzEgon's user avatar
  • 203
6 votes
2 answers
854 views

Generate list of all installed (La)TeX files

I'm trying to write a script (Perl) for the general public which would need to have a list of all installed TeX files of a certain type, e.g. .sty and/or .cls files or only plainTeX files (.tex), ...
Martin Scharrer's user avatar
3 votes
4 answers
383 views

Can (La)TeX compare the time stamps of two external files?

Scenario I have a bunch of standalone PSTricks files. Each of those files can be compiled by latex-dvips-ps2pdf-pdfcrop-pdftops to produce a PDF image. I have made a batch file to do latex-dvips-...
Display Name's user avatar
  • 47.1k
6 votes
1 answer
485 views

LaTeX3: \file_if_exist:nTF & complete path to the file found

\file_if_exist:nTF searches the TeX/LaTeX input path for the filename given as an argument. Now I am looking for a way to get hands on the complete path to the file, in case it was found. From the ...
AlexG's user avatar
  • 55.2k
2 votes
2 answers
1k views

Where can I find file latex.‎tex?

Where can I find file latex.‎tex?‎ I don't have it in my tex ‎distribution‎. I‎ ‎have ‎only ‎file ‎latex.ltx ‎on ‎my ‎system. By the way, I'm using Texlive 2010.
user avatar
10 votes
1 answer
3k views

What is $TEXMFCNF for?

I just got told, in the comments to my answer to the question How to install "vanilla" TeXLive on Debian or Ubuntu?, that I shouldn't set the environment variable $TEXMFCNF if I install ...
Andrew Stacey's user avatar
20 votes
3 answers
4k views

Automatically Locate Included Images

Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of: \includegraphics{path/to/image/myfig.pdf} It would be: \includegraphics{myfig.pdf} ...
Alan Turing's user avatar
46 votes
4 answers
8k views

Naming LaTeX files: best practice?

What's the best practice for naming LaTeX files? I know R, Matlab, and Java all differ in their use of ., _, -, camel case, capitalization, etc. What do people generally use for naming LaTeX files? ...
lowndrul's user avatar
  • 5,323
203 votes
5 answers
65k views

\includegraphics: Dots in filename

\includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of ...
fuenfundachtzig's user avatar
52 votes
6 answers
26k views

How to iterate through the name of files in a folder

Assume I have many TeX files. For the sake of simplicity, also asssume they are in a single folder or directory. I want to input all files from within my main LaTeX document. Actually I can create a ...
Display Name's user avatar
  • 47.1k
3 votes
2 answers
838 views

Where is fontspec.cfg?

I'd like to write \let\newfontinstance=\newfontfamily in fontspec.cfg, but I cannot find that. May I please know where I can find it? Thank you!
user avatar
16 votes
2 answers
629 views

What is the quickest way to check whether I already have a given package?

What is the quickest way to check (on Linux) whether I already have a given package? In particular I'm interested in whether there is something that will take less time than the 20 seconds or so it ...
Mark Meckes's user avatar