Changes

Jump to navigation Jump to search
4,384 bytes removed ,  16:00, 20 November 2012
m
{{Installation navbox}}
<font color="red"><b>Warning</b><{{note|Releases of Debian (or any other distribution for that matter) usually contain way too old TeX distributions for ConTeXt MKIV (but should work fine for MKII). If you want to live on bleeding edge, consider using the packages from Debian/font>: unstable, [[ConTeXt Standalone]], or at least install the repositories have been changed on January 17th. Please update <code>/etc/apt/sources.list</code> appropriatelylatest version of [[TeX Live]] with [[TLContrib]] manually.}}
== Quickstart for Install the impatient == (all done as root) If you have the tetex packages, get rid of them:  apt-get --purge remove tetex-{extra,doc,bin,base} If you are running Debian unstable (a.k.a. sid), then the <code>context</code> package should already be visible (and the <code>context-nonfree</code> and <code>context-doc-nonfree</code> packages are in the nonfree repository). If you are not running unstable, simply add these lines to your <tt>/etc/apt/sources.list</tt>:  <nowiki> # for texlive deb http://people.debian.org/~preining/TeX/ tl2007/ deb-src http://people.debian.org/~preining/TeX/ tl2007/ # for lmodern deb http://people.debian.org/~preining/TeX/ lmodern/ deb-src http://people.debian.org/~preining/TeX/ lmodern/ # for context deb http://people.debian.org/~preining/TeX/ context/ deb-src http://people.debian.org/~preining/TeX/ context/</nowiki> It should work with ''etch'' as well, both on intel and ppc platform. With either choice, now install the packages:  apt-get update apt-get install texlive lmodern cm-super texlive-fonts-recommended \ context context-nonfree context-doc-nonfree Check that you're now using the new version:  ctxtools --contextversion Read on for the details. == Use TeXLive ConTeXt packages == The context packages depend on [http://www.tug.org/texlive TeXLive], so if you are using the Debian teTeX packages (e.g. see whether <tt>tetex-base</tt> is installed by doing <code>dpkg -l tetex-base</code>), it's time to change to TeXLive. You'll have to do so eventually since teTeX 3.0 will be the last upstream release of teTeX. If not now, when? If you are switching from teTeX, it's important to <b>purge</b>, not just remove the <tt>tetex-*</tt> packages before installing the TeXLive packages. Otherwise the teTeX configuration files, including those in <tt>/etc/texmf/texmf.d/</tt> and <tt>/etc/texmf/fmt.d/</tt>, will haunt the system like a ghost. To purge:  apt-get --purge remove tetex-{extra,doc,bin,base} The full directions for using TeXLive are at http://www.tug.org/texlive/debian.html or[[Debian TeXlive install]], though if you are brave you can just try:  apt-get update && apt-get install texlive Once you've installed the basic packages, you'll need a few extras:  apt-get install lmodern cm-super texlive-fonts-recommended == Check for shadowing formats and macros == These installation instructions describe a system-wide install. But individual users may have followed the old directions on this page and (sorry!) made a per-user ConTeXt installation; or as root you may have done a system-wide install in, for example, <tt>/usr/local/share/texmf</tt> or other directory that shadows <tt>/usr/share/texmf</tt>. In either case, the system-wide install from the packages won't be seen.  If individual users prefer to shadow the system-wide install and to run their downloaded versions, that's fine. But if they want to use the system-wide install (recommended except for those who are testing Hans's latest versions...), then there are two issues. The first issue is old format files. If a user has format files in <tt>~/.texmf-var/web2c/<i>engine</i></tt> where <i>engine</i> is typically <tt>pdfetex</tt>, then these will shadow the ones installed by the context package. So the user should delete the ConTeXt-related ones, such as <tt>cont-*.fmt</tt>, <tt>mptopdf.fmt</tt>, and <tt>metafun.mem</tt>.
To find them, the user can do:  kpsewhich cont-en.fmt or kpsewhich -engine pdfetex cont-en.fmt (and similarly for the other formats). Run it from a 'typical' directory (e.g. <tt>~<The status of ConTeXt in Debian/tt>), rather than from <tt>~/.texmf-var/web2c/pdfetex/</tt> (adjust for your engine), otherwise it will find the newly created formats before any others even if they are not shadowing anything else. The second issue unstable is currently up to date with the ConTeXt macros. If a user has installed them a directory that shadows <tt>/usr/share/texmf</tt>soon to be released TeX Live 2011, then they will be found rather than and includes all the system-wide ones. So move the shadowing context installations out of the way. The user can check with  kpsewhich cont-new.tex necessary bits and make sure that it's not finding any (until you do pieces, plus the system-wide install, of course)modules shipped in TeX Live== Install the ConTeXt packages ==
Norbert Preining has produced reliable, complete ConTeXt packages for If you are running Debiansid or later, then the <code>context</code> and they use very recent versions of ConTeXt <code>context-modules</code> packages should already be visible (as of this writing, which is 2007.01.05, and the latest package has <code>context-nonfree</code> and <code>context-doc-nonfree</code> packages are in the 2007.01.02 version of ConTeXtnonfree repository). Here's how to use them. Then do
If you are running Debian unstable (a aptitude update aptitude install context context-modules # optional aptitude install [http://packages.kdebian.a. sid), then the <code>org/experimental/all/context</code> package should already be visible (and the <code>download context-nonfree<] [http://packages.debian.org/sid/code> and <code>context-doc-nonfree</code> packages are in the context-doc-nonfree repository). If you are not running unstable, simply add these lines to your <tt>/etc/apt/sources.list</tt>:]
<nowiki> # for texlive deb http://people.* The final version in debian.org/~preining/TeX/ tl2007/ deb-src http://people.squeeze (aka debianstable 6.org/~preining/TeX/ tl2007/ # for lmodern deb http://people0) is 2009.debian11.org/~preining/TeX/ lmodern/ deb26-src http://people.debian.org/~preining/TeX/ lmodern/ # for context2 deb http://people.debian.org/~preining/TeX/ context/ deb-src http://people.debian.org/~preining/* In ''unstable'' is a the version that will be in TeX/ context/</nowiki>Live 2011
Either way, then do=== Install latest unstable context .deb package ===
apt-get update apt-get install context context-nonfree context-doc-nonfree<tt>unstable</tt> means ''(mature) development'', the version number may changes. The software is ''stable''
and apt will 1. Download the two .deb-s http://packages.debian.org/unstable/all/context/download and install the latest ConTeXt http://packages.debian.org/unstable/all/context-modules/download
If you don't like the warnings about the GPG key, do this 2. run as yourself root (if you are happy to the version number might have increased a bit) trust the chain of trust; insert usual signingdpkg --install context_2011.05.18.20110627-1_all.deb mtxrun --key disclaimers here):generate
gpg --keyserver subkeys3.pgp.net --recv-keys 0x09C5B094run as user gpg --export --armor 0x09C5B094 | sudo apt mtxrun -key add -generate
[<tt>0x09C5B094</tt> was the key listed in one Step 2. is currently still necessary, but soon an update of Norbert Preining mail signatures. tex-common will The <code>sudo</code> adds the key run mtxrun --generate automatically when packages have changed (like mktexlsr), and there will be no need to apt's key listrun this anymore.]
== Finished! ==Step 3. needs to be done only when you have files in TEXMFHOME or you change things there.
That should do itYou have now a system wide context-installation! The output of <code>ctxtools --contextversion</code> is hopefully like this:
<code> CtxTools | context version: 2007.01.02 13:44 (/usr/share/texmf/tex/context/base/context.tex) CtxTools | context version: 2007.01.02 13:44 (/usr/share/texmf/tex/context/base/cont-new.tex)</code>== See also ==
The long path to <tt>context.tex</tt> and <tt>cont-new.tex</tt> show where the system thinks the context macros are installed. Make sure your installation is finding those versions!{{Installation navbox}}
[[Category:Installation]]
See also the [[Debian TeXlive install]] page.

Navigation menu