Changes

Jump to navigation Jump to search
5,472 bytes added ,  05:15, 11 April 2023
Tell users to install LMTX instead
< {{note|You almost certainly want to [[Installation]] | [[ConTeXt Minimals/FAQ|Minimals/FAQ]] | '''[[ConTeXt Minimals/Tree|Minimals/Tree]]''' | [[ConTeXt Minimals/Structure|Minimals/Structure]] | [[ConTeXt Minimals/Implementation|Minimals/Implementation]] | [[ConTeXt Minimals/TODO|Minimals/TODO]] | [[ConTeXt Minimals/Contents|Minimals/Contents]] | [[install the newer ConTeXt Minimals/TeX Live|Minimals/TeX LiveLMTX]] >. This guide is for installing the older, rarely-updated MkIV distribution.}}
The '''ConTeXt Minimal''' is a complete, up-to-date ConTeXt distribution which can be upgraded efficiently. It can be used to install either the stable or the beta version of ConTeXt. It can also be used in parallel with existing TeX installtions such as MikTeX, TeXLive, or older minimal installation. It is aimed towards ConTeXt users, so it does not include LaTeX specific packages and binaries.
{{Note | The '''ConTeXt develops at suite''' is a fast pacecomplete, and sometimes beta releases have serious bugs. ConTeXt minimals allow you up-to test the latest -date ConTeXt release without having to worry if an upgrade will mess an critical projectdistribution that can be upgraded efficiently. You It can have two (or multiple) also be used in parallel ConTeXt minimalswith existing TeX installations such as MikTeX, TeXLive, and freeze one for your critical projects, so forth. The suite does not include LaTeX packages and use the other one for experimentingbinaries.}}
Sometimes ConTeXt beta releases have issues. The ConTeXt suite allows you to test the latest ConTeXt release without worrying whether upgrading will corrupt a critical project. Multiple ConTeXt suite installations are possible. This allows, for example, a stable version and a beta version to run in parallel on the same computer.
 
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=1}}
! Platform
! Short name
! Binaries by
! Notes
|- align="left" style="background-color:#EEEEEE;"
! Windows
| mswin
| Akira Kakuto (from [http://w32tex.org W32TeX)]|- align="left"! Windows/CygWin| 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
| Hans Hagen| compiled with glibc 2.3.6Debian 8|- align="left" style="background-color:#EEEEEE;"
! Linux, 64-bit
| linux-64
| Peter MünsterDebian 8|- align="left" style="background-color:#EEEEEE;"! Linux, ARM (low end.)| might be renamed to linux-amd64arm| 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"
! LinuxFreeBSD, PowerPC| linux32-ppcbit| Piotr Kopszakfreebsd
|
|- align="left" style="background-color:#EEEEEE;"
! Mac OS XFreeBSD, Intel (3264-bit)| osxfreebsd-intel| Mojca Miklavecamd64
|
|- align="left"
! Mac OS XOpenBSD 6.4, Intel (6432-bit)| osx-64| Mojca Miklavecopenbsd6.4
|
|- align="left" style="background-color:#EEEEEE;"
! Mac OS XOpenBSD 6.4, PowerPC64-bit| osxopenbsd6.4-ppc| Mojca Miklavecamd64
|
|- align="left""
! Mac OS X, Universal Binaries
| osx-universal
| Mojca Miklavec
| not used
|- align="left" style="background-color:#EEEEEE;"
! FreeBSD
| freebsd
| Yue Wang, Diego Depaoli
| might be renamed to freebsd-intel
|- align="left"
! FreeBSDOpenBSD 6.5, 6432-bit| freebsd-amd64| Michael Kraußopenbsd6.5|
|- align="left" style="background-color:#EEEEEE;"
! kFreeBSD| kfreebsd-i386| Alan Braslau| FreeBSD + glibc (Debian)|- align="left" style="background-color:#EEEEEE;"! kFreeBSDOpenBSD 6.5, 64-bit| kfreebsdopenbsd6.5-amd64| Alan Braslau| FreeBSD + glibc (Debian)
|- align="left"
! Solaris, Intel
| sunossolaris-intel| Michael Krauß| not maintainedSolaris 10 on [http://www.opencsw.org/about/ OpenCSW]
|- align="left" style="background-color:#EEEEEE;"
! Solaris, Sparc
| sun| Vladimir Volovichsolaris-sparc| compiled Solaris 10 on solaris 8, not maintaned[http://www.opencsw.org/about/ OpenCSW]
|}
We need volunteers for providing * 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 for other platforms. are compiled but are missing in the setup folder ATM (2019-07) If you want to support a new platform, please write to the [[ConTeXt Mailing Lists]]
== Dependencies ==
* [http://www.ruby-lang.org Ruby] 1.8 or newer (used for MKII)* Rsync (The windows binary of rsync is distributed within the minimalssuite)  The following programs are not required for running ConTeXt, but their installation adds additional functionality. * curl : for including remote content* ghostscript : for converting PostScript images to PDF* graphicsmagick (convert): for converting GIF and TIFF images* inkscape : for converting SVG and compressed SVG* mupdf (mudraw) : for converting PDF to PNG (used for ePub covers)* pstoedit : for converting PostScript to MetaPost outlines* zint : for providing barcodes* zip or 7zip : for EPUB generation
== Disc space required ==
ConTeXt macro files are small (less than 10MB), but the minimals suite comes with various free fonts which considerably increase the size of the distribution (to around 200MB).
== Installation tree Multiple instances of the installation ==Browse Please note from the [http://minimalsstart that we recommend installing a complete ConTeXt installation for each project in a production environment.contextgardenThe 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.net installation 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.
= Simple instructions for installing on Unix like system (Linux/Mac OSX/FreeBSD/Solaris) =So as not to get carried away under this approach, one can eventually group projects by vintage, period or season, according to cycles of productivity.
If you do not use LaTeX and want to install the minimals in your home directory, follow these instructions. Otherwise, read the more detailed instructions in the next section.== Standalone ==
* Open a new terminal[[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. You're in your home folder (<code>~</code>) nowcontextgarden. net installation tree]
* Type the boxed sections. End every line with [Return]. Leave out the <code>$</code>, that's your shell prompt!
* Create the context folder and change into it:
$ mkdir context $ cd context= Unix-like platforms (Linux/MacOS X/FreeBSD/Solaris) =
* Download <code>first-setup=== (MacOS X) Using the Command line: Terminal.sh</code>:app ===
$ rsync 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 then executed. The needed Terminal.app can be found in the Utilities-av rsync://contextgarden.net/minimals/setup/firstfolder of the Applications-setup.sh Folder.
* Run it Once you have started Terminal, all you have to do is enter a command and go make tea:press the RETURN-key and the command will be executed.
$ sh ./first-setup.sh== Single user installation ==
* Run the ''path setup'':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 ...
$ source .execute (Linux/texFreeBSD/setuptexSolaris):
{{note|You almost certainly want to [[Installation|install the newer ConTeXt should work now (iLMTX]].e. at this moment in this terminal); you need to run This guide is for installing the path setup with every new terminal window; to automate thatolder, you can add the <tt>setuptex</tt> command to your "profile", that's a script that gets called with every new terminal. If you are using ''bash'' you can dorarely-updated MkIV distribution.}}
<pre> mkdir ~/context $ cd~/context $ echo 'wget http://minimals. ~contextgarden.net/contextsetup/texfirst-setup.sh</setuptex' >pre> .bash_profile
For other shells, replace or (MacOS):<codepre> mkdir ~/context cd ~/context rsync -av rsync://contextgarden.bash_profilenet/minimals/setup/first-setup.sh .</codepre>Since the Mac does not have `wget` pre-installed. Now run the `first-setup.sh` script:<pre> by # Install the corresponding file for your shelllatest 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  sh ./first-setup.sh --modules=all</pre> == System-wide installation ==
ThatA system wide installation is 's it''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, or root (sudo) privileges on other unix-like systems.
= Detailed information * on installation and Linux you can use <code>/opt/context</code>* on Unix-like platforms (Linux/MacOS Xyou can use <code>/Applications/FreeBSDConTeXt</Solaris) =code>
Note that, at present, while ''using'' MkIV, you need to have write permissions for the <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= Single user installation ==$CONTEXT_HOME/tex/texmf-cache</code>* <code>chmod -R g+w $TEXMFCACHE</code>
Select a folder where you {{note|You almost certainly want to [[Installation|install the newer ConTeXtLMTX]]. We recommend that you can use your <code>$HOME/context</code> directory. Create this folder. Then download [http://minimals.contextgarden.net/setup/first-setup.sh firstThis guide is for installing the older, rarely-setupupdated MkIV distribution.sh] and place it in <code>$HOME/context</code> directory. Open a terminal, then:}}
<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 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
Then make <code> sh ./first-setup.sh</code> executable and run it to download the whole distribution and make formats:--modules=all  # change ownership to real rather than effective id chmod +x firstchown -R `id -r -u`:`id -r -setupg` .sh sh .</first-setup.shpre>
This takes a long time, so go have a coffee.===Cache===
By defaultTo customize the cache directory and other options, see the minimals installs ConTeXt beta[[Custom_Configuration|Custom Configuration]] page. If you want the stable version of ConTeXt, you can use
sh ./first-setup.sh --context=current==Font Directory===
== System-wide installation ==Add the OSFONTDIR into ./tex/setuptex. Go to under the line:
A system wide installation is only recommeded # TODO: we could set OSFONTDIR on Mac for users who are comfortable with the command line. Only the location of installing ConTeXt is different for a system wide installation.In Linux you can use <code>/opt/context</code>; on MacOS X you can use <code>/Applications/ConTeXt</code>example
Note that, at present, while (if you don''using'' MkIV, you need to t have write permissions<ref>Actuallythe line above, you only need write permission for <code>$TEXMFCACHE</code>.</ref> in the installation directory.<ref>This effectively means that only one user will be able go to generate the formats</ref> So, if you are installing end of the minimals in <code>/opt/context</code> or <code>/Applications/ConTeXt</code>, runfile) and add there:
chown `whoami` -R export OSFONTDIR="/optusr/context local/share/fonts;$HOME/.fonts"
or For more information: [[Fonts in LuaTeX]]
chown `whoami` -R /Applications/ConTeXt== Apache webserver installation ==
(Another common use case is invoking ConTeXt from within a web application. Because web directories are often self-contained, 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>`whoami`www-data:www-data</code> outputs your this prevents a web application from invoking a ConTeXt installation done using either the single-user name, you can type that directly, of courseor system-wide method listed above.)
In order this case the solution is to install ConTeXt within the minimalswebsite tree, open a terminal, go to and ideally in the installation directory and download [http://minimals.contextgarden.net/setup/firstpublic sub-setuptree.sh first The public sub-setuptree is commonly the home directory for the application and relative pathnames are resolved as if immediately below it.sh]:
$ rsync For example, in the case of the PHP web framework Laravel, ConTeXt can be installed alongside other assets in the <path-av rsync:to-document-root>/public/contextgarden.net/minimals/setup/first-setup.sh .context directory:
Then run that script <pre> cd <path-to download the whole distribution and make formats-document-root>/public mkdir context cd context 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 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  sh ./first-setup.sh--modules=all</pre> 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):
This takes a long time, so go have a coffee.<pre>$ cd <path-to-document-root>/public$ sudo chmod -R www-data:www-data context</pre>
By defaultNow as part of your application's invocation of ConTeXt, you will need to set up the minimals installs ConTeXt betashell environment. If you want This is easily done by creating a simple BASH shell script, also to be installed in the stable version public part of ConTeXt, you can usethe document tree:
sh .<pre> #!/first-setup.sh --context=currentusr/bin/env bash
# # proccontext.sh # # To be installed in <path-to-document-root>/public/bin  . <path-to-document-root>/public/context/tex/setuptex <path-to-document-root>/public/context/tex  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-document-root>/tex/spool</code> directory. Now within your application, you can invoke this shell script (in this case using PHP): <pre> $cmd ="bin/proccontext.sh $input_filename"; $last_line ==Cache===system($cmd, $ret_val);</pre> And the output will once again be found in <code><path-to-document-root>/tex/spool</code>.
Normaly you do not want to allow access in e.g. /opt. but you like to allow it in /var==Arch Linux==There’s a [https:/cache/*aur. In ConTeXt you have two ways of setting up the directory for the cache:# Uncomment the TEXMFCACHE setting in archlinux.org/texpackages/setuptex and change the value to the directory you want orcontext-minimals-git PKGBUILD] in# Change in the file .AUR, provided by Aditya [https:/tex/texmfgithub.com/web2cadityam/texmfcnfcontext-pkgbuild].Install it using your favorite AUR frontend, e.lua the value of TEXMFCACHE to the directory you wantg.
First ConTeXt looks for the environment variable TEXMFCACHE. If this variable does not exist ConTeXt looks for the value of TEXMFCACHE inside the file texmfcnf.lua. <pre>yaourt -S context-minimals-git</pre>
My personal suggestion is This will get you a fresh, up-to edit the setuptex-date Context tree in<tt>/opt/context-minimals</tt>.
== The funtoo way ==
If 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 Minimals Standalone Funtoo]] Howto. This might also work for [http://www.gentoo.org gentoo], but is untested right now.
== Proxy settings ==
export RSYNC_PROXY=username:password@proxyhost:proxyport
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== Usage =='ssh tunnelhost nc %H 873'
ConTeXt minimals works in a non-interfering manner because it does not put anything in your where <code>$PATHtunnelhost</code> and does not set any system variables. This in turn means that in order to use it, is the machine outside of the firewall on which you need to do some initialization. An intialization script called have <code>setuptexssh</code> is provided in access. Of course, this machine must have <code>installation-dir/tex/nc</code>and port 873 open for outgoing TCP connections.
If you run context from a terminal, source <code>setuptex</code> before running ConTeXt. This depends on the shell that you are using.== Usage ==
* '''bash''' users can 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 source it, you need to do some initialization. An intialization script called <code>setuptex</code> is provided in <code>installation-dir/tex/setuptex</code>.
* '''zsh''' users can use . === Terminal/installation-dir/tex/setuptexCommand line ===
* '''(t)csh''' users can use To run context from a terminal, source <code>setuptex</installation-dir/tex/setuptex.cshcode>:
If you do not know which shell you are using, open a terminal and type echo $SHELL source /installation-dir/tex/setuptex
=== Exclusive usage ===
The above method means that you always have to type <code>source /installation-dir/tex/setuptex</code> in a terminal before you can use typeset. If you always use ConTeXt minimals suite and '''never ''' use LaTeX or plain TeX provided by another TeX distribution, you can add the above intialization following line to the startup script of your shell. (For bash, this means the startup script is <code>$HOME/.bashrc</code>; for zsh, this means it is <code>$HOME/.zshrc</code>; for (t)csh, this means <code>$HOME/.cshrc</code> or <code>$HOME/.tcshrc</code>. Then, <code>setuptex</code> will always be sourced in your terminal.
== Integrating with an editor == source /installation-dir/tex/setuptex
If you run ConTeXt from an editor, you need to source Then <code>setuptex</code> will always be sourced in a terminal and then open your editor from the same terminal. I.e. if you run your editor from the shell.
Depending on how your === Integrating with an editor intializes, you may still need to source it in order to run ConTeXt directly from your editor, In theory, it is sufficient to add <code>/installation-dir/tex/texmf-<platform>/bin</code> to your PATH in order to use the minimals. You can try to add this to the paths that your editor searches.===
For information about configuring [http://smultronThe easiest way to run ConTeXt from an editor is to open a terminal, source {{code|setuptex}} in the terminal, and then open your editor '''from the same terminal'''.sourceforge.net Another option is to add {{code|/ Smultron] and [http:installation-dir/tex/www.uoregon.edutexmf-<platform>/~koch/texshop/obtainingbin}} to the {{code|$PATH}} that the editor searches.html TeXShop] (which are popular TeX editors The details vary depending on Mac) see the editor. See [[ConTeXt Minimals/Mac InstallationText Editors]]. If you don't mind investing a bit of money (abt eur 50), [http://macromates.com/ TextMate] for instructions on integrating ConTeXt with (the not yet officially released) [[ConTeXt Bundle for TextMate]] is an easy-to-install optionvarious editors.
== Updating ==
For updating the ConTeXt minimalssuite, just run <code>first-setup.sh</code> again. Or better: first update <code>first-setup.sh</code>, then run it. You could
also create an alias or a little script “ctx-update”
with the following example contents:
cd /opt/context
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --extrasmodules=all</pre> To update retain currently-installed modules:<pre>sh ./first-setup.sh --keep
</pre>
== Uninstalling ==
ConTeXt minimals suite does not touch anything outside its installation folder. So to uninstall it, you can simply remove the installation folder.
== Remaking formats ==
* For making MKIV format
mtxrun --selfupdate luatools --generate
context --make
= Installation and use on Windows =
If you want to use ConTeXt minimals suite alongside MikTeX/TeXLive (needed if you also run LaTeX), follow the command-line installation method. Otherwise, you can follow either the command line or GUI installation method.
== Installation ==
=== 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 {{note|You almost certainly want to [[Installation|install the newer ConTeXt LMTX]]. This guide is for installing the older, rarely-updated MkIV distribution.}}
first-setup.bat
This takes a long time, so go have a coffee.
By default, the minimals suite installs ConTeXt beta. If you want the stable version of ConTeXt, you can use
first-setup.bat --context=currentlatest
=== GUI Installer ===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
There is also a [http://minimals first-setup.contextgarden.net/setup/contextbat --installer/ContextMinimalInstall.exe GUI installer] made by Vyatcheslav Yatskovsky. Download and run the installer and it will ask you where to install the minimals, which distribution to use (stable or beta) and whether or not you want to make formats. modules=all
{{note| The GUI installer asks if you want to set environmental variables globally. Click this only if you do '''not''' use MikTeX or TeXLive and do '''not''' plan to use LaTeX}}
You should also If the above installation instructions don't seem to answer your questions, see the page [[httpWindows_Installation:_ConTeXt_Suite_with_SciTe| Windows Installation://meeting.contextgarden.net/2008/talks/2008-08-21-vyatcheslav-win-installer/windows_installer.pdf slidesConTeXt Suite with SciTe] giving details about the GUI installer] for more detailed information.
== Proxy settings ==
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</code> access. Of course, this machine must have <code>nc</code> and port 873 open for outgoing TCP connections.
== Usage ==
If you used the GUI installer and said yes to setting the evironmental variables globally, then you can run ConTeXt from anywhere. Otherwise, before Before running ConTeXt, you 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
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 (assuming you installed the minimals 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 version you think you're running.
=== Use ConTeXt with Cygwin ===
After installing the ConTeXt minimalssuite, 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
== Updating ==
If you used the command line method, just run <code>first-setup.bat</code> again to update the minimals. If you have third party modules installed, you should use first-setup.bat --keepto upgrade. See [[ConTeXt_Minimals#Installint_third_party_modules| Installing third party modules]] for detailssuite.
If you used the GUI installer, just run the installer again.
== Uninstallation ==
If you used the command-line installer, you can just delete the installation directory to uninstall the minimals. If you used the GUI installer, you can use standard windows tools for uninstallationsuite.
* Directory-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.
* If you're behind firewall and rsync times out, you need to open port 873 for outgoing TCP connections.
* If you update luaTeX occasionally you may get something like
 
<code>engine mismatch (luv: This 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>
 
In which case your format will be remade every time you compile a file. In /texmf-mswin make sure that luatex.exe and texlua.exe have the same date; then also delete luatex.dll. This usually solves the problem.
= Installing third party modules =
The ConTeXt Minimals suite only come comes with Taco's [[Bibliography|t-bib]] module. If you want to install [http://modules.contextgarden.net/ a new module], say Wolfgang's [[Letter|t-letter]] module, you can use first-setup.sh --extrasmodules="t-letter"
If 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 --extrasmodules="t-letter,t-mathsets"
If you want to install all extra modules at once, do
sh ./first-setup.sh --extrasmodules=all
= Reverting to an older installation =
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 [http://minimals.contextgarden.net/current/context/ here].
 
 
= Moving the installation tree around =
 
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
= Notes =
<references/>
 
{{Installation navbox}}
[[Category:Installation]]
[[Category:MinimalsStandalone]]

Navigation menu