Changes

Jump to navigation Jump to search
1,982 bytes removed ,  00:46, 14 February 2022
m
== Use TeXLive {{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 latest version of [[TeX Live]] with [[TLContrib]] manually.}}
The context packages depend on [http://www.tug.org/texlive TeXLive], so if you are using == Install the Debian teTeX ConTeXt packages (e.g. see whether tetex-base is installed by doing "dpkg -l tetex-base"), it's time to make the change to TeXLive. You'll have to do it eventually since teTeX 3.0 will be its last upstream release. So if not now, when?==
If you are switching from teTeX, it's important The status of ConTeXt in Debian/unstable is currently up to <b>purge</b>date with TeX Live 2021, not just remove and includes all the <tt>tetex-*</tt> packagesnecessary bits and pieces, before installing the TeXLive packages. Otherwise plus the teTeX packages's configuration files, including those modules shipped in <tt>/etc/texmf/texmf.d/</tt> and <tt>/etc/texmf/fmtTeX Live.d/</tt>, will remain like a ghost haunting the system. One way to do that is
apt-get --purge remove tetex-{extra,doc,bin,base} The directions for using TeXLive If you are at http://www.tug.org/texlive/debian.html .Once you've installed the basic packagesrunning Debian sid or later, you'll need a few extras:  apt-get install texlive-metapost lmodern cm-super == Check for shadowing formats and macros == These installation instructions describe a system-wide install. But individual users may have followed then the old directions on this page <code>context</code> and (sorry!) made a per<code>context-user ConTeXt installationmodules</code> packages should already be visible. Those will shadow the system-wide install. If that's what they want to Then 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 aptitude update aptitude install context 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>.modules
To find them, * The final version in debian bullseye (aka debian stable 11.2) is 2020.03.10.20200331-1* In ''unstable'' is a version that is from the user can do:TeX Live 2021
kpsewhich cont-en=== Install latest unstable context .fmtdeb package ===
or kpsewhich -engine pdfetex cont-en<tt>unstable</tt> means ''(mature) development'', the version number may changes.fmtThe software is ''stable''
(and similarly for 1. Download the other formats)two . Run it from a 'typical' directory (edeb-s http://packages.gdebian. <tt>~<org/tt>), rather than from <tt>~unstable/all/context/downloadhttp://packages.texmf-vardebian.org/web2cunstable/pdfetexall/<context-modules/tt> (adjust for your engine), otherwise it will find the newly created formats before any others even if they are not shadowing anything else.download
The second issue is 2. run as root (the ConTeXt macros. If version number might have increased a user has installed them a directory that shadows <tt>/usr/share/texmf</tt>, bit)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 2007context_2021.0103.05, the latest package has the 2007.01.02 version of ConTeXt). Here's how to use them. Add these two lines to your /etc/apt/sources20220211-1_all.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> (run as you, not as root) 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.
174

edits

Navigation menu