The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
55 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, ...
2
votes
1answer
32 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 ...
2
votes
1answer
52 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 ...
11
votes
1answer
312 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 ...
5
votes
1answer
790 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 ...
0
votes
1answer
6k 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} ...
5
votes
1answer
178 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 { ...
1
vote
0answers
46 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 ...
11
votes
1answer
348 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 ...
0
votes
1answer
193 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 ...
4
votes
1answer
1k 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. ...
10
votes
1answer
375 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 ...
1
vote
1answer
134 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 ...
6
votes
1answer
292 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} ...
19
votes
2answers
667 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 ...
5
votes
1answer
396 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 ...
16
votes
3answers
3k 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. ...
4
votes
2answers
439 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 ...
5
votes
1answer
2k 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 ...
18
votes
2answers
657 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 ...
15
votes
2answers
1k 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 ...
4
votes
2answers
333 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), ...
2
votes
4answers
219 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 ...
6
votes
1answer
234 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 ...
0
votes
2answers
348 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.
10
votes
1answer
993 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 ...
13
votes
2answers
781 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} ...
37
votes
4answers
1k 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? ...
68
votes
5answers
10k 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 ...
17
votes
4answers
4k 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 ...
3
votes
2answers
277 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!
16
votes
2answers
328 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 ...