Talk:Windows Installation

From ConTeXt wiki

Jump to: navigation, search

Moved from the main page: I guess this info is already obsolete by now.

Contents

[edit] Additional steps

  • If you get error messages like these:
(C:\Programs\MikTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-t
exnansi.map}{original-base.map
Warning:  (file original-base.map): invalid entry for `fmvr8x': font file missing

Warning:  (file original-base.map): invalid entry for `xycmat11': font file missing
then delete the folder fonts/map/dvipdfm or (that would be a proper solution) set
TEXFONTMAPS = .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//
(but I have no idea how to do the latter.)

[edit] write 18

MikTeX 2.4

(This note will go away.)

Create a file [localtexmf PATH]\miktex\config\miktex.ini and add the following line to it:

write18=enable

(Because of some unknown reason, write18=enable in [localtexmf PATH]\miktex\config\miktex.ini may be ignored on some computers. In that case make the change in [MikTeX PATH]\miktex\config\miktex.ini, but you may have to repeat this step every time you update MikTeX packages.)

W32TeX

Write18 is disabled. It can be enabled by setting the environment variable SHELL_ESCAPE:

set SHELL_ESCAPE=t

[edit] XeTeX Installation

(Until Hans decides to apply that to the standalone distribution, this notes might be of interest for those who want to use XeTeX under Windows.)

  • Download ftp://akagi.ms.u-tokyo.ac.jp/pub/TeX/win32/xetex-w32.tar.bz2
  • Unpack it. (The easiest way might be with Total Commander; you need a plugin for it, available on the official website)
  • Copy the content of bin into texmf-mswin/bin (copy just the missing files, or simply overwrite the others)
  • Copy the content of share/texmf to texmf. If you really mind, you can delete the following before copying (but it's not necessary):
    • tex/xetex/xelatex
    • tex/xetex/generic/hyphen
    • tex/xetex/generic/ifxetex
    • web2c/xetex/xe[la]tex.fmt
    • (doc in case you don't need it)
  • web2c/xetex/xetex.pool should go to texmf-mswin/web2c/


[edit] Using XeTeX with stand-alone or W32TeX

[edit] Building the formats

At the first time and when you update ConTeXt, you have to run the following command from console:

mktexlsr
texexec --xtx --make --all

[edit] Using XeTeX

You can then compile your document using

texexec --xtx filename

[edit] Setting up fontconfig

  • Open setuptex.bat and add the following three lines (here they're surrounded by the best place where they should be put):
set HOMETEXMF=

set FONTCONFIG_FILE=fonts.conf
set FONTCONFIG_PATH=%TEXMFMAIN%\fonts\conf
set FC_CACHEDIR=%TEXMFMAIN%\fonts\cache

if not "%CTXDEVTXPATH%"=="" SET CTXDEVTXPATH=
  • To use fonts that are not installed on the system you should add something like this to C:\Programs\context\usr\local\context\texmf\fonts\conf\fonts.conf:
<dir>c:/Programs/context/usr/local/context/texmf/fonts/opentype/public/lm</dir>
  • For the first time and every time when you install a new font that you want to use with XeTeX, issue:
fc-cache -f -v
  • To get a list of the available fonts use:
fc-list > list.txt

[edit] A note about cygwin

(Skip this unless you know what you are doing!)

If you have a working perl and ruby under cygwin and if they are in PATH, this might already work for ConTeXt (although it's a better idea to use native Windows versions). However, if the inclusion of libraries in ruby fails (because of conversion of path names) and if you object to install ruby again, try setting the environmental variable RUBYLIB:

set RUBYLIB=/cygdrive/c/[Path to MikTeX or other distr.]/scripts/context/ruby

[1]

Personal tools
Toolbox