Difference between revisions of "TeX Live 2010"

From Wiki
Jump to navigation Jump to search
(→‎Enabling other MkII interfaces: more details about private formats)
Line 16: Line 16:
 
to find its exact location.
 
to find its exact location.
  
2. Create or edit the file <code>$TEXMFLOCAL/fmtutil-local.cnf</code>.  <code>$TEXMFLOCAL</code> is something like <code>/usr/local/texlive/texmf-local</code>, you can use
+
2. Create or edit the file <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code>.  <code>$TEXMFLOCAL</code> is something like <code>/usr/local/texlive/texmf-local</code>, you can use
 
   $ kpsewhich --expand-var '$TEXMFLOCAL'
 
   $ kpsewhich --expand-var '$TEXMFLOCAL'
 
to find the exact location.  
 
to find the exact location.  
  
If you do not have write permissions for <code>$TEXMFLOCAL/fmtutil-local.cnf</code>, ask your local TeX Live system administrator to complete these steps.
+
If you do not have write permissions for <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code>, ask your local TeX Live system administrator to complete these steps.
  
3. Paste the commmented cont-'XX' you found in step one into that file, uncomment them, create a xetex copy if you want xetex formats as well, and then save the file. After this, the (new section of) <code>$TEXMFLOCAL/fmtutil-local.cnf</code> should look like this  
+
3. Paste the commmented cont-'XX' you found in step one into that file, uncomment them, create a xetex copy if you want xetex formats as well, and then save the file. After this, the (new section of) <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code> should look like this  
 
   cont-de pdftex cont-usr.tex -8bit *cont-de.ini
 
   cont-de pdftex cont-usr.tex -8bit *cont-de.ini
 
   cont-de xetex cont-usr.tex -8bit *cont-de.ini
 
   cont-de xetex cont-usr.tex -8bit *cont-de.ini
Line 34: Line 34:
 
   cont-ro xetex cont-usr.tex -8bit *cont-ro.ini
 
   cont-ro xetex cont-usr.tex -8bit *cont-ro.ini
  
4. run  
+
4. if you created a new file, now run  
 
   $ mktexlsr
 
   $ mktexlsr
to make sure the file will be found by <code>fmtutil</code>.
+
to make sure the file will be found by the TeX Live system.
  
5. now you can call a normal <code>fmtutil</code> command line like
+
5. now run
  $ fmtutil --all
+
  $ tlmgr generate fmtutil
to generate the newly enabled ConTeXt MkII formats.
+
This merges the info from the TeX Live distribution with the fmtutil-local.cnf
 +
 
 +
6. now to generate the newly enabled ConTeXt MkII formats
 +
 
 +
6a. if you have installed TeX Live yourself, or have write permissions to the TeX Live system directories, run (or ask your system installer to run):
 +
  $ fmtutil-sys --all
 +
this way, formats will be auto-renewed whenever updates are installed.
 +
 
 +
6b. if you do not have write permissions and your system installer does not want to <code>fmtutil-sys</code> for you, run:
 +
  $ fmtutil --missing
 +
but with this method, you have to remember to refresh the formats yourself.
  
 
== Running MkIV ==
 
== Running MkIV ==

Revision as of 13:54, 12 June 2010

Introduction

The ConTeXt in TeX Live 2010 is 2010.05.24 with a few small changes. ConTeXt MkII works out the box, MkIV takes a tiny bit of configuration.

The scheme-context installs collection-context and collection-metapost. This brings in quite a few font families, but we did not want to automatically install all font packages, so you may need to install a few by hand with tlmgr.

Running MkII

The English interface for both pdftex and xetex is automatically managed by fmtutil.

Enabling other MkII interfaces

If you want to enable other context language interfaces, you should use the normal TeX Live local changes system:

1. Look for the commented cont-XX lines in fmtutil.cnf. Use

 $ kpsewhich fmtutil.cnf

to find its exact location.

2. Create or edit the file $TEXMFLOCAL/web2c/fmtutil-local.cnf. $TEXMFLOCAL is something like /usr/local/texlive/texmf-local, you can use

 $ kpsewhich --expand-var '$TEXMFLOCAL'

to find the exact location.

If you do not have write permissions for $TEXMFLOCAL/web2c/fmtutil-local.cnf, ask your local TeX Live system administrator to complete these steps.

3. Paste the commmented cont-'XX' you found in step one into that file, uncomment them, create a xetex copy if you want xetex formats as well, and then save the file. After this, the (new section of) $TEXMFLOCAL/web2c/fmtutil-local.cnf should look like this

 cont-de pdftex cont-usr.tex -8bit *cont-de.ini
 cont-de xetex cont-usr.tex -8bit *cont-de.ini
 cont-fr pdftex cont-usr.tex -8bit *cont-fr.ini
 cont-fr xetex cont-usr.tex -8bit *cont-fr.ini
 cont-it pdftex cont-usr.tex -8bit *cont-it.ini
 cont-it xetex cont-usr.tex -8bit *cont-it.ini
 cont-nl pdftex cont-usr.tex -8bit *cont-nl.ini
 cont-nl xetex cont-usr.tex -8bit *cont-nl.ini
 cont-ro pdftex cont-usr.tex -8bit *cont-ro.ini
 cont-ro xetex cont-usr.tex -8bit *cont-ro.ini

4. if you created a new file, now run

 $ mktexlsr

to make sure the file will be found by the TeX Live system.

5. now run

  $ tlmgr generate fmtutil

This merges the info from the TeX Live distribution with the fmtutil-local.cnf

6. now to generate the newly enabled ConTeXt MkII formats

6a. if you have installed TeX Live yourself, or have write permissions to the TeX Live system directories, run (or ask your system installer to run):

  $ fmtutil-sys --all

this way, formats will be auto-renewed whenever updates are installed.

6b. if you do not have write permissions and your system installer does not want to fmtutil-sys for you, run:

  $ fmtutil --missing

but with this method, you have to remember to refresh the formats yourself.

Running MkIV

Directly after installation and also after context-related updates to TeX Live, you will need to run

 luatools --generate

manually.

The context command will automatically generate and update the formats and the fonts cache when needed.

MkIV cache location

Context MkIV in Standard TeX Live will create the data cache in ~/.texlive2010/texmf-var; Context MkIV in MacTex will use ~/Library/texlive/2010/texmf-var. If you are unhappy with that, you can set the environment variable TEXMFCACHE to your preferred location.

ConTeXt 2010.05.24 changes

  • Because the copyright of the koeielogos and koeieletters fonts does not allow modifications, the relevant files are not included (this was also the case in previous years).
  • The files from cont-mpd.zip are in the package mptopdf. The context package depends on mptopdf, so installation is automatic.
  • Mojca and Taco applied a few hot-fixes for some quite serious bugs:
    • luatools --engine=... was broken in Context 2010.05.24.
    • Due to a different texmf.cnf setup, luatools and mtxrun failed to find .lua files in the normal texmf tree.
    • mptopdf has been patched so that it does not run texexec --mptex any more: plain metapost is now the default.
    • mtxrun.dll (windows) will find texlua.exe in the directory where mtxrun.dll resides if finding it in the search path fails.
    • Context MkIV did not deal with fonts with upper case filename extensions properly.
    • The typescripts xits and stix have been added to type-otf.mkiv
    • Context MkIV did not handle directory names containing dots properly.

Updating ConTeXt


TODO: fill this in once TeXLive 2010 is actually released (See: To-Do List)