https://wiki.contextgarden.net/api.php?action=feedcontributions&user=Meta&feedformat=atomWiki - User contributions [en]2024-03-29T13:22:44ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Command/appendix&diff=13021Command/appendix2011-05-03T19:43:06Z<p>Meta: /* Description */ Updated to note that this no longer exists</p>
<hr />
<div>{{Reference<br />
|name=appendix<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\appendix<span class="first" style="color:red;">[ref,ref,...]</span><span class="second" >{...}</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[ref,ref,...]</td><br />
<td></td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">{...}</td><br />
<td><i>text</i> </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
Starts appendix part of a book.<br />
<br />
No longer exists in Mk IV. Instead use<br />
<br />
<texcode><br />
\startbodymatter<br />
\chapter{Regular chapter}<br />
% ...<br />
\stopbodymatter<br />
<br />
\startappendices<br />
\chapter{Appendix: Some stuff}<br />
% ...<br />
\stopappendices<br />
</texcode><br />
<br />
== Example ==<br />
<!-- Please fill in an example if you can --><br />
<br />
== See also ==<br />
<!-- something like [[cmd:goto|\goto]] --><br />
<br />
[[Category:Reference/en|appendix]]</div>Metahttps://wiki.contextgarden.net/index.php?title=Ubuntu&diff=13011Ubuntu2011-04-26T20:49:29Z<p>Meta: /* Maverick (10.10) with ConTeXt Minimals */</p>
<hr />
<div>Here are instructions grouped according to the version of Ubuntu you are running.<br />
<br />
== Maverick (10.10) with Ubuntu packages ==<br />
<br />
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply <br />
<br />
apt-get install context<br />
<br />
to install ConTeXt and its dependencies.<br />
<br />
The dependencies pull in various PDF utilities which you will probably find useful, including <code>pdfcrop</code>.<br />
<br />
If you would like to use the [http://www.tug.org/texworks/ TeXworks] GUI-based TeX editing environment usually included with TeX Live CDs, it is available via<br />
<br />
apt-get install texworks<br />
<br />
and will appear under Applications, Science & Math.<br />
<br />
See also:<br />
* [[Setting up TeXworks]] <br />
* [[Using LuaTeX in Ubuntu]]<br />
<br />
Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is...<br />
<br />
== Maverick (10.10) with ConTeXt Minimals ==<br />
<br />
Example of setting up [ConTeXt Minimals]:<br />
<br />
$ sudo mkdir /usr/local/context<br />
$ sudo chown yourusername /usr/local/context<br />
$ cd /usr/local/context<br />
$ wget http://minimals.contextgarden.net/setup/first-setup.sh<br />
$ sh first-setup.sh<br />
$ vi ~/.bashrc<br />
<br />
Add:<br />
<br />
export OSFONTDIR=~/.fonts:/usr/share/fonts <br />
export TEXROOT=/usr/local/context/tex <br />
export PATH=/usr/local/context/tex/texmf-linux/bin:/usr/local/context/bin:$PATH<br />
<br />
Note that the order of items in the PATH is significant. If you put /usr/local/context/bin in the path first, you will get an error at run time.<br />
<br />
Also, remember that you have to source ~/.bashrc after changing it, in order to have the changes take effect in your current shell. (Either that, or start a new shell.)<br />
<br />
== Gutsy (7.10) ==<br />
<br />
Gutsy will be released in October 2007. Its repositories, which came from Debian unstable just after feisty (7.04) was released, already have the texlive 2007 and recent ConTeXt packages. So you could use them now (if you are brave).<br />
<br />
== Edgy (6.10) and Feisty (7.04) ==<br />
<br />
Unfortunately, you cannot use the repository given in [[Debian installation]] because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that comes with Ubuntu 7.04. Here instead are slightly tested packages backported for Ubuntu 6.10 (edgy); they also work on my Feisty (7.04) laptop. To use them put these two lines in your <tt>/etc/apt/sources.list</tt>:<br />
<br />
<nowiki>deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/<br />
deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/</nowiki><br />
<br />
Then you can install the texlive 2007 and recent context packages. See the [[Debian installation]] instructions for the details, but here is the quickstart:<br />
<br />
apt-get update<br />
apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree<br />
<br />
That command also installs the needed texlive packages for pdftex, metapost, lmodern etc. The <tt>cm-super</tt> package is in the ''universe'' repository so you'll need that enabled in your <tt>sources.list</tt>. You should not need to chase down the old teTeX 3.0 packages, which will be removed automatically by the above installation line. To test whether the basics of ConTeXt are working after the upgrade, try:<br />
<br />
ctxtools --contextversion<br />
<br />
Let me (Sanjoy) know if you find anything broken.</div>Metahttps://wiki.contextgarden.net/index.php?title=Fonts_-_Old_Content&diff=12925Fonts - Old Content2011-03-17T14:57:40Z<p>Meta: /* Type 1 fonts */</p>
<hr />
<div>< [[Visuals]] | [[Symbols]] ><br />
<br />
= Where to find fonts =<br />
<br />
== Available Free Fonts ==<br />
* [http://ctan.tug.org/tex-archive/info/Free_Math_Font_Survey/survey.html Free Math Fonts] : overview of different free Math fonts; [http://www.geocities.com/hartke01/ links to other free fonts]<br />
* [http://greekfontsociety.gr/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([http://modules.contextgarden.net/gfsdidot Module for ConTeXt])<br />
* [[TeX Gyre]] : a set of great text fonts by our GUST friends, based on URW's free PostScript standard fonts for GhostScript.<br />
* [http://www.janusz.nowacki.strefa.pl/kurier.html Foto Alfa] : some TeX related fonts from Poland (Antykwa Toruńska. Antykwa Półtawskiego, Kurier, Iwona...)<br />
* [http://linuxlibertine.sourceforge.net Libertine Open Fonts Project]: GPL/OFL serif font [[Linux Libertine on mkiv|sample]]<br />
* [http://scripts.sil.org SIL International] : great Unicode fonts for scholars by SIL (Gentium, Doulos, Charis, etc.)<br />
* [http://ist-socrates.berkeley.edu/~pinax/greekkeys/GreekKeys.html GreekKeys] : links to polytonic Greek fonts<br />
* [http://scholarsfonts.net Scholar's Fonts] : Font for Scholars (Latin, Germanic languages, Greek, Hebrew and Linguistics)<br />
* [http://www.engl.virginia.edu/OE/junicode/junicode.html Junicode] : Junius-Unicode, a font for medievalists<br />
* [http://www.freelang.net/fonts/index.html FreeLang fonts] : fonts for exotic languages<br />
* [http://www.blambot.com Blambot] : Comic fonts<br />
* [http://www.chank.com/freefonts.php Chank] : some free Chank fonts<br />
* [http://www.fontface.com/fonts/ FontFace] : free fonts<br />
* [http://www.dafont.com DaFont] : more free fonts<br />
* [http://fonts.tom7.com/fonts98.html Divide by Zero] : more fonts<br />
* [http://moorstation.org/typoasis/typoasis1.htm TypOasis] : lots of nice fonts, but a bit hard to find (have a look at designers Apostrophic Lab, Manfred Klein and Dieter Steffmann)<br />
* [http://kadyellebee.com/fonts/ Kristine's Font Organization] : find a font in a sorted directory<br />
* [http://www.fontlover.com FontLover] : font news portal site<br />
* [http://www.stormtype.com/typefaces-fonts-shop/free.php Lido] : OpenType and TrueType typeface by Storm Type Foundry, free for non-commercial use. [http://modules.contextgarden.net/stormfontsupport Support].<br />
* [http://www.alanwood.net/unicode/fontsbyrange.html Alan Wood’s Unicode Resources] : find fonts by Unicode character range<br />
* [http://www.josbuivenga.demon.nl/ exljbris] Free Quality Font Foundry by Jos Buivenga<br />
* [http://www.stixfonts.org/ STIX Fonts] Beta download of the STIX-Fonts<br />
* [http://www.fontsquirrel.com/ Font Squirrel] Handpicked free fonts for graphic designers with commercial-use licenses<br />
* [http://www.theleagueofmoveabletype.com/ The league of Moveable Type] : a collection of open source fonts<br />
* [http://www.1stwebdesigner.com/resources/65-popular-and-professional-free-fonts-for-creative-typography/ 65 Popular And Professional Free Fonts For Creative Typography] and [http://www.1stwebdesigner.com/resources/52-really-high-quality-free-fonts-for-modern-and-cool-design/ 52 Really High Quality Free Fonts For Modern And Cool Design]<br />
* ''... many more to be added ...''<br />
<br />
= How to use fonts in ConTeXt =<br />
'''The ConTeXt way of handling fonts are [[TypeScripts]].''' It’s a system of abstraction and aliases, which may seem “strange” at first for new users of ConTeXt.<br />
* There is now a [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf manual chapter on fonts].<br />
* If you happen to use [[XeTeX]] then you can forget almost all the magic and start using your system fonts (see [[Fonts_in_XeTeX]]).<br />
* If you use [[LuaTeX]], see [[Fonts_in_LuaTeX]]<br />
* If you want to keep using [[pdfTeX]], read on.<br />
<br />
= Font support & configuration =<br />
== Type 1 fonts ==<br />
<br />
Type 1 fonts come in multiple files. The various components are:<br />
<br />
* '''.pfb''': "Printer Font, Binary".<br />
* '''.pfa''': "Printer Font, ASCII".<br />
* '''.pfm''': "Printer Font Metrics", binary.<br />
* '''.afm''': "Adobe Font Metrics".<br />
<br />
Typically each font will have a set of outlines in a pfb or pfa file, and a set of metrics in a pfm or afm file.<br />
<br />
Which file variations are preferred depends on platform. Linux prefers pfa and afm (the ASCII versions). Windows prefers pfb and pfm (the binary versions). Mac OS X prefers pfm and afm.<br />
<br />
On the Mac, you may encounter old-style PostScript Type 1 fonts which have an extensionless file containing the font outlines. These are a relic from the days when bitmaps were used to display fonts on screen, and the PostScript was downloaded to the printer. Your best bet is to throw them away and get an up-to-date OpenType version, or use a font editing utility such as fontforge to convert them.<br />
<br />
On Windows 7, the OS will identify only the .pfm file as the actual font. However, when you install the font, Windows invisibly locates the matching .pfb file from the same directory, and copies them both to the C:\Windows\Fonts directory.<br />
<br />
* Using [[psnfss]] metrics in ConTeXt<br />
* Matt Gushee's introduction to [http://havenrock.com/textips/bookfonts.html virtual fonts], especially for getting expert fonts to work.<br />
* [[URW Garamond]]<br />
* [[Lucida]] : large font family designed by Bigelow & Holmes; suitable e.g. for presentations<br />
* [http://dl.contextgarden.net/myway/expertfonts.pdf Installing Expert Fonts: Minion Pro] by Idris Samawi Hamid; contains step-by-step instructions, from preinstallation to writing typescripts<br />
* [http://www.stormtype.com Storm Type Foundry] : [http://modules.contextgarden.net/stormfontsupport support] of selected fonts<br />
<br />
== True Type fonts ==<br />
* [http://tug.org/pracjourn/2005-2/schmitz/schmitz.pdf Integrating TrueType Fonts into ConTeXt] by Thomas A. Schmitz (PracTeX Journal)<br />
* [[Installing a TrueType font, step by step]]. If you just need to install a TrueType font, this may be what you are looking for.<br />
* [[Palatino Linotype under MKIV]].<br />
<br />
== OpenType fonts ==<br />
* [[otfinstall|otfinst - a script for using OpenType fonts in ConTeXt]]<br />
<br />
== Basic Hints ==<br />
<br />
How to change to Palatino for text with Euler for math: [[Palatino with Euler for Math]]<br />
<br />
''Some hints by Taco from the mailing list on 2005-11-20:''<br />
<br />
Q: How up to date or out of date is the information in [http://www.pragma-ade.com/general/manuals/mfonts.pdf mfonts manual]?<br />
<br />
A: It looks like it is still quite up-to-date, but some of the examples it gives may no longer be the very best and latest way of doing things, and possibly there are some new developments that do not get as much attention as desired (like [http://www.pragma-ade.com/general/manuals/mtexfont.pdf texfont], and the issues arising from font map files). Overall, the document appears accurate, though.<br />
<br />
An important thing to remember is this:<br />
<br />
'''ConTeXt does not share font metric conventions with LaTeX.'''<br />
<br />
(at one point it started doing so, like supporting the ''Karl Berry naming scheme'' and the ''PSNFSS'' style font family names, but that has since been abandoned).<br />
<br />
Another important thing is that it also does not share font map files with LaTeX and, specifically,<br />
<br />
'''ConTeXt does not make pdfetex read <tt>pdftex.map</tt>.'''<br />
<br />
(this is at the root of a great many problems reported by users only familiar with PSNFSS)<br />
<br />
The preferred format for metric files in ConTeXt is<br />
<br />
<tt><vendor>/<familyname>/<encoding>-<fontname>.tfm</tt><br />
<br />
for metrics and<br />
<br />
<tt><encoding>-<vendor>-<familyname>.map</tt><br />
<br />
for the mapping files.<br />
<br />
* <fontname> is usually derived from the font source (afm or ttf),<br />
* <encoding> is a 'controlled' list, (see [[Encodings and Regimes]])<br />
* <vendor> and <familyname> are user-supplied (at install time).<br />
<br />
There are ways to trick ConTeXt into using different conventions, but if you do that you are likely to run into trouble.<br />
<br />
== Hints by Language ==<br />
* general: [[Encodings and Regimes]]<br />
* [[Arabic and Hebrew]] (Idris? other ArabTeX specialists?)<br />
* [[Chinese]]<br />
* [[Czech]]<br />
* [[Greek]]<br />
* [[Russian]]<br />
* [[Vietnamese]]<br />
<br />
= Unsorted links =<br />
<br />
* [http://www.pragma-ade.com/general/manuals/mtexfont.pdf font installation with texfont] by Pragma<br />
* [http://www.pragma-ade.com/general/manuals/mfonts.pdf ConTeXt's font mechanism in detail] by Pragma<br />
* [http://tug.org/TUGboat/Articles/tb28-2/tb89mahajan.pdf ConTeXt basics for users: Font styles] by Aditya Mahajan (2007)<br />
* [http://www.pragma-ade.com/general/manuals/mmakempy.pdf making outlines] by Pragma<br />
* [http://pragma-ade.com/specials/fonts/fontspecial-p.pdf Here] you can try out several TeX fonts online (PDF interface!)<br />
* Troubleshooting: solving [[TeXfont]] problems.<br />
* Character [[Protrusion]] (also known as hanging or font handling) is a more subtle typographic effect.<br />
* [[Font Handling Internals]]<br />
* [http://watershade.net/wmcclain/context-help.html Bill McClain's ConTeXt beginners page] has also a lot about fonts<br />
* [[Pseudo Small Caps]] by Vit Zyka<br />
* [[Understanding how fonts work in ConTeXt]]<br />
* Fonts rely on [[Encodings and Regimes]], and it helps to know what happens underneath the hood, from time to time.<br />
* In newer distributions, map files belong in <tt>&hellip;/fonts/map/pdftex/context</tt>!<br />
* Don't forget to look at [[cont-sys.tex]]!<br />
<br />
<br />
[[Category:Fonts]]</div>Metahttps://wiki.contextgarden.net/index.php?title=Fonts_-_Old_Content&diff=12924Fonts - Old Content2011-03-17T14:38:36Z<p>Meta: /* Type 1 fonts */ Noted Win 7 behavior.</p>
<hr />
<div>< [[Visuals]] | [[Symbols]] ><br />
<br />
= Where to find fonts =<br />
<br />
== Available Free Fonts ==<br />
* [http://ctan.tug.org/tex-archive/info/Free_Math_Font_Survey/survey.html Free Math Fonts] : overview of different free Math fonts; [http://www.geocities.com/hartke01/ links to other free fonts]<br />
* [http://greekfontsociety.gr/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([http://modules.contextgarden.net/gfsdidot Module for ConTeXt])<br />
* [[TeX Gyre]] : a set of great text fonts by our GUST friends, based on URW's free PostScript standard fonts for GhostScript.<br />
* [http://www.janusz.nowacki.strefa.pl/kurier.html Foto Alfa] : some TeX related fonts from Poland (Antykwa Toruńska. Antykwa Półtawskiego, Kurier, Iwona...)<br />
* [http://linuxlibertine.sourceforge.net Libertine Open Fonts Project]: GPL/OFL serif font [[Linux Libertine on mkiv|sample]]<br />
* [http://scripts.sil.org SIL International] : great Unicode fonts for scholars by SIL (Gentium, Doulos, Charis, etc.)<br />
* [http://ist-socrates.berkeley.edu/~pinax/greekkeys/GreekKeys.html GreekKeys] : links to polytonic Greek fonts<br />
* [http://scholarsfonts.net Scholar's Fonts] : Font for Scholars (Latin, Germanic languages, Greek, Hebrew and Linguistics)<br />
* [http://www.engl.virginia.edu/OE/junicode/junicode.html Junicode] : Junius-Unicode, a font for medievalists<br />
* [http://www.freelang.net/fonts/index.html FreeLang fonts] : fonts for exotic languages<br />
* [http://www.blambot.com Blambot] : Comic fonts<br />
* [http://www.chank.com/freefonts.php Chank] : some free Chank fonts<br />
* [http://www.fontface.com/fonts/ FontFace] : free fonts<br />
* [http://www.dafont.com DaFont] : more free fonts<br />
* [http://fonts.tom7.com/fonts98.html Divide by Zero] : more fonts<br />
* [http://moorstation.org/typoasis/typoasis1.htm TypOasis] : lots of nice fonts, but a bit hard to find (have a look at designers Apostrophic Lab, Manfred Klein and Dieter Steffmann)<br />
* [http://kadyellebee.com/fonts/ Kristine's Font Organization] : find a font in a sorted directory<br />
* [http://www.fontlover.com FontLover] : font news portal site<br />
* [http://www.stormtype.com/typefaces-fonts-shop/free.php Lido] : OpenType and TrueType typeface by Storm Type Foundry, free for non-commercial use. [http://modules.contextgarden.net/stormfontsupport Support].<br />
* [http://www.alanwood.net/unicode/fontsbyrange.html Alan Wood’s Unicode Resources] : find fonts by Unicode character range<br />
* [http://www.josbuivenga.demon.nl/ exljbris] Free Quality Font Foundry by Jos Buivenga<br />
* [http://www.stixfonts.org/ STIX Fonts] Beta download of the STIX-Fonts<br />
* [http://www.fontsquirrel.com/ Font Squirrel] Handpicked free fonts for graphic designers with commercial-use licenses<br />
* [http://www.theleagueofmoveabletype.com/ The league of Moveable Type] : a collection of open source fonts<br />
* [http://www.1stwebdesigner.com/resources/65-popular-and-professional-free-fonts-for-creative-typography/ 65 Popular And Professional Free Fonts For Creative Typography] and [http://www.1stwebdesigner.com/resources/52-really-high-quality-free-fonts-for-modern-and-cool-design/ 52 Really High Quality Free Fonts For Modern And Cool Design]<br />
* ''... many more to be added ...''<br />
<br />
= How to use fonts in ConTeXt =<br />
'''The ConTeXt way of handling fonts are [[TypeScripts]].''' It’s a system of abstraction and aliases, which may seem “strange” at first for new users of ConTeXt.<br />
* There is now a [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf manual chapter on fonts].<br />
* If you happen to use [[XeTeX]] then you can forget almost all the magic and start using your system fonts (see [[Fonts_in_XeTeX]]).<br />
* If you use [[LuaTeX]], see [[Fonts_in_LuaTeX]]<br />
* If you want to keep using [[pdfTeX]], read on.<br />
<br />
= Font support & configuration =<br />
== Type 1 fonts ==<br />
<br />
Type 1 fonts come in multiple files. The various components are:<br />
<br />
* '''.pfb''': "PostScript Font, Binary".<br />
* '''.pfa''': "PostScript Font, ASCII".<br />
* '''.pfm''': "PostScript Font Metrics", binary.<br />
* '''.afm''': "Adobe Font Metrics".<br />
<br />
Typically each font will have a set of outlines in a pfb or pfa file, and a set of metrics in a pfm or afm file.<br />
<br />
Usually you need the pfb and pfm files, and can throw away the rest.<br />
<br />
On the Mac, you may encounter old-style PostScript Type 1 fonts which have an extensionless file containing the font outlines. These are a relic from the days when bitmaps were used to display fonts on screen, and the PostScript was downloaded to the printer. Your best bet is to throw them away and get an up-to-date OpenType version, or use a font editing utility such as fontforge to convert them.<br />
<br />
On Windows 7, the OS will identify only the .pfm file as the actual font. However, when you install the font, Windows invisibly locates the matching .pfb file from the same directory, and copies them both to the C:\Windows\Fonts directory.<br />
<br />
* Using [[psnfss]] metrics in ConTeXt<br />
* Matt Gushee's introduction to [http://havenrock.com/textips/bookfonts.html virtual fonts], especially for getting expert fonts to work.<br />
* [[URW Garamond]]<br />
* [[Lucida]] : large font family designed by Bigelow & Holmes; suitable e.g. for presentations<br />
* [http://dl.contextgarden.net/myway/expertfonts.pdf Installing Expert Fonts: Minion Pro] by Idris Samawi Hamid; contains step-by-step instructions, from preinstallation to writing typescripts<br />
* [http://www.stormtype.com Storm Type Foundry] : [http://modules.contextgarden.net/stormfontsupport support] of selected fonts<br />
<br />
== True Type fonts ==<br />
* [http://tug.org/pracjourn/2005-2/schmitz/schmitz.pdf Integrating TrueType Fonts into ConTeXt] by Thomas A. Schmitz (PracTeX Journal)<br />
* [[Installing a TrueType font, step by step]]. If you just need to install a TrueType font, this may be what you are looking for.<br />
* [[Palatino Linotype under MKIV]].<br />
<br />
== OpenType fonts ==<br />
* [[otfinstall|otfinst - a script for using OpenType fonts in ConTeXt]]<br />
<br />
== Basic Hints ==<br />
<br />
How to change to Palatino for text with Euler for math: [[Palatino with Euler for Math]]<br />
<br />
''Some hints by Taco from the mailing list on 2005-11-20:''<br />
<br />
Q: How up to date or out of date is the information in [http://www.pragma-ade.com/general/manuals/mfonts.pdf mfonts manual]?<br />
<br />
A: It looks like it is still quite up-to-date, but some of the examples it gives may no longer be the very best and latest way of doing things, and possibly there are some new developments that do not get as much attention as desired (like [http://www.pragma-ade.com/general/manuals/mtexfont.pdf texfont], and the issues arising from font map files). Overall, the document appears accurate, though.<br />
<br />
An important thing to remember is this:<br />
<br />
'''ConTeXt does not share font metric conventions with LaTeX.'''<br />
<br />
(at one point it started doing so, like supporting the ''Karl Berry naming scheme'' and the ''PSNFSS'' style font family names, but that has since been abandoned).<br />
<br />
Another important thing is that it also does not share font map files with LaTeX and, specifically,<br />
<br />
'''ConTeXt does not make pdfetex read <tt>pdftex.map</tt>.'''<br />
<br />
(this is at the root of a great many problems reported by users only familiar with PSNFSS)<br />
<br />
The preferred format for metric files in ConTeXt is<br />
<br />
<tt><vendor>/<familyname>/<encoding>-<fontname>.tfm</tt><br />
<br />
for metrics and<br />
<br />
<tt><encoding>-<vendor>-<familyname>.map</tt><br />
<br />
for the mapping files.<br />
<br />
* <fontname> is usually derived from the font source (afm or ttf),<br />
* <encoding> is a 'controlled' list, (see [[Encodings and Regimes]])<br />
* <vendor> and <familyname> are user-supplied (at install time).<br />
<br />
There are ways to trick ConTeXt into using different conventions, but if you do that you are likely to run into trouble.<br />
<br />
== Hints by Language ==<br />
* general: [[Encodings and Regimes]]<br />
* [[Arabic and Hebrew]] (Idris? other ArabTeX specialists?)<br />
* [[Chinese]]<br />
* [[Czech]]<br />
* [[Greek]]<br />
* [[Russian]]<br />
* [[Vietnamese]]<br />
<br />
= Unsorted links =<br />
<br />
* [http://www.pragma-ade.com/general/manuals/mtexfont.pdf font installation with texfont] by Pragma<br />
* [http://www.pragma-ade.com/general/manuals/mfonts.pdf ConTeXt's font mechanism in detail] by Pragma<br />
* [http://tug.org/TUGboat/Articles/tb28-2/tb89mahajan.pdf ConTeXt basics for users: Font styles] by Aditya Mahajan (2007)<br />
* [http://www.pragma-ade.com/general/manuals/mmakempy.pdf making outlines] by Pragma<br />
* [http://pragma-ade.com/specials/fonts/fontspecial-p.pdf Here] you can try out several TeX fonts online (PDF interface!)<br />
* Troubleshooting: solving [[TeXfont]] problems.<br />
* Character [[Protrusion]] (also known as hanging or font handling) is a more subtle typographic effect.<br />
* [[Font Handling Internals]]<br />
* [http://watershade.net/wmcclain/context-help.html Bill McClain's ConTeXt beginners page] has also a lot about fonts<br />
* [[Pseudo Small Caps]] by Vit Zyka<br />
* [[Understanding how fonts work in ConTeXt]]<br />
* Fonts rely on [[Encodings and Regimes]], and it helps to know what happens underneath the hood, from time to time.<br />
* In newer distributions, map files belong in <tt>&hellip;/fonts/map/pdftex/context</tt>!<br />
* Don't forget to look at [[cont-sys.tex]]!<br />
<br />
<br />
[[Category:Fonts]]</div>Metahttps://wiki.contextgarden.net/index.php?title=Fonts_-_Old_Content&diff=12919Fonts - Old Content2011-03-17T14:23:21Z<p>Meta: /* Type 1 fonts */ Added notes about the various file extensions, and legacy Mac wierdness.</p>
<hr />
<div>< [[Visuals]] | [[Symbols]] ><br />
<br />
= Where to find fonts =<br />
<br />
== Available Free Fonts ==<br />
* [http://ctan.tug.org/tex-archive/info/Free_Math_Font_Survey/survey.html Free Math Fonts] : overview of different free Math fonts; [http://www.geocities.com/hartke01/ links to other free fonts]<br />
* [http://greekfontsociety.gr/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([http://modules.contextgarden.net/gfsdidot Module for ConTeXt])<br />
* [[TeX Gyre]] : a set of great text fonts by our GUST friends, based on URW's free PostScript standard fonts for GhostScript.<br />
* [http://www.janusz.nowacki.strefa.pl/kurier.html Foto Alfa] : some TeX related fonts from Poland (Antykwa Toruńska. Antykwa Półtawskiego, Kurier, Iwona...)<br />
* [http://linuxlibertine.sourceforge.net Libertine Open Fonts Project]: GPL/OFL serif font [[Linux Libertine on mkiv|sample]]<br />
* [http://scripts.sil.org SIL International] : great Unicode fonts for scholars by SIL (Gentium, Doulos, Charis, etc.)<br />
* [http://ist-socrates.berkeley.edu/~pinax/greekkeys/GreekKeys.html GreekKeys] : links to polytonic Greek fonts<br />
* [http://scholarsfonts.net Scholar's Fonts] : Font for Scholars (Latin, Germanic languages, Greek, Hebrew and Linguistics)<br />
* [http://www.engl.virginia.edu/OE/junicode/junicode.html Junicode] : Junius-Unicode, a font for medievalists<br />
* [http://www.freelang.net/fonts/index.html FreeLang fonts] : fonts for exotic languages<br />
* [http://www.blambot.com Blambot] : Comic fonts<br />
* [http://www.chank.com/freefonts.php Chank] : some free Chank fonts<br />
* [http://www.fontface.com/fonts/ FontFace] : free fonts<br />
* [http://www.dafont.com DaFont] : more free fonts<br />
* [http://fonts.tom7.com/fonts98.html Divide by Zero] : more fonts<br />
* [http://moorstation.org/typoasis/typoasis1.htm TypOasis] : lots of nice fonts, but a bit hard to find (have a look at designers Apostrophic Lab, Manfred Klein and Dieter Steffmann)<br />
* [http://kadyellebee.com/fonts/ Kristine's Font Organization] : find a font in a sorted directory<br />
* [http://www.fontlover.com FontLover] : font news portal site<br />
* [http://www.stormtype.com/typefaces-fonts-shop/free.php Lido] : OpenType and TrueType typeface by Storm Type Foundry, free for non-commercial use. [http://modules.contextgarden.net/stormfontsupport Support].<br />
* [http://www.alanwood.net/unicode/fontsbyrange.html Alan Wood’s Unicode Resources] : find fonts by Unicode character range<br />
* [http://www.josbuivenga.demon.nl/ exljbris] Free Quality Font Foundry by Jos Buivenga<br />
* [http://www.stixfonts.org/ STIX Fonts] Beta download of the STIX-Fonts<br />
* [http://www.fontsquirrel.com/ Font Squirrel] Handpicked free fonts for graphic designers with commercial-use licenses<br />
* [http://www.theleagueofmoveabletype.com/ The league of Moveable Type] : a collection of open source fonts<br />
* [http://www.1stwebdesigner.com/resources/65-popular-and-professional-free-fonts-for-creative-typography/ 65 Popular And Professional Free Fonts For Creative Typography] and [http://www.1stwebdesigner.com/resources/52-really-high-quality-free-fonts-for-modern-and-cool-design/ 52 Really High Quality Free Fonts For Modern And Cool Design]<br />
* ''... many more to be added ...''<br />
<br />
= How to use fonts in ConTeXt =<br />
'''The ConTeXt way of handling fonts are [[TypeScripts]].''' It’s a system of abstraction and aliases, which may seem “strange” at first for new users of ConTeXt.<br />
* There is now a [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf manual chapter on fonts].<br />
* If you happen to use [[XeTeX]] then you can forget almost all the magic and start using your system fonts (see [[Fonts_in_XeTeX]]).<br />
* If you use [[LuaTeX]], see [[Fonts_in_LuaTeX]]<br />
* If you want to keep using [[pdfTeX]], read on.<br />
<br />
= Font support & configuration =<br />
== Type 1 fonts ==<br />
<br />
Type 1 fonts come in multiple files. The various components are:<br />
<br />
* '''.pfb''': "PostScript Font, Binary".<br />
* '''.pfa''': "PostScript Font, ASCII".<br />
* '''.pfm''': "PostScript Font Metrics", binary.<br />
* '''.afm''': "ASCII Font Metrics".<br />
<br />
Typically each font will have a set of outlines in a pfb or pfa file, and a set of metrics in a pfm or afm file.<br />
<br />
Usually you need the pfb and pfm files, and can throw away the rest.<br />
<br />
On the Mac, you may encounter old-style PostScript Type 1 fonts which have an extensionless file containing the font outlines. These are a relic from the days when bitmaps were used to display fonts on screen, and the PostScript was downloaded to the printer. Your best bet is to throw them away and get an up-to-date OpenType version, or use a font editing utility such as fontforge to convert them.<br />
<br />
* Using [[psnfss]] metrics in ConTeXt<br />
* Matt Gushee's introduction to [http://havenrock.com/textips/bookfonts.html virtual fonts], especially for getting expert fonts to work.<br />
* [[URW Garamond]]<br />
* [[Lucida]] : large font family designed by Bigelow & Holmes; suitable e.g. for presentations<br />
* [http://dl.contextgarden.net/myway/expertfonts.pdf Installing Expert Fonts: Minion Pro] by Idris Samawi Hamid; contains step-by-step instructions, from preinstallation to writing typescripts<br />
* [http://www.stormtype.com Storm Type Foundry] : [http://modules.contextgarden.net/stormfontsupport support] of selected fonts<br />
<br />
== True Type fonts ==<br />
* [http://tug.org/pracjourn/2005-2/schmitz/schmitz.pdf Integrating TrueType Fonts into ConTeXt] by Thomas A. Schmitz (PracTeX Journal)<br />
* [[Installing a TrueType font, step by step]]. If you just need to install a TrueType font, this may be what you are looking for.<br />
* [[Palatino Linotype under MKIV]].<br />
<br />
== OpenType fonts ==<br />
* [[otfinstall|otfinst - a script for using OpenType fonts in ConTeXt]]<br />
<br />
== Basic Hints ==<br />
<br />
How to change to Palatino for text with Euler for math: [[Palatino with Euler for Math]]<br />
<br />
''Some hints by Taco from the mailing list on 2005-11-20:''<br />
<br />
Q: How up to date or out of date is the information in [http://www.pragma-ade.com/general/manuals/mfonts.pdf mfonts manual]?<br />
<br />
A: It looks like it is still quite up-to-date, but some of the examples it gives may no longer be the very best and latest way of doing things, and possibly there are some new developments that do not get as much attention as desired (like [http://www.pragma-ade.com/general/manuals/mtexfont.pdf texfont], and the issues arising from font map files). Overall, the document appears accurate, though.<br />
<br />
An important thing to remember is this:<br />
<br />
'''ConTeXt does not share font metric conventions with LaTeX.'''<br />
<br />
(at one point it started doing so, like supporting the ''Karl Berry naming scheme'' and the ''PSNFSS'' style font family names, but that has since been abandoned).<br />
<br />
Another important thing is that it also does not share font map files with LaTeX and, specifically,<br />
<br />
'''ConTeXt does not make pdfetex read <tt>pdftex.map</tt>.'''<br />
<br />
(this is at the root of a great many problems reported by users only familiar with PSNFSS)<br />
<br />
The preferred format for metric files in ConTeXt is<br />
<br />
<tt><vendor>/<familyname>/<encoding>-<fontname>.tfm</tt><br />
<br />
for metrics and<br />
<br />
<tt><encoding>-<vendor>-<familyname>.map</tt><br />
<br />
for the mapping files.<br />
<br />
* <fontname> is usually derived from the font source (afm or ttf),<br />
* <encoding> is a 'controlled' list, (see [[Encodings and Regimes]])<br />
* <vendor> and <familyname> are user-supplied (at install time).<br />
<br />
There are ways to trick ConTeXt into using different conventions, but if you do that you are likely to run into trouble.<br />
<br />
== Hints by Language ==<br />
* general: [[Encodings and Regimes]]<br />
* [[Arabic and Hebrew]] (Idris? other ArabTeX specialists?)<br />
* [[Chinese]]<br />
* [[Czech]]<br />
* [[Greek]]<br />
* [[Russian]]<br />
* [[Vietnamese]]<br />
<br />
= Unsorted links =<br />
<br />
* [http://www.pragma-ade.com/general/manuals/mtexfont.pdf font installation with texfont] by Pragma<br />
* [http://www.pragma-ade.com/general/manuals/mfonts.pdf ConTeXt's font mechanism in detail] by Pragma<br />
* [http://tug.org/TUGboat/Articles/tb28-2/tb89mahajan.pdf ConTeXt basics for users: Font styles] by Aditya Mahajan (2007)<br />
* [http://www.pragma-ade.com/general/manuals/mmakempy.pdf making outlines] by Pragma<br />
* [http://pragma-ade.com/specials/fonts/fontspecial-p.pdf Here] you can try out several TeX fonts online (PDF interface!)<br />
* Troubleshooting: solving [[TeXfont]] problems.<br />
* Character [[Protrusion]] (also known as hanging or font handling) is a more subtle typographic effect.<br />
* [[Font Handling Internals]]<br />
* [http://watershade.net/wmcclain/context-help.html Bill McClain's ConTeXt beginners page] has also a lot about fonts<br />
* [[Pseudo Small Caps]] by Vit Zyka<br />
* [[Understanding how fonts work in ConTeXt]]<br />
* Fonts rely on [[Encodings and Regimes]], and it helps to know what happens underneath the hood, from time to time.<br />
* In newer distributions, map files belong in <tt>&hellip;/fonts/map/pdftex/context</tt>!<br />
* Don't forget to look at [[cont-sys.tex]]!<br />
<br />
<br />
[[Category:Fonts]]</div>Metahttps://wiki.contextgarden.net/index.php?title=Framed&diff=12908Framed2011-03-12T15:29:12Z<p>Meta: /* Spacing between frame and text */</p>
<hr />
<div>< [[Visuals]] |<br />
<br />
<br />
{{todo|the page devoted to all kinds of framed stuff}}<br />
<br />
= How to achieve specific results =<br />
<br />
== Preventing hyphenation ==<br />
<br />
One can prevent hyphenation inside a frame by passing <code>nothypenated</code> option to <code>align</code>. It is also a good idea to add <code>verytolerant</code> and <code>strectch</code> options.<br />
<br />
<context source="yes"><br />
\startcombination[2*2]<br />
{\framed<br />
[width=5cm,<br />
align={flushleft}]<br />
{\input ward \endgraf}}<br />
{flushleft}<br />
{\framed<br />
[width=5cm,<br />
align={flushleft,nothyphenated,verytolerant}] % maybe also stretch<br />
{\input ward \endgraf}}<br />
{flushleft,\crlf nothyphenated, \crlf verytolerant}<br />
{\framed<br />
[width=5cm,<br />
align={flushright,nothyphenated,verytolerant}] % maybe also stretch<br />
{\input ward \endgraf}}<br />
{flushright,\crlf nothyphenated, \crlf verytolerant}<br />
{\framed<br />
[width=5cm,<br />
align={width,nothyphenated,verytolerant}] % maybe also stretch<br />
{\input ward \endgraf}}<br />
{width,\crlf nothyphenated, \crlf verytolerant}<br />
\stopcombination<br />
</context><br />
<br />
== Specify the width no longer than needed ==<br />
<br />
I want to specify the maximum width of a frame. If the size of the box is smaller than the maximum width, I want a tight box. This can be done using the <code>autowidth=force</code> option to framed.<br />
<br />
<context source="yes"><br />
\defineframed<br />
[tightframed][width=5cm,autowidth=force,align=middle]<br />
<br />
\tightframed{Small}<br />
<br />
\tightframed{A really really long line that is split at 5cm}<br />
<br />
</context><br />
<br />
== Ruled Frames ==<br />
<br />
<cmd>framed</cmd> allows you to specify specific edges to be ruled.<br />
As an alternative to <code>frame=on</code> (the default), one can specify<br />
<code>topframe=on</code>, etc.<br />
Note that, as the default is to draw a complete frame,<br />
it is necessary to either specify the state (on/off) for all four edges<br />
or include the keyword <code>frame=off</code>.<br />
<br />
<context source="yes"><br />
\framed[frame=off,topframe=on,leftframe=on]{A fancy title}<br />
</context><br />
<br />
The thickness of the frame rule can be specified using <code>rulethickness=</code><br />
<br />
<context source="yes"><br />
\framed[frame=off,leftframe=on,rulethickness=2pt]{\tfa\bf A fancy title}<br />
</context><br />
<br />
== Rounded Corners ==<br />
<br />
<cmd>framed</cmd> allows you to have round corners with <code>corner=round</code>. There are also other possibilities if you want round corners but not at all places by giving an appropriate number to <code>corner=...</code>. This example is taken from [[source:core-rul.tex | core-rul.tex]] and each frame is typeset using<br />
<br />
<texcode><br />
\framed[corner=....,frame=on]{...}<br />
</texcode><br />
<br />
<context><br />
\dontleavehmode\framed<br />
[corner=0,frame=on,<br />
]{\tttf corner=\twodigits\recurselevel}%<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse {1} {4}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse {5} {8}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse {9}{12}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{13}{16}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{17}{20}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{21}{24}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{25}{28}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
<br />
</context><br />
<br />
* You can only fill the frame with a background color if the corner shape is closed. Otherwise, the backgroundcolor option will be silently ignored.<br />
<br />
<br />
== Coloring frame background and framed text ==<br />
<br />
First you have to turn on colors with <cmd>setupcolors</cmd><tt>[state=start]</tt>. Then you can define the background and foreground (=text) colors:<br />
<br />
<texcode>\framed[background=color,backgroundcolor=....,foreground=color,foregroundcolor=...]{...}</texcode><br />
<br />
If you want to make the frame itself disappear, add a <tt>frame=off</tt> to the setups.<br />
<br />
{|<br />
|<context><br />
\setupcolors[state=start]<br />
\framed<br />
[background=color,backgroundcolor=darkblue,<br />
foreground=color,foregroundcolor=white]<br />
{\ssx \bf Bold white on dark blue}<br />
</context><br />
|<texcode><br />
\setupcolors[state=start]<br />
\framed<br />
[background=color,backgroundcolor=darkblue,<br />
foreground=color,foregroundcolor=white]<br />
{\ssx \bf Bold white on dark blue}<br />
</texcode><br />
|-<br />
|<context><br />
\setupcolors[state=start]<br />
\framed<br />
[background=color,backgroundcolor=yellow,<br />
frame=off]<br />
{\tfx Who needs highlighter pens, anyway?}<br />
</context><br />
|<texcode><br />
\framed<br />
[background=color,backgroundcolor=yellow,<br />
frame=off]<br />
{\tfx Who needs highlighter pens, anyway?}<br />
</texcode><br />
|-<br />
|<context><br />
\setupcolors[state=start]<br />
\framed<br />
[frame=on, corner=0, frameoffset=10pt,<br />
framecolor=black,background=color,<br />
backgroundcolor=darkgreen, backgroundoffset=10pt,<br />
foreground=color,foregroundcolor=white]<br />
{\tfxx \bf Rounded corners with offset}<br />
</context><br />
|For filling frames with offset you have to add options <code>frameoffset=..., backgroundoffset=...</code><br />
<texcode><br />
\framed<br />
[frame=on, corner=0, frameoffset=10pt,<br />
framecolor=black,background=color,<br />
backgroundcolor=darkgreen, backgroundoffset=10pt, <br />
foreground=color,foregroundcolor=white]<br />
{\tfxx \bf Rounded corners with offset}<br />
</texcode><br />
|}<br />
<br />
See the [[Colors]] section for more information on available colors and color usage.<br />
<br />
== Shaded background for part of a displayed equation ==<br />
<br />
To highlight part of a formula, you can give it a gray background using <cmd>mframed</cmd>:<br />
<br />
<context source="yes"><br />
\setupcolors[state=start]<br />
\def\graymath{\mframed[frame=off,<br />
background=color,<br />
backgroundcolor=gray,<br />
backgroundoffset=3pt]}<br />
<br />
\startformula<br />
\ln (1+x) =\, \graymath{x - {x^2\over2}} \,+ {x^3\over3}-\cdots.<br />
\stopformula<br />
</context><br />
<br />
The <cmd>,</cmd> add a tiny bit of space to prevent the gray background from crowding the equals and plus sign.<br />
<br />
== Inline Frames ==<br />
<br />
The command <cmd>inframed</cmd>, similar to <cmd>framed</cmd>,<br />
differs in the definition of the baseline:<br />
<br />
<context source="yes"><br />
\framed[frame=off,width=10em,align=flushleft]{%<br />
Notice the difference between<br />
\framed{framed} and \inframed{inframed},<br />
especially considering its effect on linespacing...<br />
}<br />
</context><br />
<br />
= Width broad and local =<br />
Sometimes <tt>width</tt> must be adapted to a "local" <tt>\hsize </tt><br />
(the actual text area used by TeX to determine line breaks).<br />
For example:<br />
<context source='yes'><br />
\setuppapersize[A7,landscape][A7,landscape]<br />
\setupbodyfont[8pt,ss]<br />
\starttext<br />
\framed[width=broad]{}<br />
\startnarrower[left]<br />
\framed[width=broad]{}<br />
\dontleavehmode\framed[width=broad]{}<br />
\dontleavehmode\framed[width=local]{}<br />
\stopnarrower<br />
\blank<br />
\hsize.5\hsize<br />
\framed[width=broad]{}<br />
\startnarrower[left]<br />
\framed[width=broad]{}<br />
\dontleavehmode\framed[width=broad]{}<br />
\dontleavehmode\framed[width=local]{}<br />
\stopnarrower<br />
\stoptext<br />
</context><br />
<br />
Here we use <tt>\setlocalhsize</tt> after <tt>\startitemize</tt> to setup the localhsize:<br />
<context source="yes"><br />
\setuppapersize[A7,landscape][A7,landscape]<br />
\setupbodyfont[8pt,ss]<br />
\setupcolors[state=start]<br />
\setupframed[framecolor=blue]<br />
\showframe<br />
\starttext<br />
\framed[width=\hsize,align=middle]{width=hsize}<br />
\startitemize<br />
\setlocalhsize<br />
\item \framed[width=\hsize,align=middle] {width=hsize}<br />
\item \framed[width=broad,align=middle] {width=broad}<br />
\item \framed[width=local,align=middle] {width=local}<br />
\stopitemize<br />
\stoptext<br />
</context><br />
<br />
=Spacing between frame and text=<br />
<br />
<tt>\framed</tt> comes with two different types of offsets:<br />
one for the frame itself and another for the its content.<br />
The parameters <tt>frameoffset</tt> and <tt>backgroundoffset</tt><br />
were already explained above in the section [[#Coloring frame background and framed text]].<br />
<br />
In addition, the parameter [strut=no] allows removal of the initial strut when framing text that is [[Verbatim with line breaks]].<br />
<br />
==Content offsets==<br />
Beyond those there is another four dimensions that enable you to control <br />
the safety distance of a <tt>\framed</tt>’s content by orientation.<br />
Horizontally, <tt>loffset</tt> governs the left, <tt>roffset</tt> the right<br />
offset;<br />
the same goes for <tt>boffset</tt> for the bottom and <tt>toffset</tt> for <br />
the top distance.<br />
Their effects are explored in the following example (MkIV only).<br />
<br />
==Example==<br />
<texcode><br />
\def\offsetframe[#1]{%<br />
{\framed[<br />
#1=1em,<br />
align=normal,<br />
width=5.3cm,<br />
height=5.3cm,<br />
]{\tfx\input ward }<br />
}{\it#1}<br />
}<br />
<br />
\starttext<br />
\startcombination[2*2]<br />
\offsetframe[loffset]<br />
\offsetframe[roffset]<br />
\offsetframe[toffset]<br />
\offsetframe[boffset]<br />
\stopcombination<br />
\stoptext<br />
</texcode><br />
<br />
= Similar topics =<br />
* [[Vertically Centered Boxes]]<br />
* [[Overlays]]<br />
* [[Tables Overview]]</div>Metahttps://wiki.contextgarden.net/index.php?title=Framed&diff=12907Framed2011-03-12T15:28:51Z<p>Meta: /* Spacing between frame and text */ Added note about strut=no for removing initial linebreak strut.</p>
<hr />
<div>< [[Visuals]] |<br />
<br />
<br />
{{todo|the page devoted to all kinds of framed stuff}}<br />
<br />
= How to achieve specific results =<br />
<br />
== Preventing hyphenation ==<br />
<br />
One can prevent hyphenation inside a frame by passing <code>nothypenated</code> option to <code>align</code>. It is also a good idea to add <code>verytolerant</code> and <code>strectch</code> options.<br />
<br />
<context source="yes"><br />
\startcombination[2*2]<br />
{\framed<br />
[width=5cm,<br />
align={flushleft}]<br />
{\input ward \endgraf}}<br />
{flushleft}<br />
{\framed<br />
[width=5cm,<br />
align={flushleft,nothyphenated,verytolerant}] % maybe also stretch<br />
{\input ward \endgraf}}<br />
{flushleft,\crlf nothyphenated, \crlf verytolerant}<br />
{\framed<br />
[width=5cm,<br />
align={flushright,nothyphenated,verytolerant}] % maybe also stretch<br />
{\input ward \endgraf}}<br />
{flushright,\crlf nothyphenated, \crlf verytolerant}<br />
{\framed<br />
[width=5cm,<br />
align={width,nothyphenated,verytolerant}] % maybe also stretch<br />
{\input ward \endgraf}}<br />
{width,\crlf nothyphenated, \crlf verytolerant}<br />
\stopcombination<br />
</context><br />
<br />
== Specify the width no longer than needed ==<br />
<br />
I want to specify the maximum width of a frame. If the size of the box is smaller than the maximum width, I want a tight box. This can be done using the <code>autowidth=force</code> option to framed.<br />
<br />
<context source="yes"><br />
\defineframed<br />
[tightframed][width=5cm,autowidth=force,align=middle]<br />
<br />
\tightframed{Small}<br />
<br />
\tightframed{A really really long line that is split at 5cm}<br />
<br />
</context><br />
<br />
== Ruled Frames ==<br />
<br />
<cmd>framed</cmd> allows you to specify specific edges to be ruled.<br />
As an alternative to <code>frame=on</code> (the default), one can specify<br />
<code>topframe=on</code>, etc.<br />
Note that, as the default is to draw a complete frame,<br />
it is necessary to either specify the state (on/off) for all four edges<br />
or include the keyword <code>frame=off</code>.<br />
<br />
<context source="yes"><br />
\framed[frame=off,topframe=on,leftframe=on]{A fancy title}<br />
</context><br />
<br />
The thickness of the frame rule can be specified using <code>rulethickness=</code><br />
<br />
<context source="yes"><br />
\framed[frame=off,leftframe=on,rulethickness=2pt]{\tfa\bf A fancy title}<br />
</context><br />
<br />
== Rounded Corners ==<br />
<br />
<cmd>framed</cmd> allows you to have round corners with <code>corner=round</code>. There are also other possibilities if you want round corners but not at all places by giving an appropriate number to <code>corner=...</code>. This example is taken from [[source:core-rul.tex | core-rul.tex]] and each frame is typeset using<br />
<br />
<texcode><br />
\framed[corner=....,frame=on]{...}<br />
</texcode><br />
<br />
<context><br />
\dontleavehmode\framed<br />
[corner=0,frame=on,<br />
]{\tttf corner=\twodigits\recurselevel}%<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse {1} {4}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse {5} {8}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse {9}{12}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{13}{16}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{17}{20}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{21}{24}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
\vskip1em<br />
\dontleavehmode\dostepwiserecurse{25}{28}{1}{\framed<br />
[corner=\recurselevel,frame=on]<br />
{\tttf corner=\twodigits\recurselevel}%<br />
\quad}<br />
<br />
</context><br />
<br />
* You can only fill the frame with a background color if the corner shape is closed. Otherwise, the backgroundcolor option will be silently ignored.<br />
<br />
<br />
== Coloring frame background and framed text ==<br />
<br />
First you have to turn on colors with <cmd>setupcolors</cmd><tt>[state=start]</tt>. Then you can define the background and foreground (=text) colors:<br />
<br />
<texcode>\framed[background=color,backgroundcolor=....,foreground=color,foregroundcolor=...]{...}</texcode><br />
<br />
If you want to make the frame itself disappear, add a <tt>frame=off</tt> to the setups.<br />
<br />
{|<br />
|<context><br />
\setupcolors[state=start]<br />
\framed<br />
[background=color,backgroundcolor=darkblue,<br />
foreground=color,foregroundcolor=white]<br />
{\ssx \bf Bold white on dark blue}<br />
</context><br />
|<texcode><br />
\setupcolors[state=start]<br />
\framed<br />
[background=color,backgroundcolor=darkblue,<br />
foreground=color,foregroundcolor=white]<br />
{\ssx \bf Bold white on dark blue}<br />
</texcode><br />
|-<br />
|<context><br />
\setupcolors[state=start]<br />
\framed<br />
[background=color,backgroundcolor=yellow,<br />
frame=off]<br />
{\tfx Who needs highlighter pens, anyway?}<br />
</context><br />
|<texcode><br />
\framed<br />
[background=color,backgroundcolor=yellow,<br />
frame=off]<br />
{\tfx Who needs highlighter pens, anyway?}<br />
</texcode><br />
|-<br />
|<context><br />
\setupcolors[state=start]<br />
\framed<br />
[frame=on, corner=0, frameoffset=10pt,<br />
framecolor=black,background=color,<br />
backgroundcolor=darkgreen, backgroundoffset=10pt,<br />
foreground=color,foregroundcolor=white]<br />
{\tfxx \bf Rounded corners with offset}<br />
</context><br />
|For filling frames with offset you have to add options <code>frameoffset=..., backgroundoffset=...</code><br />
<texcode><br />
\framed<br />
[frame=on, corner=0, frameoffset=10pt,<br />
framecolor=black,background=color,<br />
backgroundcolor=darkgreen, backgroundoffset=10pt, <br />
foreground=color,foregroundcolor=white]<br />
{\tfxx \bf Rounded corners with offset}<br />
</texcode><br />
|}<br />
<br />
See the [[Colors]] section for more information on available colors and color usage.<br />
<br />
== Shaded background for part of a displayed equation ==<br />
<br />
To highlight part of a formula, you can give it a gray background using <cmd>mframed</cmd>:<br />
<br />
<context source="yes"><br />
\setupcolors[state=start]<br />
\def\graymath{\mframed[frame=off,<br />
background=color,<br />
backgroundcolor=gray,<br />
backgroundoffset=3pt]}<br />
<br />
\startformula<br />
\ln (1+x) =\, \graymath{x - {x^2\over2}} \,+ {x^3\over3}-\cdots.<br />
\stopformula<br />
</context><br />
<br />
The <cmd>,</cmd> add a tiny bit of space to prevent the gray background from crowding the equals and plus sign.<br />
<br />
== Inline Frames ==<br />
<br />
The command <cmd>inframed</cmd>, similar to <cmd>framed</cmd>,<br />
differs in the definition of the baseline:<br />
<br />
<context source="yes"><br />
\framed[frame=off,width=10em,align=flushleft]{%<br />
Notice the difference between<br />
\framed{framed} and \inframed{inframed},<br />
especially considering its effect on linespacing...<br />
}<br />
</context><br />
<br />
= Width broad and local =<br />
Sometimes <tt>width</tt> must be adapted to a "local" <tt>\hsize </tt><br />
(the actual text area used by TeX to determine line breaks).<br />
For example:<br />
<context source='yes'><br />
\setuppapersize[A7,landscape][A7,landscape]<br />
\setupbodyfont[8pt,ss]<br />
\starttext<br />
\framed[width=broad]{}<br />
\startnarrower[left]<br />
\framed[width=broad]{}<br />
\dontleavehmode\framed[width=broad]{}<br />
\dontleavehmode\framed[width=local]{}<br />
\stopnarrower<br />
\blank<br />
\hsize.5\hsize<br />
\framed[width=broad]{}<br />
\startnarrower[left]<br />
\framed[width=broad]{}<br />
\dontleavehmode\framed[width=broad]{}<br />
\dontleavehmode\framed[width=local]{}<br />
\stopnarrower<br />
\stoptext<br />
</context><br />
<br />
Here we use <tt>\setlocalhsize</tt> after <tt>\startitemize</tt> to setup the localhsize:<br />
<context source="yes"><br />
\setuppapersize[A7,landscape][A7,landscape]<br />
\setupbodyfont[8pt,ss]<br />
\setupcolors[state=start]<br />
\setupframed[framecolor=blue]<br />
\showframe<br />
\starttext<br />
\framed[width=\hsize,align=middle]{width=hsize}<br />
\startitemize<br />
\setlocalhsize<br />
\item \framed[width=\hsize,align=middle] {width=hsize}<br />
\item \framed[width=broad,align=middle] {width=broad}<br />
\item \framed[width=local,align=middle] {width=local}<br />
\stopitemize<br />
\stoptext<br />
</context><br />
<br />
=Spacing between frame and text=<br />
<br />
<tt>\framed</tt> comes with two different types of offsets:<br />
one for the frame itself and another for the its content.<br />
The parameters <tt>frameoffset</tt> and <tt>backgroundoffset</tt><br />
were already explained above in the section [[#Coloring frame background and framed text]].<br />
<br />
In addition, the parameter [strut=no] allows removal of the initial strut when framing text that is [Verbatim with line breaks].<br />
<br />
==Content offsets==<br />
Beyond those there is another four dimensions that enable you to control <br />
the safety distance of a <tt>\framed</tt>’s content by orientation.<br />
Horizontally, <tt>loffset</tt> governs the left, <tt>roffset</tt> the right<br />
offset;<br />
the same goes for <tt>boffset</tt> for the bottom and <tt>toffset</tt> for <br />
the top distance.<br />
Their effects are explored in the following example (MkIV only).<br />
<br />
==Example==<br />
<texcode><br />
\def\offsetframe[#1]{%<br />
{\framed[<br />
#1=1em,<br />
align=normal,<br />
width=5.3cm,<br />
height=5.3cm,<br />
]{\tfx\input ward }<br />
}{\it#1}<br />
}<br />
<br />
\starttext<br />
\startcombination[2*2]<br />
\offsetframe[loffset]<br />
\offsetframe[roffset]<br />
\offsetframe[toffset]<br />
\offsetframe[boffset]<br />
\stopcombination<br />
\stoptext<br />
</texcode><br />
<br />
= Similar topics =<br />
* [[Vertically Centered Boxes]]<br />
* [[Overlays]]<br />
* [[Tables Overview]]</div>Metahttps://wiki.contextgarden.net/index.php?title=Ubuntu&diff=12905Ubuntu2011-03-10T17:09:08Z<p>Meta: /* Maverick (10.10) with ConTeXt Minimals */</p>
<hr />
<div>Here are instructions grouped according to the version of Ubuntu you are running.<br />
<br />
== Maverick (10.10) with Ubuntu packages ==<br />
<br />
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply <br />
<br />
apt-get install context<br />
<br />
to install ConTeXt and its dependencies.<br />
<br />
The dependencies pull in various PDF utilities which you will probably find useful, including <code>pdfcrop</code>.<br />
<br />
If you would like to use the [http://www.tug.org/texworks/ TeXworks] GUI-based TeX editing environment usually included with TeX Live CDs, it is available via<br />
<br />
apt-get install texworks<br />
<br />
and will appear under Applications, Science & Math.<br />
<br />
See also:<br />
* [[Setting up TeXworks]] <br />
* [[Using LuaTeX in Ubuntu]]<br />
<br />
Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is...<br />
<br />
== Maverick (10.10) with ConTeXt Minimals ==<br />
<br />
Example of setting up [ConTeXt Minimals]:<br />
<br />
$ sudo mkdir /usr/local/context<br />
$ sudo chown yourusername /usr/local/context<br />
$ cd /usr/local/context<br />
$ wget http://minimals.contextgarden.net/setup/first-setup.sh<br />
$ sh first-setup.sh<br />
$ vi ~/.bashrc<br />
<br />
Add:<br />
<br />
export OSFONTDIR=~/.fonts:/usr/share/fonts <br />
export TEXROOT=/usr/local/context/tex <br />
export PATH=/usr/local/context/tex/texmf-linux/bin:/usr/local/context/bin:$PATH<br />
<br />
Note that the order of items in the PATH is significant. If you put /usr/local/context/bin in the path first, you will get an error at run time.<br />
<br />
== Gutsy (7.10) ==<br />
<br />
Gutsy will be released in October 2007. Its repositories, which came from Debian unstable just after feisty (7.04) was released, already have the texlive 2007 and recent ConTeXt packages. So you could use them now (if you are brave).<br />
<br />
== Edgy (6.10) and Feisty (7.04) ==<br />
<br />
Unfortunately, you cannot use the repository given in [[Debian installation]] because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that comes with Ubuntu 7.04. Here instead are slightly tested packages backported for Ubuntu 6.10 (edgy); they also work on my Feisty (7.04) laptop. To use them put these two lines in your <tt>/etc/apt/sources.list</tt>:<br />
<br />
<nowiki>deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/<br />
deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/</nowiki><br />
<br />
Then you can install the texlive 2007 and recent context packages. See the [[Debian installation]] instructions for the details, but here is the quickstart:<br />
<br />
apt-get update<br />
apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree<br />
<br />
That command also installs the needed texlive packages for pdftex, metapost, lmodern etc. The <tt>cm-super</tt> package is in the ''universe'' repository so you'll need that enabled in your <tt>sources.list</tt>. You should not need to chase down the old teTeX 3.0 packages, which will be removed automatically by the above installation line. To test whether the basics of ConTeXt are working after the upgrade, try:<br />
<br />
ctxtools --contextversion<br />
<br />
Let me (Sanjoy) know if you find anything broken.</div>Metahttps://wiki.contextgarden.net/index.php?title=Ubuntu&diff=12904Ubuntu2011-03-10T17:08:49Z<p>Meta: /* Maverick (10.10) */ Added note about running minimals instead of distro packages.</p>
<hr />
<div>Here are instructions grouped according to the version of Ubuntu you are running.<br />
<br />
== Maverick (10.10) with Ubuntu packages ==<br />
<br />
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply <br />
<br />
apt-get install context<br />
<br />
to install ConTeXt and its dependencies.<br />
<br />
The dependencies pull in various PDF utilities which you will probably find useful, including <code>pdfcrop</code>.<br />
<br />
If you would like to use the [http://www.tug.org/texworks/ TeXworks] GUI-based TeX editing environment usually included with TeX Live CDs, it is available via<br />
<br />
apt-get install texworks<br />
<br />
and will appear under Applications, Science & Math.<br />
<br />
See also:<br />
* [[Setting up TeXworks]] <br />
* [[Using LuaTeX in Ubuntu]]<br />
<br />
Note that Ubuntu's packaged version of ConTeXt is quite old (circa 2009), so a better option for advanced users is...<br />
<br />
== Maverick (10.10) with ConTeXt Minimals ==<br />
<br />
Example of setting up [ConTeXt Minimals]:<br />
<br />
$ sudo mkdir /usr/local/context<br />
$ sudo chown yourusername /usr/local/context<br />
$ cd /usr/local/context<br />
$ wget http://minimals.contextgarden.net/setup/first-setup.sh<br />
$ sh first-setup.sh<br />
$ vi ~/.bashrc<br />
<br />
Add:<br />
<br />
export OSFONTDIR=~/.fonts:/usr/share/fonts <br />
export TEXROOT=/usr/local/context/tex <br />
export PATH=/usr/local/context/tex/texmf-linux/bin:/usr/local/context/bin:$PATH<br />
<br />
Note that the order of items in the PATH is significant. If you put /usr/local/context/bin in the path first, you will get an error at run time.<br />
<br />
== Gutsy (7.10) ==<br />
<br />
Gutsy will be released in October 2007. Its repositories, which came from Debian unstable just after feisty (7.04) was released, already have the texlive 2007 and recent ConTeXt packages. So you could use them now (if you are brave).<br />
<br />
== Edgy (6.10) and Feisty (7.04) ==<br />
<br />
Unfortunately, you cannot use the repository given in [[Debian installation]] because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that comes with Ubuntu 7.04. Here instead are slightly tested packages backported for Ubuntu 6.10 (edgy); they also work on my Feisty (7.04) laptop. To use them put these two lines in your <tt>/etc/apt/sources.list</tt>:<br />
<br />
<nowiki>deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/<br />
deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/</nowiki><br />
<br />
Then you can install the texlive 2007 and recent context packages. See the [[Debian installation]] instructions for the details, but here is the quickstart:<br />
<br />
apt-get update<br />
apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree<br />
<br />
That command also installs the needed texlive packages for pdftex, metapost, lmodern etc. The <tt>cm-super</tt> package is in the ''universe'' repository so you'll need that enabled in your <tt>sources.list</tt>. You should not need to chase down the old teTeX 3.0 packages, which will be removed automatically by the above installation line. To test whether the basics of ConTeXt are working after the upgrade, try:<br />
<br />
ctxtools --contextversion<br />
<br />
Let me (Sanjoy) know if you find anything broken.</div>Metahttps://wiki.contextgarden.net/index.php?title=TeXworks&diff=12887TeXworks2011-03-02T14:39:38Z<p>Meta: Wrote help for how to set up LuaConTeXt</p>
<hr />
<div>As of early 2011, TeXworks does not come with support for running ConTeXt using LuaTeX.<br />
<br />
By default, choosing the ConTeXt option from the drop-down executes<br />
<br />
texmfstart texexec <filename><br />
<br />
which executes ConTeXt using pdfTeX; the XeConTeXt option executes<br />
<br />
texmfstart texexec --xtx <filename><br />
<br />
which uses XeTeX.<br />
<br />
== Adding an option to use ConTeXt with LuaTeX ==<br />
<br />
Selecting Edit / Preferences... from the menu will bring up the preference dialog for TeXworks. The Typesetting tab lets you add additional options.<br />
<br />
At the bottom right of the Typesetting tab list of processing tools is the + button to add a new entry. Name the new entry LuaConTeXt. For Program, use <code>texmfstart</code> as for the other entries. Then, add the following arguments one at a time, and make sure they are in the specified order:<br />
<br />
texexec<br />
--lua<br />
$fullname<br />
<br />
You can then select LuaConTeXt to run ConTeXt using LuaTeX.</div>Metahttps://wiki.contextgarden.net/index.php?title=Ubuntu&diff=12886Ubuntu2011-03-01T19:53:58Z<p>Meta: Edited for trivial formatting improvements</p>
<hr />
<div>Here are instructions grouped according to the version of Ubuntu you are running.<br />
<br />
== Maverick (10.10) ==<br />
<br />
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply <br />
<br />
apt-get install context<br />
<br />
to install ConTeXt and its dependencies.<br />
<br />
The dependencies pull in various PDF utilities which you will probably find useful, including <code>pdfcrop</code>.<br />
<br />
If you would like to use the [http://www.tug.org/texworks/ TeXworks] GUI-based TeX editing environment usually included with TeX Live CDs, it is available via<br />
<br />
apt-get install texworks<br />
<br />
and will appear under Applications, Science & Math.<br />
<br />
See also:<br />
* [[Setting up TeXworks]] <br />
* [[Using LuaTeX in Ubuntu]]<br />
<br />
== Gutsy (7.10) ==<br />
<br />
Gutsy will be released in October 2007. Its repositories, which came from Debian unstable just after feisty (7.04) was released, already have the texlive 2007 and recent ConTeXt packages. So you could use them now (if you are brave).<br />
<br />
== Edgy (6.10) and Feisty (7.04) ==<br />
<br />
Unfortunately, you cannot use the repository given in [[Debian installation]] because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that comes with Ubuntu 7.04. Here instead are slightly tested packages backported for Ubuntu 6.10 (edgy); they also work on my Feisty (7.04) laptop. To use them put these two lines in your <tt>/etc/apt/sources.list</tt>:<br />
<br />
<nowiki>deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/<br />
deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/</nowiki><br />
<br />
Then you can install the texlive 2007 and recent context packages. See the [[Debian installation]] instructions for the details, but here is the quickstart:<br />
<br />
apt-get update<br />
apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree<br />
<br />
That command also installs the needed texlive packages for pdftex, metapost, lmodern etc. The <tt>cm-super</tt> package is in the ''universe'' repository so you'll need that enabled in your <tt>sources.list</tt>. You should not need to chase down the old teTeX 3.0 packages, which will be removed automatically by the above installation line. To test whether the basics of ConTeXt are working after the upgrade, try:<br />
<br />
ctxtools --contextversion<br />
<br />
Let me (Sanjoy) know if you find anything broken.</div>Metahttps://wiki.contextgarden.net/index.php?title=Ubuntu&diff=12885Ubuntu2011-03-01T19:52:15Z<p>Meta: Updated for Ubuntu 10.10, rest of the page is probably obsolete at this point.</p>
<hr />
<div>Here are instructions grouped according to the version of Ubuntu you are running.<br />
<br />
== Maverick (10.10) ==<br />
<br />
TeX Live and ConTeXt have been part of Ubuntu's main repositories since Ubuntu 7.10, so you can simply <code>apt-get install context</code> to install ConTeXt and its dependencies.<br />
<br />
The dependencies pull in various PDF utilities which you will probably find useful, including <code>pdfcrop</code>.<br />
<br />
If you would like to use the [http://www.tug.org/texworks/ TeXworks] GUI-based TeX editing environment usually included with TeX Live CDs, it is available via <code>apt-get install texworks</code> and will appear under Applications, Science & Math.<br />
<br />
See also:<br />
* [[Setting up TeXworks]] <br />
* [[Using LuaTeX in Ubuntu]]<br />
<br />
== Gutsy (7.10) ==<br />
<br />
Gutsy will be released in October 2007. Its repositories, which came from Debian unstable just after feisty (7.04) was released, already have the texlive 2007 and recent ConTeXt packages. So you could use them now (if you are brave).<br />
<br />
== Edgy (6.10) and Feisty (7.04) ==<br />
<br />
Unfortunately, you cannot use the repository given in [[Debian installation]] because the Debian packages were compiled with a (very very slightly) newer libc6 than the one that comes with Ubuntu 7.04. Here instead are slightly tested packages backported for Ubuntu 6.10 (edgy); they also work on my Feisty (7.04) laptop. To use them put these two lines in your <tt>/etc/apt/sources.list</tt>:<br />
<br />
<nowiki>deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/<br />
deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/</nowiki><br />
<br />
Then you can install the texlive 2007 and recent context packages. See the [[Debian installation]] instructions for the details, but here is the quickstart:<br />
<br />
apt-get update<br />
apt-get install cm-super texlive-fonts-recommended context context-nonfree context-doc-nonfree<br />
<br />
That command also installs the needed texlive packages for pdftex, metapost, lmodern etc. The <tt>cm-super</tt> package is in the ''universe'' repository so you'll need that enabled in your <tt>sources.list</tt>. You should not need to chase down the old teTeX 3.0 packages, which will be removed automatically by the above installation line. To test whether the basics of ConTeXt are working after the upgrade, try:<br />
<br />
ctxtools --contextversion<br />
<br />
Let me (Sanjoy) know if you find anything broken.</div>Metahttps://wiki.contextgarden.net/index.php?title=User_talk:Meta&diff=12884User talk:Meta2011-03-01T19:37:55Z<p>Meta: Created page with "My work web site is at http://lpar.ATH0.com/ I've recently returned to TeX after a 20 year hiatus. Last time I used plain TeX, this time I'm using ConTeXt."</p>
<hr />
<div>My work web site is at http://lpar.ATH0.com/<br />
<br />
I've recently returned to TeX after a 20 year hiatus. Last time I used plain TeX, this time I'm using ConTeXt.</div>Meta