[texworks] Project Management type stuff

Bruno Voisin bvoisin at me.com
Thu Oct 14 08:57:46 CEST 2010


Le 14 oct. 2010 à 04:52, Paul A Norman a écrit :

> Is there any distribution independant way that we can get TeXworks to
> help users keep track of their own .sty(s) etc?
> 
> [...]
> 
> But is there any way we can include this sort of thing in project
> management in TeXWorks?
> Can for example a LaTeX document have some sort of  (relative?) path
> statement for the location of User made Style files?

That's something related to the TeX distribution TeXworks is a front-end to, not to TeXworks itself.

The placement of style files etc. in a given texmf tree is defined by the TDS (TeX Directory Structure) <http://mirror.ctan.org/tds/tds.pdf>.

The number, naming and search order of the various texmf trees is, I think, specific to a given TeX distribution. For TeX Live, this is defined in texmf.cnf.

For example on the Mac

TEXMFMAIN = $SELFAUTOPARENT/texmf
TEXMFDIST = $SELFAUTOPARENT/texmf-dist
TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local
TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var
TEXMFSYSCONFIG = $SELFAUTOPARENT/texmf-config
TEXMFHOME = ~/Library/texmf
TEXMFVAR = ~/Library/texlive/2010/texmf-var
TEXMFCONFIG = ~/Library/texlive/2010/texmf-config
TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST}

The result is a hierarchy of locations:

~/Library/texlive/2010/{texmf-config,texmf-var} (user-specific automatically generated files)
~/Library/texmf (user-specific input files -- style files, fonts, etc.)
/usr/local/texlive/2010/{texmf-config,texmf-var} (system-wide automatically generated files)
/usr/local/texlive/texmf-local (system-wide local input files -- style file, fonts, etc.)
/usr/local/texlive/2010/{texmf,texmf-dist} (system-wide default TeX system)

and a search order through this hierarchy:

$ kpsewhich --show-path=.sty --progname=latex | tr : '\n'
.
/Users/bvoisin/Library/texlive/2010/texmf-config/tex/latex//
/Users/bvoisin/Library/texlive/2010/texmf-var/tex/latex//
/Users/bvoisin/Library/texmf/tex/latex//
!!/usr/local/texlive/2010/texmf-config/tex/latex//
!!/usr/local/texlive/2010/texmf-var/tex/latex//
!!/usr/local/texlive/2010/texmf/tex/latex//
!!/usr/local/texlive/2010/../texmf-local/tex/latex//
!!/usr/local/texlive/2010/texmf-dist/tex/latex//
/Users/bvoisin/Library/texlive/2010/texmf-config/tex/generic//
/Users/bvoisin/Library/texlive/2010/texmf-var/tex/generic//
/Users/bvoisin/Library/texmf/tex/generic//
!!/usr/local/texlive/2010/texmf-config/tex/generic//
!!/usr/local/texlive/2010/texmf-var/tex/generic//
!!/usr/local/texlive/2010/texmf/tex/generic//
!!/usr/local/texlive/2010/../texmf-local/tex/generic//
!!/usr/local/texlive/2010/texmf-dist/tex/generic//
/Users/bvoisin/Library/texlive/2010/texmf-config/tex///
/Users/bvoisin/Library/texlive/2010/texmf-var/tex///
/Users/bvoisin/Library/texmf/tex///
!!/usr/local/texlive/2010/texmf-config/tex///
!!/usr/local/texlive/2010/texmf-var/tex///
!!/usr/local/texlive/2010/texmf/tex///
!!/usr/local/texlive/2010/../texmf-local/tex///
!!/usr/local/texlive/2010/texmf-dist/tex///

I imagine MikTeX has also its own specific way of dealing with the same matter.

So, to summarize, I don't think TeXworks must involved in this, it all occurs in a lower layer of the TeX setup.

Bruno Voisin


More information about the texworks mailing list