Changes

Jump to navigation Jump to search
no edit summary
[[File:result_of_test_with_noto-serif.png]]
 
= Install the new typescript definition =
 
I you wan to use the same customized typescrip across different documents, it make sense to install them in the distribution
 
1. Copy the typescript files into either
 
 
Installing typescripts consists in the following:
 
1. Copy the typescript files into either <texcode>tex/texmf-fonts/tex/context/user/</texcode>
 
2. Run <code>context --generate</code>
 
 
<texcode>$TEXMF/tex/texmf-fonts/tex/context/user
$TEXMF/tex/texmf-project/tex/context/user</texcode>
2. Run <code>context --generate</code>
 
By convention, typescript files are named like <code>type-(fontname|foundry).tex</code>.
 
It may happen that some <code>type-xx.tex</code> typescript file depends on mkiv-specific code located in a matching <code>type-xx.mkiv</code> file. In this case, both files need to be installed.
 
=== Loading typescripts ===
 
A typescript file named <code>type-xx.tex</code> should be loaded using
\usetypescriptfile[type-xx]
 
An alternative way is
\usetypefile[xx]
where ConTeXt prepends <code>type-</code> when it loads the file; but
<cmd>usetypescriptfile</cmd> is the preferred command because it takes care of the
<cmd>starttypescriptcollection</cmd>/<cmd>stoptypescriptcollection</cmd> environments.

Navigation menu