Changes

Jump to navigation Jump to search
2,587 bytes added ,  07:04, 2 January 2020
m
→‎Disc space required: Add missing parenthesis
{{Installation navbox}}
 
The '''ConTeXt suite''' is a complete, up-to-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. The suite does not include LaTeX packages and binaries.
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. (ConTeXt on TeXlive can be kept somewhat more current using the http://tlcontrib.metatex.org repository.) 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, Mojca Miklavec, Alan Braslau| compiled with glibc 2.3.6Debian 8|- align="left" style="background-color:#EEEEEE;"
! Linux, 64-bit
| linux-64
| Alan Braslau||- align="left"! Linux, PowerPC| linux-ppc| Piotr Kopszak|Debian 8
|- align="left" style="background-color:#EEEEEE;"
! Linux, Arm ARM (low end.)| linux-armelarm| Boris Veytsman| in progressRaspbian 8
|- align="left"
! Mac OS XLinux, Intel (32-bit)musl| osxlinuxmusl-intel| Richard Koch, Mojca Miklavec64|Alpine
|- align="left" style="background-color:#EEEEEE;"
! Mac OS X, Intel (64-bit)
| osx-64
| Richard Koch, Mojca Miklavec|Mac OS X 10.6
|- align="left"
! Mac OS XFreeBSD, PowerPC| osx32-ppcbit| Richard Koch, Mojca Miklavecfreebsd
|
|- align="left" style="background-color:#EEEEEE;"
! Mac OS XFreeBSD, Universal Binaries64-bit| osxfreebsd-universal| Richard Koch, Mojca Miklavecamd64
|
|- align="left"
! FreeBSDOpenBSD 6.4, 32-bit| freebsd| Alan Braslauopenbsd6.4
|
|- align="left" style="background-color:#EEEEEE;"
! FreeBSDOpenBSD 6.4, 64-bit| freebsdopenbsd6.4-amd64| Alan Braslau|
|- align="left"
! kFreeBSD| kfreebsdOpenBSD 6.5, 32-i386bit| Alan Braslauopenbsd6.5| 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
| solaris-intel
| Marco Patzer|Solaris 10 on [http://www.opencsw.org/about/ OpenCSW]
|- align="left" style="background-color:#EEEEEE;"
! Solaris, Sparc
| solaris-sparc
| Mojca Miklavec
| Solaris 10 on [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 suite)
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
* curl : for including remote content
* zip or 7zip : for EPUB generation
== 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 around 200MB). == 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. 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.
== Standalone ==
== Single user installation ==
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: <pre> 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] and place it in <code>$HOMEcall: # --modules=all # Install all third-party modules # --context=current # Install latest stable version # --engine=luatex # Install only MkIV, leave out MkII # # This shrinks the install from 270 MB to 200 MB  sh ./contextfirst-setup.sh --modules=all</codepre> directory. Open a terminal, then: == System-wide installation ==
cd contextA system wide installation is recommended for users who are comfortable with the command line. Only the location of installing ConTeXt is different for a system wide installation.
Then make * on Linux you can use <code>first-setup.sh/opt/context</code> executable and run it to download the whole distribution and make formats: chmod +x first-setup.sh sh .* on MacOS X you can use <code>/Applications/ConTeXt</first-setup.shcode>
This takes a long timeNote that, at present, while ''using'' MkIV, so go you need to have a coffeewrite 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:
By default, the suite installs ConTeXt beta. If you want the stable version of ConTeXt, you can use* <code>CONTEXT_HOME=/opt/context</code>* <code>TEXMFCACHE=$CONTEXT_HOME/tex/texmf-cache</code>* <code>chmod -R g+w $TEXMFCACHE</code>
sh <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 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=current # Install latest stable version # --engine=luatex # Install only MkIV, leave out MkII # # This shrinks the install from 270 MB to 200 MB
By default, the suite does ''not'' install modules and other third party content sh ./first-setup. If you want the sh --modules (and have the bandwidth), you can use=all
sh ./first # change ownership to real rather than effective id chown -R `id -r -setup.sh u`:`id -r -modules=allg` .</pre>
Installing mkiv only reduces the size of the installation (including all the modules) from about 270 to 200MB . Use===Cache===
sh To customize the cache directory and other options, see the [[Custom_Configuration|Custom Configuration]] page./first-setup.sh --modules=all --engine=luatex
== System-wide installation =Font Directory===
A system wide installation is only recommended for users who are comfortable with Add the command lineOSFONTDIR into ./tex/setuptex. Only Go to under the location of installing ConTeXt is different for a system wide installation.line:
* # TODO: we could set OSFONTDIR on Linux you can use <code>/opt/context</code>* on MacOS X you can use <code>/Applications/ConTeXt</code>Mac for 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 suite in <code>/opt/context</code> or <code>/Applications/ConTeXt</code>, runfile) and add there:
<pre>chown `whoami` -R export OSFONTDIR="/optusr/context<local/pre>share/fonts;$HOME/.fonts"
or For more information: [[Fonts in LuaTeX]]
<pre>chown `whoami` -R /Applications/ConTeXt</pre>== Apache webserver installation ==
(<code>whoami</code> outputs your user name; you can type that directlyAnother common usecase is invoking ConTeXt from within a web application. Because web directories are often self-contained, and in the case of course. The backticks substitute the output Apache under Ubuntu, ownership of the <code>whoami</code> command as an argument directory and its contents are assigned to a user and group without a login shell, e.g., <code>chownwww-data: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 order this case the solution is to install ConTeXt within the suitewebsite 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
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.shcall: # --modules=all # Install all third-party modules # --context=current # Install latest stable version # --engine=luatex # Install only MkIV, leave out MkII # # This shrinks the install from 270 MB to 200 MB
This takes a long time, so go have a coffee sh ./first-setup.sh --modules=all</pre>
By defaultOnce installed, the suite installs ConTeXt beta. If you want need to ensure that the stable version of ConTeXt, permissions are correct for Apache to be able to access it (you can usewill either need <code>sudo</code> privileges or root access):
sh .<pre>$ cd <path-to-document-root>/firstpublic$ sudo chmod -setup.sh R www-data:www-data context=current</pre>
By defaultNow as part of your application's invocation of ConTeXt, you will need to set up the suite does ''not'' install modules and other third party contentshell environment. If you want This is easily done by creating a simple BASH shell script, also to be installed in the modules (and have public part of the bandwidth), you can usedocument tree:
sh .<pre> #!/first-setup.sh --modules=allusr/bin/env bash
===Cache=== # # proccontext.sh # # To be installed in <path-to-document-root>/public/bin
To customize the cache directory and other options, see the [[Custom_Configuration|Custom Configuration]] page .<path-to-document-root>/public/context/tex/setuptex <path-to-document-root>/public/context/tex
===Font Directory=== cd tex/spool context $1 > /tmp/context_run.log</pre>
Add Here the OSOFONTDIR into .dynamically generated ConTeXt source file is expected to be found in the <code><path-to-document-root>/tex/setuptexspool</code> directory. Go to under the line:
# TODONow within your application, you can invoke this shell script (in this case using PHP): 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:<pre>  export OSFONTDIR $cmd ="bin/usr/local/share/fontsproccontext.sh $input_filename"; $last_line = system($HOMEcmd, $ret_val);</.fonts"pre>
For more information: [[Fonts And the output will once again be found in LuaTeX]]<code><path-to-document-root>/tex/spool</code>.
==Arch Linux==
There’s a [httphttps://aur.archlinux.org/packages.php?ID=30398 /context-minimals-git PKGBUILD] in
the AUR, provided by Aditya [https://github.com/adityam/context-pkgbuild].
Install it using your favorite AUR frontend, e.g.
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>.
If you === Terminal/Command line === To run context from a terminal, source <code>setuptex</code> like so:
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 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.
Depending on how your === Integrating with an editor === The easiest way to run ConTeXt from an editor initializesis to open a terminal, you may still need to source {{code|setuptex}} in order to run ConTeXt directly from the terminal, and then open your editor'''from the same terminal'''. In theory, it Another option is sufficient to add {{code|/installation-dir/tex/texmf-<platform>/bin}} to your the {{code|$PATH}} in order to use that the suiteeditor searches. You can try to add this to The details vary depending on the paths that your editor searches. See [[Text Editors]] for instructions on integrating ConTeXt with various editors.  For information about configuring [http://smultron.sourceforge.net/ Smultron] and [http://www.uoregon.edu/~koch/texshop/obtaining.html TeXShop] (which are popular TeX editors on Mac) see [[ConTeXt Standalone/Mac Installation]].
For information about configuring [http://smultron.sourceforge.net/ Smultron] and [http://www.uoregon.edu/~koch/texshop/obtaining.html TeXShop] (which are popular TeX editors on Mac) see [[ConTeXt Standalone/Mac Installation]]. For a list of text editors with ConTeXt integration, see the article on [[Text Editors|text editors]].
== Updating ==
cd /opt/context
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --modules=all</pre> To update retain currently-installed modules:<pre>sh ./first-setup.sh --keep
</pre>
* For making MKIV format
mtxrun --selfupdate
mtxrun --generate
luatools --generate
context --make
== Updating ==
If you used the command line method, just run <code>first-setup.bat</code> again to update the suite. If you have third party modules installed, you should use first-setup.bat --keepto upgrade. See [[ConTeXt_Standalone#Installing_third_party_modules| Installing third party modules]] for details.
<references/>
{{Installation navbox}}
{{Getting started navbox}}
[[Category:Installation]]
[[Category:Standalone]]
15

edits

Navigation menu