Changes

Jump to navigation Jump to search
8,822 bytes added ,  05:15, 11 April 2023
Tell users to install LMTX instead
< {{note|You almost certainly want to [[Installation]] | [[ConTeXt Minimals/Structure]] | [[install the newer ConTeXt Minimals/ImplementationLMTX]] >. This guide is for installing the older, rarely-updated MkIV distribution.}}
The '''Minimals''' are an attempt to provide a ConTeXt distribution that:
* includes the latest & greatest binaries
* includes the latest stable & beta version of ConTeX (one can choose which one to install)
* takes minimal amount of time & bandwidth to upgrade
* does not interfere with existing TeX installations (MikTeX, TeX Live, ... one can have both installed)
* does not need root privileges to be installed
* takes reasonable amount of space
** does not include any LaTeX packages & binaries
** faster
** not such a problem to have multiple versions installed (they do not interfere)
** possible to make it even smaller by installing only luatex for example
They are hosted on The '''http://minimals.contextgarden.netConTeXt suite''' (equivalent is a complete, up-to '''rsync://contextgarden-date ConTeXt distribution that can be upgraded efficiently. It can also be used in parallel with existing TeX installations such as MikTeX, TeXLive, and so forth.net/minimals/''')The suite does not include LaTeX packages and binaries.
Everyone is invited Sometimes ConTeXt beta releases have issues. The ConTeXt suite allows you to test this distributionthe latest ConTeXt release without worrying whether upgrading will corrupt a critical project. Multiple ConTeXt suite installations are possible. This allows, but is kindly asked for patience example, a stable version and understanding until we tidy up the details. You need a beta version to have '''rsync''' installed, for windows it's shipped together with run in parallel on the minimalssame computer.
= Quick Start =ConTeXt is also included in TeXlive. The ConTeXt suite is updated continuously, whereas ConTeXt in TeXlive is updated less often. In particular, <code>luatex</code> and <code>metapost</code> are under active development and their binaries are updated frequently. ConTeXt follows these developments, indeed often drives development. As the binaries included in the TeXlive distribution are only updated yearly, ConTeXt on TeXlive will necessarily be less current than the ConTeXt suite. The ConTeXt suite is self-contained and can happily coexist alongside another installed TeX distribution.
{{TOClimit|limit== Linux/Mac/FreeBSD/Solaris ==1}}
=== Installation ==General Information =
Go to a folder where you want to put ConTeXt. We'll assume installation into <code>~/context</code>, but you can install it anywhere where you have writing permissions. You can install several copies to several places without interference. ''(Mac users can also take a look at [[ConTeXt Minimals/Mac Installation]].)''== Supported platforms ==
mkdir context && cd context{| style="border:1px solid #DDDDDD;"|- align="left" ! Platform rsync ! Short name! Notes|- align="left" style="background-ptv rsynccolor:#EEEEEE;"! Windows| mswin| from [http://contextgardenw32tex.netorg W32TeX]|- align="left"! Windows/minimals/setup/firstCygWin| cygwin| same binaries as mswin|- align="left" style="background-color:#EEEEEE;"! Windows, 32 bit| win32| Alias for mswin|- align="left"! Windows, 64 bit| win64| |- align="left" style="background-color:#EEEEEE;"! Linux, 32-bit| linux| Debian 8|- align="left"! Linux, 64-bit| linux-64| Debian 8|- align="left" style="background-color:#EEEEEE;"! Linux, ARM (low end.)| linux-arm| Raspbian 8|- align="left"! Linux, musl| linuxmusl-64| Alpine|- align="left" style="background-color:#EEEEEE;"! Mac OS X, Intel (64-bit)| osx-64| Mac OS X 10.6|- align="left"! FreeBSD, 32-bit| freebsd||- align="left" style="background-color:#EEEEEE;"! FreeBSD, 64-bit| freebsd-amd64||- align="left"! OpenBSD 6.4, 32-bit| openbsd6.4||- align="left" style="background-color:#EEEEEE;"! OpenBSD 6.4, 64-bit| openbsd6.4-amd64||-setupalign="left"! OpenBSD 6.sh 5, 32-bit| openbsd6.5 ||- align="left" style="background-color:#EEEEEE;"! OpenBSD 6./first5, 64-setupbit| openbsd6.sh5-amd64||- align="left"! Solaris, Intel| solaris-intel''| Solaris 10 on [http://www.opencsw.org/about/ OpenCSW]|- align="left" style="background-color:#EEEEEE;"! Solaris, Sparc| solaris-sparc| Solaris 10 on [http://www.opencsw. go and have a coffee org/about/ OpenCSW]|} * If you run into problems installing, check the available architectures in the minimal’s [http://minimals.contextgarden.net/setup/ setup folder]!* OpenBSD 6.''4 binaries are compiled but are missing in the setup folder ATM (2019-07) If you want to support a new platform, please write to the [[Mailing Lists]] == Dependencies ==* Rsync (The windows binary of rsync is distributed within the suite)
=== Usage: permanent ===
''(For those who mostly use The following programs are not required for running ConTeXt and [almost] never LaTeX, but their installation adds additional functionality.)''
Put the following line * curl : for including remote content* ghostscript : for converting PostScript images to <code>~/.bash_profile</code> or <code>~/.bashrc</code>PDF* graphicsmagick (convert) :for converting GIF and TIFF images source ~/context/tex/setuptex ~/context/tex* inkscape : for converting SVG and compressed SVG* mupdf (mudraw) : for converting PDF to PNG (tused for ePub covers)csh users can use the variant* pstoedit :for converting PostScript to MetaPost outlines source ~/context/tex/setuptex.csh* zint : for providing barcodes* zip or 7zip : for EPUB generation
In theory it should already suffice == Disc space required ==ConTeXt macro files are small (less than 10MB), but the suite comes with various free fonts which considerably increase the size of the distribution (to add <code>export PATH=~/context/tex/texmf-<platform>/bin:$PATH</code>around 200MB).
=== Usage: temporary =Multiple instances of the installation ==Please note from the start that we recommend installing a complete ConTeXt installation for each project in a production environment. The installation tree is portable (see Moving the Installation Around, below) and can be located under the project's own directory. The advantage is to allow each project to use an instance of ConTeXt that is adapted to its coding and that only gets updated purposely. Since the ConTeXt Standalone is "bleeding edge" and subject to development, certain details in commands, syntax or rendering may evolve slightly. Having a vintage ConTeXt tree for each production project insures that one can come back years later and produce identical results.
''(For those who often use LaTeXSo as not to get carried away under this approach, but need the latest ConTeXt every now and thenone can eventually group projects by vintage, period or season, according to cycles of productivity.)''
Just type . ~/context/tex/setuptex ~/context/texto switch from system-wide TeX distribution to the minimals inside current shell.== Standalone ==
=== Uninstalling ===* [[ConTeXt Standalone/FAQ|Standalone/FAQ]] * [[ConTeXt Standalone/Structure|Standalone/Structure]] * [[ConTeXt Standalone/Implementation|Standalone/Implementation]]* [[ConTeXt Standalone/TODO|Standalone/TODO]] * [[ConTeXt Standalone/Contents|Standalone/Contents]] * [[ConTeXt Standalone/TeX Live|Standalone/TeX Live]]* Browse the [http://minimals.contextgarden.net installation tree]
Just remove the folder (distribution did not touch anything else):
rm -rf ~/context
== Windows ==
=== Installation: global & GUI ==Unix-like platforms (Linux/MacOS X/FreeBSD/Solaris) =
''=== (For those who don't need MikTeX/TeX Live and prefer Graphical user interfaceMacOS X) Using the Command line: Terminal.)''app ===
Download If you do not what a command tool is, do not worry. It is simply a program in which commands are entered as text and run [http://minimalsthen executed.contextgardenThe needed Terminal.net/setup/contextapp can be found in the Utilities-installer/ContextMinimalInstall.exe folder of the GUI installer] (made by Vyatcheslav Yatskovsky)Applications-Folder.
Slides from author's presentation can Once you have started Terminal, all you have to do is enter a command and press the RETURN-key and the command will be downloaded [http://meeting.contextgarden.net/2008/talks/2008-08-21-vyatcheslav-win-installer/windows_installer.pdf here]executed.
Use standard windows tool for uninstalling the application.== Single user installation ==
=== Installation: local & command-line ===Select a folder where you want to install ConTeXt. We recommend that you can use your <code>$HOME/context</code> directory. Create this folder. Then download and place it in <code>$HOME/context</code> directory. Open a terminal, then ...
''execute (For those who need MikTeXLinux/TeX Live and are comfortable with command-line.FreeBSD/Solaris)'':
Download and unzip {{note|You almost certainly want to [http://minimals[Installation|install the newer ConTeXt LMTX]].contextgarden.net/setup/contextThis guide is for installing the older, rarely-setup-mswinupdated MkIV distribution.zip context-setup-mswin.zip]}}
Run <codepre> mkdir ~/context cd ~/context wget http://minimals.contextgarden.net/setup/first-setup.batsh</codepre>, go for a coffee.
Before being able to use ConTeXt you need to run setuptexor (MacOS):<pre> mkdir ~/context cd ~/context rsync -av rsync://contextgarden.net/minimals/setup/first-setup.bat to initialize the environmentsh . A simple way to do it is to create a file <code/pre>startcontextSince the Mac does not have `wget` pre-installed. Now run the `first-setup.batsh` script:</codepre> (use any name) somewhere in PATH and put this line into it # Install the latest beta of ConTeXt # This takes a long time, so go have a coffee # Flags you can add to the first-setup.sh call: # --modules=all # Install all third-party modules # --context=latest # Install latest stable version # --engine=luatex # Install only MkIV, leave out MkII # # This shrinks the install from 270 MB to 200 MB
C:\Programs\context\tex\setuptex sh .bat C:\Programs\context\tex/first-setup.sh --modules=all</pre>
Then, you can type <code>startcontext</code> into CMD whenever you want to use ConTeXt Minimals instead of MikTeX.== System-wide installation ==
For uninstalling just delete A system wide installation is '''only''' recommended for experienced users. You will need administrator rights on the Mac as only administrators are allowed to install programs in the Applications folder with minimals, or root (sudo) privileges on other unix-like systems.
=== Troubleshooting ===* on Linux you can use <code>/opt/context</code>* on MacOS X you can use <code>/Applications/ConTeXt</code>
* rsync sometimes has problems with paths with uppercase letters (like c:\Temp or c:\Documents and Settings). Installing into all-lowercase paths without spaces sometimes helps.* If youNote that, at present, while ''using''re behind firewall and rsync times out MkIV, you need to open port 873 have write permissions for outgoing TCP connectionsthe <code>$TEXMFCACHE</code> directory. This effectively means that only one user will be able to generate the formats unless you set the group permissions appropriately.For example:
* <code>CONTEXT_HOME=/opt/context</code>* <code>TEXMFCACHE= Testing ==$CONTEXT_HOME/tex/texmf-cache</code>* <code>chmod -R g+w $TEXMFCACHE</code>
\starttext Hello World! \stoptext{{note|You almost certainly want to [[Installation|install the newer ConTeXt LMTX]]. This guide is for installing the older, rarely-updated MkIV distribution.}}
Now<pre> # Create the /opt/context directory -- change as appropriate or desired if you # want a different installation directory. cd /opt mkdir context cd context # Fetch the install script (use rsync on the mac, see above) wget http://minimals.contextgarden.net/setup/first-setup.sh # Install the latest beta of ConTeXt # This takes a long time, so go have a coffee # Flags you should be able can add to runthe first-setup.sh call: # --modules=all # Install all third-party modules # --context=latest context hello.tex# Install latest stable versionor # --engine=luatex # Install only MkIV, leave out MkII texexec hello.tex # # This shrinks the install from 270 MB to 200 MB
<code>context< sh ./code> uses LuaTeX by defaultfirst-setup.sh --modules=all
= Goals = # change ownership to real rather than effective id chown -R `id -r -u`:`id -r -g` .</pre>
We wanted to provide:* an easy to (no-need-to-)install ConTeXt distribution* a '''fast and convenient way to update ConTeXt and binaries to the latest version''' ''(no need to fetch 100 MB when only minimal modifications have been made in the distribution)''* a reference ConTeXt distribution* an easy way to revert to an older ConTeXt (in case the latest one is broken)===Cache===
We do not plan to provide:* LaTeX packages ''(perhaps To customize the really-basic-latex as an add-on packagecache directory and other options, but only if someone else has time to investigate what is needed)''* extensive support for whatever binaries or packages which are otherwise standard in TeX distributions: use TeX Live or MikTeX for that purposesee the [[Custom_Configuration|Custom Configuration]] page.
The minimals contain:* ConTeXt* Fonts: most important TeX-aware ones* pdfTeX, XeTeX, LuaTeX and Metapost (latest version, if possible)* formats (need to be generated by user) for** ConTeXt, mptopdf and plain TeX for pdfTeX/XeTeX/LuaTeX** metafun and plain for Metapost* ''it would be nice to have tex4ht as a package if someone can figure out what is needed to make it work''===Font Directory===
= Supported platforms =Add the OSFONTDIR into ./tex/setuptex. Go to under the line:
{| style # TODO: we could set OSFONTDIR on Mac for example (if you don't have the line above, go to the end of the file) and add there:  export OSFONTDIR="border:1px solid #DDDDDD/usr/local/share/fonts;$HOME/.fonts" align For more information: [[Fonts in LuaTeX]] == Apache webserver installation ="left" valign="top"|Another common use case is invoking ConTeXt from within a web application. Because web directories are often self- align="left" style="backgroundcontained, and in the case of Apache under Ubuntu, ownership of the directory and its contents are assigned to a user and group without a login shell, e.g., <code>www-colordata:#EEEEEE;"www-data</code> this prevents a web application from invoking a ConTeXt installation done using either the single-user or system-wide method listed above. In this case the solution is to install ConTeXt within the website tree, and ideally in the public sub-tree. The public sub-tree is commonly the home directory for the application and relative pathnames are resolved as if immediately below it.! Windows| mswinFor example, in the case of the PHP web framework Laravel, ConTeXt can be installed alongside other assets in the <path-to-document-root>/public/context directory:| Akira Kakuto (W32TeX)|<pre>| cd <path- align="left"to-document-root>/public! Linux mkdir context| linux cd context| wget http://minimals.contextgarden.net/setup/first-setup.sh| compiled with glibc 2 # Install the latest beta of ConTeXt # This takes a long time, so go have a coffee # Flags you can add to the first-setup.3.6sh call:| # - align-modules="left" styleall # Install all third-party modules # --context="backgroundlatest # Install latest stable version # --color:engine=luatex # Install only MkIV, leave out MkII # #EEEEEE;"This shrinks the install from 270 MB to 200 MB ! Linux, 64 sh ./first-setup.sh --bitmodules=all| linux-64</pre>| Peter Münster| we consider renaming Once installed, you need to ensure that the permissions are correct for Apache to be able to access it (you will either need <code>sudo</code> privileges or root access): <pre>$ cd <path-to linux-amd64document-root>/public|$ sudo chmod -R www-data:www- align="left"data context</pre> Now as part of your application's invocation of ConTeXt, you will need to set up the shell environment. This is easily done by creating a simple BASH shell script, also to be installed in the public part of the document tree: <pre> #! Mac OS X, Intel/usr/bin/env bash  # # proccontext.sh # # To be installed in <path-to-document-root>/public/bin | osx . <path-to-document-root>/public/context/tex/setuptex <path-intelto-document-root>/public/context/tex| Mojca Miklavec| cd tex/spool| context $1 > /tmp/context_run.log</pre> Here the dynamically generated ConTeXt source file is expected to be found in the <code><path-to- aligndocument-root>/tex/spool</code> directory. Now within your application, you can invoke this shell script (in this case using PHP): <pre> $cmd ="leftbin/proccontext.sh $input_filename" style; $last_line ="background-color:#EEEEEEsystem($cmd, $ret_val);"! Mac OS X, PowerPC</pre> | osxAnd the output will once again be found in <code><path-to-document-ppcroot>/tex/spool</code>.| Mojca Miklavec|==Arch Linux==|There’s a [https://aur.archlinux.org/packages/context-minimals- align="left"git PKGBUILD] in! Mac OS Xthe AUR, Universal Binariesprovided by Aditya [https://github.com/adityam/context-pkgbuild].| osx-universalInstall it using your favorite AUR frontend, e.g.| Mojca Miklavec|<pre>|yaourt - align="left" style="backgroundS context-minimals-color:#EEEEEE;"git! FreeBSD</pre>| freebsd| Yue WangThis will get you a fresh, Diego Depaoli| we consider renaming it up-to freebsd-inteldate Context tree in|<tt>/opt/context- alignminimals</tt>. == The funtoo way =="left"! SolarisIf you are using [http://funtoo.org funtoo] there are ebuilds that will make an installation as easy as installing any other package from portage. Take a look at the [[ConTeXt Standalone Funtoo]] Howto. This might also work for [http://www.gentoo.org gentoo], Intelbut is untested right now. == Proxy settings ==| solaris-intel| Michael KraußThe installation script uses <code>rsync</code> to fetch the required files. So, if you are behind a proxy server, you need to tell the details to rsync. The easiest way to set this is to set <code>RSYNC_PROXY</code> variable in the terminal or your startup script (<code>.bashrc</code> or the corresponding file for your shell). Replace username, password, proxyhost and proxyport with the correct information||- align export RSYNC_PROXY="left" style="background-colorusername:password@proxyhost:#EEEEEE;"proxyport ! SolarisSometimes, when behind a firewall, port 873 may be closed for outgoing TCP connections. If port 22 is open for ssh connections, Sparca trick that can be used is to connect to a computer located somewhere outside of the firewall and to tunnel port 873 (using the program <code>nc</code>).| solaris-sparc| Arthur Reutenauer| outdated|} export RSYNC_CONNECT_PROG='ssh tunnelhost nc %H 873'
Other platforms can be added where <code>tunnelhost</code> is the machine outside of the firewall on request provided that which you are willing to keep sending us updates with recent versions of binarieshave <code>ssh</code> access. Please write to the ntg-context mailing listOf course, this machine must have <code>nc</code> and port 873 open for outgoing TCP connections.
= Installation = Usage ==
== Prerequisites ==ConTeXt suite works in a non-interfering manner because it does not put anything in your <code>$PATH</code> and does not set any system variables. This in turn means that in order to use it, you need to do some initialization. An intialization script called <code>setuptex</code> is provided in <code>installation-dir/tex/</code>.
You need to have two packages preinstalled:* rsync* ruby (at least 1.8)=== Terminal/Command line ===
== First Installation ==To run context from a terminal, source <code>setuptex</code>:
'''Please note that the location or name of that simple source /installation script may change!''' ''(It's a really stupid one, one could also call it a prototype.)''-dir/tex/setuptex
The needed files are under:* http://minimals.contextgarden.net/setup/Well, to be honest, all you need to run it on linux/mac is this script (the rest of files will be downloaded autematically):* http://minimals.contextgarden.net/setup/linux/first-setup.sh (<code>rsync -av rsync://contextgarden.net/minimals/setup/linux/first-setup.sh .</code>)Take a look at it, modify it if needed and run it. On Windows you can either take that command-line version from the zip or* [http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe Vyatcheslav's Windows Installer] with a GUI=== Exclusive usage ===
It will download about 200 MBIf you always use ConTeXt suite and '''never''' use LaTeX or plain TeX provided by another TeX distribution, you can add the following line to the startup script of your shell (For bash, the startup script is <code>$HOME/.bashrc</code>; for zsh it is <code>HOME/.zshrc</code>).
== Running == source /installation-dir/tex/setuptex
Just like for the old minimals, you have to add a command likeThen <code>setuptex</code> will always be sourced in your terminal.
source /opt/context/tex/setuptex /opt/context/tex === Integrating with an editor ===
The easiest way to run ConTeXt from an editor is to open a terminal, source {{code|setuptex}} in the terminal, and then open your system startupeditor '''from the same terminal'''. Another option is to add {{code|/installation-dir/tex/texmf-<platform>/bin}} to the {{code|$PATH}} that the editor searches. The details vary depending on the editor. See [[Text Editors]] for instructions on integrating ConTeXt with various editors.
== Updating ==
For nowupdating the ConTeXt suite, the main recipe to first update is to run <code>first-setup.sh</code> again, then run it. A command similar to You couldalso create an alias or a little script “ctx-update”with the following example contents:<pre>cd /opt/contextrsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .sh ./first-setup.sh --modules=all</pre> To update retain currently-installed modules:<codepre>ctxtools sh ./first-setup.sh -updatecontext-keep</codepre> might be provided in  == Uninstalling == ConTeXt suite does not touch anything outside its installation folder. So to uninstall it, you can simply remove the futureinstallation folder.
= TODO = Remaking formats ==
(this will move Normally, the update script should create the formats for you. If for some reason you need to a better place)recreate the formats, you can do the following:
== Minor notes ==* For making MKII format.
* document environmental variables/different modes of installation mktexlsr* split LM from rest of the fonts* texexec --make --all switch to get all modules and all fonts* add font metric files from cont-fnt.zip* add Charis SIL* fix mvs* add the lua configuration file
== Other notes ==* For making XeTeX format
This is a description of how the first installation and any subsequent updates should work (or how it would be nice if they worked that way): mktexlsr texexec --make --xtx --all
We need to:* create files <code>README INSTALL</code>* create a file <code>minimals.lua</code> (or some other self-explanatory name):** <b>rsync location</b> (default: <code>rsync://contextgarden.net/minimals</code>, could be anything)** ??? <b>installation location</b> (default is simply the current location (<code>pwd</code>))** <b>engines</b> (default: all - pdftex, xetex, luatex, metapost)** <b>formats</b> (default: english + dutch context for all the installed engines, metapost, metafun; optional: other interfaces, plain pdftex, xetex)** <b>fonts</b> (need to be reorganized/improved anyway, perhaps a list of fonts should be fetched)** once in the future: <b>supported font encodings for pdftex</b> (default: texnansi, ec, optional: greek, t5, t2a, t2b, t2c, ...)** <b>third party modules</b> (list needs to be fetched form the garden, default)** <b>context version</b> (default: current, other options: beta, highly-experimental (for "Hans-and-Taco-only"), specific-date <font color="red">in the case of a fixed version issue a warning at next update</font>)** <b>interactive flag</b>: shoud the script ask for changes interactively again or should it simply reaspect & use them (defaut: interactive for the first time, after that automatic)For making MKIV format
* improve <code>first mtxrun -setup(.sh, .bat)</code> (or with some other self-explanatory name), which:generate** checks if rsync exists (if not, an error is issued, saying <code>please install rsync first</code>)** checks for perl and ruby and issues a similar error/warning (in fact, we can still proceed to the next step and download things even if perl & ruby are not installed, but that doesn't context --make much sense)** does rsync to installation files themselves (in case mtx-update has changed in the mean time)** reads in <code>minimals.lua</code> (which engines, formats, fonts, modules to download ...) if interactive is set to true, ask for default settings again, otherwise respect those settings and continue** asks for installation location** creates (or updates) the file with settings (if interactive)** fetch files with rsync** create formats** suggest what to put into <code>.bash_profile</code> (or equivalent locations) to have context initilized automatically
* add unzip for windows= Windows =
= Binaries =If you want to use ConTeXt suite alongside MikTeX/TeXLive (needed if you also run LaTeX), follow the command-line installation method.
Binaries are mostly taken from TeX Live 2007, but new ones are used whenever available.== Installation ==
== Origin of the binaries = Command line method ===Download [http://minimals.contextgarden.net/setup/context-setup-mswin.zip context-setup-mswin.zip] or [http://minimals.contextgarden.net/setup/context-setup-win64.zip context-setup-win64.zip], and unzip to a directory where you want to install ConTeXt. It is recommended that you choose a directory that does not have a space in its full path. Then open <code>cmd.exe</code>, go to the installation directory and run
* TeX Live 2007 for most binaries and most platforms* Akira's {{note|You almost certainly want to [[http://wwwInstallation|install the newer ConTeXt LMTX]].fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] This guide is for windows binaries (including metapostinstalling the older, LuaTeX, pdfTeX and XeTeX) rarely- automatic* for pdfTeX, XeTeX, LuaTeX and metapost for other platforms added manually whenever possible (nice if it could be automated, but no idea how)* texmf/scripts/context/stubs from ConTeXtupdated MkIV distribution.}}
== List of included binaries == first-setup.bat
=== Core binaries ===''We will do our best to keep them as up to date as possible. If they're still not up to date for your platform and you know where to find them, please notify usThis takes a long time, we will fix that. We might provide XeTeX and LuaTeX in separate packages (on TODO list)so go have a coffee.''* pdftex* luatex* texlua, texluac ''(only symlinks on "unix" platforms, in Akira's distribution luatex.dll is used + 3 small executables)''* xetex, xdvipdfmx* ''metapost''** dvitomp** makempx** mpost** mpto ''(can this be replaced by ConTeXt's variant in future?)''
=== Other binaries ===* ''kpathsea''** kpseaccess** kpsestat** kpsewhich* ''different tools''** bibtex** dvipos** mktexlsr** pdftosrcBy default, the suite installs ConTeXt beta. If you want the stable version of ConTeXt, you can use
first-setup.bat --context=latest By default, the suite does ''not'' install modules and other third party content. If you want the modules (and have the bandwidth), you can use  first-setup.bat --modules=all  If the above installation instructions don't seem to answer your questions, see page [[Windows_Installation:_ConTeXt_Suite_with_SciTe| Windows Installation: ConTeXt Suite with SciTe]] for more detailed information. = Stubs & other ConTeXt-related =Proxy settings ==* everything from The installation script uses <code>texmfrsync</scriptscode> to fetch the required files. So, if you are behind a proxy server, you need to tell the details to rsync. The easiest way to set this is to set <code>RSYNC_PROXY</contextcode> variable in the terminal as (replace username, password, proxyhost and proxyport with the correct information)  set RSYNC_PROXY=username:password@proxyhost:proxyport or set the variable permanently as a Windows environment variable. Sometimes, when behind a firewall, port 873 may be closed for outgoing TCP connections. If port 22 is open for ssh connections, a trick that can be used is to connect to a computer located somewhere outside of the firewall and to tunnel port 873 (using the program <code>nc</code>).  export RSYNC_CONNECT_PROG='ssh tunnelhost nc %H 873' where <code>tunnelhost</code> is the machine outside of the firewall on which you have <code>ssh</stubscode> access. Of course, this machine must have <code>nc</code>and port 873 open for outgoing TCP connections. == Usage == * luatoolsBefore running ConTeXt, mtxrunyou need to run <code>setuptex.bat</code> which is provided in <code>installation-dir\tex\</code>. This can be done by typing installation-dir\tex\setuptex.bat * texmfstart ''on cmd.exe before you run ConTeXt. To avoid always having to type this, you can create a shortcut to cmd.exe and edit the command line to read (take assuming you installed the suite in <code>C:\Programs</code>; otherwise replace <code>C:\Programs\</code> with your installation directory)  C:\WINDOWS\System32\cmd.exe /k C:\Programs\context\tex\setuptex.bat This starts up a new command shell with the environment pre-loaded. Within the new shell you can just type <code>context</code> to run ConTeXt. E.g.  C:\> context --version to check that you are running the latest version you think you're running. === Use ConTeXt with Cygwin ===After installing the ConTeXt suite, you can run it under Cygwin. With Cygwin, you may use gmake and other Unix tools for your automated workflow. # Run <code>setuptex.bat</code> in DOS command prompt# In the same DOS prompt, enter Cygwin by Hans automatically: doesn't happen yetrunning <code>cygwin.bat</code> (in your Cygwin installation directory)''# Under Cygwin prompt, run <code> context.cmd test.tex </code>. Note that the <code>.cmd</code> extension is needed under Cygwin. == Updating ==
=== FontIf you used the command line method, just run <code>first-related ===''Might be removed or moved setup.bat</code> again to a special category of "font-related binaries", and only available as an additional packageupdate the suite.''* ''only left for testing** afm2pl** afm2tfm** ttf2afm* Knuth's** pltotf** tftopl** vftovp** vptovf
=== Might-be-removed-soon ===
* dvipdfmx
* dvips
= ConTeXt = Uninstallation ==
The Minimals provide several versions of ConTeXt:* stable* beta (suggested for living-on-If you used thecommand-edge ones; will default to stable if not available)* alpha (rarely used; will use beta if not available)* experimental (only for testing - not meant for general use)* date-based ones (currenty only a few versions available - planning to improve)You line installer, you can use --context=XXXjust delete the installation directory to get uninstall the desired versionsuite.
= Fonts =
Fonts are split in three packages:* used in both pdfTeX and XeTeX/LuaTeX: mostly math (pfb, map, enc, tfm)* used in pdfTeX only: pfb, map, enc, tfm (those that are not present in "common")* used in XeTeX/LuaTeX only: otf== Troubleshooting ==
Currently we have * rsync sometimes has problems with paths with uppercase letters (the latest version, in sync with CTANlike <code>c:\Temp</code> or <code>C:\Documents and Settings</code>):. Installing into all-lowercase paths without spaces sometimes helps.* Latin ModernDirectory-name length may also have an effect, due to Windows's 8.3 filename conventions. An indicator is if running "texexec --lua" on a file produces missing-file warnings containing Windows-created 8-character directory names, such as "C:\CONTEX~1\tex", where your ConTeXt directory is really "C:\context_minimals\tex". Be conservative and choose a short name like "C:\ctm\tex". Also, this may even work when an 8-character-or-less directory name like "C:\ctexmin\tex" doesn't.* Antykwa Torunska* Iwona & Kurier* TeX GyreIf you're behind firewall and rsync times out, you need to open port 873 for outgoing TCP connections.* amsIf you update luaTeX occasionally you may get something like
Other fonts to be added<code>engine mismatch (luv:* TODOThis is LuaTeX, Version beta-<version>-<date1> (TeX Live 2013/dev)(rev <number1>) <> bin: This is LuaTeX, Version beta-<version>-<date1> (TeX Live 2012/W32TeX)(rev <number2>)), forcing remake</code>
It is possible In which case your format will be remade every time you compile a file. In /texmf-mswin make sure that we'll provide a really minimal package with LM only, luatex.exe and additional three packages (common, for new TeX, for old TeX) with all texlua.exe have the same date; then also delete luatex.dll. This usually solves the other fontsproblem.
* fonts/data/<foundry>/<family|distro>/*= Installing third party modules =
* lm The ConTeXt suite only comes with Taco's [[Bibliography|t-bib]] module. If you want to install [http: always* gyre : all of them in one set//modules.contextgarden.net/ a new module], say Wolfgang's [[Letter|t-letter]] module, optionalyou can use* rest : optional first-setup.sh --modules="t-letter"
= ThirdIf you want to install more than one extra module, you can separate them by commas. So, to install the t-letter and t-mathsets module, do sh ./first-setup.sh --party modules & Other ="t-letter,t-mathsets"
* TODOIf you want to install all extra modules at once, do* also cont sh ./first-* from Hans's pagesetup.sh --modules=all
= Documentation Reverting to an older installation =
TODOIf, for some reason, you want to revert to an older installation, you can do that by
sh ./first-setup.sh --context= Implementation =date
See where <code>date</code> is the date of one of the stable releases of ConTeXt. The complete list of old releases that are available is [[New ConTeXt Minimals (Implementation)|implementation]http://minimals.contextgarden.net/current/context/ here] page.
= Hans's requests =
* reorganize fonts into fonts/data/e-foundry/texgyre/<everything>* list directory contents* list of files to fetch an old ConTeXt version= Moving the installation tree around =
= Who are “we”? =According to this post, http://archive.contextgarden.net/message/20101129.144331.d721372f.en.html it's safe to move the installation tree across directory or machines (say you don't have broadband access). You just have to clean and regenerate the cache (./tex/texmf-cache/luatex-cache) with mtxrun --generate
''Ein Teil von jener Kraft, / Die stets das Böse will, und stets das Gute schafft.'' <code>:-)= Notes =<references/code>
{{Installation navbox}}
[[Category:Installation]]
[[Category:Standalone]]

Navigation menu