Changes

Jump to navigation Jump to search
2,839 bytes removed ,  09:56, 5 October 2007
→‎Which ConTeXt distribution to choose?: rewrote a bit - the stand-alone still needs a revision
= Which ConTeXt distribution to choose? =
Note: You can use both MikTeX and the stand-alone distr. simultaneously.
=== MikTeX ===MikTeX is great tool for people typsetting in LaTeX. Updating the packages is easy and (font) <b>packages are downloaded automatically if you need them</b>. Recently support for ConTeXt has been improved, but if If you need the very latest version of ConTeXt, you have might need to update it manually (<code>ctxtools --update</code>).
The stand-alone ConTeXt is much better in the way that it is always up-to-dateIt comes with [[XeTeX]] since version 2.7, the environment is set up properly and some special functionality that doesn't work in MikTeX should work here as expected. The only drawback (although I don't really dare to call it a drawback) but [[LuaTeX]] is that you have to have some other distribution working in parallel if you need LaTeX as wellnot available yet.
There's another (not so popular) TeX distribution, [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32=== Stand-alone ConTeXt ===The stand-alone ConTeXt can always be kept up-ptex/web2c75to-e.html W32TeX] which is probably date, it includes LuaTeX, the only one so far which includes [[XeTeX]]. See [[Windows Installation#XeTeX Installation|XeTeX Installation]] to figure out how to install XeTeX on top of standalone distribution. MikTeX environment is planning to add support for [[XeTeX]] set up "properly" and some special functionality that doesn't work in version [http://www.miktex.org/2.7 2.7]MikTeX should work here as expected.
I never tried XEmTeX and TeX LiveIf you don't need LaTeX, this might be the perfect solution. If anyone is willing to share you also need LaTeX, the experince stand-alone doesn't interfere with MikTeX (or other usersdistributions), so youcan use both. === TeX Live, W32TeX ===TeX Live is released once per year and sent to members of TeX user groups on DVDs. Its package management is modest and still in development, and it're wellcome s not updated between releases. W32TeX [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] came to our attention since Akira (its author) was the first one to do somanage to compile [[XeTeX]] for Windows, and still provides the very latest Windows binaries for [[XeTeX]], [[LuaTeX]], [[pdfTeX]], [[MetaPost]], ... all of them being compatible with TeX Live. The stand-alone ConTeXt distribution takes files & binaries from both of them, but as a distribution, MikTeX or stand-alone ConTeXt might be a better choice= Installation =
== Stand-alone ConTeXt distribution ==
MikTeX is probably the easiest and most recommended solution for newbies or for those who have already been using LaTeX and don't want to install anything else. MikTeX is very user-friendly, updating is very easy, missing fonts or third-party modules are installed automatically when you first use them.
However, some more experienced ConTeXt users may not always be happy with it:
* using fonts doesn't always work as expected (or at least different than in the stand-alone distribution)
* ConTeXt format is usually recent, but not always the latest(you can still update ConTeXt manually)* [[XeTeXLuaTeX]] doesn't work yet with it yet
<font color="red">ConTeXt is not working under MikTeX 2.4 any more (please upgrade to the latest MikTeX).</font> === MikTeX packages that After you need install or change something: Refresh file name database & Rebuild Formats ===
Try running texexec --versionIn most cases MikTeX should install the required package for ConTeXt automatically (if not installed yet). Don't ask me why Russian und Ukrainian hyphenation patterns have to be downloaded as well. === 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 Warningtodo: (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 <code>fonts/map/dvipdfm</code> or (that would this needs to be a proper solution) set TEXFONTMAPS = .;$TEXMF/fonts/map/{$progname,pdftex,dvipsupdated,it's slightly different on more recent MikTeX}}//: (but I have no idea how to do the latter.) === After you install or change something: Refresh file name database & Rebuild Formats ===
* ''MikTeX Options -> General -> Refresh FNDB''
<code>write18</code> allows calling external programs from within TeX. It's not a good idea to have it enabled on a server, but for comfortable work with ConTeXt (for MetaFun or modules for R and gnuplot) you probably need it.
 
'''MikTeX 2.4'''
 
<i>(This note will go away.)</i>
 
Create a file <code>[localtexmf PATH]\miktex\config\miktex.ini</code> and add the following line to it:
write18=enable
''(Because of some unknown reason, <code>write18=enable</code> in <code>[localtexmf PATH]\miktex\config\miktex.ini</code> may be ignored on some computers. In that case make the change in <code>[MikTeX PATH]\miktex\config\miktex.ini</code>, but you may have to repeat this step every time you update MikTeX packages.)''
 
'''MikTeX 2.5/2.6'''
Each application now has it's own configuration file. To enable <code>write18</code> run
* http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html
 
The only Windows distribution so far that comes with [[XeTeX]].
W32TeX contains the latest ConTeXt.
Write18 is disabled. It can be enabled by
setting the environment variable SHELL_ESCAPE:
 
set SHELL_ESCAPE=t
== TeX Live or XEmTeX ==
[http://www.tug.org/texlive/doc/texlive-en/live.html#x1-200006 Installation instructions] are part of the documentation.
{{todo|can someone with any experience write something about it?}}
 
== XeTeX Installation ==
 
(Until Hans decides to apply that to the <b>standalone distribution</b>, 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. <i>(The easiest way might be with Total Commander; you need a plugin for it, available on the official website)</i>
* Copy the content of <code>bin</code> into <code>texmf-mswin/bin</code> <i>(copy just the missing files, or simply overwrite the others)</i>
* Copy the content of <code>share/texmf</code> to <code>texmf</code>. If you really mind, you can delete the following before copying (but it's not necessary):
** <code>tex/xetex/xelatex</code>
** <code>tex/xetex/generic/hyphen</code>
** <code>tex/xetex/generic/ifxetex</code>
** <code>web2c/xetex/xe[la]tex.fmt</code>
** (<code>doc</code> in case you don't need it)
* <code>web2c/xetex/xetex.pool</code> should go to <code>texmf-mswin/web2c/</code>
 
=== Building the formats ===
At the first time and when you update ConTeXt, you have to run the following command from console:
texexec --xtx --make --all
=== Using Notes about fontconfig (for XeTeX ) ===You can then compile your document using texexec --xtx filename
=== Setting up fontconfig ===* Open <code>setuptex.bat</code> and add the following three lines <i>(here they're surrounded by the best place where they should be put)</i>: 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 <code>C:\Programs\context\usr\local\context\texmf\fonts\conf\fonts.conf</code>(adjust the path according to your settings):
<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:

Navigation menu