[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CrossTeX



Robert Burgess <burgess@systems.cs.cornell.edu> wrote:

> I can have it store its system-wide databases and libraries (including
> styles) in the TEXMF tree and use a shell escape to kpsewhich to find
> them, then?  

Yes, but you should know that libkpathsea looks in particular trees
according to the file type (file extension) it looks for (and the
calling program's name).

$ kpsewhich --show-path=bib
.:/home/frank/.texmf-config/bibtex/bib//:/home/frank/.texmf-var/bibtex/bib//:/home/frank/texmf/bibtex/bib//:/etc/texmf/bibtex/bib//:!!/var/lib/texmf/bibtex/bib//:!!/usr/local/share/texmf/bibtex/bib//:!!/usr/share/texmf/bibtex/bib//:!!/usr/share/texmf-texlive/bibtex/bib//

$ kpsewhich --show-path=bst
.:/home/frank/.texmf-config/bibtex/bst//:/home/frank/.texmf-var/bibtex/bst//:/home/frank/texmf/bibtex/bst//:/etc/texmf/bibtex/bst//:!!/var/lib/texmf/bibtex/bst//:!!/usr/local/share/texmf/bibtex/bst//:!!/usr/share/texmf/bibtex/bst//:!!/usr/share/texmf-texlive/bibtex/bst//:/home/frank/.texmf-config/bibtex/csf//:/home/frank/.texmf-var/bibtex/csf//:/home/frank/texmf/bibtex/csf//:/etc/texmf/bibtex/csf//:!!/var/lib/texmf/bibtex/csf//:!!/usr/local/share/texmf/bibtex/csf//:!!/usr/share/texmf/bibtex/csf//:!!/usr/share/texmf-texlive/bibtex/csf//

This is because of 

$ kpsewhich --var-value='BIBINPUTS'
.:{/home/frank/.texmf-config,/home/frank/.texmf-var,/home/frank/texmf,/etc/texmf,!!/var/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf,!!/usr/share/texmf-texlive}/bibtex/bib//
$ kpsewhich --var-value='BSTINPUTS'
.:{/home/frank/.texmf-config,/home/frank/.texmf-var,/home/frank/texmf,/etc/texmf,!!/var/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf,!!/usr/share/texmf-texlive}/bibtex/{bst,csf}//

(note the end of the concatenation) and finally because of 

$ grep BIBINPUTS /etc/texmf/texmf.d/* /etc/texmf/texmf.cnf 
/etc/texmf/texmf.d/65BibTeX.cnf:BIBINPUTS = .;$TEXMF/bibtex/bib//
/etc/texmf/texmf.d/65BibTeX.cnf:% For bibtex8. Do we really need to repeat the BIBINPUTS setting?
/etc/texmf/texmf.d/65BibTeX.cnf:BIBINPUTS.bibtex8 =             .;$TEXMF/bibtex/{bib,}//
/etc/texmf/texmf.cnf:BIBINPUTS = .;$TEXMF/bibtex/bib//
/etc/texmf/texmf.cnf:% For bibtex8. Do we really need to repeat the BIBINPUTS setting?
/etc/texmf/texmf.cnf:BIBINPUTS.bibtex8 =             .;$TEXMF/bibtex/{bib,}//

So unless you us the same bibliographies and bst files as bibtex (I hope
the latter is not true...), you should create a new toplevel tree,
a variable, and a new file in /etc/texmf/texmf.d/ setting that variable.

This is according to the TeX Directory Structure, Section 3 Toplevel
directories, 

,---- http://www.tug.org/tds/tds.html#Top_002dlevel-directories
| * program' for program-specific input and configuration files for any
|   TeX-related programs (examples: mft, dvips).
`----

Details on how to make your new configuration file in texmf.d known on a
Debian system are in the TeX policy. As upstream, you must advice people
to edit texmf.cnf and add those lines.

Regards, Frank

-- 
Frank Küster
Debian Developer (teTeX/TeXLive)


Reply to: