Changes

Jump to navigation Jump to search
2,274 bytes removed ,  16:00, 20 November 2012
m
{{Installation navbox}}
== Quickstart {{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/unstable, [[ConTeXt Standalone]], or at least install the impatient ==latest version of [[TeX Live]] with [[TLContrib]] manually.}}
(all done as root) If you have == Install the tetex ConTeXt packages, get rid of them:==
apt-get --purge remove tetex-{extraThe status of ConTeXt in Debian/unstable is currently up to date with the soon to be released TeX Live 2011,docand includes all the necessary bits and pieces,bin,base}plus the modules shipped in TeX Live.
Add these lines to your If you are running Debian sid or later, then the <ttcode>/etc/apt/sources.listcontext</ttcode>:  deb and <nowikicode>http://www.tug.org/texlive/Debiancontext-modules</code> packages should already be visible (and the </nowikicode> context/ deb-src nonfree<nowiki/code>http://www.tug.org/texlive/Debian/and </nowikicode> context-doc-nonfree</code> packages are in the nonfree repository).Then do
Then aptitude update aptitude install the context context-modules # optional aptitude install [http://packages.debian.org/experimental/all/context/download context-nonfree] [http://packages.debian.org/sid/context-doc-nonfree context-doc-nonfree]
apt* The final version in debian squeeze (aka debian stable 6.0) is 2009.11.26-get update2 apt-get install texlive lmodern cm-super texlive-fonts-recommended \ context context-nonfree context-doc-nonfree* In ''unstable'' is a the version that will be in TeX Live 2011
Read on for the details=== Install latest unstable context .deb package ===
== Use TeXLive packages ==<tt>unstable</tt> means ''(mature) development'', the version number may changes. The software is ''stable''
The context packages depend on [1. Download the two .deb-s http://wwwpackages.tugdebian.org/texlive TeXLive], so if you are using the Debian teTeX unstable/all/context/downloadhttp://packages (e.gdebian. see whether <tt>tetex-base<org/unstable/all/tt> is installed by doing <code>dpkg -l tetexcontext-base<modules/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?download
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 == 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. Those will shadow the system-wide install2. If that's what they want to do, no problem.  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 run 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 root (and similarly for the other formats). Run it from version number might have increased a 'typical' directory (e.g. <tt>~</tt>bit), 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 is the ConTeXt macros. If a user has installed them a directory that shadows <tt>/usr/share/texmf</tt>, then they will be found rather than the system-wide ones. So move the shadowing context installations out of the way. The user can check with  kpsewhich contdpkg -new.tex and make sure that it's not finding any (until you do the system-wide install, of course). == Install the ConTeXt packages == Norbert Preining has produced reliable, complete ConTeXt packages for Debian, and they use very recent versions of ConTeXt (as of this writing, which is 2007.01context_2011.05, the latest package has the 2007.0118.02 version of ConTeXt)20110627-1_all. Here's how to use them. Add these two lines to your /etc/apt/sources.list :  deb <nowiki>http://www.tug.org/texlive/Debian/</nowiki> context/ deb mtxrun --src <nowiki>http://www.tug.org/texlive/Debian/</nowiki> context/ Then dogenerate
apt-get update3. run as user apt-get install context context-nonfree context mtxrun -doc-nonfreegenerate
Step 2. is currently still necessary, but soon an update of tex-common will run mtxrun --generate automatically when packages have changed (like mktexlsr), and apt there will download and install the latest ConTeXt packagesbe no need to run 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