Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
    
@tim: Welcome to tex.sx! A tip: you can use backticks ` to mark your code as I did in my edit. –  Hendrik Vogt Nov 23 '10 at 17:27
add comment

2 Answers

You should copy the one that already exists in your texmf tree and put it wherever you need it. This is true for all LaTeX .cfg files. Either put it in the same directory as your document (if you only want the cfg file for that document) or put it in your local texmf tree so that it overrides the default one.

share|improve this answer
add comment

You can find out on the command line.

kpsewhich fontspec.cfg

This should give you the full path to this file.

share|improve this answer
    
Ok; the pathway appears to be /usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.cfg .... –  tim Nov 23 '10 at 19:05
    
but it seems hidden ... –  tim Nov 23 '10 at 19:06
    
2010/texmf-var ... tia! once i get in there i add \let\newfontinstance=\newfontfamily ... that is to say, i paste it within the file? –  tim Nov 23 '10 at 19:08
    
@tim no, do not edit files in texmf-dist. See my answer above/below. –  Will Robertson Nov 24 '10 at 0:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.