https://wiki.contextgarden.net/api.php?action=feedcontributions&user=Jstein&feedformat=atomWiki - User contributions [en]2024-03-28T22:32:04ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Debian_installation&diff=12750Debian installation2011-01-11T01:04:12Z<p>Jstein: /* install latest experimental context .deb package */</p>
<hr />
<div>== Install the ConTeXt packages ==<br />
<br />
Norbert Preining has produced reliable, complete ConTeXt packages for Debian.<br />
<br />
If you are running Debian sid or later, 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). <br />
then do<br />
<br />
aptitude update<br />
aptitude install context [http://packages.debian.org/experimental/all/context/download context-nonfree] [http://packages.debian.org/sid/context-doc-nonfree context-doc-nonfree]<br />
<br />
<br />
* The final version in debian squeeze (aka debian stable 6.0) is 2009.11.26-2<br />
* in december 2010 a new experimental .deb package was built you can try it out: http://packages.debian.org/experimental/context<br />
<br />
=== install latest experimental context .deb package ===<br />
<br />
1. Download the .deb <br />
http://packages.debian.org/experimental/all/context/download<br />
<br />
2. run as root<br />
dpkg -i context_2010.07.30-1_all.deb<br />
<br />
3. run as user<br />
mtxrun --generate<br />
<br />
You have now a system wide context-installation!<br />
<br />
== See also ==<br />
<br />
[[Category:Installation]]<br />
the [[Debian TeXlive install]] page.</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Humour&diff=12749Humour2011-01-10T22:50:59Z<p>Jstein: /* Finite Life */</p>
<hr />
<div>== A poem about documentation ==<br />
<br />
"Yet another context user" posted [http://archive.contextgarden.net/message/20100403.155801.7098c48a.en.html this poem] to the mailing list<br />
<br />
<pre><br />
If you were surprised, like me<br />
Fifty emails, in your inbox to see<br />
<br />
Let me help you with a summary<br />
Of what happended, using a poor excuse for poetry <br />
<br />
It was the day of fools<br />
When Arthur tried to be cool<br />
<br />
In ConTeXt mailing list he shouted, "Look<br />
I am going to write a ConTeXt book!"<br />
<br />
Everyone was happy and had a thrill<br />
Till Martin said, "it is the first of April"<br />
<br />
His joke ruined, Arthur was sad<br />
He said Martin, this is bad<br />
<br />
Other users were also upset, taken for a ride<br />
The lack of a book, is not a matter of pride<br />
<br />
There were cries and a big fuss<br />
I was just getting started, said Russ<br />
<br />
After that comments did pour<br />
Its not even funny, said Gour<br />
<br />
All of us would be out of luck<br />
If Hans were to be hit by a bus!<br />
<br />
Citing Douglas Adams said Taco<br />
That will make the bus, a shamed loco<br />
<br />
In time back it 'ill go<br />
And slam its breaks, like a pro<br />
<br />
Writing documentation is no fun<br />
It that the reason it is shun<br />
<br />
Even if you do write something<br />
Does anyone even read the damn thing?<br />
<br />
Taco lamented all he hears is that 'it sucks'<br />
Demotivated, he may just pass the buck<br />
<br />
"Oh please, don't let the project slack<br />
If you write something, we will give you feedback"<br />
<br />
This circle of arguments is always repeated<br />
Whenever the question of documentation gets tweeted<br />
<br />
A new conspiracy theory was added this time<br />
"They want to keep it a secret," it's a crime<br />
<br />
I am sick and tired of all the pretext<br />
Why do you think anyone should write a book on ConTeXt?<br />
<br />
Taco and Hans, their hands are full<br />
Everyone else is just using a tool<br />
<br />
(Actually when I was writing this chronology<br />
Irdis was thinking about a typographical ontology)<br />
<br />
If you think that the documentation is lacking<br />
Do something, rather than grumbling<br />
<br />
Here's a suggestion, if I may give to thee<br />
Follow it, and you'll be a ConTeXt prodigee<br />
<br />
Pick up a pen and go 'n write<br />
On any part of ConTeXt that you like<br />
<br />
A wiki article, a blog post, are good places to start<br />
People reading them will relish the knowledge it imparts<br />
<br />
Write an example, show how things work<br />
Don't just hide there and lurk<br />
<br />
If nothing else, write about what you find confusing<br />
Others writing documentation may find it motivating<br />
<br />
On this note, this summary I'll end<br />
You were not offended, I'll pretend<br />
<br />
Finally a request, if I may<br />
Let me be anonymous, please, I pray<br />
<br />
A promise in passing, I'll also make<br />
Someday a ConTeXt book or tutorial, I may bake<br />
<br />
I am waiting for time and a muse<br />
At least, that is my excuse<br />
<br />
<br />
<br />
-- A ConTeXt User<br />
<br />
<br />
</pre><br />
<br />
* Later in the thread Idris told how his name should be pronounced<br />
<pre><br />
&gt;&gt;&gt; (Actually when I was writing this chronology<br />
&gt;&gt;&gt; Irdis was thinking about a typographical ontology)<br />
&gt;&gt;<br />
&gt;&gt; Who is this Irdis?<br />
<br />
&gt; Oh, my heart now bleeds<br />
&gt; That I couldn't spell the name of Prof Hamid<br />
<br />
Our anonymous YACU ran, slipped and had to skid,<br />
Neither did (s)he know how to rhyme with Hamid<br />
<br />
Accent in Hamid is on the first syllable,<br />
Otherwise pronouncing it will be untenable<br />
</pre><br />
<br />
== What if Hans's were hit by a bus ==<br />
* Taco's brilliant [http://archive.contextgarden.net/message/20100403.065454.97ad25ba.en.html answer] to this question<br />
<br />
<pre><br />
&gt; This raises another concern and that is: what is the future of ConTeXt<br />
&gt; is Hans "get hit by the bus"? (Of course, we even do not want to think<br />
&gt; about it...)<br />
<br />
The answer to this question is quite obvious if you have read Douglas<br />
Adams' books: the bus will think about the impact of its actions on the<br />
universe for a moment. Then, deeply immersed in gut-wrenching shame,<br />
it will travel back in time half a minute and push its own breaks for<br />
an emergency stop.<br />
</pre><br />
<br />
== latex and LaTeX ==<br />
<br />
Taco Hoekwater [http://archive.contextgarden.net/message/20100911.100030.b6e30e98.en.html explaining] the similarity between latex and LaTeX<br />
<br />
<blockquote><br />
Creating beautiful latex garments is at least as challenging as creating beautiful LaTeX documents (I<br />
tried, in earlier days). And just like in LaTeX, the problem areas are glue control and insert<br />
placement. Selling latex garments is also similar to selling LaTeX books: it is quite a niche market and your clients are considered fetishists by most other people.<br />
</blockquote><br />
<br />
= ConTeXt logic =<br />
<br />
Steffen Wolfrum [http://www.mail-archive.com/ntg-context@ntg.nl/msg22409.html bewildered] at ConTeXt syntax:<br />
<br />
<blockquote><br />
Sometimes ConTeXt's syntax looks kind of "female" to me:<br />
It certainly has an inner logic, but this is far more ... rich and varied as my <br />
single-minded, male structured mind would expect -)<br />
</blockquote><br />
<br />
= Where is my update? =<br />
<br />
Vnpenguin was [http://www.mail-archive.com/ntg-context@ntg.nl/msg47711.html confused] why he was not able to update ConTeXt, until Hans resolved the mystery.<br />
<br />
<pre><br />
> Since one week, I update my minimal ConTeXt almost everyday (Win32<br />
> version), but the version is alway the same:<br />
<br />
sure, as i didn't update context for a week<br />
</pre><br />
<br />
= Can you run it for me? = <br />
<br />
Peter Rolf asking R. Bastian [http://www.mail-archive.com/ntg-context@ntg.nl/msg49587.html not to be afraid]:<br />
<br />
<blockquote><br />
<p><br />
&gt; Does this work in Mk II ?<br />
</p><br />
<br />
<p><br />
You can set your mind at rest and test it yourself.<br />
The 'nuke_my_computer_by_running_context' module is no longer part of<br />
the official distribution ;-)<br />
</p><br />
</blockquote><br />
<br />
= Finite Life =<br />
The following exchange between the Philosophers Ludovicus Scarso<br />
and Ioannes Hagenius could be observed on the mailing list[http://archive.contextgarden.net/message/20101218.131804.c250b741.en.html].<br />
<pre><br />
> Live is too short to learn all those languages and stay<br />
> fluent in them, i.e. one simply forgets a lot when usage zeros.<br />
we should start to think how to to become immortal.<br />
</pre><br />
<br />
= Future ConTeXt Users = <br />
[[Future ConTeXt Users]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=PDF-strings&diff=12748PDF-strings2011-01-10T22:43:48Z<p>Jstein: Usage of PDF-Strings in LaTeX compared with ConTeXt:</p>
<hr />
<div>< [[From LaTeX to ConTeXt]]<br />
<br />
Usage of PDF-Strings in LaTeX compared with ConTeXt:<br />
<br />
== In LaTeX ==<br />
<texcode><br />
\documentclass{article}<br />
\def\ST{\ac{ST}}<br />
\def\Title{A \emph{Title}}<br />
\usepackage{acronym}<br />
\usepackage{hyperref}<br />
\hypersetup{bookmarksopen=true,pdftitle=\Title}<br />
\begin{document}<br />
\section{\Title}<br />
\section{\slshape slanted}<br />
first usage of \ST.<br />
\section{\ST}<br />
\begin{acronym}<br />
\acro{ST}{some text}<br />
\end{acronym}<br />
\end{document}<br />
</texcode><br />
<br />
== In ConTeXt ==<br />
<texcode><br />
\setupoutput[pdftex]<br />
\appendtoks \def\em{}\def\sl{}\def\Full#1{???} \to \simplifiedcommands<br />
\def\Title{A \em Title}<br />
\setupinteraction[state=start,title=\Title]<br />
\setupinteractionscreen[option=bookmark]<br />
\definesynonyms[Acro][acronymes][\Full]<br />
\Acro{ST}{some text}<br />
\placebookmarks[section]<br />
\starttext<br />
\section{\Title}<br />
\section{\Full{ST}} % here is still a problem...<br />
\section{\sl slanted}<br />
\stoptext<br />
</texcode><br />
<br />
[[Category:PDF]]<br />
[[Category:From LaTeX]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Talk:PDF-strings&diff=12747Talk:PDF-strings2011-01-10T22:43:02Z<p>Jstein: Removing all content from page</p>
<hr />
<div></div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Color&diff=12746Color2011-01-10T22:37:02Z<p>Jstein: /* Defining Colors */</p>
<hr />
<div>< [[Visuals]] | [[Graphics]] ><br />
<br />
= Enabling colors =<br />
<br />
In current versions (newer than 11.05.2009) of ConTeXt mkiv, colors are enabled by default.<br />
<br />
In older versions, colors must be enabled using<br />
<cmd>setupcolors</cmd><tt>[state=start]</tt><br />
<br />
=Defining Colors=<br />
<br />
== Choosing a color model ==<br />
<br />
* RGB and CMYK are enabled by default. If you want only RGB or only CMYK color, use <tt>cmyk=no</tt> or <tt>rgb=no</tt>. Multitone colors see below. <br />
* For spot colors, say spot=yes. To eliminate everything except spot colours, leaving a clean file for professional printing, accompany this with rgb=no,cmyk=no. See spot colours below for more details.<br />
* Normally all colors are defined in RGB ''and'' CMYK and get converted if needed.<br />
<br />
== Using predefined colors: <cmd>setupcolor</cmd> ==<br />
<br />
You find lists of predefined colors in the files <tt>colo-xxx.tex</tt>, load them with <cmd>setupcolor</cmd><tt>[xxx]</tt>:<br />
* rgb: some simple colors, loaded by default (with translations for the different interface languages!)<br />
* xwi: X-Windows-colors<br />
* pra: PRAGMA ADE company colors<br />
* ema: Emacs colors<br />
<br />
* Try the magic <cmd>showcolor</cmd><tt>[xxx]</tt>!<br />
<br />
{|<br />
! width="25%"|<br />
! width="10%"|<br />
! width="65%"|<br />
|-<br />
| <texcode><br />
\showcolor[rgb]<br />
</texcode><br />
|<br />
| <context><br />
\setupcolors[state=start]<br />
\showcolor[rgb]<br />
</context><br />
|}<br />
<br />
== Defining colors: <cmd>definecolor</cmd> ==<br />
<br />
<cmd>definecolor</cmd><tt>[blablue][r=.1, g=.1, b=1, c=1, m=.1, y=0, k=0, s=.2]</tt> (definition for RGB, CMYK and Grey!).<br />
See also [[Reference/en/definecolor]].<br />
<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\definecolor[blablue][r=.25, g=.1, b=1, c=1, m=.1, y=0, k=0, s=.2]<br />
<br />
Here's some \color[blablue]{blue text} inbetween!<br />
</texcode><br />
|<br />
| <context><br />
\setupcolors[state=start]<br />
\definecolor[blablue][r=.1, g=.1, b=1, c=1, m=.1, y=0, k=0, s=.2]<br />
<br />
Here's some \color[blablue]{blue text} inbetween!<br />
</context><br />
|}<br />
<br />
=== Colors with Hexadecimal Numbers ===<br />
<br />
You can also use hexadecimal numers to specify colors. You need to load the '''hex''' color module first:<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\setupcolor[hex]<br />
\definecolor[salmon][h=AB5757]<br />
<br />
Hey, \color[salmon]{look at that!}<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
\setupcolor[hex]<br />
\definecolor[salmon][h=AB5757]<br />
<br />
Hey, \color[salmon]{look at that!}<br />
</context><br />
|}<br />
<br />
===Transparent Colors===<br />
<br />
You can define '''transparent''' colors through setting t, e.g. <tt>t=0.5</tt>. Beware, some PDF viewers and printshops can't handle PDF transparences!<br />
<br />
Hans Hagen posted the following sample code for transparent colors on the mailing list on 2005-07-13; the yellow blocks have been added to demonstrate the order in which the blocks are drawn on the page; the first yellow block is behind the transparent red and blue blocks, while the second is in front of them.<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\definecolor [transparentred] [r=1,t=.5,a=1]<br />
\definecolor [transparentblue] [b=1,t=.5,a=1]<br />
\definecolor [solidyellow] [y=1,t=1,a=1]<br />
<br />
\starttext<br />
<br />
\startTEXpage<br />
This is some sample text that goes behind the rectangles\hskip-8cm<br />
\blackrule[width=2cm,height=1cm,depth=1cm,color=solidyellow]\hskip-0.67cm<br />
\blackrule[width=2cm,height=2cm,color=transparentred]\hskip-0.67cm<br />
\blackrule[width=2cm,height=1cm,depth=1cm,color=transparentblue]\hskip-0.67cm<br />
\blackrule[width=2cm,height=2cm,color=solidyellow]\hskip2cm.<br />
\stopTEXpage<br />
<br />
\stoptext<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
\definecolor [transparentred] [r=1,t=.5,a=1]<br />
\definecolor [transparentblue] [b=1,t=.5,a=1]<br />
\definecolor [solidyellow] [y=1,t=1,a=1]<br />
<br />
\starttext<br />
<br />
\startTEXpage<br />
This is some sample text that goes behind the rectangles\hskip-8cm<br />
\blackrule[width=2cm,height=1cm,depth=1cm,color=solidyellow]\hskip-0.67cm<br />
\blackrule[width=2cm,height=2cm,color=transparentred]\hskip-0.67cm<br />
\blackrule[width=2cm,height=1cm,depth=1cm,color=transparentblue]\hskip-0.67cm<br />
\blackrule[width=2cm,height=2cm,color=solidyellow]\hskip2cm.<br />
\stopTEXpage<br />
<br />
\stoptext<br />
</context><br />
|}<br />
<br />
== Defining color schemes: <cmd>definecolorgroup</cmd> and <cmd>definepalet</cmd>==<br />
<cmd>definecolorgroup</cmd><tt>[name][system][values]</tt><br />
<br />
<cmd>definepalet</cmd><tt>[palettename][colorname1=groupcolor:1, colorname2=groupcolor:2, ...]</tt><br />
<br />
Very interesting feature, see also the manual and here on the wiki [[Reference/en/definecolor]]<br />
<br />
=Choosing a color scheme=<br />
<br />
There are three basic strategies to select color combinations for a particular design<br />
<br />
# Create a color scheme by picking several colors found within the objects to be used (photographs, pictures, etc)<br />
# Create colors derived from those found in the objects to be used<br />
# Create a color scheme based on the message to convey / the psychological effects of color<br />
<br />
See for additional help & reference:<br />
* [http://colorschemedesigner.com/ colorschemedesigner.com] - Useful site to help choose a color scheme in rgb color space<br />
* Tina Sutton, Bride M Whelan: The Complete Color Harmony. Rockport Publishers (2004). ISBN 978-1592530311 (recommanded in the mailing list)<br />
<br />
<br />
=Using Colors=<br />
<br />
* Use the color name like <tt>[color=blablue]</tt> in some <tt>\setup...</tt> command.<br />
<br />
== With text ==<br />
<br />
Typeset single text elements with <cmd>color</cmd><tt>[colorname]{nice blue text}</tt>:<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
Three \color[red]{cool} cats<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
\starttext<br />
Three \color[red]{cool} cats<br />
\stoptext<br />
</context><br />
|}<br />
<br />
Alternatively, typeset text elements with <cmd>colored</cmd><tt>[rgb values]{colored text}</tt> (suggested on NTG-ConTeXt: [http://www.ntg.nl/pipermail/ntg-context/2010/046563.html]):<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
Three \colored[r=.4, g=.4, b=.9]{colorful} kittens.<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
\starttext<br />
Three \colored[r=.4, g=.4, b=.9]{colorful} kittens.<br />
\stoptext<br />
</context><br />
|}<br />
<br />
<br />
Typeset longer sections with <cmd>startcolor</cmd><tt>[colorname] ...</tt> <cmd>stopcolor</cmd>:<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\starttext<br />
\startcolor[orange]<br />
\input tufte<br />
\stopcolor<br />
\stoptext<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
\starttext<br />
\startcolor[orange]<br />
\input tufte<br />
\stopcolor<br />
\stoptext<br />
</context><br />
|}<br />
<br />
== In titles ==<br />
<br />
See [[Titles#Using_colors_in_chapters_and_sections]]<br />
<br />
== With frames ==<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\framed[background=color, backgroundcolor=green]{bla}<br />
\framed[background=color, backgroundcolor=yellow, corner=00]{bla}<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
<br />
\starttext<br />
\framed[background=color, backgroundcolor=green]{bla}<br />
\framed[background=color, backgroundcolor=yellow, corner=00]{bla}<br />
</context><br />
|}<br />
<br />
== Background of the page ==<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\setupbackgrounds[page][background=color,backgroundcolor=blue]<br />
<br />
\starttext<br />
text<br />
\stoptext<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
<br />
\setupbackgrounds[page][background=color,backgroundcolor=blue]<br />
<br />
\starttext<br />
text<br />
\stoptext<br />
</context><br />
|}<br />
<br />
== Background of cells in tables ==<br />
<br />
See<br />
* [[Table#Background Colors]]<br />
* [[TABLE#Round_corners]]<br />
<br />
== In Metapost ==<br />
<br />
Metapost in MkIV is different from MkII and all labels are typeset<br />
and colored in TeX, if you want a label use<br />
label(textext("\blue RED"),origin) ;<br />
<br />
== In TikZ ==<br />
<br />
{|<br />
! width="45%"|<br />
! width="10%"|<br />
! width="45%"|<br />
|-<br />
| <texcode><br />
\usemodule[tikz]<br />
\starttext<br />
\tikz\shade[ball color=red!40!yellow] (0,0) circle (.15cm);<br />
\stoptext<br />
</texcode><br />
|<br />
|<context><br />
\setupcolors[state=start]<br />
\usemodule[tikz]<br />
\starttext<br />
\tikz\shade[ball color=red!40!yellow] (0,0) circle (.15cm);<br />
\stoptext<br />
</context><br />
|}<br />
<br />
=Spot colours=<br />
<br />
To produce a file ready for a clean PDF separation process at your print house, start with:<br />
<br />
<cmd>setupcolors</cmd><tt>[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes]</tt><br />
<br />
which will set things up for spot colors with CMYK allowed. The last setting ensures that black overprinting your spot colour tints will not knock out the colour - this is important for some types of commercial printing.<br />
<br />
Then define your basic spot colour. Note that the name cannot contain spaces or numbers (but we come to that later):<br />
<br />
<cmd>definecolor</cmd><tt>[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]</tt><br />
<br />
Now you can define the tints of this ink that you are actually going to use in your document. Let's say you'll have a 100% for headings:<br />
<br />
<cmd>definespotcolor</cmd><tt>[MyBlue][PantoneTwoNineFour][p=1]</tt><br />
<br />
And then a 20% tint for nice display boxes:<br />
<br />
<cmd>definespotcolor</cmd><tt>[MyBlueTint][PantoneTwoNineFour][p=.2]</tt><br />
<br />
And now you can happily use these named colours:<br />
<br />
<texcode><br />
\starttext<br />
\color[MyBlue]{Interesting}<br />
\stoptext<br />
</texcode><br />
<br />
If you are including graphics made by an external program, you might want to match the colour name used in the graphic with the colour name in your '''ConTeXt''' set-up so that only one colour space is used in the final file. Unfortunately Pantone names and others tend to have spaces and numbers in them, so you need to do some extra work.<br />
<br />
==Using the 'e' key to \definespotcolor to specify a spot colour name with spaces==<br />
<br />
You can use the 'e' key when defining your spot colours in order to specify the precise colour names to be used by your ConTeXt set-up in the output file. For example:<br />
<br />
<texcode><br />
% set up the cmyk fallbacks<br />
\definecolor<br />
[PantoneThreeZeroEight]<br />
[c=1,m=.05,y=0,k=.47]<br />
<br />
\definecolor<br />
[PantoneTwoNineEight]<br />
[c=.69,m=.07,y=0,k=0]<br />
<br />
% Define tints of spot colours to be used in document for colouring text<br />
\definespotcolor<br />
[DarkBlue]<br />
[PantoneThreeZeroEight]<br />
[p=1,e=PANTONE 308 CV]<br />
<br />
\definespotcolor<br />
[LightBlue]<br />
[PantoneTwoNineEight]<br />
[p=1,e=PANTONE 298 CV]<br />
</texcode><br />
<br />
(Tested only on minimal Linux distribution dated 8 May 2010 - can others confirm this<br />
to be true across the board now?)<br />
<br />
Any text between a <cmd>startcolor[DarkBlue]</cmd> and <cmd>stopcolor</cmd> should now be assigned to the correct spot colour channel - Pantone 308 CV - on output. More importantly if you include an external figure containing areas of this colour then your text and those parts of the graphic which have the same colour should now appear together in the 'Pantone 308 CV' colour channel on colour separation. <br />
<br />
For example, if your original graphic is an EPS file containing the following lines:<br />
<br />
%%DocumentCustomColors: (PANTONE 298 CV)<br />
%%+ (PANTONE 308 CV)<br />
%%CMYKCustomColor: 0.69 0.07 0 0 (PANTONE 298 CV)<br />
%%+ 1 0.05 0 0.47 (PANTONE 308 CV)<br />
<br />
and you convert this to a PDF using <tt>ps2pdf</tt> for inclusion in your '''ConTeXt''' document your PDF graphic will then contain something like:<br />
<br />
<code><br />
8 0 obj<br />
[/Separation<br />
/PANTONE#20308#20CV<br />
/DeviceCMYK<br />
9 0 R]endobj<br />
10 0 obj<br />
[/Separation<br />
/PANTONE#20298#20CV<br />
/DeviceCMYK<br />
11 0 R]endobj<br />
</code><br />
<br />
Note how the space characters in the colour name are now encoded as '#20', but the colour names are essentially identical between the original EPS graphic, the new PDF graphic and your text.<br />
<br />
A good way of testing colour separation if you don't have access to expensive pre-flight PDF validation tools is to use the following GhostScript command:<br />
<br />
gs \<br />
-dBATCH \<br />
-dNOPAUSE \<br />
-sDEVICE=tiffsep \<br />
-dDOINTERPOLATE \<br />
-dTextAlphaBits=4 \<br />
-dGraphicsAlphaBits=4 \<br />
-sOutputFile=output.tif \<br />
-r120 \<br />
-MaxSeparations=8 \<br />
input.pdf<br />
<br />
This renders a PDF file <tt>input.pdf</tt> as a set of TIFF files:<br />
<br />
output.tif - Composite including CMYK approximations to spot colours<br />
output.tif.Black.tif - K channel<br />
output.tif.Cyan.tif - C channel<br />
output.tif.Magenta.tif - M channel<br />
output.tif.Yellow.tif - Y channel<br />
output.tif.s0.tif - Pantone 308 CV<br />
output.tif.s1.tif - Pantone 298 CV<br />
<br />
=Multitones=<br />
<br />
Hans wrote on the mailinglist on 2004-12-27 about handling of multitone colors:<br />
<br />
Currently it's done by pdftools.rb<br />
<br />
Once pdfxTeX becomes pdfeTeX out of a sudden your beta can do it as well.<br />
<br />
I still need to figure out a way to automatically reverse the graphic, but one of these days you can start using it.<br />
<br />
Actually, multitones for text already work out of the box:<br />
<texcode><br />
\setupcolors[state=start]<br />
<br />
\definecolor [blue] [c=1,m=.38,y=0,k=.64]<br />
\definecolor [yellow] [c=0,m=.28,y=1,k=.06]<br />
<br />
\definespotcolor [blue-100] [blue] [p=1]<br />
\definespotcolor [yellow-100] [yellow] [p=1]<br />
<br />
\definemultitonecolor [combicolor] [blue=.12,yellow=.28] [c=.1,m=.1,y=.3,k=.1]<br />
<br />
\starttext<br />
<br />
\startcolor[blue]\blackrule[width=3cm,height=3cm]\stopcolor<br />
<br />
\startcolor[yellow]\blackrule[width=3cm,height=3cm]\stopcolor<br />
<br />
\startcolor[combicolor]\blackrule[width=3cm,height=3cm]\stopcolor<br />
<br />
\stoptext<br />
</texcode><br />
(The CMYK color spec is the fall back color used on screen; one can preview separations in full Acrobat 7.)<br />
<br />
<br />
<br />
=Colorizing Grayscale Pictures=<br />
<br />
Another sample by Hans (mailing list 2005-11-16) demonstrates a lot of different possibilities:<br />
<br />
<texcode><br />
\setuplayout[header=0pt,footer=0pt,width=middle,height=middle,backspace=1cm,topspace=1cm]<br />
\setupcolors[state=start]<br />
<br />
\startbuffer<br />
\definecolor [blue] [c=1, m=.38, y=0, k=.64]<br />
\definecolor [yellow] [c=0, m=.28, y=1, k=.06]<br />
<br />
\definespotcolor [blue-100] [blue] [p=1]<br />
\definespotcolor [yellow-100] [yellow] [p=1]<br />
<br />
\definemultitonecolor [combicolor] [blue=.12, yellow=.28] [c=.1, m=.1, y=.3, k=.1]<br />
<br />
\definemultitonecolor [combicolor-b] [blue=1] [c=1, m=.38, y=0, k=.64] % force multitone<br />
\definemultitonecolor [combicolor-y] [yellow=1] [c=0, m=.28, y=1, k=.06] % force multitone<br />
<br />
\useexternalfigure[demo-a][mill.png] [object=no, width=.2\textwidth]<br />
\useexternalfigure[demo-b][hacker-bw.jpg][object=no, width=.2\textwidth]<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-a]} {no color}<br />
{\externalfigure[demo-a][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-a][color=combicolor-b]} {spot color}<br />
{\externalfigure[demo-a][color=combicolor-y]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-b]} {no color}<br />
{\externalfigure[demo-b][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-b][color=combicolor-b]} {spot color}<br />
{\externalfigure[demo-b][color=combicolor-y]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-a]} {no color}<br />
{\externalfigure[demo-a][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-a][color=blue-100]} {spot color}<br />
{\externalfigure[demo-a][color=yellow-100]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-b]} {no color}<br />
{\externalfigure[demo-b][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-b][color=blue-100]} {spot color}<br />
{\externalfigure[demo-b][color=yellow-100]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
\stopbuffer<br />
<br />
\getbuffer \typebuffer<br />
<br />
\stoptext<br />
</texcode><br />
<br />
= References =<br />
<br />
See "Color and Background" in the manual<br />
<br />
[[Category:Graphics]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=MetaPost&diff=12743MetaPost2011-01-10T14:20:19Z<p>Jstein: </p>
<hr />
<div>< [[Math]], [[MetaFun]], [[Graphics]]<br />
<br />
MetaPost is a graphical programming language, based on Donald Knuth's MetaFont. Normally MP graphics are converted to PostScript and used with dvips, but ConTeXt can use it directly with PDF (see <br />
[http://www.pragma-ade.com/general/sources/mptopdf.pdf MPtoPDF]).<br />
<br />
MetaPost is ConTeXt's "native" graphics mode, see [[MetaFun]].<br />
<br />
<br />
== Documentation & Tutorials ==<br />
* [http://www.tug.org/docs/metapost/mpman.pdf A User's Manual for MetaPost] <!-- http://cm.bell-labs.com/who/hobby/cstr_162.pdf has its pages reversed --><br />
* [http://remote.science.uva.nl/~heck/Courses/mptut.pdf Learning METAPOST by doing] ([http://maps.aanhet.net/maps/pdf/32_14.pdf this] and [http://maps.aanhet.net/maps/pdf/32_15.pdf this link] are not working)<br />
* [http://www.tug.org/pracjourn/2006-4/henderson/henderson.pdf A Beginner's Guide to METAPOST for Creating High-Quality Graphics] by Troy Henderson<br />
* [[manual:metafun-s.pdf|MetaFun]]<br />
* [http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html Lots of examples]<br />
<br />
<br />
== Troubleshooting plain MetaPost ==<br />
* Test if MetaPost is installed on your system. <br />
* create test.mp containing this:<br />
<br />
beginfig(1) <br />
draw fullcircle scaled 3cm ; <br />
endfig ; <br />
end ; <br />
<br />
* apply MetaPost on the testfile<br />
<br />
mp test.mp<br />
or<br />
mpost test.mp<br />
<br />
* that should create a postscript file test.1<br />
* open test.1 with a postscript viewer like ghostview, okular ... You should see a circle.<br />
<br />
== Troubleshooting MetaPost embedded in ConTeXt ==<br />
<br />
* create test.tex containing this:<br />
<br />
\starttext <br />
\startMPcode <br />
draw fullcircle scaled 3cm ; <br />
\stopMPcode <br />
\stoptext <br />
<br />
* for mkii you need to have write18 support enabled and run<br />
texexec --pdf test.tex <br />
<br />
* for mkiv run<br />
texexec --lua test.tex <br />
<br />
* that should create a pdf file test.pdf<br />
* open test.pdf with a pdf viewer like acroread, okular... You should see a circle.<br />
<br />
== Different Packages, Extensions & Applications of Metapost ==<br />
* [http://www.ctan.org/tex-archive/graphics/metaplot/ MetaPlot] - graph drawing<br />
* [http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metaobj/ MetaObj]<br />
<br />
* [http://stud4.tuwien.ac.at/~e0225855/finomaton/finomaton.html finomaton] - drawing finite state automata<br />
* [http://www-math.univ-poitiers.fr/~phan/statsmac.html statsmac] - metapost macros for statistics graphs<br />
* [http://metauml.sourceforge.net/ MetaUML] - MetaPost library for typesetting UML diagrams<br />
<br />
=== 3D support ===<br />
* [http://matagalatlante.org/nobre/featpost/doc/featexamples.html FeatPost]<br />
* [http://www.gnu.org/software/3dldf/LDF.html 3DLDF]<br />
* [http://www-math.univ-poitiers.fr/~phan/m3Dplain.html m3D]<br />
<br />
{{todo|needs major review}}<br />
<br />
== MetaPost relatives ==<br />
=== Font Creation ===<br />
* [[MetaType1]], see [http://www.ctan.org/tex-archive/fonts/utilities/metatype1/ CTAN]<br />
<br />
=== 3D drawing ===<br />
* [http://asymptote.sourceforge.net/ Asymptote] - inspired by MetaPost & fully generalizes MetaPost path construction algorithms to three-dimensions<br />
<br />
== Using MP in ConTeXt ==<br />
The first way is a usable graphic. Such a graphic is calculated anew each time it is used. An example:<br />
<br />
<texcode><br />
\startuseMPgraphic{name}<br />
fill fullcircle scaled 5cm withcolor red;<br />
\stopuseMPgraphic<br />
<br />
\useMPgraphic{name}<br />
</texcode><br />
<br />
As said, this graphic is calculated each time it is placed, which can be time consuming. Apart from the time aspect, this also means that the graphic itself is incorporated many times. Therefore, for graphics that don’t change, CONTEXT provides reusable graphics:<br />
<br />
<texcode><br />
\startreusableMPgraphic{name}<br />
fill fullcircle scaled 200pt withcolor .625yellow;<br />
\stopreusableMPgraphic<br />
<br />
\reuseMPgraphic{name}<br />
</texcode><br />
<br />
When reusing a graphic is not so important and you just want to include something inline, you can also use the following:<br />
<br />
<texcode><br />
\startMPcode<br />
fill fullcircle scaled 200pt withcolor .625yellow;<br />
\stopMPcode<br />
</texcode><br />
<br />
See also section 3.3 of [[manual:metafun-s.pdf|MetaFun manual]].<br />
<br />
== Other Links ==<br />
<br />
* Metapost home page: http://tug.org/metapost<br />
* John Hobby's page: http://cm.bell-labs.com/who/hobby/MetaPost.html<br />
* Current development: http://foundry.supelec.fr/projects/metapost/<br />
* http://melusine.eu.org/syracuse/metapost/<br />
<br />
[[Category:Graphics]]<br />
[[Category:Metapost]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=MetaPost&diff=12742MetaPost2011-01-10T14:08:19Z<p>Jstein: </p>
<hr />
<div>< [[Math]], [[MetaFun]], [[Graphics]]<br />
<br />
MetaPost is a graphical programming language, based on Donald Knuth's MetaFont. Normally MP graphics are converted to PostScript and used with dvips, but ConTeXt can use it directly with PDF (see <br />
[http://www.pragma-ade.com/general/sources/mptopdf.pdf MPtoPDF]).<br />
<br />
MetaPost is ConTeXt's "native" graphics mode, see [[MetaFun]].<br />
<br />
<br />
== Documentation & Tutorials ==<br />
* [http://www.tug.org/docs/metapost/mpman.pdf A User's Manual for MetaPost] <!-- http://cm.bell-labs.com/who/hobby/cstr_162.pdf has its pages reversed --><br />
* [http://remote.science.uva.nl/~heck/Courses/mptut.pdf Learning METAPOST by doing] ([http://maps.aanhet.net/maps/pdf/32_14.pdf this] and [http://maps.aanhet.net/maps/pdf/32_15.pdf this link] are not working)<br />
* [http://www.tug.org/pracjourn/2006-4/henderson/henderson.pdf A Beginner's Guide to METAPOST for Creating High-Quality Graphics] by Troy Henderson<br />
* [[manual:metafun-s.pdf|MetaFun]]<br />
* [http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html Lots of examples]<br />
<br />
<br />
== MetaPost Troubleshooting ==<br />
* Test if MetaPost is installed on your system. <br />
* create test.mp containing this:<br />
<br />
\starttext <br />
\startMPcode <br />
draw fullcircle scaled 3cm ; <br />
\stopMPcode <br />
\stoptext <br />
<br />
* apply MetaPost on the testfile<br />
<br />
mp test.mp<br />
or<br />
mpost test.mp<br />
<br />
* that should create a postscript file test.1<br />
* open test.1 with a postscript viewer like ghostview, okular ... You should see a circle.<br />
<br />
== Different Packages, Extensions & Applications of Metapost ==<br />
* [http://www.ctan.org/tex-archive/graphics/metaplot/ MetaPlot] - graph drawing<br />
* [http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metaobj/ MetaObj]<br />
<br />
* [http://stud4.tuwien.ac.at/~e0225855/finomaton/finomaton.html finomaton] - drawing finite state automata<br />
* [http://www-math.univ-poitiers.fr/~phan/statsmac.html statsmac] - metapost macros for statistics graphs<br />
* [http://metauml.sourceforge.net/ MetaUML] - MetaPost library for typesetting UML diagrams<br />
<br />
=== 3D support ===<br />
* [http://matagalatlante.org/nobre/featpost/doc/featexamples.html FeatPost]<br />
* [http://www.gnu.org/software/3dldf/LDF.html 3DLDF]<br />
* [http://www-math.univ-poitiers.fr/~phan/m3Dplain.html m3D]<br />
<br />
{{todo|needs major review}}<br />
<br />
== MetaPost relatives ==<br />
=== Font Creation ===<br />
* [[MetaType1]], see [http://www.ctan.org/tex-archive/fonts/utilities/metatype1/ CTAN]<br />
<br />
=== 3D drawing ===<br />
* [http://asymptote.sourceforge.net/ Asymptote] - inspired by MetaPost & fully generalizes MetaPost path construction algorithms to three-dimensions<br />
<br />
== Using MP in ConTeXt ==<br />
The first way is a usable graphic. Such a graphic is calculated anew each time it is used. An example:<br />
<br />
<texcode><br />
\startuseMPgraphic{name}<br />
fill fullcircle scaled 5cm withcolor red;<br />
\stopuseMPgraphic<br />
<br />
\useMPgraphic{name}<br />
</texcode><br />
<br />
As said, this graphic is calculated each time it is placed, which can be time consuming. Apart from the time aspect, this also means that the graphic itself is incorporated many times. Therefore, for graphics that don’t change, CONTEXT provides reusable graphics:<br />
<br />
<texcode><br />
\startreusableMPgraphic{name}<br />
fill fullcircle scaled 200pt withcolor .625yellow;<br />
\stopreusableMPgraphic<br />
<br />
\reuseMPgraphic{name}<br />
</texcode><br />
<br />
When reusing a graphic is not so important and you just want to include something inline, you can also use the following:<br />
<br />
<texcode><br />
\startMPcode<br />
fill fullcircle scaled 200pt withcolor .625yellow;<br />
\stopMPcode<br />
</texcode><br />
<br />
See also section 3.3 of [[manual:metafun-s.pdf|MetaFun manual]].<br />
<br />
== Other Links ==<br />
<br />
* Metapost home page: http://tug.org/metapost<br />
* John Hobby's page: http://cm.bell-labs.com/who/hobby/MetaPost.html<br />
* Current development: http://foundry.supelec.fr/projects/metapost/<br />
* http://melusine.eu.org/syracuse/metapost/<br />
<br />
[[Category:Graphics]]<br />
[[Category:Metapost]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=MetaPost&diff=12741MetaPost2011-01-10T14:07:26Z<p>Jstein: /* Documentation & Tutorials */</p>
<hr />
<div>< [[Math]], [[MetaFun]], [[Graphics]]<br />
<br />
* Metapost home page: http://tug.org/metapost<br />
* John Hobby's page: http://cm.bell-labs.com/who/hobby/MetaPost.html<br />
* Current development: http://foundry.supelec.fr/projects/metapost/<br />
<br />
MetaPost is a graphical programming language, based on Donald Knuth's MetaFont. Normally MP graphics are converted to PostScript and used with dvips, but ConTeXt can use it directly with PDF (see <br />
[http://www.pragma-ade.com/general/sources/mptopdf.pdf MPtoPDF]).<br />
<br />
MetaPost is ConTeXt's "native" graphics mode, see [[MetaFun]].<br />
<br />
<br />
== Documentation & Tutorials ==<br />
* [http://www.tug.org/docs/metapost/mpman.pdf A User's Manual for MetaPost] <!-- http://cm.bell-labs.com/who/hobby/cstr_162.pdf has its pages reversed --><br />
* [http://remote.science.uva.nl/~heck/Courses/mptut.pdf Learning METAPOST by doing] ([http://maps.aanhet.net/maps/pdf/32_14.pdf this] and [http://maps.aanhet.net/maps/pdf/32_15.pdf this link] are not working)<br />
* [http://www.tug.org/pracjourn/2006-4/henderson/henderson.pdf A Beginner's Guide to METAPOST for Creating High-Quality Graphics] by Troy Henderson<br />
* [[manual:metafun-s.pdf|MetaFun]]<br />
* [http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html Lots of examples]<br />
<br />
<br />
== MetaPost Troubleshooting ==<br />
* Test if MetaPost is installed on your system. <br />
* create test.mp containing this:<br />
<br />
\starttext <br />
\startMPcode <br />
draw fullcircle scaled 3cm ; <br />
\stopMPcode <br />
\stoptext <br />
<br />
* apply MetaPost on the testfile<br />
<br />
mp test.mp<br />
or<br />
mpost test.mp<br />
<br />
* that should create a postscript file test.1<br />
* open test.1 with a postscript viewer like ghostview, okular ... You should see a circle.<br />
<br />
== Different Packages, Extensions & Applications of Metapost ==<br />
* [http://www.ctan.org/tex-archive/graphics/metaplot/ MetaPlot] - graph drawing<br />
* [http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metaobj/ MetaObj]<br />
<br />
* [http://stud4.tuwien.ac.at/~e0225855/finomaton/finomaton.html finomaton] - drawing finite state automata<br />
* [http://www-math.univ-poitiers.fr/~phan/statsmac.html statsmac] - metapost macros for statistics graphs<br />
* [http://metauml.sourceforge.net/ MetaUML] - MetaPost library for typesetting UML diagrams<br />
<br />
=== 3D support ===<br />
* [http://matagalatlante.org/nobre/featpost/doc/featexamples.html FeatPost]<br />
* [http://www.gnu.org/software/3dldf/LDF.html 3DLDF]<br />
* [http://www-math.univ-poitiers.fr/~phan/m3Dplain.html m3D]<br />
<br />
{{todo|needs major review}}<br />
<br />
== MetaPost relatives ==<br />
=== Font Creation ===<br />
* [[MetaType1]], see [http://www.ctan.org/tex-archive/fonts/utilities/metatype1/ CTAN]<br />
<br />
=== 3D drawing ===<br />
* [http://asymptote.sourceforge.net/ Asymptote] - inspired by MetaPost & fully generalizes MetaPost path construction algorithms to three-dimensions<br />
<br />
== Using MP in ConTeXt ==<br />
The first way is a usable graphic. Such a graphic is calculated anew each time it is used. An example:<br />
<br />
<texcode><br />
\startuseMPgraphic{name}<br />
fill fullcircle scaled 5cm withcolor red;<br />
\stopuseMPgraphic<br />
<br />
\useMPgraphic{name}<br />
</texcode><br />
<br />
As said, this graphic is calculated each time it is placed, which can be time consuming. Apart from the time aspect, this also means that the graphic itself is incorporated many times. Therefore, for graphics that don’t change, CONTEXT provides reusable graphics:<br />
<br />
<texcode><br />
\startreusableMPgraphic{name}<br />
fill fullcircle scaled 200pt withcolor .625yellow;<br />
\stopreusableMPgraphic<br />
<br />
\reuseMPgraphic{name}<br />
</texcode><br />
<br />
When reusing a graphic is not so important and you just want to include something inline, you can also use the following:<br />
<br />
<texcode><br />
\startMPcode<br />
fill fullcircle scaled 200pt withcolor .625yellow;<br />
\stopMPcode<br />
</texcode><br />
<br />
See also section 3.3 of [[manual:metafun-s.pdf|MetaFun manual]].<br />
<br />
== Other Links ==<br />
<br />
* http://melusine.eu.org/syracuse/metapost/<br />
<br />
[[Category:Graphics]]<br />
[[Category:Metapost]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Talk:Running_Mark_IV&diff=12737Talk:Running Mark IV2011-01-10T00:18:05Z<p>Jstein: </p>
<hr />
<div>needed after updating:<br />
sudo mktexlsr<br />
sudo fmtutil-sys --byfmt cont-en<br />
<br />
Maybe for mkii, but for mkiv this is not needed and doesn't help either. Mkiv does not use kpathsea at all, so there is no point in running mktexlsr, and fmtutil-sys doesn't understand mkiv formats yet. [[User:Taco|Taco]] 11:28, 1 April 2009 (UTC)<br />
<br />
<br />
== File not found ==<br />
is the "File not found" bug still there today? --[[User:Jstein|Jstein]] 00:18, 10 January 2011 (UTC)</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Running_Mark_IV&diff=12736Running Mark IV2011-01-10T00:12:36Z<p>Jstein: /* Quickstart */</p>
<hr />
<div>== Introduction ==<br />
<br />
ConTeXt [[Mark IV]] does not use the kpathsea library to find files and configuration settings. It follows that running mktexlsr or fmtutil has no effect. This page explains the details of <br />
setting up and maintaining [[Mark IV]].<br />
<br />
The most important motivation for this page is that the [[TeX Live]] 2008 edition contains Mark IV, but it is only copied to the installed system, no post-install setup takes place at all. For this Tex Live release, the post-install setup has to be done manually. TeX Live 2009 does not<br />
come with a usable Mark IV at all because the luatex on the 2009 editions is too old. Instructions on how to deal with TeX Live 2009 will be added soon. TeX Live 2010 has a working Context Mark IV out of the box: you can just run 'context' directly. At most, you could run `luatools --generate; context --make` to deal with any tlmgr updates you may have performed since installing TeX Live. <br />
<br />
If you have trouble following these instructions, please direct you questions or complaints on the [http://www.ntg.nl/mailman/listinfo/ntg-context ntg-context mailing list], '''not''' the tex-live list.<br />
<br />
<br />
Special notes:<br />
* '''Windows''': Running Mark IV under Windows is the same as on Unix, but see [[Running_Mark_IV#In_case_of_trouble|below]] for a installation hints for the 'spaces in names' problem that seem to affect Windows users more often than other platforms.<br />
* '''[[MacTeX]]''': You need to [[Running_Mark_IV#Updating_ConTeXt|update]] ConTeXt first.<br />
* '''Debian''': Mark IV suggests the tex-gyre package ([[TeX Gyre]]), not distributed currently under Debian due to licensing issues (see [[Debian installation]] )<br />
<br />
== Quickstart ==<br />
<br />
Just for the extremely impatient unix user that knows how to deal with a web2c-based TeX distribution and has a simple, private (single-user) installation, this is the only absolutely required extra knowledge:<br />
<br />
luatools --generate<br />
<br />
is the Mark IV replacement for mktexlsr.<br />
<br />
context --make<br />
<br />
is the Mark IV replacement for fmtutil.<br />
<br />
context myfile.tex<br />
<br />
typesets a file.<br />
<br />
Everybody else should read on.<br />
<br />
'''A note for windows users:''' the luatex executable does not accept filenames with spaces in their name. This means that if you are on windows you will at least have to set up a texmfcnf.lua as explained below, and you likely will even have to reinstall texlive, because the default texlive installation directory itself contains spaces. [[Running_Mark_IV#File_not_found | Details]].<br />
<br />
== Generating and updating formats ==<br />
<br />
Before first use and after each update to either the [[context]] distribution or the [[luatex]] executable you will have to regenerate the formats. The command for that is:<br />
<br />
context --make cont-en<br />
<br />
This will generate a new Mark IV format with the English interface. Without an explicit format argument, it will generate four formats: Mark IV cont-en, Matk IV cont-nl, luatex+mptopdf, and luatex+plain.<br />
<br />
The generated formats are stored inside the texmf cache.<br />
<br />
== Using fonts ==<br />
<br />
The <code>OSFONTDIR</code> environment variable should contain the paths where the system fonts must be looked for.<br />
<br />
See [[Fonts in LuaTex#Getting access to the system fonts]]<br />
<br />
== Downloaded files ==<br />
<br />
If you have the program 'curl' installed, then your input file can contain e.g.<br />
<br />
<texcode><br />
\externalfigure<br />
[http://www.pragma-ade.com/show-gra.pdf]<br />
</texcode><br />
<br />
and the referenced file will be downloaded automatically and placed in the 'texmf cache' if is not found in the cache already.<br />
<br />
== In case of trouble ==<br />
<br />
=== File not found ===<br />
<br />
* You may get errors like<br />
I can't find file `C:/Program.tex'.<br />
This is likely caused by the luatex executable not handling filename quoting properly yet. If filenames with spaces work at all, you are just lucky.<br />
<br />
This problem is most likely to happen on Windows. There two steps to deal with it:<br />
* You must put the main texmf tree in path without spaces. If you're installing Mark IV via TeXLive 2008, then simply change the top installation path at install time.<br />
* If you're running XP or Server 2003 (and not Vista or Server 2008), you must also set the TeX user home and the Lua cache to paths without spaces. <code>C:/tlhome</code> is a good candidate.<br />
** In <code>texmf.cnf</code> set HOMETEXMF to <code>C:/tlhome/$USERNAME</code> or to something similar of your liking. Using $USERNAME in the path will still give a per-user directory, just not under "Documents and Settings". This assumes that the user name doesn't have spaces of course...<br />
** As mentioned above, create/edit <code>texmfcnf.lua</code> and put a line like <code>return { TEXMFCACHE = 'C:/tlhome/$USERNAME/.texlive2008/texmf-var' }</code>, which sets each user's cache inside his space-free TeX home path.<br />
<br />
== Cache internals ==<br />
<br />
(this paragraph is for developers and power-users only)<br />
<br />
If you look at the folder that TEXMFCACHE points to, you will see a folder named luatex-cache. Inside that, there is the folder context. Inside the context folder, there usually is a single subfolder with a hexadecimal name. This is the md5sum of the name of the 'tex root' folder (aka SELFAUTOPARENT). Below this, there are currently four folders:<br />
<br />
* '''curl''' contains downloaded files. The url is converted to something that can be represented on disk by replacing problematic characters by dashes<br />
* '''fonts''' contains the file data/names.tma, this is the 'font name database' (and the derived names.tmc, tmc files are byte-compiled lua code for faster loading). There are also subdirectories containing the preprocessed metrics for non-tex fonts, one folder for each font type. <br />
* '''formats''' contains the Mark IV format file<br />
* '''trees''' has a small set of files with hexadecimal names, one for each of the top-level constituents of TEXMF (containing the filename database for that tree), and one for each of the found texmf.cnf files (containing in preprocessed form all the variables defined by that file). The filenames are md5sums of the contained directory or filename.<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Debian_installation&diff=12735Debian installation2011-01-10T00:03:29Z<p>Jstein: /* Install the ConTeXt packages */</p>
<hr />
<div>== Install the ConTeXt packages ==<br />
<br />
Norbert Preining has produced reliable, complete ConTeXt packages for Debian.<br />
<br />
If you are running Debian sid or later, 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). <br />
then do<br />
<br />
aptitude update<br />
aptitude install context context-nonfree context-doc-nonfree<br />
<br />
<br />
* The final version in debian squeeze (aka debian stable 6.0) is 2009.11.26-2<br />
* in december 2010 a new experimental .deb package was built you can try it out: http://packages.debian.org/experimental/context<br />
<br />
=== install latest experimental context .deb package ===<br />
<br />
1. Download the .deb <br />
http://packages.debian.org/experimental/all/context/download<br />
<br />
2. run as root<br />
dpkg -i context_2010.07.30-1_all.deb<br />
<br />
You have now a system wide context-installation!<br />
<br />
== See also ==<br />
<br />
[[Category:Installation]]<br />
the [[Debian TeXlive install]] page.</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Debian_installation&diff=12734Debian installation2011-01-10T00:02:49Z<p>Jstein: /* Install the ConTeXt packages */</p>
<hr />
<div>== Install the ConTeXt packages ==<br />
<br />
Norbert Preining has produced reliable, complete ConTeXt packages for Debian.<br />
<br />
If you are running Debian sid or later, 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). <br />
then do<br />
<br />
aptitude update<br />
aptitude install context context-nonfree context-doc-nonfree<br />
<br />
and apt will download and install the latest ConTeXt packages.<br />
<br />
* The final version in debian squeeze (aka debian stable 6.0) is 2009.11.26-2<br />
* in december 2010 a new experimental .deb package was built you can try it out: http://packages.debian.org/experimental/context<br />
<br />
=== install latest experimental context .deb package ===<br />
<br />
1. Download the .deb <br />
http://packages.debian.org/experimental/all/context/download<br />
<br />
2. run as root<br />
dpkg -i context_2010.07.30-1_all.deb<br />
<br />
You have now a system wide context-installation!<br />
<br />
== See also ==<br />
<br />
[[Category:Installation]]<br />
the [[Debian TeXlive install]] page.</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Installation&diff=12733Installation2011-01-09T23:13:19Z<p>Jstein: /* external manuals on installation */</p>
<hr />
<div>< [[Installation hints]] | [[TeX Distributions]] ><br />
<br />
<br />
{{note | The officially recommened way of installing ConTeXt on all platforms is using [[ConTeXt Minimals]]}}<br />
<br />
<br />
= Look before you leap =<br />
<br />
Most [[TeX Distributions]] include an installation of ConTeXt already.<br />
To see if it's installed on your system run <br />
texexec --version<br />
<br />
If it is not installed, there are two important considerations.<br />
<br />
* Do you want a '''ConTeXt distribution''' or do you want a '''TeX distribution''' (plain TeX, LaTeX, ConTeXt, and lots of other goodies). <br />
* Do you want a '''stable''' version of ConTeXt, or do you want the '''bleeding edge''' version. Remember that ConTeXt gets updated frequently.<br />
<br />
If you are on a Linux system, there is also a third consideration:<br />
<br />
* Do you want a '''distribution package''', or do you want your own '''local TeX''' installation.<br />
<br />
= Installation =<br />
select your operating system (alphabetical order)<br />
<br />
<br />
== Linux ==<br />
In decreasing order of simplicity, here are a few options:<br />
<br />
* (simplest) If you distribution supports [[TeX Live]] packages, use them. Debian, Ubuntu, openSUSE, Gentoo, Fedora, Arch and Mandriva (if not too old) do so. See [[Debian installation]] or [[Ubuntu installation]].<br />
* If you are running an rpm-based distribution (RedHat, Fedora, Mandrake, Mandriva etc.), then you can most easily uninstall them like so:<br />
rpm --qa | grep tetex<br />
rpm --erase <package-names><br />
<br />
<code>rpm</code>'s dependencies will tell you what other TeX-related packages are installed but don't have 'tetex' in their names!<br />
<br />
* Otherwise, use a fresh [[TeX Live]] installation. The problem with this method is that you'll probably have to redo the installation once a year, when the new TeX Live DVD comes out.<br />
If you will use TeX Live, you have to delete the distribution-provided teTeX packages (if they exist). <br />
<br />
* Alternatively, if you need '''just ConTeXt and no LaTeX''', you can use the [[ConTeXt Minimals]] installation. <br />
<br />
<br />
<br />
<br />
=== Debian / (K)Ubuntu ===<br />
Debian_TeXlive_install<br />
* [[Debian installation| install ConTeXt on Debian]]<br />
* [[Ubuntu installation| install ConTeXt on Ubuntu]]<br />
* [[Debian TeXlive install| install TeXlive on Debian]]<br />
<br />
=== Fedora ===<br />
<br />
Deatils for [http://fedoraproject.org Fedora] version 11, 12 and 13 are at [http://fedoraproject.org/wiki/Features/TeXLive Fedora Project Wiki TeX Live page] maintained by Jindrich Novy. The repository provides a snapshot of TeX Live 2010 tlpretest, and it includes very new ConTeXt packages and requires absolutely no manual configuration to get working Mk II and Mk IV. Highly recommended.<br />
=== funtoo ===<br />
<br />
If you are using [http://funtoo.org funtoo] there are ebuilds that will make an installation as easy as installing any other package from portage. Take a look at the [[ConTeXt Minimals Funtoo]] Howto. This might also work for [http://www.gentoo.org gentoo], but is untested right now.<br />
<br />
=== openSUSE ===<br />
<br />
OpenSUSE (starting from 10.3beta3) comes with TeX Live and offers also XeTeX. 10.3b3 contains ConTeXt 2007.01.12.<br />
<br />
You can [http://software.opensuse.org/search?q=context search for OpenSUSE packages online]<br />
In OpenSUSE 11.3 there are two packages available. <br />
* texlive-context-2010-33.1.noarch.rpm<br />
* texlive-context-2009-26.1.noarch.rpm<br />
<br />
== MAC OSX ==<br />
* [[Mac Installation]]<br />
<br />
== Unix ==<br />
* [[OpenBSD installation|OpenBSD]]<br />
<br />
== Windows ==<br />
There are two main TeX distributions for Windows wich contain a stable context<br />
* [[MikTeX]] (currently '''ConTeXt support is broken''')<br />
* [[TeX-live]] (provides stable ConTeXt)<br />
<br />
Use [[ConTeXt Minimals]], if you want up to date ConTeXt.<br />
<br />
* [[Windows Installation]]<br />
* [[Simple Windows Installation]]<br />
<br />
== Installation from source == <br />
* [[TeX-live | TeX-live installation]]: Specific installation instructions using the TeX-live source distribution.<br />
* [[Installation hints]]<br />
<br />
<br />
== external manuals on installation ==<br />
* [http://www.pragma-ade.com/general/manuals/minstall.pdf How to install context (outdated 2001)]<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Installation&diff=12732Installation2011-01-09T23:06:48Z<p>Jstein: /* Linux */</p>
<hr />
<div>< [[Installation hints]] | [[TeX Distributions]] ><br />
<br />
<br />
{{note | The officially recommened way of installing ConTeXt on all platforms is using [[ConTeXt Minimals]]}}<br />
<br />
<br />
= Look before you leap =<br />
<br />
Most [[TeX Distributions]] include an installation of ConTeXt already.<br />
To see if it's installed on your system run <br />
texexec --version<br />
<br />
If it is not installed, there are two important considerations.<br />
<br />
* Do you want a '''ConTeXt distribution''' or do you want a '''TeX distribution''' (plain TeX, LaTeX, ConTeXt, and lots of other goodies). <br />
* Do you want a '''stable''' version of ConTeXt, or do you want the '''bleeding edge''' version. Remember that ConTeXt gets updated frequently.<br />
<br />
If you are on a Linux system, there is also a third consideration:<br />
<br />
* Do you want a '''distribution package''', or do you want your own '''local TeX''' installation.<br />
<br />
= Installation =<br />
select your operating system (alphabetical order)<br />
<br />
<br />
== Linux ==<br />
In decreasing order of simplicity, here are a few options:<br />
<br />
* (simplest) If you distribution supports [[TeX Live]] packages, use them. Debian, Ubuntu, openSUSE, Gentoo, Fedora, Arch and Mandriva (if not too old) do so. See [[Debian installation]] or [[Ubuntu installation]].<br />
* If you are running an rpm-based distribution (RedHat, Fedora, Mandrake, Mandriva etc.), then you can most easily uninstall them like so:<br />
rpm --qa | grep tetex<br />
rpm --erase <package-names><br />
<br />
<code>rpm</code>'s dependencies will tell you what other TeX-related packages are installed but don't have 'tetex' in their names!<br />
<br />
* Otherwise, use a fresh [[TeX Live]] installation. The problem with this method is that you'll probably have to redo the installation once a year, when the new TeX Live DVD comes out.<br />
If you will use TeX Live, you have to delete the distribution-provided teTeX packages (if they exist). <br />
<br />
* Alternatively, if you need '''just ConTeXt and no LaTeX''', you can use the [[ConTeXt Minimals]] installation. <br />
<br />
<br />
<br />
<br />
=== Debian / (K)Ubuntu ===<br />
Debian_TeXlive_install<br />
* [[Debian installation| install ConTeXt on Debian]]<br />
* [[Ubuntu installation| install ConTeXt on Ubuntu]]<br />
* [[Debian TeXlive install| install TeXlive on Debian]]<br />
<br />
=== Fedora ===<br />
<br />
Deatils for [http://fedoraproject.org Fedora] version 11, 12 and 13 are at [http://fedoraproject.org/wiki/Features/TeXLive Fedora Project Wiki TeX Live page] maintained by Jindrich Novy. The repository provides a snapshot of TeX Live 2010 tlpretest, and it includes very new ConTeXt packages and requires absolutely no manual configuration to get working Mk II and Mk IV. Highly recommended.<br />
=== funtoo ===<br />
<br />
If you are using [http://funtoo.org funtoo] there are ebuilds that will make an installation as easy as installing any other package from portage. Take a look at the [[ConTeXt Minimals Funtoo]] Howto. This might also work for [http://www.gentoo.org gentoo], but is untested right now.<br />
<br />
=== openSUSE ===<br />
<br />
OpenSUSE (starting from 10.3beta3) comes with TeX Live and offers also XeTeX. 10.3b3 contains ConTeXt 2007.01.12.<br />
<br />
You can [http://software.opensuse.org/search?q=context search for OpenSUSE packages online]<br />
In OpenSUSE 11.3 there are two packages available. <br />
* texlive-context-2010-33.1.noarch.rpm<br />
* texlive-context-2009-26.1.noarch.rpm<br />
<br />
== MAC OSX ==<br />
* [[Mac Installation]]<br />
<br />
== Unix ==<br />
* [[OpenBSD installation|OpenBSD]]<br />
<br />
== Windows ==<br />
There are two main TeX distributions for Windows wich contain a stable context<br />
* [[MikTeX]] (currently '''ConTeXt support is broken''')<br />
* [[TeX-live]] (provides stable ConTeXt)<br />
<br />
Use [[ConTeXt Minimals]], if you want up to date ConTeXt.<br />
<br />
* [[Windows Installation]]<br />
* [[Simple Windows Installation]]<br />
<br />
== Installation from source == <br />
* [[TeX-live | TeX-live installation]]: Specific installation instructions using the TeX-live source distribution.<br />
* [[Installation hints]]<br />
<br />
<br />
== external manuals on installation ==<br />
* [http://www.pragma-ade.com/general/manuals/minstall.pdf How to install context (2001)]<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Installation&diff=12731Installation2011-01-09T23:04:02Z<p>Jstein: they have all Tex Live</p>
<hr />
<div>< [[Installation hints]] | [[TeX Distributions]] ><br />
<br />
<br />
{{note | The officially recommened way of installing ConTeXt on all platforms is using [[ConTeXt Minimals]]}}<br />
<br />
<br />
= Look before you leap =<br />
<br />
Most [[TeX Distributions]] include an installation of ConTeXt already.<br />
To see if it's installed on your system run <br />
texexec --version<br />
<br />
If it is not installed, there are two important considerations.<br />
<br />
* Do you want a '''ConTeXt distribution''' or do you want a '''TeX distribution''' (plain TeX, LaTeX, ConTeXt, and lots of other goodies). <br />
* Do you want a '''stable''' version of ConTeXt, or do you want the '''bleeding edge''' version. Remember that ConTeXt gets updated frequently.<br />
<br />
If you are on a Linux system, there is also a third consideration:<br />
<br />
* Do you want a '''distribution package''', or do you want your own '''local TeX''' installation.<br />
<br />
= Installation =<br />
select your operating system (alphabetical order)<br />
<br />
<br />
== Linux ==<br />
In decreasing order of simplicity, here are a few options:<br />
<br />
* (simplest) If you distribution supports [[TeX Live]] packages, use them. Debian, Ubuntu, openSUSE, Gentoo, Fedora, Arch and Mandriva (if not too old) do so. See [[Debian installation]] or [[Ubuntu installation]].<br />
* If you are running an rpm-based distribution (RedHat, Fedora, Mandrake, Mandriva etc.), then you can most easily uninstall them like so:<br />
rpm --qa | grep tetex<br />
rpm --erase <package-names><br />
<br />
<code>rpm</code>'s dependencies will tell you what other TeX-related packages are installed but don't have 'tetex' in their names!<br />
<br />
* Otherwise, use a fresh [[TeX Live]] installation. The problem with this method is that you'll probably have to redo the installation once a year, when the new TeX Live DVD comes out.<br />
If you will use TeX Live, you have to delete the distribution-provided teTeX packages (if they exist). <br />
<br />
* Alternatively, if you need to use just ConTeXt (e.g. not LaTeX), you can use the [[ConTeXt Minimals]] installation. See the directions that follow.<br />
<br />
<br />
<br />
<br />
=== Debian / (K)Ubuntu ===<br />
Debian_TeXlive_install<br />
* [[Debian installation| install ConTeXt on Debian]]<br />
* [[Ubuntu installation| install ConTeXt on Ubuntu]]<br />
* [[Debian TeXlive install| install TeXlive on Debian]]<br />
<br />
=== Fedora ===<br />
<br />
Deatils for [http://fedoraproject.org Fedora] version 11, 12 and 13 are at [http://fedoraproject.org/wiki/Features/TeXLive Fedora Project Wiki TeX Live page] maintained by Jindrich Novy. The repository provides a snapshot of TeX Live 2010 tlpretest, and it includes very new ConTeXt packages and requires absolutely no manual configuration to get working Mk II and Mk IV. Highly recommended.<br />
=== funtoo ===<br />
<br />
If you are using [http://funtoo.org funtoo] there are ebuilds that will make an installation as easy as installing any other package from portage. Take a look at the [[ConTeXt Minimals Funtoo]] Howto. This might also work for [http://www.gentoo.org gentoo], but is untested right now.<br />
<br />
=== openSUSE ===<br />
<br />
OpenSUSE (starting from 10.3beta3) comes with TeX Live and offers also XeTeX. 10.3b3 contains ConTeXt 2007.01.12.<br />
<br />
You can [http://software.opensuse.org/search?q=context search for OpenSUSE packages online]<br />
In OpenSUSE 11.3 there are two packages available. <br />
* texlive-context-2010-33.1.noarch.rpm<br />
* texlive-context-2009-26.1.noarch.rpm<br />
<br />
<br />
== MAC OSX ==<br />
* [[Mac Installation]]<br />
<br />
== Unix ==<br />
* [[OpenBSD installation|OpenBSD]]<br />
<br />
== Windows ==<br />
There are two main TeX distributions for Windows wich contain a stable context<br />
* [[MikTeX]] (currently '''ConTeXt support is broken''')<br />
* [[TeX-live]] (provides stable ConTeXt)<br />
<br />
Use [[ConTeXt Minimals]], if you want up to date ConTeXt.<br />
<br />
* [[Windows Installation]]<br />
* [[Simple Windows Installation]]<br />
<br />
== Installation from source == <br />
* [[TeX-live | TeX-live installation]]: Specific installation instructions using the TeX-live source distribution.<br />
* [[Installation hints]]<br />
<br />
<br />
== external manuals on installation ==<br />
* [http://www.pragma-ade.com/general/manuals/minstall.pdf How to install context (2001)]<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Installation&diff=12730Installation2011-01-09T22:51:38Z<p>Jstein: /* Look before you leap */</p>
<hr />
<div>< [[Installation hints]] | [[TeX Distributions]] ><br />
<br />
<br />
{{note | The officially recommened way of installing ConTeXt on all platforms is using [[ConTeXt Minimals]]}}<br />
<br />
<br />
= Look before you leap =<br />
<br />
Most [[TeX Distributions]] include an installation of ConTeXt already.<br />
To see if it's installed on your system run <br />
texexec --version<br />
<br />
If it is not installed, there are two important considerations.<br />
<br />
* Do you want a '''ConTeXt distribution''' or do you want a '''TeX distribution''' (plain TeX, LaTeX, ConTeXt, and lots of other goodies). <br />
* Do you want a '''stable''' version of ConTeXt, or do you want the '''bleeding edge''' version. Remember that ConTeXt gets updated frequently.<br />
<br />
If you are on a Linux system, there is also a third consideration:<br />
<br />
* Do you want a '''distribution package''', or do you want your own '''local TeX''' installation.<br />
<br />
= Installation =<br />
select your operating system (alphabetical order)<br />
<br />
<br />
== Linux ==<br />
In decreasing order of simplicity, here are a few options:<br />
<br />
* (simplest) If you distribution supports [[TeX Live]] packages, use them. Debian, Ubuntu, openSUSE, Gentoo, Fedora, Arch and Mandriva (if not too old) do so. See [[Debian installation]] or [[Ubuntu installation]].<br />
* If you are running an rpm-based distribution (RedHat, Fedora, Mandrake, Mandriva etc.), then you can most easily uninstall them like so:<br />
rpm --qa | grep tetex<br />
rpm --erase <package-names><br />
<br />
<code>rpm</code>'s dependencies will tell you what other TeX-related packages are installed but don't have 'tetex' in their names!<br />
<br />
* Otherwise, use a fresh [[TeX Live]] installation. The problem with this method is that you'll probably have to redo the installation once a year, when the new TeX Live DVD comes out.<br />
If you will use TeX Live, you have to delete the distribution-provided teTeX packages (if they exist). <br />
<br />
* Alternatively, if you need to use just ConTeXt (e.g. not LaTeX), you can use the [[ConTeXt Minimals]] installation. See the directions that follow.<br />
<br />
<br />
<br />
<br />
=== Debian / (K)Ubuntu ===<br />
Debian_TeXlive_install<br />
* [[Debian installation| install ConTeXt on Debian]]<br />
* [[Ubuntu installation| install ConTeXt on Ubuntu]]<br />
* [[Debian TeXlive install| install TeXlive on Debian]]<br />
<br />
=== Fedora ===<br />
<br />
Deatils for [http://fedoraproject.org Fedora] version 11, 12 and 13 are at [http://fedoraproject.org/wiki/Features/TeXLive Fedora Project Wiki TeX Live page] maintained by Jindrich Novy. The repository provides a snapshot of TeX Live 2010 tlpretest, and it includes very new ConTeXt packages and requires absolutely no manual configuration to get working Mk II and Mk IV. Highly recommended.<br />
=== funtoo ===<br />
<br />
If you are using [http://funtoo.org funtoo] there are ebuilds that will make an installation as easy as installing any other package from portage. Take a look at the [[ConTeXt Minimals Funtoo]] Howto. This might also work for [http://www.gentoo.org gentoo], but is untested right now.<br />
<br />
=== SUSE/openSUSE ===<br />
<br />
OpenSUSE (starting from 10.3beta3) comes with TeX Live and offers also XeTeX. 10.3b3 contains ConTeXt 2007.01.12.<br />
<br />
OpenSUSE 10.2 (released December 2006) uses teTeX 3.0 and contains the 2005.01.31 version of ConTeXt that is standard in teTeX 3.0. The package is <tt>te_cont</tt>. <br />
[http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/|Here]<br />
is an RPM repository where you can find it, but you should be able to install it using automated tools. Then you'll want to upgrade to a more recent version of ConTeXt. As with Suse 10 (see next paragraph), you'll also need the <tt>te_mpost</tt> and <tt>ruby</tt> packages.<br />
<br />
=== Archlinux ===<br />
<br />
Archlinux comes with Tex Live.<br />
<br />
For older distributions see also: [http://home.salamander.com/~wmcclain/context-help.html#old-installation]<br />
<br />
<br />
== MAC OSX ==<br />
* [[Mac Installation]]<br />
<br />
== Unix ==<br />
* [[OpenBSD installation|OpenBSD]]<br />
<br />
== Windows ==<br />
There are two main TeX distributions for Windows wich contain a stable context<br />
* [[MikTeX]] (currently '''ConTeXt support is broken''')<br />
* [[TeX-live]] (provides stable ConTeXt)<br />
<br />
Use [[ConTeXt Minimals]], if you want up to date ConTeXt.<br />
<br />
* [[Windows Installation]]<br />
* [[Simple Windows Installation]]<br />
<br />
== Installation from source == <br />
* [[TeX-live | TeX-live installation]]: Specific installation instructions using the TeX-live source distribution.<br />
* [[Installation hints]]<br />
<br />
<br />
== external manuals on installation ==<br />
* [http://www.pragma-ade.com/general/manuals/minstall.pdf How to install context (2001)]<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=User:Jstein&diff=12723User:Jstein2011-01-09T02:00:58Z<p>Jstein: </p>
<hr />
<div><context source=yes><br />
i like \Context<br />
</context></div>Jsteinhttps://wiki.contextgarden.net/index.php?title=User:Jstein&diff=12722User:Jstein2011-01-09T02:00:44Z<p>Jstein: </p>
<hr />
<div><context source=yes><br />
i like context<br />
</context></div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Linetable&diff=12721Linetable2011-01-09T01:56:24Z<p>Jstein: </p>
<hr />
<div>< [[Tables Overview]]<br />
<br />
There's no docs about this new mode besides in the sources ([[source:core-ltb.tex|core-ltb.tex]]).<br />
It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically.<br />
It can repeat not only rows (headers, footers) but even columns.<br />
<br />
<context source=yes><br />
\setupcolors[state=start]<br />
\setuplinetable[n=6,m={2,2,2},regels=25]<br />
<br />
\startlinetable<br />
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
<br />
\startlinetable<br />
\NC[style=slanted, color=green, background=color, backgroundcolor=darkred, nx=2, uitlijnen=middle] xxx<br />
\NC yy \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
</context><br />
<br />
Another sample, posted by Hans to the mailing list on 2004-12-14:<br />
<br />
<context source=yes><br />
\setuplinetable[n=6,lines=40]<br />
<br />
\setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]<br />
\setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow]<br />
\setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta]<br />
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]<br />
\setuplinetable[r][even][background=color,backgroundcolor=green]<br />
<br />
\starttext<br />
<br />
\showframe \showstruts<br />
<br />
\setupcolors[state=start]<br />
<br />
\startlinetable<br />
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR<br />
\dorecurse{20}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR}<br />
\stoplinetable<br />
<br />
\stoptext<br />
</context><br />
<br />
{{todo|write documentation}}<br />
<br />
[[Category:Tables]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Linetable&diff=12720Linetable2011-01-09T01:55:51Z<p>Jstein: </p>
<hr />
<div>< [[Tables Overview]]<br />
<br />
There's no docs about this new mode besides in the sources ([[source:core-ltb.tex|core-ltb.tex]]).<br />
It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically.<br />
It can repeat not only rows (headers, footers) but even columns.<br />
<br />
<context source=yes><br />
\setupcolors[state=start]<br />
\setuplinetable[n=6,m={2,2,2},regels=25]<br />
<br />
\startlinetable<br />
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{5}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
<br />
\startlinetable<br />
\NC[style=slanted, color=green, background=color, backgroundcolor=darkred, nx=2, uitlijnen=middle] xxx<br />
\NC yy \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{5}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
</context><br />
<br />
Another sample, posted by Hans to the mailing list on 2004-12-14:<br />
<br />
<context source=yes><br />
\setuplinetable[n=6,lines=40]<br />
<br />
\setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]<br />
\setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow]<br />
\setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta]<br />
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]<br />
\setuplinetable[r][even][background=color,backgroundcolor=green]<br />
<br />
\starttext<br />
<br />
\showframe \showstruts<br />
<br />
\setupcolors[state=start]<br />
<br />
\startlinetable<br />
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR<br />
\dorecurse{20}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR}<br />
\stoplinetable<br />
<br />
\stoptext<br />
</context><br />
<br />
{{todo|write documentation}}<br />
<br />
[[Category:Tables]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Linetable&diff=12719Linetable2011-01-09T01:55:21Z<p>Jstein: <context source=yes></p>
<hr />
<div>< [[Tables Overview]]<br />
<br />
There's no docs about this new mode besides in the sources ([[source:core-ltb.tex|core-ltb.tex]]).<br />
It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically.<br />
It can repeat not only rows (headers, footers) but even columns.<br />
<br />
<context source=yes><br />
\setupcolors[state=start]<br />
\setuplinetable[n=6,m={2,2,2},regels=25]<br />
<br />
\startlinetable<br />
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
<br />
\startlinetable<br />
\NC[style=slanted, color=green, background=color, backgroundcolor=darkred, nx=2, uitlijnen=middle] xxx<br />
\NC yy \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
</context><br />
<br />
Another sample, posted by Hans to the mailing list on 2004-12-14:<br />
<br />
<context source=yes><br />
\setuplinetable[n=6,lines=40]<br />
<br />
\setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]<br />
\setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow]<br />
\setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta]<br />
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]<br />
\setuplinetable[r][even][background=color,backgroundcolor=green]<br />
<br />
\starttext<br />
<br />
\showframe \showstruts<br />
<br />
\setupcolors[state=start]<br />
<br />
\startlinetable<br />
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR<br />
\dorecurse{20}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR}<br />
\stoplinetable<br />
<br />
\stoptext<br />
</context><br />
<br />
{{todo|write documentation}}<br />
<br />
[[Category:Tables]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Linetable&diff=12718Linetable2011-01-09T01:53:53Z<p>Jstein: </p>
<hr />
<div>< [[Tables Overview]]<br />
<br />
There's no docs about this new mode besides in the sources ([[source:core-ltb.tex|core-ltb.tex]]).<br />
It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically.<br />
It can repeat not only rows (headers, footers) but even columns.<br />
<br />
<texcode><br />
\setuplinetable[n=6,m={2,2,2},regels=25]<br />
<br />
\startlinetable<br />
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
<br />
\startlinetable<br />
\NC[style=slanted,color=green,background=color,backgroundcolor=darkred,nx=2,uitlijnen=middle] xxx<br />
\NC yy \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
</texcode><br />
<br />
The sample looks like this:<br />
<br />
<context source=yes><br />
\setupcolors[state=start]<br />
\setuplinetable[n=6,m={2,2,2},regels=25]<br />
<br />
\startlinetable<br />
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
<br />
\startlinetable<br />
\NC[style=slanted, color=green, background=color, backgroundcolor=darkred, nx=2, uitlijnen=middle] xxx<br />
\NC yy \NC ddddd \NC eeee \NC ff \NC \NR<br />
\dorecurse{10}<br />
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}<br />
\stoplinetable<br />
</context><br />
<br />
Another sample, posted by Hans to the mailing list on 2004-12-14:<br />
<br />
<texcode><br />
\setuplinetable[n=6,lines=40]<br />
<br />
\setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]<br />
\setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow]<br />
\setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta]<br />
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]<br />
\setuplinetable[r][even][background=color,backgroundcolor=green]<br />
<br />
\starttext<br />
<br />
\showframe \showstruts<br />
<br />
\setupcolors[state=start]<br />
<br />
\startlinetable<br />
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR<br />
\dorecurse{100}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR}<br />
\stoplinetable<br />
<br />
\stoptext<br />
</texcode><br />
<br />
looks like:<br />
<br />
<context><br />
\setuplinetable[n=6,lines=40]<br />
<br />
\setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]<br />
\setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow]<br />
\setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta]<br />
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]<br />
\setuplinetable[r][even][background=color,backgroundcolor=green]<br />
<br />
\starttext<br />
<br />
\showframe \showstruts<br />
<br />
\setupcolors[state=start]<br />
<br />
\startlinetable<br />
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR<br />
\dorecurse{20}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR}<br />
\stoplinetable<br />
<br />
\stoptext<br />
</context><br />
<br />
{{todo|write documentation}}<br />
<br />
[[Category:Tables]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=What_is_ConTeXt&diff=12716What is ConTeXt2011-01-09T01:03:34Z<p>Jstein: </p>
<hr />
<div>== In short ==<br />
<br />
<br />
'''ConTeXt''' is a [http://en.wikipedia.org/wiki/document_markup_language document markup language] and [http://en.wikipedia.org/wiki/document_preparation_system document preparation system] based on the [http://en.wikipedia.org/wiki/TeX TeX] typesetting system. It was designed with the same general-purpose aims as [http://en.wikipedia.org/wiki/LaTeX LaTeX] of providing an easy to use interface to the high quality typesetting engine provided by TeX. However, while LaTeX insulates the writer from typographical details, ConTeXt takes a complementary approach by providing structured interfaces for handling typography, including extensive support for colors, backgrounds, hyperlinks, presentations, figure-text integration, and conditional compilation. It gives the user extensive control over formatting while making it easy to create new layouts and styles without learning the TeX macro language. ConTeXt’s unified design avoids the package clashes that can happen with LaTeX. <br />
[[Image:Kochloewe_c.jpg|frameless|right|200px]]<br />
<br />
<br />
ConTeXt provides a multi-lingual user interface with support for markup in English, Dutch, German, French, and Italian and support for output in many languages including western European languages, eastern European languages, Arabic, Chinese, Japanese, and Korean. It also allows the user to use different TeX engines like<br />
[http://en.wikipedia.org/wiki/pdfTeX pdfTeX], [[XeTeX]], and [[LuaTeX]] without changing the user interface.<br />
<br />
ConTeXt integrates a superset of [[MetaPost]] called [[MetaFun]] which allows the users to use the drawing abilities of MetaPost for page backgrounds and ornaments. Metafun can also be used with stand alone with MetaPost.<br />
<br />
ConTeXt also provides a macro package for typesetting chemical structure diagrams with TeX called '''PPCHTeX'''. This package can also be used with plain TeX and LaTeX.<br />
<br />
ConTeXt was developed from 1990 by Hans Hagen from [http://www.pragma-ade.com/ PRAGMA Advanced Document Engineering] (Pragma ADE), a Netherlands-based company. It is [http://en.wikipedia.org/wiki/free_software free software]: The program code (i.e. anything not under the <code>/doc</code> subtree) is distributed under the [http://en.wikipedia.org/wiki/GNU_GPL GNU GPL]; the documentation is provided under [http://en.wikipedia.org/wiki/Creative_Commons Creative Commons] Attribution NonCommercial ShareAlike license.<br />
<br />
== In a bit more detail ==<br />
<br />
(From in-en-04.pdf)<br />
<br />
ConTEXt can be used to typeset complex and large collections<br />
of documents, like educational materials, user guides<br />
and technical manuals. Such documents often have high demands<br />
regarding structure, design and accessibility. Easy<br />
maintenance, reuse of content and typographic consistency<br />
are important prerequisites.<br />
<br />
ConTEXt is developed for those who are responsible for producing<br />
such documents. ConTEXt is written in the typographical<br />
programming languages TEX. For using ConTEXt, no TEX--<br />
programming skills and no technical background are needed.<br />
Some basic knowledge of typography and document design<br />
will enable you to use the full power of ConTEXt.<br />
<br />
ConTEXt is parameter driven and the user interface supports<br />
several languages, like english, german and dutch. This<br />
means that those less familiar with the english language can<br />
choose the interface that suits them best. Of course ConTEXt<br />
can typeset in many languages.<br />
<br />
Originally ConTEXt was written as tool for writing complex,<br />
constantly changing and extensive educational documents.<br />
Although much functionality originates there, ConTEXt has<br />
proven to be quite suitable to perform many other complex<br />
typesetting tasks. Some features are:<br />
<br />
* automatic placement of figures, formulas, tables and other kind of floating bodies<br />
* automatic generation of lists of abbreviations, synonyms, and whatever needs to be sorted<br />
* automatic numbering of footnotes<br />
* adapting footers and headers to the current page content<br />
* extensive formatting of itemizations in more levels<br />
* consistent typesetting of legends to formulas<br />
* maintaining several registers, if needed with extensive interactive support<br />
* extensive cross referencing capabilities<br />
* generating lists of used figures, tables, formulas and more<br />
* forcing rigourous consistency in emphasizing parts of the text<br />
* managing documents in a project environment<br />
* automatic placement of marginal notes<br />
* typesetting in more than one column<br />
* identifying textual elements in such a way that they can be hidden, moved and reused when needed (questions, answers, definitions, etc.)<br />
* using text in more that one document, if needed with a different layout<br />
* automatic hyphenation of words as well as adapt to language specific typographic needs<br />
* inclusion of illustrations in standardized formats from other applications<br />
* using color<br />
* easy change of layout, while guarding consistent typography<br />
* providing multiple tables of contents and lists, at all levels, to provide optimal accessibility<br />
* automatic numbering of definitions, lemmas and other structural components<br />
* automatic numbering of figures, tables, and other floating bodies<br />
* automatic makeup of tables and formulas<br />
<br />
ConTEXt supports the PDF format and is able to directly produce<br />
highly interactive PDF files, using PDFTEX. All cross references<br />
are automatically converted to hyperlinks. Such documents<br />
can be viewed and consulted with Acrobat. ConTEXt<br />
can provide all kind of navigational aids, that can be activated<br />
without programming. Electronic versions of documents<br />
thereby become very useful in educational settings. The potentials<br />
of PDF is available to the user: complex forms and<br />
JavaScript’s are no problem for ConTEXt.<br />
[http://www.pragma-ade.nl/ PRAGMA ADE] has developed ConTEXt in--house mainly to suit<br />
its own and customers wishes concerning developing educational<br />
documents. Flexibility in layout, reuse of content, and<br />
maintenance are keywords.</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=From_LaTeX_to_ConTeXt&diff=12715From LaTeX to ConTeXt2011-01-09T00:51:56Z<p>Jstein: /* Command syntax */</p>
<hr />
<div>< [[Main Page]] ><br />
<br />
General hints for converting from LaTeX to Context can be found in <br />
* [http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf LaTeX in proper ConTeXt] by [http://www.berenddeboer.net/ Berend de Boer]<br />
<br />
This page offers specific advice on a number of special things that you may be doing with LaTeX, but are not so obvious to do with ConTeXt.<br />
<br />
=== Document and Page Layout ===<br />
* [[Document Titles]]: Title blocks, as in the standard LaTeX article.<br />
* [[LaTeX Thanks|\thanks{}]] adds footnoted information, usually to author blocks.<br />
* [[Article Abstracts]]: Abstracts from the standard LaTeX article or report.<br />
* [[KOMA-scrartcl Type Area]]: An interesting automated type-area setup.<br />
* [[Unnumbered Sections]]: Section and subsection headings without numbers.<br />
* [[Flush bottom]]<br />
* [[Vertically Centered Boxes]]: Centering parboxes and tables in a line of text.<br />
<br />
=== Text Formatting ===<br />
* [[Bold small caps]]<br />
* [[Bold typewriter]]: Bold versions of the <tt>cmtt</tt> family of monospaced fonts.<br />
* [[Verbatim with line breaks]]<br />
* [[ISO-8859-15]]: Using the ISO Latin-9 (Western European) character encoding for input.<br />
* [[Description]]<br />
* The microtype package has its analogue in [[Protrusion]]<br />
* So-called (by plain TeX and LaTeX) [[French spacing]]<br />
<br />
=== Different use of brackets in ConTeXt and LaTeX ===<br />
<br />
{| border="1" cellspacing="0" cellpadding="2"<br />
|-<br />
| || {..} || [..] <br />
|-<br />
| LaTeX || command arguments || optional arguments<br />
|-<br />
| ConTeXt || typeset material; scope or range of the command (the text acted upon) is placed between curly brackets || setups instructions and metadata (options)<br />
|-<br />
|}<br />
<br />
=== Programming ===<br />
<br />
* [[Commands with optional arguments]]<br />
<br />
=== Document Metadata ===<br />
* [[PDF-strings]]<br />
<br />
=== Math ===<br />
<br />
* [[LaTeX Math in ConTeXt]]<br />
<br />
<br />
=== Copy-Paste text between LaTeX and ConTeXt ===<br />
<br />
It is sometimes useful to have the same source for a latex document and context presentation (or context document and latex presentation). However, the commands used by both are very different. Can someone describe some definations in context that implement the core functionality of latex commands like \section et al, \textbf et al, \bfseries et al and \begin \end pairs?<br />
{{Howto}}<br />
<br />
''<code>\section</code> works the same way as in LaTeX, for mathematics take a look into [[LaTeX Math in ConTeXt]], use <code>\bf</code> instead of <code>\textbf</code> for both LaTeX and ConTeXt (or <code><nowiki>\def\textbf#1{{\bf #1}}</nowiki></code>) and as a general rule: use as many plain TeX macros as possible instead of LaTeX-specific macros. <code>\begin ... \end</code> only works for math as far as I know. See also other documents listed above or ask on the mailing list.''<br />
<br />
<!--<br />
* [[LaTeX&ConTeXt/Introduction|Introduction]]<br />
* [[LaTeX&ConTeXt/Basic Latex|Basic Latex]]<br />
* [[LaTeX&ConTeXt/Math Environments|Math Environments]]<br />
Also, many of the macros on the [[LaTeX Math in ConTeXt]] page are equally useful in ConTeXt formulas.<br />
--><br />
<br />
<br />
A Vietnamese version of <i>LaTeX in proper ConTeXt</i> is available at [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf VnOSS].<br />
<br />
== Functionality of Latex Packages in Context ==<br />
* [[Latex Packages]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=From_LaTeX_to_ConTeXt&diff=12714From LaTeX to ConTeXt2011-01-09T00:51:14Z<p>Jstein: /* Command syntax */ Brackets are used different in ConTeXt and LaTeX:</p>
<hr />
<div>< [[Main Page]] ><br />
<br />
General hints for converting from LaTeX to Context can be found in <br />
* [http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf LaTeX in proper ConTeXt] by [http://www.berenddeboer.net/ Berend de Boer]<br />
<br />
This page offers specific advice on a number of special things that you may be doing with LaTeX, but are not so obvious to do with ConTeXt.<br />
<br />
=== Document and Page Layout ===<br />
* [[Document Titles]]: Title blocks, as in the standard LaTeX article.<br />
* [[LaTeX Thanks|\thanks{}]] adds footnoted information, usually to author blocks.<br />
* [[Article Abstracts]]: Abstracts from the standard LaTeX article or report.<br />
* [[KOMA-scrartcl Type Area]]: An interesting automated type-area setup.<br />
* [[Unnumbered Sections]]: Section and subsection headings without numbers.<br />
* [[Flush bottom]]<br />
* [[Vertically Centered Boxes]]: Centering parboxes and tables in a line of text.<br />
<br />
=== Text Formatting ===<br />
* [[Bold small caps]]<br />
* [[Bold typewriter]]: Bold versions of the <tt>cmtt</tt> family of monospaced fonts.<br />
* [[Verbatim with line breaks]]<br />
* [[ISO-8859-15]]: Using the ISO Latin-9 (Western European) character encoding for input.<br />
* [[Description]]<br />
* The microtype package has its analogue in [[Protrusion]]<br />
* So-called (by plain TeX and LaTeX) [[French spacing]]<br />
<br />
=== Command syntax ===<br />
<br />
Brackets are used different in ConTeXt and LaTeX<br />
<br />
{| border="1" cellspacing="0" cellpadding="2"<br />
|-<br />
| || {..} || [..] <br />
|-<br />
| LaTeX || command arguments || optional arguments<br />
|-<br />
| ConTeXt || typeset material; scope or range of the command (the text acted upon) is placed between curly brackets || setups instructions and metadata (options)<br />
|-<br />
|}<br />
<br />
=== Programming ===<br />
<br />
* [[Commands with optional arguments]]<br />
<br />
=== Document Metadata ===<br />
* [[PDF-strings]]<br />
<br />
=== Math ===<br />
<br />
* [[LaTeX Math in ConTeXt]]<br />
<br />
<br />
=== Copy-Paste text between LaTeX and ConTeXt ===<br />
<br />
It is sometimes useful to have the same source for a latex document and context presentation (or context document and latex presentation). However, the commands used by both are very different. Can someone describe some definations in context that implement the core functionality of latex commands like \section et al, \textbf et al, \bfseries et al and \begin \end pairs?<br />
{{Howto}}<br />
<br />
''<code>\section</code> works the same way as in LaTeX, for mathematics take a look into [[LaTeX Math in ConTeXt]], use <code>\bf</code> instead of <code>\textbf</code> for both LaTeX and ConTeXt (or <code><nowiki>\def\textbf#1{{\bf #1}}</nowiki></code>) and as a general rule: use as many plain TeX macros as possible instead of LaTeX-specific macros. <code>\begin ... \end</code> only works for math as far as I know. See also other documents listed above or ask on the mailing list.''<br />
<br />
<!--<br />
* [[LaTeX&ConTeXt/Introduction|Introduction]]<br />
* [[LaTeX&ConTeXt/Basic Latex|Basic Latex]]<br />
* [[LaTeX&ConTeXt/Math Environments|Math Environments]]<br />
Also, many of the macros on the [[LaTeX Math in ConTeXt]] page are equally useful in ConTeXt formulas.<br />
--><br />
<br />
<br />
A Vietnamese version of <i>LaTeX in proper ConTeXt</i> is available at [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf VnOSS].<br />
<br />
== Functionality of Latex Packages in Context ==<br />
* [[Latex Packages]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=From_LaTeX_to_ConTeXt&diff=12713From LaTeX to ConTeXt2011-01-09T00:35:20Z<p>Jstein: /* Document and Page Layout */</p>
<hr />
<div>< [[Main Page]] ><br />
<br />
General hints for converting from LaTeX to Context can be found in <br />
* [http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf LaTeX in proper ConTeXt] by [http://www.berenddeboer.net/ Berend de Boer]<br />
<br />
This page offers specific advice on a number of special things that you may be doing with LaTeX, but are not so obvious to do with ConTeXt.<br />
<br />
=== Document and Page Layout ===<br />
* [[Document Titles]]: Title blocks, as in the standard LaTeX article.<br />
* [[LaTeX Thanks|\thanks{}]] adds footnoted information, usually to author blocks.<br />
* [[Article Abstracts]]: Abstracts from the standard LaTeX article or report.<br />
* [[KOMA-scrartcl Type Area]]: An interesting automated type-area setup.<br />
* [[Unnumbered Sections]]: Section and subsection headings without numbers.<br />
* [[Flush bottom]]<br />
* [[Vertically Centered Boxes]]: Centering parboxes and tables in a line of text.<br />
<br />
=== Text Formatting ===<br />
* [[Bold small caps]]<br />
* [[Bold typewriter]]: Bold versions of the <tt>cmtt</tt> family of monospaced fonts.<br />
* [[Verbatim with line breaks]]<br />
* [[ISO-8859-15]]: Using the ISO Latin-9 (Western European) character encoding for input.<br />
* [[Description]]<br />
* The microtype package has its analogue in [[Protrusion]]<br />
* So-called (by plain TeX and LaTeX) [[French spacing]]<br />
<br />
=== Command syntax ===<br />
<br />
''Looks similar, but...''<br />
<br />
'''LaTeX''':<br />
"Command arguments are enclosed in curly braces { and },<br />
except for optional arguments, which are enclosed in square<br />
brackets [ and ]."<br />
<br />
'''ConTeXt''':<br />
"A command is often followed by setups or by text. Setups<br />
are placed between brackets ([]). The scope or range of<br />
the command, the text acted upon, is placed between<br />
curly brackets ({})."<br />
<br />
In other words,<br />
<br />
* arguments in {} pairs are typeset material<br />
* arguments in [] are setup instructions and metadata<br />
<br />
=== Programming ===<br />
<br />
* [[Commands with optional arguments]]<br />
<br />
=== Document Metadata ===<br />
* [[PDF-strings]]<br />
<br />
=== Math ===<br />
<br />
* [[LaTeX Math in ConTeXt]]<br />
<br />
<br />
=== Copy-Paste text between LaTeX and ConTeXt ===<br />
<br />
It is sometimes useful to have the same source for a latex document and context presentation (or context document and latex presentation). However, the commands used by both are very different. Can someone describe some definations in context that implement the core functionality of latex commands like \section et al, \textbf et al, \bfseries et al and \begin \end pairs?<br />
{{Howto}}<br />
<br />
''<code>\section</code> works the same way as in LaTeX, for mathematics take a look into [[LaTeX Math in ConTeXt]], use <code>\bf</code> instead of <code>\textbf</code> for both LaTeX and ConTeXt (or <code><nowiki>\def\textbf#1{{\bf #1}}</nowiki></code>) and as a general rule: use as many plain TeX macros as possible instead of LaTeX-specific macros. <code>\begin ... \end</code> only works for math as far as I know. See also other documents listed above or ask on the mailing list.''<br />
<br />
<!--<br />
* [[LaTeX&ConTeXt/Introduction|Introduction]]<br />
* [[LaTeX&ConTeXt/Basic Latex|Basic Latex]]<br />
* [[LaTeX&ConTeXt/Math Environments|Math Environments]]<br />
Also, many of the macros on the [[LaTeX Math in ConTeXt]] page are equally useful in ConTeXt formulas.<br />
--><br />
<br />
<br />
A Vietnamese version of <i>LaTeX in proper ConTeXt</i> is available at [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf VnOSS].<br />
<br />
== Functionality of Latex Packages in Context ==<br />
* [[Latex Packages]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Talk:What_is_ConTeXt&diff=12707Talk:What is ConTeXt2011-01-09T00:09:38Z<p>Jstein: old stuff deleted</p>
<hr />
<div></div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Talk:What_is_ConTeXt&diff=12706Talk:What is ConTeXt2011-01-09T00:08:46Z<p>Jstein: /* Table of comparisation */</p>
<hr />
<div>Ok. We've got a Wiki bug with pages that end in question marks. You'll note that the [[Main Page]] link links to a [[What is ConTeXt?]] page with a question mark on the end, but if you click on that link, you get to a [[What is ConTeXt]] page <i>without</i> the question mark. Further, back before these pages existed, when I clicked on the [[What is ConTeXt?]] link (with the question mark), it brought me to an edit page, where I could create the page with the question mark. Once I created it, all those links changed to point to the page rather than to the edit page, and thus pointed to the [[What is ConTeXt]] page, which was empty.<br />
<br />
So now there's a [[What is ConTeXt]] page which one can get to with either link, and a [[What is ConTeXt?]] page which one cannot get to, and I have no idea what to do about the existence of the latter. Nonetheless, the link off [[Main Page]] should probably be updated to point to the former.<br />
<br />
--[[User:Brooks|Brooks]] 06:21, 4 Sep 2005 (UTC)<br />
<br />
:I managed to destroy the other page (the one with question mark) by manually changing the URL (? -> %3F) --[[User:Taco|Taco]] 14:55, 9 Sep 2005 (UTC)</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=From_LaTeX_to_ConTeXt&diff=12705From LaTeX to ConTeXt2011-01-09T00:05:12Z<p>Jstein: </p>
<hr />
<div>< [[Main Page]] ><br />
<br />
General hints for converting from LaTeX to Context can be found in <br />
* [http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf LaTeX in proper ConTeXt] by [http://www.berenddeboer.net/ Berend de Boer]<br />
<br />
This page offers specific advice on a number of special things that you may be doing with LaTeX, but are not so obvious to do with ConTeXt.<br />
<br />
=== Document and Page Layout ===<br />
* [[Document Titles]]: Title blocks, as in the standard LaTeX article.<br />
* [[LaTeX Thanks|The thanks command]] adds footnoted information, usually to author blocks.<br />
* [[Article Abstracts]]: Abstracts from the standard LaTeX article or report.<br />
* [[KOMA-scrartcl Type Area]]: An interesting automated type-area setup.<br />
* [[Unnumbered Sections]]: Section and subsection headings without numbers.<br />
* [[Flush bottom]]<br />
* [[Vertically Centered Boxes]]: Centering parboxes and tables in a line of text.<br />
<br />
=== Text Formatting ===<br />
* [[Bold small caps]]<br />
* [[Bold typewriter]]: Bold versions of the <tt>cmtt</tt> family of monospaced fonts.<br />
* [[Verbatim with line breaks]]<br />
* [[ISO-8859-15]]: Using the ISO Latin-9 (Western European) character encoding for input.<br />
* [[Description]]<br />
* The microtype package has its analogue in [[Protrusion]]<br />
* So-called (by plain TeX and LaTeX) [[French spacing]]<br />
<br />
=== Command syntax ===<br />
<br />
''Looks similar, but...''<br />
<br />
'''LaTeX''':<br />
"Command arguments are enclosed in curly braces { and },<br />
except for optional arguments, which are enclosed in square<br />
brackets [ and ]."<br />
<br />
'''ConTeXt''':<br />
"A command is often followed by setups or by text. Setups<br />
are placed between brackets ([]). The scope or range of<br />
the command, the text acted upon, is placed between<br />
curly brackets ({})."<br />
<br />
In other words,<br />
<br />
* arguments in {} pairs are typeset material<br />
* arguments in [] are setup instructions and metadata<br />
<br />
=== Programming ===<br />
<br />
* [[Commands with optional arguments]]<br />
<br />
=== Document Metadata ===<br />
* [[PDF-strings]]<br />
<br />
=== Math ===<br />
<br />
* [[LaTeX Math in ConTeXt]]<br />
<br />
<br />
=== Copy-Paste text between LaTeX and ConTeXt ===<br />
<br />
It is sometimes useful to have the same source for a latex document and context presentation (or context document and latex presentation). However, the commands used by both are very different. Can someone describe some definations in context that implement the core functionality of latex commands like \section et al, \textbf et al, \bfseries et al and \begin \end pairs?<br />
{{Howto}}<br />
<br />
''<code>\section</code> works the same way as in LaTeX, for mathematics take a look into [[LaTeX Math in ConTeXt]], use <code>\bf</code> instead of <code>\textbf</code> for both LaTeX and ConTeXt (or <code><nowiki>\def\textbf#1{{\bf #1}}</nowiki></code>) and as a general rule: use as many plain TeX macros as possible instead of LaTeX-specific macros. <code>\begin ... \end</code> only works for math as far as I know. See also other documents listed above or ask on the mailing list.''<br />
<br />
<!--<br />
* [[LaTeX&ConTeXt/Introduction|Introduction]]<br />
* [[LaTeX&ConTeXt/Basic Latex|Basic Latex]]<br />
* [[LaTeX&ConTeXt/Math Environments|Math Environments]]<br />
Also, many of the macros on the [[LaTeX Math in ConTeXt]] page are equally useful in ConTeXt formulas.<br />
--><br />
<br />
<br />
A Vietnamese version of <i>LaTeX in proper ConTeXt</i> is available at [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf VnOSS].<br />
<br />
== Functionality of Latex Packages in Context ==<br />
* [[Latex Packages]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Hiding_Content&diff=12704Hiding Content2011-01-08T23:17:37Z<p>Jstein: /* Final Remarks */</p>
<hr />
<div>< [[Visuals]] | [[Presentations]] | [[Layers]] ><br />
<br />
Probably for your [[Presentations|slides]], probably for some [[Animation|animation]] or for whatever reason you may want it: you can hide some content from the document, while leaving exactly the same amount of space as that content would need if typeset in the usual way.<br />
<br />
== Overview ==<br />
<br />
On the [[http://archive.contextgarden.net/thread/20050707.223338.a9169811.html mailing list]] Hans suggested many different ways (astonishing easy to use) to hide the content in a PDF document. Sadly, most of them are viewer-dependent.<br />
<br />
<table style="border:1px solid #DDDDDD; width:100%" valign="top"><br />
<br />
<tr style="background-color:#DDDDDD" align="left" valign="top"><th> method </th><th> principle </th><th> PROS </th><th> CONS </th></tr><br />
<br />
<tr><td><br />
<texcode><br />
\defineproperty[my-secrets][layer][state=top]<br />
\startproperty[my-secrets]<br />
My public secret.<br />
\stopproperty<br />
</texcode><br />
</td><td><br />
* makes (invisible) layer on top (JS-based)<br />
</td><td><br />
* completely hides everything<br />
</td><td><br />
* works with newer Adobe Acrobat/Viewer, in most other browsers the content is not hidden<br />
* I managed to freeze Acrobat 6.0 pro when trying to save the text<br />
</td></tr><br />
<br />
<tr align="left" valign="top" style="background-color:#EEEEEE;"><br />
<td><br />
<texcode><br />
\defineproperty[my-hasitations][layer][state=stop]<br />
<br />
\startproperty[my-hasitations]<br />
To \ConTeXt\ or not to \ConTeXt?<br />
\stopproperty<br />
<br />
\button{Show Decision}[VideLayer{my-hasitations}]<br />
\button{Hide Decision}[HideLayer{my-hasitations}]<br />
\button{Toggle Decision}[ToggleLayer{my-hasitations}]<br />
</texcode><br />
</td><br />
<td><br />
* makes (invisible) layer, which can be switched on and off (JS-based)</td><br />
<td><br />
* you can switch the content on and off<br />
* when hidden, it is completely hidden (as above)<br />
</td><td><br />
* (same as above)<br />
* even some new Acrobat versions can't handle the buttons<br />
</td></tr><br />
<br />
<tr><td><br />
<texcode><br />
\startproperty[hidden]<br />
My secret hidden for Adam's apple ;)<br />
\stopproperty<br />
</texcode><br />
</td><td><br />
* makes transparent fonts<br />
</td><td><br />
* no JavaScript<br />
* pretty safe for different viewers<br />
</td><td><br />
* only text is hidden, but not images, rules, ...<br />
</td></tr><br />
<br />
<tr align="left" valign="top" style="background-color:#EEEEEE;"><br />
<td><br />
[[Hiding Content#The plain TeX way|the plain TeX way]]<br />
</td><td><br />
* puts a blank box instead of its content (letter)<br />
</td><td><br />
* <b>absolutely no</b> content in the document, not even hidden (only blank space)<br />
</td><td><br />
* only works for letters and whitespace, no macros, no figures, ...<br />
</td></tr><br />
</table><br />
<br />
== The plain TeX way ==<br />
<br />
This example was adapted from the TeXBOOK. However, it can only handle usual text. Forget about macros, forget about graphics ...<br />
<br />
I hope and still believe that it is possible to extend this macro to make it work in general case. This would also be a preferred solution as it doesn't depend on the viewer's JavaScript <i>in</i>capabilities.<br />
<br />
<texcode><br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
% the portion of code adapted from the TeXBOOK, Excercise 11.5 %<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
\def\dolist{\afterassignment\dodolist\let\next= }<br />
\def\dodolist{\ifx\next\endlist\let\next\relax<br />
\else \\\let\next\dolist \fi<br />
\next}<br />
\def\endlist{\endlist}<br />
<br />
\def\\{\if\space\next\ % assume that \next is unexpandable<br />
\else\setbox0=\hbox{\next}\setbox1=\hbox{}%<br />
\dp1=\dp0\ht1=\ht0\wd1=\wd0\box1\fi}<br />
<br />
\def\demobox#1{{\dolist#1\endlist}}<br />
<br />
</texcode><br />
<br />
<context><br />
<br />
\def\dolist{\afterassignment\dodolist\let\next= }<br />
\def\dodolist{\ifx\next\endlist\let\next\relax<br />
\else \\\let\next\dolist \fi<br />
\next}<br />
\def\endlist{\endlist}<br />
<br />
\def\\{\if\space\next\ % assume that \next is unexpandable<br />
\else\setbox0=\hbox{\next}\setbox1=\hbox{}%<br />
\dp1=\dp0\ht1=\ht0\wd1=\wd0\box1\fi}<br />
<br />
\def\demobox#1{{\dolist#1\endlist}}<br />
<br />
Please write something more interesting on this place<br />
\demobox{if you are visiting this page and getting bored.}<br />
Thanks.<br />
<br />
Please write something more interesting on this place<br />
if you are visiting this page and getting bored.<br />
Thanks.<br />
<br />
</context><br />
<br />
== Layer: state=top ==<br />
<br />
You can try something like:<br />
<br />
<texcode><br />
\defineproperty[my-secrets][layer][state=top]<br />
<br />
I don't tell this to everybody:<br />
%<br />
\startproperty[my-secrets]%<br />
\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}<br />
\stopproperty<br />
%<br />
You'll understand that once you get to know it better.<br />
</texcode><br />
<br />
which results in<br />
<br />
<context><br />
\setupcolors[state=start]<br />
\defineproperty[my-secrets][layer][state=top]<br />
<br />
I don't tell this to everybody:<br />
%<br />
\startproperty[my-secrets]%<br />
%<br />
% for the curious eyes: this effect was faked on Wiki as it doesn't work otherwise<br />
% (when PNG is generated from the PDF, the hidden layer becomes visible)<br />
%<br />
\color[white]{\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}}<br />
\stopproperty<br />
%<br />
You'll understand that once you get to know it better.<br />
</context><br />
<br />
This can be compared to the non-hidden version, which is:<br />
<br />
<context><br />
I don't tell this to everybody:<br />
{\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}}<br />
You'll understand that once you get to know it better.<br />
</context><br />
<br />
== Layer: state=stop ==<br />
<br />
== Transparent fonts ==<br />
<br />
== Final Remarks ==<br />
<br />
* <b>Just as a hint</b>: Don't ever think about hiding your secrets or solutions to the problems for your students that way!<br><br />
If you happen to have Adobe Acrobat Professional, you can select <i>Layers</i> on the left and switch the hidden layer on again.<br><br />
<font color="red">YOU HAVE BEEN WARNED!</font><br />
<br />
* kerning: could cause micro differences in the exact placemet of the (hidden) content<br />
<br />
[[Category:Presentation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Interaction&diff=12703Interaction2011-01-08T23:16:17Z<p>Jstein: /* Default focus mode */</p>
<hr />
<div>< [[Visuals]]<br />
<br />
* use [[cmd:setupinteraction|setupinteraction[state=start]]]<br />
* [[Presentation effects]]<br />
* see in [[Using Graphics| using graphics]] how to use movies.<br />
* [[Widgets]] (interactive elements, form fields etc.)<br />
<br />
The [[cmd:setupinteraction|\setupinteraction]] command configures all interaction in the resulting PDF document. Basic interaction (meaning clickable links for references) is enabled using<br />
<br />
<texcode><br />
\setupinteraction[state=start]<br />
</texcode><br />
<br />
This makes all links generated with the [[cmd:goto|\goto]] command (and indirectly the [[cmd:in|\in]] and [[cmd:at|\at]] commands) clickable.<br />
<br />
== Hints ==<br />
=== Link coloring ===<br />
By default, the link text gets a green or red color, depending on whether the link is to another page or to the same page. You can change the link colors with the <tt>color</tt> (links to other pages) and <tt>contrastcolor</tt> (links to the same page) properties. For example, to disable link coloring alltogether:<br />
<br />
<texcode><br />
\setupinteraction[state=start,color=,contrastcolor=]<br />
</texcode><br />
<br />
=== Clickable table of contents ===<br />
To make table of contents items clickable, use the [[cmd:setupcombinedlist|\setupcombinedlist]] command.<br />
<br />
<texcode><br />
\setupcombinedlist[content][interaction=all]<br />
</texcode><br />
<br />
This makes the entire table of contents line clickable. It is possible to select just one part (<tt>sectionnumber</tt>, <tt>pagenumber</tt>, <tt>text</tt>).<br />
<br />
If links have a color, this will also make the table of contents get a different text color. You can use the <tt>color</tt> property to change it back, <i>e.g.</i>:<br />
<br />
<texcode><br />
\setupcombinedlist[content][interaction=all,color=black]<br />
</texcode><br />
<br />
Alternatively, you can use the <tt>textcolor</tt> property to change just the text colour, and leave the section and page numbers colored.<br />
<br />
=== Default focus mode ===<br />
By default, clicking an inter-document hyperlink will switch to "fit page" mode, to override this:<br />
<br />
<texcode><br />
\setupinteraction[state=start,focus=standard]<br />
</texcode><br />
<br />
[[Category:Presentation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Presentation_Styles&diff=12702Presentation Styles2011-01-08T23:15:49Z<p>Jstein: </p>
<hr />
<div>< [[Presentations]]<br />
<br />
This is a list of existing presentation styles (made by Hans Hagen) which are shiped with ConTeXt. There will also be a list of predefined commands specific for single styles.<br />
{{todo|page in progress - feel free to contribute<br />
<br />
Things that have to come here: links to sources, links to PDF documents with sources explained, links to a couple of documents which use this style, title page, inner page, specific commands, how to change color of buttons & background, ...}}<br />
<br />
* [http://www.pragma-ade.com/articles/art-pres.pdf Article by Hans about presentation styles]<br />
* [http://www.tug.org/pracjourn/2006-2/schmitz/ Article] by Thomas on how to create your own presentation style<br />
* If you don't know the name of a specific style, take a look into [[source:cont-fil.tex|cont-fil.tex]].<br />
* to test a style execute<br />
texexec --pdf --mode=demo s-pre-xx<br />
where <code>xx</code> is replaced with appropriate number. Do not not use <code>s-pre-00</code> and<br />
<code>s-pre-60</code> as these are only environments defining helper commands used in other styles.<br />
<br />
== 01. original ==<br />
<br />
* Source: [[source:s-pre-01.tex|s-pre-01.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-01.pdf s-pre-01.pdf]<br />
<br />
<texcode><br />
\usemodule[pre-original]<br />
\TitlePage {pre-original\\Title Page}<br />
</texcode><br />
<context><br />
\usemodule[pre-original]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-original\\Title Page}<br />
</context><br />
<br />
== 02. green ==<br />
<br />
* Source: [[source:s-pre-02.tex|s-pre-02.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-02.pdf s-pre-02.pdf]<br />
<br />
<texcode><br />
\usemodule[pre-green]<br />
\TitlePage {pre-green\\Title Page}<br />
</texcode><br />
<context><br />
\usemodule[pre-green]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-green\\Title Page}<br />
</context><br />
<br />
== 03. funny ==<br />
* Source: [[source:s-pre-03.tex|s-pre-03.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-03.pdf s-pre-03.pdf]<br />
<texcode><br />
\usemodule[pre-funny]<br />
\TitlePage {pre-funny\\Title Page}<br />
</texcode><br />
<context><br />
\usemodule[pre-funny]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-funny\\Title Page}<br />
</context><br />
<br />
<br />
== 04. colorful ==<br />
<br />
* Source: [[source:s-pre-04.tex|s-pre-04.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-04.pdf s-pre-04.pdf]<br />
<br />
== 05. fuzzy ==<br />
<br />
* Source: [[source:s-pre-05.tex|s-pre-05.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-05.pdf s-pre-05.pdf]<br />
<br />
<br />
<texcode><br />
\usemodule[pre-fuzzy]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-fuzzy\\Title Page}<br />
</texcode><br />
<br />
<context><br />
\usemodule[pre-fuzzy]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-fuzzy\\Title Page}<br />
</context><br />
<br />
== 06. polish ==<br />
<br />
* Source: [[source:s-pre-06.tex|s-pre-06.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-06.pdf s-pre-06.pdf]<br />
<br />
== 07. spider ==<br />
<br />
* Source: [[source:s-pre-07.tex|s-pre-07.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-07.pdf s-pre-07.pdf]<br />
<texcode><br />
\usemodule[pre-spider]<br />
\TitlePage {pre-spider\\Title Page}<br />
</texcode><br />
<!-- there is no TitlePage in pre-spider<br />
<context><br />
\usemodule[pre-spider]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-spider\\Title Page}<br />
</context><br />
--><br />
<br />
== 08. wonder ==<br />
<br />
* Source: [[source:s-pre-08.tex|s-pre-08.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-08.pdf s-pre-08.pdf]<br />
<br />
== 09. windows ==<br />
<br />
* Source: [[source:s-pre-09.tex|s-pre-09.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-09.pdf s-pre-09.pdf]<br />
<texcode><br />
\usemodule[pre-windows]<br />
\TitlePage {pre-windows\\Title Page}<br />
</texcode><br />
<context><br />
\usemodule[pre-windows]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-windows\\Title Page}<br />
</context><br />
<br />
== 10. grow ==<br />
<br />
* Source: [[source:s-pre-10.tex|s-pre-10.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-10.pdf s-pre-10.pdf]<br />
<br />
== 11. stack ==<br />
<br />
* Source: Not available.<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-11.pdf s-pre-11.pdf]<br />
<br />
== 12. arrows ==<br />
<br />
* Source: Not available.<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-12.pdf s-pre-12.pdf]<br />
<br />
== 13. writing ==<br />
<br />
* Source: [[source:s-pre-13.tex|s-pre-13.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-13.pdf s-pre-13.pdf]<br />
<br />
<br />
<texcode><br />
\usemodule[pre-writing]<br />
\TitlePage {pre-writing\\Title Page}<br />
</texcode><br />
<context><br />
\usemodule[pre-writing]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-writing\\Title Page}<br />
</context><br />
<br />
== 14. split ==<br />
<br />
* Source: [[source:s-pre-14.tex|s-pre-14.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-14.pdf s-pre-14.pdf]<br />
<br />
== 15. balls ==<br />
<br />
* Source: [[source:s-pre-15.tex|s-pre-15.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-15.pdf s-pre-15.pdf]<br />
<br />
<texcode><br />
\usemodule[pre-balls]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-balls\\Title Page}<br />
</texcode><br />
<br />
<context><br />
\usemodule[pre-balls]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-balls\\Title Page}<br />
</context><br />
<br />
== 16. knot ==<br />
<br />
* Source: [[source:s-pre-16.tex|s-pre-16.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-16.pdf s-pre-16.pdf]<br />
<br />
== 17. weird ==<br />
<br />
* Source: Not available.<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-17.pdf s-pre-17.pdf]<br />
<br />
== 18. shade ==<br />
<br />
* Source: Not available.<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-18.pdf s-pre-18.pdf]<br />
<br />
== 19. organic ==<br />
<br />
* Source: [[source:s-pre-19.tex|s-pre-19.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-19.pdf s-pre-19.pdf]<br />
<br />
<texcode><br />
\usemodule[pre-organic]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-organic\\Title Page}<br />
</texcode><br />
<br />
<br />
<context><br />
\usemodule[pre-organic]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-organic\\Title Page}<br />
</context><br />
<br />
== 20. speckle ==<br />
<br />
* Source: Not available.<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-20.pdf s-pre-20.pdf]<br />
<br />
== 21. zoom ==<br />
<br />
* Source: Not available.<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-21.pdf s-pre-21.pdf]<br />
<br />
== 22. cycle ==<br />
<br />
* Source: [[source:s-pre-22.tex|s-pre-22.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-22.pdf s-pre-22.pdf]<br />
<br />
<br />
<texcode><br />
\usemodule[pre-cycle]<br />
\TitlePage {pre-cycle\\ Title Page}<br />
</texcode><br />
<br />
<br />
<context><br />
\usemodule[pre-cycle]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-cycle\\ Title Page}<br />
</context><br />
<br />
== 23. super ==<br />
<br />
* Source: [[source:s-pre-23.tex|s-pre-23.tex]]<br />
* Source explained: [http://www.pragma-ade.com/general/sources/s-pre-23.pdf s-pre-23.pdf]<br />
<br />
<br />
<texcode><br />
\usemodule[pre-super]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-super\\ Title Page}<br />
</texcode><br />
<br />
<br />
<context><br />
\usemodule[pre-super]<br />
\setuplayout[location=middle,scale=.2]<br />
\TitlePage {pre-super\\ Title Page}<br />
</context><br />
<br />
== 24. - 28. ==<br />
[http://www.pragma-ade.com/general/sources/s-pre-24.pdf s-pre-24.pdf]<br />
[http://www.pragma-ade.com/general/sources/s-pre-25.pdf s-pre-25.pdf]<br />
[http://www.pragma-ade.com/general/sources/s-pre-26.pdf s-pre-26.pdf]<br />
[http://www.pragma-ade.com/general/sources/s-pre-27.pdf s-pre-27.pdf]<br />
[http://www.pragma-ade.com/general/sources/s-pre-28.pdf s-pre-28.pdf]<br />
<br />
== 50. ==<br />
<br />
* Source: [[source:s-pre-50.tex|s-pre-50.tex]]<br />
<br />
Cited from the documentation:<br />
<br />
''When my mailbox started to overflow with messages about problems with the '''presentation step mechanism''', I looked up old presentaton, hacked a bit and cooked up an alternative that is less dependent on PDF trickery.''<br />
<br />
''Consider it a cheap trick and prelude to a couple of new presentation styles. (At the time of writing this, I still have some 10 of those styles to clean up and document.) You can give it a try: ''<br />
<br />
== 61. stepper ==<br />
<br />
* Source: [[source:s-pre-61.tex|s-pre-61.tex]]<br />
<br />
[[Category:Presentation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Presentation_effects&diff=12701Presentation effects2011-01-08T23:15:15Z<p>Jstein: </p>
<hr />
<div>< [[Visuals]], [[Interaction]]<br />
<br />
===Steps===<br />
<br />
Often you'd like to step through some elements of one "slide" (presentation page).<br />
<br />
You can use <cmd>FlushStep</cmd> after each element (text line, table cell...):<br />
<texcode><br />
\usemodule[pre-61]<br />
<br />
\starttext<br />
<br />
\StartSteps<br />
<br />
\starttabulate<br />
\NC test \FlushStep \NC test \FlushStep \NC \NR<br />
\NC test \FlushStep \NC test \FlushStep \NC \NR<br />
\NC test \FlushStep \NC test \FlushStep \NC \NR<br />
\stoptabulate<br />
<br />
\StopSteps<br />
<br />
\stoptext<br />
</texcode><br />
<br />
'''Remarks:'''<br />
* This should work (again) since 2004-08-05 (Hans posted a patch on the mailing list)<br />
* There once was <cmd>presentationstep</cmd> that never really seemed to work...<br />
<br />
===Page Effects===<br />
<br />
You can address Acrobat's built in browsing effects like this:<br />
<texcode><br />
\setuppagetransitions[random]<br />
</texcode><br />
or<br />
<texcode><br />
\setuppagetransitions[wipe,south]<br />
</texcode><br />
<br />
<br />
Have a look at \def\pagetransitions in spec-fdf.tex for available options.<br />
<br />
This setting is overruled by Acrobat's settings and doesn't work with every version of Acrobat (Reader) and will probably never work with any other PDF viewer.<br />
<br />
To see page transitions, turn Acrobat into full-screen mode (Ctrl+L). Don't forget to turn on the interaction <tt>\setupinteraction[state=start]</tt>.<br />
<br />
[[Category:Presentation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Interaction&diff=12700Interaction2011-01-08T11:31:22Z<p>Jstein: /* Tips */</p>
<hr />
<div>< [[Visuals]]<br />
<br />
* use [[cmd:setupinteraction|setupinteraction[state=start]]]<br />
* [[Presentation effects]]<br />
* see in [[Using Graphics| using graphics]] how to use movies.<br />
* [[Widgets]] (interactive elements, form fields etc.)<br />
<br />
The [[cmd:setupinteraction|\setupinteraction]] command configures all interaction in the resulting PDF document. Basic interaction (meaning clickable links for references) is enabled using<br />
<br />
<texcode><br />
\setupinteraction[state=start]<br />
</texcode><br />
<br />
This makes all links generated with the [[cmd:goto|\goto]] command (and indirectly the [[cmd:in|\in]] and [[cmd:at|\at]] commands) clickable.<br />
<br />
== Hints ==<br />
=== Link coloring ===<br />
By default, the link text gets a green or red color, depending on whether the link is to another page or to the same page. You can change the link colors with the <tt>color</tt> (links to other pages) and <tt>contrastcolor</tt> (links to the same page) properties. For example, to disable link coloring alltogether:<br />
<br />
<texcode><br />
\setupinteraction[state=start,color=,contrastcolor=]<br />
</texcode><br />
<br />
=== Clickable table of contents ===<br />
To make table of contents items clickable, use the [[cmd:setupcombinedlist|\setupcombinedlist]] command.<br />
<br />
<texcode><br />
\setupcombinedlist[content][interaction=all]<br />
</texcode><br />
<br />
This makes the entire table of contents line clickable. It is possible to select just one part (<tt>sectionnumber</tt>, <tt>pagenumber</tt>, <tt>text</tt>).<br />
<br />
If links have a color, this will also make the table of contents get a different text color. You can use the <tt>color</tt> property to change it back, <i>e.g.</i>:<br />
<br />
<texcode><br />
\setupcombinedlist[content][interaction=all,color=black]<br />
</texcode><br />
<br />
Alternatively, you can use the <tt>textcolor</tt> property to change just the text colour, and leave the section and page numbers colored.<br />
<br />
=== Default focus mode ===<br />
By default, clicking an inter-document hyperlink will switch to "fit page" mode, to override this:<br />
<br />
<texcode><br />
\setupinteraction[state=start,focus=standard]<br />
</texcode></div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Wiki:Editing&diff=12675Wiki:Editing2010-12-20T07:29:17Z<p>Jstein: /* May I edit pages without signing in? */</p>
<hr />
<div>'''For Formatting help see [http://www.mediawiki.org/wiki/Help:Formatting www.mediawiki.org/wiki/Help:Formatting]'''<br />
<br />
== General ==<br />
<br />
=== May I edit pages without signing in? ===<br />
<br />
Yes, but you are <b>highly discouraged</b> to sign in before contributing if possible. Even if you use a username/nickname with no resemblance to your real name, this is still better than not signing in at all.<br />
<br />
=== How do I edit the first page? ===<br />
<br />
First page is protected to avoid spammers. However, you can still edit it (let's hope for stupid spammers). Type '''Template:Main Page''' after contextgarden.net/ and edit that template.<br />
<br />
=== How do I sign when posting a comment? ===<br />
<br />
* <code><nowiki>~~~</nowiki></code> will expand into <nowiki>[[User:Yourusername|Yournickname]]</nowiki>, so basically your <b>nickname</b> will be shown<br />
* <code><nowiki>~~~~</nowiki></code> will also add a <b>timestamp</b> next to your nickname<br />
<br />
So you will usually write <code><nowiki>--~~~</nowiki></code> or <code><nowiki>--~~~~</nowiki></code><br />
<br />
=== What are the other commands to edit this wiki? ===<br />
<br />
The markup used in this wiki is a general MediaWiki markup and is described in the [http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide MediaWiki User Guide] (esp. http://meta.wikimedia.org/wiki/Help:Editing ).<br />
<br />
Most of the following markup on this help page is specific for contextgarden. So, read on!<br />
<br />
<br />
== Pretty printing ==<br />
<br />
* <code><nowiki>'''Bold text'''</nowiki></code> -- '''Bold text'''<br />
* <code><nowiki>''Italic text''</nowiki></code> -- ''Italic text''<br />
* <code><nowiki>----</nowiki></code> draws a horizonal rule<br />
<br />
=== In-line elements ===<br />
----<br />
'''<code><nowiki><code></nowiki></code>'''<br />
<br />
For in-line markup of code, commands, parameters, etc. in the running text use <code><nowiki><code> ... </code></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.<br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.<br />
----<br />
<br />
=== Block elements ===<br />
----<br />
'''<code><nowiki><pre></nowiki></code>'''<br />
<br />
To dispay verabtim text use <code><nowiki><pre> ... </pre></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<pre><br />
This is an announcement from the mailing list with some code.<br />
<br />
\unprotect<br />
\def\!test{alfa} <br />
\protect <br />
</pre><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<pre><br />
This is an announcement from the mailing list with some code.<br />
<br />
\unprotect<br />
\def\!test{alfa} <br />
\protect <br />
</pre><br />
<br />
----<br />
'''<code><nowiki><texcode></nowiki></code>'''<br />
<br />
For displaying TeX an ConTeXt source use <code><nowiki><texcode> ... </texcode></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<texcode><br />
\def\person#1#2{{\em #1 (#2)}}<br />
<br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</texcode><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<texcode><br />
\def\person#1#2{{\em #1 (#2)}}<br />
<br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</texcode><br />
----<br />
<br />
'''<code><nowiki><xmlcode></nowiki></code>'''<br />
<br />
For presenting XML source use <code><nowiki><xmlcode> ... </xmlcode></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
&lt;xmlcode><br />
<?xml version="1.0"?><br />
<TeXML><br />
<env name="text"><br />
Hello World<br />
</env><br />
</TeXML><br />
&lt;/xmlcode><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<xmlcode><br />
<?xml version="1.0"?><br />
<TeXML><br />
<env name="text"><br />
Hello World<br />
</env><br />
</TeXML><br />
</xmlcode><br />
<br />
----<br />
<br />
'''<code><nowiki><context></nowiki></code>'''<br />
<br />
Nice local feature of contextgarden allows you to run ConTeXt on the fly and the wiki page will include the result of the eneterd code in the page. See also http://live.contextgarden.net/ for an online ConTeXt.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<context><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<context><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
----<br />
<br />
'''<code>source="yes"</code>'''<br />
<br />
If you add <code>source="yes"</code> to the <code><nowiki><context></nowiki></code> tag, you have the source and the result displayed. The contents of the attribute <code>text</code> will be inserted between the text and the result.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<context source="yes" text="produces"><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<context source="yes" text="produces"><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
----<br />
<br />
== Links ==<br />
<br />
You can use references to other garden projects. Use the following syntax to create links to the other contextgarden projects:<br />
<br />
<pre><nowiki><br />
[[source:type-akb.tex| type-akb.tex]]<br />
[[modules:t-bnf| bnf module]]<br />
[[cmd:goto|\goto]] <br />
</nowiki></pre><br />
<br />
Looks like:<br />
* [[source:type-akb.tex| type-akb.tex]] -- source files of ConTeXt<br />
* [[modules:t-bnf| bnf module]] -- [http://modules.contextgarden.net third party modules]<br />
* [[cmd:goto|\goto]] -- links to the definition of the command</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Wiki:Editing&diff=12674Wiki:Editing2010-12-20T07:28:50Z<p>Jstein: /* May I edit pages without signing in? */</p>
<hr />
<div>'''For Formatting help see [http://www.mediawiki.org/wiki/Help:Formatting www.mediawiki.org/wiki/Help:Formatting]'''<br />
<br />
== General ==<br />
<br />
=== May I edit pages without signing in? ===<br />
<br />
Yes, but you are <b>highly discouraged</b> to do so. Please, sign in before contributing if possible. Even if you use a username/nickname with no resemblance to your real name, this is still better than not signing in at all.<br />
<br />
=== How do I edit the first page? ===<br />
<br />
First page is protected to avoid spammers. However, you can still edit it (let's hope for stupid spammers). Type '''Template:Main Page''' after contextgarden.net/ and edit that template.<br />
<br />
=== How do I sign when posting a comment? ===<br />
<br />
* <code><nowiki>~~~</nowiki></code> will expand into <nowiki>[[User:Yourusername|Yournickname]]</nowiki>, so basically your <b>nickname</b> will be shown<br />
* <code><nowiki>~~~~</nowiki></code> will also add a <b>timestamp</b> next to your nickname<br />
<br />
So you will usually write <code><nowiki>--~~~</nowiki></code> or <code><nowiki>--~~~~</nowiki></code><br />
<br />
=== What are the other commands to edit this wiki? ===<br />
<br />
The markup used in this wiki is a general MediaWiki markup and is described in the [http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide MediaWiki User Guide] (esp. http://meta.wikimedia.org/wiki/Help:Editing ).<br />
<br />
Most of the following markup on this help page is specific for contextgarden. So, read on!<br />
<br />
<br />
== Pretty printing ==<br />
<br />
* <code><nowiki>'''Bold text'''</nowiki></code> -- '''Bold text'''<br />
* <code><nowiki>''Italic text''</nowiki></code> -- ''Italic text''<br />
* <code><nowiki>----</nowiki></code> draws a horizonal rule<br />
<br />
=== In-line elements ===<br />
----<br />
'''<code><nowiki><code></nowiki></code>'''<br />
<br />
For in-line markup of code, commands, parameters, etc. in the running text use <code><nowiki><code> ... </code></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.<br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.<br />
----<br />
<br />
=== Block elements ===<br />
----<br />
'''<code><nowiki><pre></nowiki></code>'''<br />
<br />
To dispay verabtim text use <code><nowiki><pre> ... </pre></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<pre><br />
This is an announcement from the mailing list with some code.<br />
<br />
\unprotect<br />
\def\!test{alfa} <br />
\protect <br />
</pre><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<pre><br />
This is an announcement from the mailing list with some code.<br />
<br />
\unprotect<br />
\def\!test{alfa} <br />
\protect <br />
</pre><br />
<br />
----<br />
'''<code><nowiki><texcode></nowiki></code>'''<br />
<br />
For displaying TeX an ConTeXt source use <code><nowiki><texcode> ... </texcode></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<texcode><br />
\def\person#1#2{{\em #1 (#2)}}<br />
<br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</texcode><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<texcode><br />
\def\person#1#2{{\em #1 (#2)}}<br />
<br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</texcode><br />
----<br />
<br />
'''<code><nowiki><xmlcode></nowiki></code>'''<br />
<br />
For presenting XML source use <code><nowiki><xmlcode> ... </xmlcode></nowiki></code>.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
&lt;xmlcode><br />
<?xml version="1.0"?><br />
<TeXML><br />
<env name="text"><br />
Hello World<br />
</env><br />
</TeXML><br />
&lt;/xmlcode><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<xmlcode><br />
<?xml version="1.0"?><br />
<TeXML><br />
<env name="text"><br />
Hello World<br />
</env><br />
</TeXML><br />
</xmlcode><br />
<br />
----<br />
<br />
'''<code><nowiki><context></nowiki></code>'''<br />
<br />
Nice local feature of contextgarden allows you to run ConTeXt on the fly and the wiki page will include the result of the eneterd code in the page. See also http://live.contextgarden.net/ for an online ConTeXt.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<context><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<context><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
----<br />
<br />
'''<code>source="yes"</code>'''<br />
<br />
If you add <code>source="yes"</code> to the <code><nowiki><context></nowiki></code> tag, you have the source and the result displayed. The contents of the attribute <code>text</code> will be inserted between the text and the result.<br />
<br />
''wiki markup''<br />
<br />
<xmlcode><br />
<context source="yes" text="produces"><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
</xmlcode><br />
<br />
''wiki display''<br />
<br />
<context source="yes" text="produces"><br />
\setupcolors [state=start]<br />
\framed [background=color,<br />
backgroundcolor=green,<br />
offset=1cm ]{hello world!}<br />
</context><br />
----<br />
<br />
== Links ==<br />
<br />
You can use references to other garden projects. Use the following syntax to create links to the other contextgarden projects:<br />
<br />
<pre><nowiki><br />
[[source:type-akb.tex| type-akb.tex]]<br />
[[modules:t-bnf| bnf module]]<br />
[[cmd:goto|\goto]] <br />
</nowiki></pre><br />
<br />
Looks like:<br />
* [[source:type-akb.tex| type-akb.tex]] -- source files of ConTeXt<br />
* [[modules:t-bnf| bnf module]] -- [http://modules.contextgarden.net third party modules]<br />
* [[cmd:goto|\goto]] -- links to the definition of the command</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Wiki_talk:Editing&diff=12673Wiki talk:Editing2010-12-20T07:26:55Z<p>Jstein: Removing all content from page</p>
<hr />
<div></div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Curriculum_Vitae&diff=12672Curriculum Vitae2010-12-20T07:18:23Z<p>Jstein: /* New Version */</p>
<hr />
<div>==New Version==<br />
[[Image:cv-resume.pdf]]<br />
<br />
<texcode><br />
=============m-resume.tex===============<br />
%D \module<br />
<br />
\setuppapersize[letter][letter]<br />
<br />
\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]<br />
<br />
\setuppagenumbering[location=footer]<br />
<br />
\setupinmargin[align=right]<br />
<br />
\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,]<br />
\setupitemize[2][symbol=a][indentnext=no]<br />
%\setupitemize[3][symbol=a][indentnext=no]<br />
<br />
\definehead[CVHEAD][subject]<br />
\setuphead[subject][style=\bfa,after={\blank[medium]}]<br />
<br />
\definehead[SUBCVHEAD][subsubject]<br />
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]<br />
<br />
\defineparagraphs[ContactColumns][n=2]<br />
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]<br />
<br />
\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle]<br />
{{\bfa <br />
#1}\blank[medium]{\tfb#2}}}\blank[small]}<br />
<br />
\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}<br />
<br />
% \framed is good for testing or fine-tuning \CONTACT<br />
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no,<br />
%offset=none,height=fit]<br />
%{%<br />
\startalignment[middle]<br />
\startContactColumns<br />
{\bf Office:}\crlf<br />
{#1}<br />
\ContactColumns<br />
{\bf Home:}\crlf<br />
{#2}<br />
\stopContactColumns<br />
\stopalignment}<br />
%}<br />
<br />
% \framed is used to prevent pagebreaks within an \<>ITEM<><br />
<br />
\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\blank[small]}}<br />
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Thesis:} {\em #6}.<br />
\blank[small]}}<br />
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Dissertation:} {\em #6}.\crlf<br />
{\bf Advisor:} #7.<br />
\blank[small]}}<br />
<br />
\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf Location:}\inmargin{\it #1}\ #2.\crlf<br />
{\bf Position:} #3.\crlf<br />
{\bf Responsibilities:} #4.<br />
\blank[small]}}<br />
<br />
\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]<br />
{\inmargin{\it #1} #2.}}<br />
<br />
\setupbodyfont[11pt] % 11pt seems pretty standard for cv's<br />
<br />
\endinput<br />
=========================================<br />
</texcode><br />
<br />
<br />
<texcode><br />
===============cv-resume.tex=============<br />
\usemodule[resume]<br />
<br />
\starttext<br />
<br />
\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}<br />
<br />
\CONTACT{Department of \TeX\ Studies\crlf<br />
% 221 Eddy Hall\crlf<br />
\TeX\ State University\crlf<br />
Fort Collins, CO 80523 \crlf USA\crlf<br />
(970) 491-2406/6315<br />
}<br />
{1234 \TeX\ Road\crlf<br />
\TeX{}ville, CO 80555 \crlf USA\crlf<br />
(800) TEX-5555\crlf}<br />
<br />
\CVEMAIL{ishamid <at> texstate.edu}<br />
<br />
\CVHEAD{Education}<br />
<br />
\EDUITEMPHD<br />
{PhD}<br />
{2007}<br />
{\TeX\ Studies}<br />
{\TeX\ University}<br />
{Amherst, NY}<br />
{Arabic Critical Editions}<br />
{\TeX\ Distinguished Professor Hans Hagen}<br />
<br />
\EDUITEMMA<br />
{MA}<br />
{1996}<br />
{Physics}<br />
{University at Buffalo, State University of New York}<br />
{Amherst, NY}<br />
{G\"{o}del's Universe, the Mach Principle, and the Cosmological <br />
Principle:<br />
Considerations for the Philosophy of Physics}<br />
<br />
\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State<br />
University}{Atlanta, GA}<br />
<br />
%% positions<br />
% academic positions<br />
\CVHEAD{Academic Positions}<br />
<br />
\ACADITEM<br />
{2001--2007}<br />
{\TeX\ State University, \TeX{}ville, CO}<br />
{Associate Professor}<br />
{Instruction and research, especially<br />
the development of upper-level courses in \TeX\ and \Context}<br />
<br />
\CVHEAD{Areas of Specialization}<br />
<br />
Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,<br />
Philosophy of Science.<br />
<br />
\CVHEAD{Philosophic Interests}<br />
<br />
\TeX\ Logic, Category Theory, Chinese Philosophy.<br />
<br />
% other skills<br />
<br />
\CVHEAD{Languages and Technical Skills}<br />
<br />
Arabic, French, and the professional computer typesetting language<br />
\TeX, including the major dialects \LaTeX, \Context, as well as<br />
the minor dialects Arab\TeX (for typesetting in Arabic script) and<br />
EDMAC (for critical edition typesetting). I am also developing a<br />
new Arabic-script system for scholarly typesetting, {\sc Oriental<br />
\TeX}, based upon \TeX\ and \Context.<br />
<br />
% patents<br />
<br />
\CVHEAD{Publications}<br />
<br />
\SUBCVHEAD{Books Authored}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\<br />
University Press, 240 pp.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Articles}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2005, {\it Installing Expert Fonts:<br />
Minion Pro}. In {\it MAPS}, Issue~33; pp.~19--35. Published by the<br />
Nederlandstalige \TEX\ Gebruikersgroep (NTG), Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Grants}<br />
<br />
\GRANTITEM{2006--2007} {{\it Oriental \TeX: A New Direction in<br />
Scholarly Complex-Script Typesetting}; Academic Enrichment<br />
Program, College of Liberal Arts, CSU; \$42,927}<br />
<br />
\CVHEAD{Presentations}<br />
<br />
\startitemize<br />
\item 2007, ``Oriental \TeX'', 1\high{st} Annual \Context\ Conference,<br />
Epen, the Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Service}<br />
<br />
\SUBCVHEAD{Profession}<br />
<br />
\startitemize<br />
<br />
\item The \TeX\ Users Group.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Department}<br />
<br />
\startitemize<br />
\item Graduate Committee, 2002--2005, 2006--2007.<br />
\item Advisory Committee, 2005--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{College}<br />
<br />
\startitemize<br />
\item \TeX\ Studies Committee, 2001--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{University}<br />
<br />
\startitemize<br />
\item Faculty Council, Fall 2005.<br />
\stopitemize<br />
<br />
\CVHEAD{Thesis/Dissertation Direction}<br />
<br />
\startitemize<br />
\item Joseph Ramagli (MA), ``\TeX\ Theology in Context'',<br />
in progress.<br />
\stopitemize<br />
<br />
\stoptext<br />
<br />
</texcode><br />
<br />
==Old Version==<br />
<br />
<texcode><br />
%% Ein Context-Skript als Vorlage für einen Lebenslauf<br />
%% name this file resume.tex<br />
<br />
%D \module <br />
<br />
\setuppapersize[letter][letter]<br />
<br />
\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]<br />
<br />
\setuppagenumbering[location=footer]<br />
<br />
\setupinmargin[align=right]<br />
<br />
\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,] <br />
\setupitemize[2][symbol=a][indentnext=no]<br />
%\setupitemize[3][symbol=a][indentnext=no]<br />
<br />
\definehead[CVHEAD][subject]<br />
\setuphead[subject][style=\bfa,after={\blank[medium]}]<br />
<br />
\definehead[SUBCVHEAD][subsubject] <br />
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]<br />
<br />
\defineparagraphs[ContactColumns][n=2]<br />
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]<br />
<br />
\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle] <br />
{{\bfa <br />
#1}\blank[medium]{\tfb#2}}}\blank[small]}<br />
<br />
\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}<br />
<br />
% \framed is good for testing or fine-tuning \CONTACT<br />
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no, <br />
%offset=none,height=fit]<br />
%{%<br />
\startalignment[middle]<br />
\startContactColumns<br />
{\bf Office:}\crlf<br />
{#1} <br />
\ContactColumns<br />
{\bf Home:}\crlf<br />
{#2}<br />
\stopContactColumns<br />
\stopalignment}<br />
%}<br />
<br />
% \framed is used to prevent pagebreaks within an \<>ITEM<><br />
<br />
\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\blank[small]}} <br />
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Thesis:} {\em #6}. <br />
\blank[small]}}<br />
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Dissertation:} {\em #6}.\crlf <br />
{\bf Advisor:} #7.<br />
\blank[small]}}<br />
<br />
\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf Location:}\inmargin{\it #1}\ #2.\crlf <br />
{\bf Position:} #3.\crlf<br />
{\bf Responsibilities:} #4.<br />
\blank[small]}}<br />
<br />
\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]<br />
{\inmargin{\it #1} #2.}} <br />
<br />
\setupbodyfont[11pt] % 11pt seems pretty standard for cv's<br />
<br />
\endinput<br />
</texcode><br />
<br />
That was the 'style'<br />
<br />
<texcode><br />
\usemodule[resume]<br />
<br />
% this is the actual cv, filename 'mycv.tex'<br />
<br />
\starttext <br />
<br />
\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}<br />
<br />
\CONTACT{Department of \TeX\ Studies\crlf<br />
% 221 Eddy Hall\crlf<br />
\TeX\ State University\crlf<br />
Fort Collins, CO 80523 \crlf USA\crlf <br />
(970) 491-2406/6315<br />
}<br />
{1234 \TeX\ Road\crlf<br />
\TeX{}ville, CO 80555 \crlf USA\crlf<br />
(800) TEX-5555\crlf}<br />
<br />
\CVEMAIL{ishamid@texstate.edu }<br />
<br />
\CVHEAD{Education}<br />
<br />
\EDUITEMPHD<br />
{PhD}<br />
{2007}<br />
{\TeX\ Studies}<br />
{\TeX\ University}<br />
{Amherst, NY}<br />
{Arabic Critical Editions}<br />
{\TeX\ Distinguished Professor Hans Hagen} <br />
<br />
\EDUITEMMA<br />
{MA}<br />
{1996}<br />
{Physics}<br />
{University at Buffalo, State University of New York}<br />
{Amherst, NY}<br />
{G\"{o}del's Universe, the Mach Principle, and the Cosmological <br />
Principle:<br />
Considerations for the Philosophy of Physics}<br />
<br />
\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State<br />
University}{Atlanta, GA}<br />
<br />
<br />
%% positions<br />
% academic positions<br />
\CVHEAD{Academic Positions} <br />
<br />
\ACADITEM<br />
{2001--2007}<br />
{\TeX\ State University, \TeX{}ville, CO}<br />
{Associate Professor}<br />
{Instruction and research, especially<br />
the development of upper-level courses in \TeX\ and \ConTeXt} <br />
<br />
\CVHEAD{Areas of Specialization}<br />
<br />
Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,<br />
Philosophy of Science.<br />
<br />
\CVHEAD{Philosophic Interests}<br />
<br />
\TeX\ Logic, Category Theory, Chinese Philosophy. <br />
<br />
% other skills<br />
<br />
\CVHEAD{Languages and Technical Skills}<br />
<br />
Arabic, French, and the professional computer typesetting language<br />
\TeX, including the major dialects \LaTeX, \ConTeXt, as well as<br />
the minor dialects Arab\TeX (for typesetting in Arabic script) and <br />
EDMAC (for critical edition typesetting). I am also developing a<br />
new Arabic-script system for scholarly typesetting, {\sc Oriental<br />
\TeX}, based upon \TeX\ and \ConTeXt.<br />
<br />
% patents<br />
<br />
\CVHEAD{Publications} <br />
<br />
\SUBCVHEAD{Books Authored}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\<br />
University Press, 240 pp.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Articles}<br />
<br />
\startitemize <br />
<br />
\item Idris Samawi Hamid, 2005, {\it Installing Expert Fonts:<br />
Minion Pro}. In {\it MAPS}, Issue~33; pp.~19--35. Published by the<br />
Nederlandstalige \TEX\ Gebruikersgroep (NTG), Netherlands.<br />
<br />
\stopitemize <br />
<br />
\CVHEAD{Grants}<br />
<br />
\GRANTITEM{2006--2007} {{\it Oriental \TeX: A New Direction in<br />
Scholarly Complex-Script Typesetting}; Academic Enrichment<br />
Program, College of Liberal Arts, CSU; \$42,927}<br />
<br />
<br />
\CVHEAD{Presentations} <br />
<br />
\startitemize<br />
\item 2007, ``Oriental \TeX'', 1\high{st} Annual \ConTeXt\ Conference,<br />
Epen, the Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Service}<br />
<br />
\SUBCVHEAD{Profession}<br />
<br />
\startitemize<br />
<br />
\item The \TeX\ Users Group.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Department}<br />
<br />
\startitemize<br />
\item Graduate Committee, 2002--2005, 2006--2007.<br />
\item Advisory Committee, 2005--2006. <br />
\stopitemize<br />
<br />
\SUBCVHEAD{College}<br />
<br />
\startitemize<br />
\item \TeX\ Studies Committee, 2001--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{University}<br />
<br />
\startitemize<br />
\item Faculty Council, Fall 2005. <br />
\stopitemize<br />
<br />
\CVHEAD{Thesis/Dissertation Direction}<br />
<br />
\startitemize<br />
\item Joseph Ramagli (MA), ``\TeX\ Theology in Context'',<br />
in progress.<br />
\stopitemize<br />
<br />
\stoptext<br />
</texcode><br />
<br />
Buid the resume by<br />
texexec mycv.tex<br />
<br />
[[Category:Sample documents]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Curriculum_Vitae&diff=12671Curriculum Vitae2010-12-20T07:18:06Z<p>Jstein: /* New Version */</p>
<hr />
<div>==New Version==<br />
[[Image:cv-resume.pdf]]<br />
[[File:cv-resume.pdf]]<br />
<texcode><br />
=============m-resume.tex===============<br />
%D \module<br />
<br />
\setuppapersize[letter][letter]<br />
<br />
\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]<br />
<br />
\setuppagenumbering[location=footer]<br />
<br />
\setupinmargin[align=right]<br />
<br />
\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,]<br />
\setupitemize[2][symbol=a][indentnext=no]<br />
%\setupitemize[3][symbol=a][indentnext=no]<br />
<br />
\definehead[CVHEAD][subject]<br />
\setuphead[subject][style=\bfa,after={\blank[medium]}]<br />
<br />
\definehead[SUBCVHEAD][subsubject]<br />
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]<br />
<br />
\defineparagraphs[ContactColumns][n=2]<br />
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]<br />
<br />
\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle]<br />
{{\bfa <br />
#1}\blank[medium]{\tfb#2}}}\blank[small]}<br />
<br />
\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}<br />
<br />
% \framed is good for testing or fine-tuning \CONTACT<br />
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no,<br />
%offset=none,height=fit]<br />
%{%<br />
\startalignment[middle]<br />
\startContactColumns<br />
{\bf Office:}\crlf<br />
{#1}<br />
\ContactColumns<br />
{\bf Home:}\crlf<br />
{#2}<br />
\stopContactColumns<br />
\stopalignment}<br />
%}<br />
<br />
% \framed is used to prevent pagebreaks within an \<>ITEM<><br />
<br />
\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\blank[small]}}<br />
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Thesis:} {\em #6}.<br />
\blank[small]}}<br />
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Dissertation:} {\em #6}.\crlf<br />
{\bf Advisor:} #7.<br />
\blank[small]}}<br />
<br />
\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf Location:}\inmargin{\it #1}\ #2.\crlf<br />
{\bf Position:} #3.\crlf<br />
{\bf Responsibilities:} #4.<br />
\blank[small]}}<br />
<br />
\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]<br />
{\inmargin{\it #1} #2.}}<br />
<br />
\setupbodyfont[11pt] % 11pt seems pretty standard for cv's<br />
<br />
\endinput<br />
=========================================<br />
</texcode><br />
<br />
<br />
<texcode><br />
===============cv-resume.tex=============<br />
\usemodule[resume]<br />
<br />
\starttext<br />
<br />
\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}<br />
<br />
\CONTACT{Department of \TeX\ Studies\crlf<br />
% 221 Eddy Hall\crlf<br />
\TeX\ State University\crlf<br />
Fort Collins, CO 80523 \crlf USA\crlf<br />
(970) 491-2406/6315<br />
}<br />
{1234 \TeX\ Road\crlf<br />
\TeX{}ville, CO 80555 \crlf USA\crlf<br />
(800) TEX-5555\crlf}<br />
<br />
\CVEMAIL{ishamid <at> texstate.edu}<br />
<br />
\CVHEAD{Education}<br />
<br />
\EDUITEMPHD<br />
{PhD}<br />
{2007}<br />
{\TeX\ Studies}<br />
{\TeX\ University}<br />
{Amherst, NY}<br />
{Arabic Critical Editions}<br />
{\TeX\ Distinguished Professor Hans Hagen}<br />
<br />
\EDUITEMMA<br />
{MA}<br />
{1996}<br />
{Physics}<br />
{University at Buffalo, State University of New York}<br />
{Amherst, NY}<br />
{G\"{o}del's Universe, the Mach Principle, and the Cosmological <br />
Principle:<br />
Considerations for the Philosophy of Physics}<br />
<br />
\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State<br />
University}{Atlanta, GA}<br />
<br />
%% positions<br />
% academic positions<br />
\CVHEAD{Academic Positions}<br />
<br />
\ACADITEM<br />
{2001--2007}<br />
{\TeX\ State University, \TeX{}ville, CO}<br />
{Associate Professor}<br />
{Instruction and research, especially<br />
the development of upper-level courses in \TeX\ and \Context}<br />
<br />
\CVHEAD{Areas of Specialization}<br />
<br />
Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,<br />
Philosophy of Science.<br />
<br />
\CVHEAD{Philosophic Interests}<br />
<br />
\TeX\ Logic, Category Theory, Chinese Philosophy.<br />
<br />
% other skills<br />
<br />
\CVHEAD{Languages and Technical Skills}<br />
<br />
Arabic, French, and the professional computer typesetting language<br />
\TeX, including the major dialects \LaTeX, \Context, as well as<br />
the minor dialects Arab\TeX (for typesetting in Arabic script) and<br />
EDMAC (for critical edition typesetting). I am also developing a<br />
new Arabic-script system for scholarly typesetting, {\sc Oriental<br />
\TeX}, based upon \TeX\ and \Context.<br />
<br />
% patents<br />
<br />
\CVHEAD{Publications}<br />
<br />
\SUBCVHEAD{Books Authored}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\<br />
University Press, 240 pp.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Articles}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2005, {\it Installing Expert Fonts:<br />
Minion Pro}. In {\it MAPS}, Issue~33; pp.~19--35. Published by the<br />
Nederlandstalige \TEX\ Gebruikersgroep (NTG), Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Grants}<br />
<br />
\GRANTITEM{2006--2007} {{\it Oriental \TeX: A New Direction in<br />
Scholarly Complex-Script Typesetting}; Academic Enrichment<br />
Program, College of Liberal Arts, CSU; \$42,927}<br />
<br />
\CVHEAD{Presentations}<br />
<br />
\startitemize<br />
\item 2007, ``Oriental \TeX'', 1\high{st} Annual \Context\ Conference,<br />
Epen, the Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Service}<br />
<br />
\SUBCVHEAD{Profession}<br />
<br />
\startitemize<br />
<br />
\item The \TeX\ Users Group.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Department}<br />
<br />
\startitemize<br />
\item Graduate Committee, 2002--2005, 2006--2007.<br />
\item Advisory Committee, 2005--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{College}<br />
<br />
\startitemize<br />
\item \TeX\ Studies Committee, 2001--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{University}<br />
<br />
\startitemize<br />
\item Faculty Council, Fall 2005.<br />
\stopitemize<br />
<br />
\CVHEAD{Thesis/Dissertation Direction}<br />
<br />
\startitemize<br />
\item Joseph Ramagli (MA), ``\TeX\ Theology in Context'',<br />
in progress.<br />
\stopitemize<br />
<br />
\stoptext<br />
<br />
</texcode><br />
<br />
==Old Version==<br />
<br />
<texcode><br />
%% Ein Context-Skript als Vorlage für einen Lebenslauf<br />
%% name this file resume.tex<br />
<br />
%D \module <br />
<br />
\setuppapersize[letter][letter]<br />
<br />
\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]<br />
<br />
\setuppagenumbering[location=footer]<br />
<br />
\setupinmargin[align=right]<br />
<br />
\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,] <br />
\setupitemize[2][symbol=a][indentnext=no]<br />
%\setupitemize[3][symbol=a][indentnext=no]<br />
<br />
\definehead[CVHEAD][subject]<br />
\setuphead[subject][style=\bfa,after={\blank[medium]}]<br />
<br />
\definehead[SUBCVHEAD][subsubject] <br />
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]<br />
<br />
\defineparagraphs[ContactColumns][n=2]<br />
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]<br />
<br />
\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle] <br />
{{\bfa <br />
#1}\blank[medium]{\tfb#2}}}\blank[small]}<br />
<br />
\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}<br />
<br />
% \framed is good for testing or fine-tuning \CONTACT<br />
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no, <br />
%offset=none,height=fit]<br />
%{%<br />
\startalignment[middle]<br />
\startContactColumns<br />
{\bf Office:}\crlf<br />
{#1} <br />
\ContactColumns<br />
{\bf Home:}\crlf<br />
{#2}<br />
\stopContactColumns<br />
\stopalignment}<br />
%}<br />
<br />
% \framed is used to prevent pagebreaks within an \<>ITEM<><br />
<br />
\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\blank[small]}} <br />
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Thesis:} {\em #6}. <br />
\blank[small]}}<br />
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Dissertation:} {\em #6}.\crlf <br />
{\bf Advisor:} #7.<br />
\blank[small]}}<br />
<br />
\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf Location:}\inmargin{\it #1}\ #2.\crlf <br />
{\bf Position:} #3.\crlf<br />
{\bf Responsibilities:} #4.<br />
\blank[small]}}<br />
<br />
\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]<br />
{\inmargin{\it #1} #2.}} <br />
<br />
\setupbodyfont[11pt] % 11pt seems pretty standard for cv's<br />
<br />
\endinput<br />
</texcode><br />
<br />
That was the 'style'<br />
<br />
<texcode><br />
\usemodule[resume]<br />
<br />
% this is the actual cv, filename 'mycv.tex'<br />
<br />
\starttext <br />
<br />
\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}<br />
<br />
\CONTACT{Department of \TeX\ Studies\crlf<br />
% 221 Eddy Hall\crlf<br />
\TeX\ State University\crlf<br />
Fort Collins, CO 80523 \crlf USA\crlf <br />
(970) 491-2406/6315<br />
}<br />
{1234 \TeX\ Road\crlf<br />
\TeX{}ville, CO 80555 \crlf USA\crlf<br />
(800) TEX-5555\crlf}<br />
<br />
\CVEMAIL{ishamid@texstate.edu }<br />
<br />
\CVHEAD{Education}<br />
<br />
\EDUITEMPHD<br />
{PhD}<br />
{2007}<br />
{\TeX\ Studies}<br />
{\TeX\ University}<br />
{Amherst, NY}<br />
{Arabic Critical Editions}<br />
{\TeX\ Distinguished Professor Hans Hagen} <br />
<br />
\EDUITEMMA<br />
{MA}<br />
{1996}<br />
{Physics}<br />
{University at Buffalo, State University of New York}<br />
{Amherst, NY}<br />
{G\"{o}del's Universe, the Mach Principle, and the Cosmological <br />
Principle:<br />
Considerations for the Philosophy of Physics}<br />
<br />
\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State<br />
University}{Atlanta, GA}<br />
<br />
<br />
%% positions<br />
% academic positions<br />
\CVHEAD{Academic Positions} <br />
<br />
\ACADITEM<br />
{2001--2007}<br />
{\TeX\ State University, \TeX{}ville, CO}<br />
{Associate Professor}<br />
{Instruction and research, especially<br />
the development of upper-level courses in \TeX\ and \ConTeXt} <br />
<br />
\CVHEAD{Areas of Specialization}<br />
<br />
Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,<br />
Philosophy of Science.<br />
<br />
\CVHEAD{Philosophic Interests}<br />
<br />
\TeX\ Logic, Category Theory, Chinese Philosophy. <br />
<br />
% other skills<br />
<br />
\CVHEAD{Languages and Technical Skills}<br />
<br />
Arabic, French, and the professional computer typesetting language<br />
\TeX, including the major dialects \LaTeX, \ConTeXt, as well as<br />
the minor dialects Arab\TeX (for typesetting in Arabic script) and <br />
EDMAC (for critical edition typesetting). I am also developing a<br />
new Arabic-script system for scholarly typesetting, {\sc Oriental<br />
\TeX}, based upon \TeX\ and \ConTeXt.<br />
<br />
% patents<br />
<br />
\CVHEAD{Publications} <br />
<br />
\SUBCVHEAD{Books Authored}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\<br />
University Press, 240 pp.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Articles}<br />
<br />
\startitemize <br />
<br />
\item Idris Samawi Hamid, 2005, {\it Installing Expert Fonts:<br />
Minion Pro}. In {\it MAPS}, Issue~33; pp.~19--35. Published by the<br />
Nederlandstalige \TEX\ Gebruikersgroep (NTG), Netherlands.<br />
<br />
\stopitemize <br />
<br />
\CVHEAD{Grants}<br />
<br />
\GRANTITEM{2006--2007} {{\it Oriental \TeX: A New Direction in<br />
Scholarly Complex-Script Typesetting}; Academic Enrichment<br />
Program, College of Liberal Arts, CSU; \$42,927}<br />
<br />
<br />
\CVHEAD{Presentations} <br />
<br />
\startitemize<br />
\item 2007, ``Oriental \TeX'', 1\high{st} Annual \ConTeXt\ Conference,<br />
Epen, the Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Service}<br />
<br />
\SUBCVHEAD{Profession}<br />
<br />
\startitemize<br />
<br />
\item The \TeX\ Users Group.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Department}<br />
<br />
\startitemize<br />
\item Graduate Committee, 2002--2005, 2006--2007.<br />
\item Advisory Committee, 2005--2006. <br />
\stopitemize<br />
<br />
\SUBCVHEAD{College}<br />
<br />
\startitemize<br />
\item \TeX\ Studies Committee, 2001--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{University}<br />
<br />
\startitemize<br />
\item Faculty Council, Fall 2005. <br />
\stopitemize<br />
<br />
\CVHEAD{Thesis/Dissertation Direction}<br />
<br />
\startitemize<br />
\item Joseph Ramagli (MA), ``\TeX\ Theology in Context'',<br />
in progress.<br />
\stopitemize<br />
<br />
\stoptext<br />
</texcode><br />
<br />
Buid the resume by<br />
texexec mycv.tex<br />
<br />
[[Category:Sample documents]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=File:Cv-resume.pdf&diff=12670File:Cv-resume.pdf2010-12-20T07:17:07Z<p>Jstein: texexec --utfbom cv-resume.tex</p>
<hr />
<div>texexec --utfbom cv-resume.tex</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Curriculum_Vitae&diff=12669Curriculum Vitae2010-12-20T07:16:10Z<p>Jstein: </p>
<hr />
<div>==New Version==<br />
[[Image:cv-resume.pdf]]<br />
<texcode><br />
=============m-resume.tex===============<br />
%D \module<br />
<br />
\setuppapersize[letter][letter]<br />
<br />
\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]<br />
<br />
\setuppagenumbering[location=footer]<br />
<br />
\setupinmargin[align=right]<br />
<br />
\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,]<br />
\setupitemize[2][symbol=a][indentnext=no]<br />
%\setupitemize[3][symbol=a][indentnext=no]<br />
<br />
\definehead[CVHEAD][subject]<br />
\setuphead[subject][style=\bfa,after={\blank[medium]}]<br />
<br />
\definehead[SUBCVHEAD][subsubject]<br />
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]<br />
<br />
\defineparagraphs[ContactColumns][n=2]<br />
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]<br />
<br />
\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle]<br />
{{\bfa <br />
#1}\blank[medium]{\tfb#2}}}\blank[small]}<br />
<br />
\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}<br />
<br />
% \framed is good for testing or fine-tuning \CONTACT<br />
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no,<br />
%offset=none,height=fit]<br />
%{%<br />
\startalignment[middle]<br />
\startContactColumns<br />
{\bf Office:}\crlf<br />
{#1}<br />
\ContactColumns<br />
{\bf Home:}\crlf<br />
{#2}<br />
\stopContactColumns<br />
\stopalignment}<br />
%}<br />
<br />
% \framed is used to prevent pagebreaks within an \<>ITEM<><br />
<br />
\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\blank[small]}}<br />
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Thesis:} {\em #6}.<br />
\blank[small]}}<br />
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Dissertation:} {\em #6}.\crlf<br />
{\bf Advisor:} #7.<br />
\blank[small]}}<br />
<br />
\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf Location:}\inmargin{\it #1}\ #2.\crlf<br />
{\bf Position:} #3.\crlf<br />
{\bf Responsibilities:} #4.<br />
\blank[small]}}<br />
<br />
\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]<br />
{\inmargin{\it #1} #2.}}<br />
<br />
\setupbodyfont[11pt] % 11pt seems pretty standard for cv's<br />
<br />
\endinput<br />
=========================================<br />
</texcode><br />
<br />
<br />
<texcode><br />
===============cv-resume.tex=============<br />
\usemodule[resume]<br />
<br />
\starttext<br />
<br />
\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}<br />
<br />
\CONTACT{Department of \TeX\ Studies\crlf<br />
% 221 Eddy Hall\crlf<br />
\TeX\ State University\crlf<br />
Fort Collins, CO 80523 \crlf USA\crlf<br />
(970) 491-2406/6315<br />
}<br />
{1234 \TeX\ Road\crlf<br />
\TeX{}ville, CO 80555 \crlf USA\crlf<br />
(800) TEX-5555\crlf}<br />
<br />
\CVEMAIL{ishamid <at> texstate.edu}<br />
<br />
\CVHEAD{Education}<br />
<br />
\EDUITEMPHD<br />
{PhD}<br />
{2007}<br />
{\TeX\ Studies}<br />
{\TeX\ University}<br />
{Amherst, NY}<br />
{Arabic Critical Editions}<br />
{\TeX\ Distinguished Professor Hans Hagen}<br />
<br />
\EDUITEMMA<br />
{MA}<br />
{1996}<br />
{Physics}<br />
{University at Buffalo, State University of New York}<br />
{Amherst, NY}<br />
{G\"{o}del's Universe, the Mach Principle, and the Cosmological <br />
Principle:<br />
Considerations for the Philosophy of Physics}<br />
<br />
\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State<br />
University}{Atlanta, GA}<br />
<br />
%% positions<br />
% academic positions<br />
\CVHEAD{Academic Positions}<br />
<br />
\ACADITEM<br />
{2001--2007}<br />
{\TeX\ State University, \TeX{}ville, CO}<br />
{Associate Professor}<br />
{Instruction and research, especially<br />
the development of upper-level courses in \TeX\ and \Context}<br />
<br />
\CVHEAD{Areas of Specialization}<br />
<br />
Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,<br />
Philosophy of Science.<br />
<br />
\CVHEAD{Philosophic Interests}<br />
<br />
\TeX\ Logic, Category Theory, Chinese Philosophy.<br />
<br />
% other skills<br />
<br />
\CVHEAD{Languages and Technical Skills}<br />
<br />
Arabic, French, and the professional computer typesetting language<br />
\TeX, including the major dialects \LaTeX, \Context, as well as<br />
the minor dialects Arab\TeX (for typesetting in Arabic script) and<br />
EDMAC (for critical edition typesetting). I am also developing a<br />
new Arabic-script system for scholarly typesetting, {\sc Oriental<br />
\TeX}, based upon \TeX\ and \Context.<br />
<br />
% patents<br />
<br />
\CVHEAD{Publications}<br />
<br />
\SUBCVHEAD{Books Authored}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\<br />
University Press, 240 pp.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Articles}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2005, {\it Installing Expert Fonts:<br />
Minion Pro}. In {\it MAPS}, Issue~33; pp.~19--35. Published by the<br />
Nederlandstalige \TEX\ Gebruikersgroep (NTG), Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Grants}<br />
<br />
\GRANTITEM{2006--2007} {{\it Oriental \TeX: A New Direction in<br />
Scholarly Complex-Script Typesetting}; Academic Enrichment<br />
Program, College of Liberal Arts, CSU; \$42,927}<br />
<br />
\CVHEAD{Presentations}<br />
<br />
\startitemize<br />
\item 2007, ``Oriental \TeX'', 1\high{st} Annual \Context\ Conference,<br />
Epen, the Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Service}<br />
<br />
\SUBCVHEAD{Profession}<br />
<br />
\startitemize<br />
<br />
\item The \TeX\ Users Group.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Department}<br />
<br />
\startitemize<br />
\item Graduate Committee, 2002--2005, 2006--2007.<br />
\item Advisory Committee, 2005--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{College}<br />
<br />
\startitemize<br />
\item \TeX\ Studies Committee, 2001--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{University}<br />
<br />
\startitemize<br />
\item Faculty Council, Fall 2005.<br />
\stopitemize<br />
<br />
\CVHEAD{Thesis/Dissertation Direction}<br />
<br />
\startitemize<br />
\item Joseph Ramagli (MA), ``\TeX\ Theology in Context'',<br />
in progress.<br />
\stopitemize<br />
<br />
\stoptext<br />
<br />
</texcode><br />
<br />
<br />
==Old Version==<br />
<br />
<texcode><br />
%% Ein Context-Skript als Vorlage für einen Lebenslauf<br />
%% name this file resume.tex<br />
<br />
%D \module <br />
<br />
\setuppapersize[letter][letter]<br />
<br />
\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]<br />
<br />
\setuppagenumbering[location=footer]<br />
<br />
\setupinmargin[align=right]<br />
<br />
\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,] <br />
\setupitemize[2][symbol=a][indentnext=no]<br />
%\setupitemize[3][symbol=a][indentnext=no]<br />
<br />
\definehead[CVHEAD][subject]<br />
\setuphead[subject][style=\bfa,after={\blank[medium]}]<br />
<br />
\definehead[SUBCVHEAD][subsubject] <br />
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]<br />
<br />
\defineparagraphs[ContactColumns][n=2]<br />
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]<br />
<br />
\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle] <br />
{{\bfa <br />
#1}\blank[medium]{\tfb#2}}}\blank[small]}<br />
<br />
\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}<br />
<br />
% \framed is good for testing or fine-tuning \CONTACT<br />
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no, <br />
%offset=none,height=fit]<br />
%{%<br />
\startalignment[middle]<br />
\startContactColumns<br />
{\bf Office:}\crlf<br />
{#1} <br />
\ContactColumns<br />
{\bf Home:}\crlf<br />
{#2}<br />
\stopContactColumns<br />
\stopalignment}<br />
%}<br />
<br />
% \framed is used to prevent pagebreaks within an \<>ITEM<><br />
<br />
\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\blank[small]}} <br />
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Thesis:} {\em #6}. <br />
\blank[small]}}<br />
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]<br />
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf<br />
{\bf #4}, #5.\crlf<br />
{\bf Dissertation:} {\em #6}.\crlf <br />
{\bf Advisor:} #7.<br />
\blank[small]}}<br />
<br />
\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]<br />
{{\bf Location:}\inmargin{\it #1}\ #2.\crlf <br />
{\bf Position:} #3.\crlf<br />
{\bf Responsibilities:} #4.<br />
\blank[small]}}<br />
<br />
\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]<br />
{\inmargin{\it #1} #2.}} <br />
<br />
\setupbodyfont[11pt] % 11pt seems pretty standard for cv's<br />
<br />
\endinput<br />
</texcode><br />
<br />
That was the 'style'<br />
<br />
<texcode><br />
\usemodule[resume]<br />
<br />
% this is the actual cv, filename 'mycv.tex'<br />
<br />
\starttext <br />
<br />
\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}<br />
<br />
\CONTACT{Department of \TeX\ Studies\crlf<br />
% 221 Eddy Hall\crlf<br />
\TeX\ State University\crlf<br />
Fort Collins, CO 80523 \crlf USA\crlf <br />
(970) 491-2406/6315<br />
}<br />
{1234 \TeX\ Road\crlf<br />
\TeX{}ville, CO 80555 \crlf USA\crlf<br />
(800) TEX-5555\crlf}<br />
<br />
\CVEMAIL{ishamid@texstate.edu }<br />
<br />
\CVHEAD{Education}<br />
<br />
\EDUITEMPHD<br />
{PhD}<br />
{2007}<br />
{\TeX\ Studies}<br />
{\TeX\ University}<br />
{Amherst, NY}<br />
{Arabic Critical Editions}<br />
{\TeX\ Distinguished Professor Hans Hagen} <br />
<br />
\EDUITEMMA<br />
{MA}<br />
{1996}<br />
{Physics}<br />
{University at Buffalo, State University of New York}<br />
{Amherst, NY}<br />
{G\"{o}del's Universe, the Mach Principle, and the Cosmological <br />
Principle:<br />
Considerations for the Philosophy of Physics}<br />
<br />
\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State<br />
University}{Atlanta, GA}<br />
<br />
<br />
%% positions<br />
% academic positions<br />
\CVHEAD{Academic Positions} <br />
<br />
\ACADITEM<br />
{2001--2007}<br />
{\TeX\ State University, \TeX{}ville, CO}<br />
{Associate Professor}<br />
{Instruction and research, especially<br />
the development of upper-level courses in \TeX\ and \ConTeXt} <br />
<br />
\CVHEAD{Areas of Specialization}<br />
<br />
Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,<br />
Philosophy of Science.<br />
<br />
\CVHEAD{Philosophic Interests}<br />
<br />
\TeX\ Logic, Category Theory, Chinese Philosophy. <br />
<br />
% other skills<br />
<br />
\CVHEAD{Languages and Technical Skills}<br />
<br />
Arabic, French, and the professional computer typesetting language<br />
\TeX, including the major dialects \LaTeX, \ConTeXt, as well as<br />
the minor dialects Arab\TeX (for typesetting in Arabic script) and <br />
EDMAC (for critical edition typesetting). I am also developing a<br />
new Arabic-script system for scholarly typesetting, {\sc Oriental<br />
\TeX}, based upon \TeX\ and \ConTeXt.<br />
<br />
% patents<br />
<br />
\CVHEAD{Publications} <br />
<br />
\SUBCVHEAD{Books Authored}<br />
<br />
\startitemize<br />
<br />
\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\<br />
University Press, 240 pp.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Articles}<br />
<br />
\startitemize <br />
<br />
\item Idris Samawi Hamid, 2005, {\it Installing Expert Fonts:<br />
Minion Pro}. In {\it MAPS}, Issue~33; pp.~19--35. Published by the<br />
Nederlandstalige \TEX\ Gebruikersgroep (NTG), Netherlands.<br />
<br />
\stopitemize <br />
<br />
\CVHEAD{Grants}<br />
<br />
\GRANTITEM{2006--2007} {{\it Oriental \TeX: A New Direction in<br />
Scholarly Complex-Script Typesetting}; Academic Enrichment<br />
Program, College of Liberal Arts, CSU; \$42,927}<br />
<br />
<br />
\CVHEAD{Presentations} <br />
<br />
\startitemize<br />
\item 2007, ``Oriental \TeX'', 1\high{st} Annual \ConTeXt\ Conference,<br />
Epen, the Netherlands.<br />
<br />
\stopitemize<br />
<br />
\CVHEAD{Service}<br />
<br />
\SUBCVHEAD{Profession}<br />
<br />
\startitemize<br />
<br />
\item The \TeX\ Users Group.<br />
<br />
\stopitemize<br />
<br />
\SUBCVHEAD{Department}<br />
<br />
\startitemize<br />
\item Graduate Committee, 2002--2005, 2006--2007.<br />
\item Advisory Committee, 2005--2006. <br />
\stopitemize<br />
<br />
\SUBCVHEAD{College}<br />
<br />
\startitemize<br />
\item \TeX\ Studies Committee, 2001--2006.<br />
\stopitemize<br />
<br />
\SUBCVHEAD{University}<br />
<br />
\startitemize<br />
\item Faculty Council, Fall 2005. <br />
\stopitemize<br />
<br />
\CVHEAD{Thesis/Dissertation Direction}<br />
<br />
\startitemize<br />
\item Joseph Ramagli (MA), ``\TeX\ Theology in Context'',<br />
in progress.<br />
\stopitemize<br />
<br />
\stoptext<br />
</texcode><br />
<br />
Buid the resume by<br />
texexec mycv.tex<br />
<br />
[[Category:Sample documents]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=TeX_Live_2010&diff=12664TeX Live 20102010-12-18T22:07:10Z<p>Jstein: /* Updating ConTeXt */</p>
<hr />
<div>== Introduction ==<br />
<br />
The ConTeXt in TeX Live 2010 is [[Context 2010.05.24 | 2010.05.24]] with a few small changes. ConTeXt MkII works out the box, MkIV requires that the luatex file cache be regenerated after installation before it can be used (see below).<br />
<br />
The ''scheme-context'' installs ''collection-context'' and ''collection-metapost''. This brings in quite a few font families, but we did not want to automatically install all font packages, so you may need to install a few by hand with <tt>tlmgr</tt>.<br />
<br />
== Running MkII ==<br />
<br />
The English interface for both pdftex and xetex is automatically managed by <tt>fmtutil</tt>. <br />
Just run <br />
$ texexec <myfile><br />
to compile documents using pdfTeX, or <br />
$ texexec --engine=xetex <myfile><br />
for XeTeX.<br />
<br />
=== Enabling other MkII interfaces ===<br />
<br />
You will need write permissions to TEXMFSYSVAR to enable the other context language interfaces. So if you cannot<br />
do the following steps below, point your local administrator to this page and kindly ask him/her to run the<br />
commands below for you.<br />
<br />
Adding extra context interfaces follows the same rules as for any other local format. The process is a little <br />
complicated because the normal <code>fmtutil.cnf</code> may be overwritten by package updates, and therefore a local file has to be created.<br />
<br />
1. Look for the commented cont-''XX'' lines in <code>fmtutil.cnf</code>. Use<br />
$ kpsewhich fmtutil.cnf<br />
to find its exact location. You only need the commented lines, there is no need to copy anything else.<br />
<br />
2. Create or edit the file <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code>. <code>$TEXMFLOCAL</code> is something like <code>/usr/local/texlive/texmf-local</code>, you can use<br />
$ kpsewhich --expand-var '$TEXMFLOCAL'<br />
to find the exact location. <br />
<br />
3. Put the commented cont-'XX' lines you found in step 1 into the <code>fmtutil-local.cnf</code> file. <br />
If you want xetex formats as well, make a copy of each line replacing <code>pdftex</code> with <code>xetex</code>. Then uncomment these lines, save the file, and exit the editor. <br />
<br />
After this, the <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code> (or the new section of it, if it preexisted) should look like this:<br />
cont-de pdftex cont-usr.tex -8bit *cont-de.ini<br />
cont-de xetex cont-usr.tex -8bit *cont-de.ini<br />
cont-fr pdftex cont-usr.tex -8bit *cont-fr.ini<br />
cont-fr xetex cont-usr.tex -8bit *cont-fr.ini<br />
cont-it pdftex cont-usr.tex -8bit *cont-it.ini<br />
cont-it xetex cont-usr.tex -8bit *cont-it.ini<br />
cont-nl pdftex cont-usr.tex -8bit *cont-nl.ini<br />
cont-nl xetex cont-usr.tex -8bit *cont-nl.ini<br />
cont-ro pdftex cont-usr.tex -8bit *cont-ro.ini<br />
cont-ro xetex cont-usr.tex -8bit *cont-ro.ini<br />
<br />
4. If you created a new file, now run <br />
# mktexlsr<br />
to make sure the file will be found by the TeX Live system.<br />
<br />
5. Now run<br />
# tlmgr generate fmtutil<br />
This merges the info from the TeX Live distribution with the <code>fmtutil-local.cnf</code>.<br />
<br />
6. Now to generate the newly enabled ConTeXt MkII formats, run<br />
# fmtutil-sys --all<br />
from now on, the extra formats will be auto-renewed whenever context updates are installed via <code>tlmgr</code>.<br />
<br />
== Running MkIV ==<br />
<br />
Directly after installation, but also after context-related updates to TeX Live, you will need to run <br />
<br />
$ luatools --generate<br />
<br />
to refresh the MkIV file cache.<br />
<br />
The command<br />
$ context <myfile><br />
will automatically generate and update the formats and the fonts cache when needed.<br />
<br />
== MkIV cache location ==<br />
<br />
Context MkIV in Standard TeX Live will create the data cache in <code>~/.texlive2010/texmf-var</code>;<br />
Context MkIV in MacTex will use <code>~/Library/texlive/2010/texmf-var</code>. If you are unhappy with that, you can set the environment variable <tt>TEXMFCACHE</tt> to your preferred location.<br />
<br />
== ConTeXt 2010.05.24 changes ==<br />
<br />
* Because the copyright of the ''koeielogos'' and ''koeieletters'' fonts does not allow modifications, the relevant files are not included (this was also the case in previous years). However, see [[http://tlcontrib.metatex.org/ | TLContrib]] below.<br />
* The files from [[cont-mpd.zip]] are in the package ''mptopdf''. The ''context'' package depends on ''mptopdf'', so installation is automatic.<br />
* Mojca and Taco applied a few hot-fixes for some quite serious bugs:<br />
** <tt>luatools --engine=...</tt> was broken in Context 2010.05.24.<br />
** Due to a different <tt>texmf.cnf</tt> setup, <tt>luatools</tt> and <tt>mtxrun</tt> failed to find <tt>.lua</tt> files in the normal texmf tree.<br />
** ''mptopdf'' has been patched so that it does not run ''texexec --mptex'' any more: plain metapost is now the default.<br />
** <tt>mtxrun.dll</tt> (windows) will find <tt>texlua.exe</tt> in the directory where <tt>mtxrun.dll</tt> resides if finding it in the search path fails.<br />
** Context MkIV did not deal with fonts with upper case filename extensions properly.<br />
** The typescripts ''xits'' and ''stix'' have been added to <tt>type-otf.mkiv</tt><br />
** Fix Iwona typescripts (Kurier SmallCaps definitions are missing) due to filename changes in new release of these fonts (<code>type-one.mkii</code>).<br />
** Fix Antykwa Półtawskiego typescripts to account for the changes in the first official release in September 2010<br />
** Context MkIV did not handle directory names containing dots properly.<br />
** A patch to fix 'Wrong Pi and Gamma with XITS' and \mathgreekitalic, cf. [http://archive.contextgarden.net/message/20100714.203000.66c2af69.en.html]<br />
<br />
== Updating ConTeXt ==<br />
<br />
[[Category:Installation]]<br />
<br />
[http://tlcontrib.metatex.org/ TLContrib] is a website + repository that hosts contributed packages for TeX Live 2010. <br />
<br />
The packages on TLContrib are not distributed or updated inside TeX Live proper for one or another of following reasons:<br />
<br />
* not free software according to the strict Debian guidelines<br />
* not available on CTAN<br />
* it is a binary (executable) update<br />
* it is an intermediate release for testing<br />
<br />
In short, anything TeX-related that can not be on TeX Live but can still legally be distributed over the Internet can have its place on TLContrib.<br />
<br />
The ultimate goal is to provide a companion to the core TeX Live tlnet distribution in much the same way as Debian's non-free tree is a companion to their normal, 100% free software distribution. The goal is not to replace TeX Live: package and updates that can be part of TeX Live itself should stay (or be added) there. TLContrib is simply trying to fill in a gap in the current distribution system.<br />
<br />
Quick start: to use TLContrib as a TeX Live repository, point the TeX Live package manager to http://tlcontrib.metatex.org/2010/<br />
<br />
tlmgr --repository http://tlcontrib.metatex.org/2010/ <br />
<br />
For more detailed information, visit the website [http://tlcontrib.metatex.org/ TLContrib]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=TeX_Live_2010&diff=12663TeX Live 20102010-12-18T22:06:08Z<p>Jstein: /* Updating ConTeXt */</p>
<hr />
<div>== Introduction ==<br />
<br />
The ConTeXt in TeX Live 2010 is [[Context 2010.05.24 | 2010.05.24]] with a few small changes. ConTeXt MkII works out the box, MkIV requires that the luatex file cache be regenerated after installation before it can be used (see below).<br />
<br />
The ''scheme-context'' installs ''collection-context'' and ''collection-metapost''. This brings in quite a few font families, but we did not want to automatically install all font packages, so you may need to install a few by hand with <tt>tlmgr</tt>.<br />
<br />
== Running MkII ==<br />
<br />
The English interface for both pdftex and xetex is automatically managed by <tt>fmtutil</tt>. <br />
Just run <br />
$ texexec <myfile><br />
to compile documents using pdfTeX, or <br />
$ texexec --engine=xetex <myfile><br />
for XeTeX.<br />
<br />
=== Enabling other MkII interfaces ===<br />
<br />
You will need write permissions to TEXMFSYSVAR to enable the other context language interfaces. So if you cannot<br />
do the following steps below, point your local administrator to this page and kindly ask him/her to run the<br />
commands below for you.<br />
<br />
Adding extra context interfaces follows the same rules as for any other local format. The process is a little <br />
complicated because the normal <code>fmtutil.cnf</code> may be overwritten by package updates, and therefore a local file has to be created.<br />
<br />
1. Look for the commented cont-''XX'' lines in <code>fmtutil.cnf</code>. Use<br />
$ kpsewhich fmtutil.cnf<br />
to find its exact location. You only need the commented lines, there is no need to copy anything else.<br />
<br />
2. Create or edit the file <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code>. <code>$TEXMFLOCAL</code> is something like <code>/usr/local/texlive/texmf-local</code>, you can use<br />
$ kpsewhich --expand-var '$TEXMFLOCAL'<br />
to find the exact location. <br />
<br />
3. Put the commented cont-'XX' lines you found in step 1 into the <code>fmtutil-local.cnf</code> file. <br />
If you want xetex formats as well, make a copy of each line replacing <code>pdftex</code> with <code>xetex</code>. Then uncomment these lines, save the file, and exit the editor. <br />
<br />
After this, the <code>$TEXMFLOCAL/web2c/fmtutil-local.cnf</code> (or the new section of it, if it preexisted) should look like this:<br />
cont-de pdftex cont-usr.tex -8bit *cont-de.ini<br />
cont-de xetex cont-usr.tex -8bit *cont-de.ini<br />
cont-fr pdftex cont-usr.tex -8bit *cont-fr.ini<br />
cont-fr xetex cont-usr.tex -8bit *cont-fr.ini<br />
cont-it pdftex cont-usr.tex -8bit *cont-it.ini<br />
cont-it xetex cont-usr.tex -8bit *cont-it.ini<br />
cont-nl pdftex cont-usr.tex -8bit *cont-nl.ini<br />
cont-nl xetex cont-usr.tex -8bit *cont-nl.ini<br />
cont-ro pdftex cont-usr.tex -8bit *cont-ro.ini<br />
cont-ro xetex cont-usr.tex -8bit *cont-ro.ini<br />
<br />
4. If you created a new file, now run <br />
# mktexlsr<br />
to make sure the file will be found by the TeX Live system.<br />
<br />
5. Now run<br />
# tlmgr generate fmtutil<br />
This merges the info from the TeX Live distribution with the <code>fmtutil-local.cnf</code>.<br />
<br />
6. Now to generate the newly enabled ConTeXt MkII formats, run<br />
# fmtutil-sys --all<br />
from now on, the extra formats will be auto-renewed whenever context updates are installed via <code>tlmgr</code>.<br />
<br />
== Running MkIV ==<br />
<br />
Directly after installation, but also after context-related updates to TeX Live, you will need to run <br />
<br />
$ luatools --generate<br />
<br />
to refresh the MkIV file cache.<br />
<br />
The command<br />
$ context <myfile><br />
will automatically generate and update the formats and the fonts cache when needed.<br />
<br />
== MkIV cache location ==<br />
<br />
Context MkIV in Standard TeX Live will create the data cache in <code>~/.texlive2010/texmf-var</code>;<br />
Context MkIV in MacTex will use <code>~/Library/texlive/2010/texmf-var</code>. If you are unhappy with that, you can set the environment variable <tt>TEXMFCACHE</tt> to your preferred location.<br />
<br />
== ConTeXt 2010.05.24 changes ==<br />
<br />
* Because the copyright of the ''koeielogos'' and ''koeieletters'' fonts does not allow modifications, the relevant files are not included (this was also the case in previous years). However, see [[http://tlcontrib.metatex.org/ | TLContrib]] below.<br />
* The files from [[cont-mpd.zip]] are in the package ''mptopdf''. The ''context'' package depends on ''mptopdf'', so installation is automatic.<br />
* Mojca and Taco applied a few hot-fixes for some quite serious bugs:<br />
** <tt>luatools --engine=...</tt> was broken in Context 2010.05.24.<br />
** Due to a different <tt>texmf.cnf</tt> setup, <tt>luatools</tt> and <tt>mtxrun</tt> failed to find <tt>.lua</tt> files in the normal texmf tree.<br />
** ''mptopdf'' has been patched so that it does not run ''texexec --mptex'' any more: plain metapost is now the default.<br />
** <tt>mtxrun.dll</tt> (windows) will find <tt>texlua.exe</tt> in the directory where <tt>mtxrun.dll</tt> resides if finding it in the search path fails.<br />
** Context MkIV did not deal with fonts with upper case filename extensions properly.<br />
** The typescripts ''xits'' and ''stix'' have been added to <tt>type-otf.mkiv</tt><br />
** Fix Iwona typescripts (Kurier SmallCaps definitions are missing) due to filename changes in new release of these fonts (<code>type-one.mkii</code>).<br />
** Fix Antykwa Półtawskiego typescripts to account for the changes in the first official release in September 2010<br />
** Context MkIV did not handle directory names containing dots properly.<br />
** A patch to fix 'Wrong Pi and Gamma with XITS' and \mathgreekitalic, cf. [http://archive.contextgarden.net/message/20100714.203000.66c2af69.en.html]<br />
<br />
== Updating ConTeXt ==<br />
<br />
[[Category:Installation]]<br />
<br />
[http://tlcontrib.metatex.org/ TLContrib] is a website + repository that hosts contributed packages for TeX Live 2010. The packages on TLContrib are not distributed or updated inside TeX Live proper for one or another of following reasons:<br />
<br />
* because it is not free software according to the strict Debian guidelines;<br />
* because it is not available on CTAN;<br />
* because it is a binary (executable) update;<br />
* because it is an intermediate release for testing.<br />
<br />
In short, anything TeX-related that can not be on TeX Live but can still legally be distributed over the Internet can have its place on TLContrib.<br />
<br />
The ultimate goal is to provide a companion to the core TeX Live tlnet distribution in much the same way as Debian's non-free tree is a companion to their normal, 100% free software distribution. The goal is not to replace TeX Live: package and updates that can be part of TeX Live itself should stay (or be added) there. TLContrib is simply trying to fill in a gap in the current distribution system.<br />
<br />
Quick start: to use TLContrib as a TeX Live repository, point the TeX Live package manager to http://tlcontrib.metatex.org/2010/<br />
<br />
tlmgr --repository http://tlcontrib.metatex.org/2010/ <br />
<br />
For more detailed information, visit the website [http://tlcontrib.metatex.org/ TLContrib]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=MikTeX&diff=12662MikTeX2010-12-18T22:02:26Z<p>Jstein: </p>
<hr />
<div>< [[Windows Installation]]<br />
<br />
[http://www.miktex.org MikTeX] is a magnificent Windows distribution for TeX, but:<br />
* There is no [[LuaTeX]] available yet (seems to be solved now: [http://miktex.org/packages/miktex-luatex-bin-2.9])<br />
See also<br />
* http://www.tug.org/protext/: MikTeX-based distribution, includes TeXnicCenter, GhostScript and WinEdt<br />
<br />
This page deals with some MikTeX 2.7 specifics about ConTeXt.<br />
<br />
= Installing ConTeXt =<br />
<br />
Manual installation of ConTeXt is currently possible, but ...<br />
<br />
'''This section should be removed as soon as possible. ConTeXt in MikTeX should be finally fixed!'''<br />
<br />
== Do not forget ==<br />
<br />
Before porforming the steps written below, '''update MikTeX packages'''.<br />
<br />
=== Things to check ===<br />
<br />
Just a few things that you might want to check before proceeding ...<br />
<br />
* texmfstart doesn't exist<br />
C:\>texmfstart<br />
'texmfstart' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
* texexec misbehaves<br />
C:\>texexec<br />
texexec: The Windows command script file could not be found.<br />
''(texexec.exe has been present on this computer in <code>C:\Program Files\MiKTeX 2.7\miktex\bin</code>, but I don't know if that's because it was an old installation or because it's always there.)''<br />
* ruby is installed: you get<br />
C:\>ruby --version<br />
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]<br />
instead of<br />
C:\>ruby<br />
'ruby' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
* perl is installed (if you want to use mptopdf)<br />
<br />
== Install ConTeXt base files ==<br />
<br />
Two slightly different ways to install ConTeXt in MikTeX are described below. Choose either of them (but not both; they are equivalent).<br />
<br />
=== Option 1: Installing into existing MikTeX architecture ===<br />
<br />
==== Download ConTeXt ====<br />
<br />
* download [http://www.pragma-ade.com/context/current/cont-tmf.zip cont-tmf.zip] from http://www.pragma-ade.com/download-1.htm and unzip it into <code>C:\Program Files\MikTeX 2.7</code>, so that you get:<br />
C:\Program Files\MiKTeX 2.7\bibtex<br />
C:\Program Files\MiKTeX 2.7\context<br />
C:\Program Files\MiKTeX 2.7\doc<br />
C:\Program Files\MiKTeX 2.7\...<br />
C:\Program Files\MiKTeX 2.7\web2c<br />
but not<br />
C:\Program Files\MiKTeX 2.7\cont-tmf\bibtex\...<br />
<br />
==== Add ConTeXt binaries ====<br />
<br />
* Copy <code>texexec.bat</code> (and any other script that you might be using, like <code>mptopdf.bat</code>) from<br />
C:\Program Files\MiKTeX 2.7\scripts\context\stubs\mswin<br />
into<br />
C:\Program Files\MiKTeX 2.7\miktex\bin<br />
<br />
* Delete<br />
C:\Program Files\MiKTeX 2.7\miktex\bin\texexec.exe<br />
C:\Program Files\MiKTeX 2.7\miktex\bin\mptopdf.exe<br />
and any other <code>foo.exe</code> belonging to ConTeXt that has been replaced by <code>foo.bat</code> in the previous step.<br />
<br />
* Create a file <code>C:\Program Files\MiKTeX 2.7\miktex\bin\texmfstart.bat</code> with the following content:<br />
@echo off<br />
ruby "C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb" %*<br />
<br />
=== Option 2: Installing separately ===<br />
<br />
==== Download ConTeXt ====<br />
<br />
* Create a new folder<br />
C:\Program Files\ConTeXt<br />
<br />
* download [http://www.pragma-ade.com/context/current/cont-tmf.zip cont-tmf.zip] from http://www.pragma-ade.com/download-1.htm and unzip into that folder, so that you get:<br />
C:\Program Files\ConTeXt\bibtex<br />
C:\Program Files\ConTeXt\context<br />
C:\Program Files\ConTeXt\doc<br />
C:\Program Files\ConTeXt\...<br />
C:\Program Files\ConTeXt\web2c<br />
<br />
==== Set up a new tree in MikTeX ====<br />
<br />
* Open<br />
Start Menu -> MikTeX 2.7 -> Settings<br />
<br />
* In tab <code>Roots</code>, choose <code>Add ...</code> button and add <code>C:\Program Files\ConTeXt</code> as a new path<br />
<br />
* In tab <code>General</code>, click on <code>Refresh FNDB</code><br />
<br />
* Click <code>OK</code><br />
<br />
==== Add ConTeXt binaries to PATH ====<br />
<br />
* Go to<br />
Control Panel -> System -> Advanced -> Environment Variables<br />
<br />
* Find <code>PATH</code> in <code>System Variables</code> and <code>Edit</code> it. Add ConTeXt stub path in front of the one for MikTeX, for example replace:<br />
C:\Program Files\MiKTeX 2.7\miktex\bin;<br />
with<br />
C:\Program Files\ConTeXt\scripts\context\stubs\mswin;C:\Program Files\MiKTeX 2.7\miktex\bin;<br />
''(You could just as well copy all the bat files you need from there to some other place in PATH. For most people copying texexec.bat is almost enough. The important thing is to either delete or shield texexec.exe from MikTeX.)''<br />
<br />
* Open a new command line and make sure that you now get<br />
C:\>texexec<br />
'texmfstart' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
<br />
* Create a new file <code>texmfstart.bat</code> anywhere in your PATH, for example in<br />
C:\Program Files\ConTeXt\scripts\context\stubs\mswin\texmfstart.bat<br />
with the following content:<br />
@echo off<br />
ruby "C:\Program Files\ConTeXt\scripts\context\ruby\texmfstart.rb" %*<br />
<br />
* Check that you now get the correct response from command line<br />
C:\>texexec<br />
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD<br />
<br />
TeXExec | --check check versions<br />
TeXExec | --figures generate overview of figures<br />
TeXExec | ...<br />
TeXExec | --help --all shows all switches<br />
<br />
== Make formats ==<br />
<br />
* Go to ''Start Menu -> MikTeX 2.7 -> Settings -> Formats -> New ...''<br />
<br />
{|<br />
|-<br />
| '''Format key:'''<br />
| ConTeXt <br />
| ''(could be anything)''<br />
|-<br />
| '''Format name:'''<br />
| cont-en<br />
| ''(could be anything)''<br />
|-<br />
| '''Compiler:'''<br />
| pdftex<br />
|-<br />
| '''Input file name:'''<br />
| cont-en.tex<br />
|-<br />
| '''Description:'''<br />
| ConTeXt format<br />
| ''(could be anything)''<br />
|-<br />
| (uncheck)<br />
| Exclude this format ...<br />
|<br />
|}<br />
<br />
* Choose the newly created format and <code>Build</code> it.<br />
* For mptopdf uncheck the box for excluding as well.<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=MikTeX&diff=12661MikTeX2010-12-18T22:00:57Z<p>Jstein: </p>
<hr />
<div>< [[Windows Installation]]<br />
<br />
MikTeX (http://www.miktex.org) is a magnificent Windows distribution for TeX, but:<br />
* There is no [[LuaTeX]] available yet (seems to be solved now: [http://miktex.org/packages/miktex-luatex-bin-2.9])<br />
See also<br />
* http://www.tug.org/protext/: MikTeX-based distribution, includes TeXnicCenter, GhostScript and WinEdt<br />
<br />
This page deals with some MikTeX 2.7 specifics about ConTeXt.<br />
<br />
= Installing ConTeXt =<br />
<br />
Manual installation of ConTeXt is currently possible, but ...<br />
<br />
'''This section should be removed as soon as possible. ConTeXt in MikTeX should be finally fixed!'''<br />
<br />
== Do not forget ==<br />
<br />
Before porforming the steps written below, '''update MikTeX packages'''.<br />
<br />
=== Things to check ===<br />
<br />
Just a few things that you might want to check before proceeding ...<br />
<br />
* texmfstart doesn't exist<br />
C:\>texmfstart<br />
'texmfstart' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
* texexec misbehaves<br />
C:\>texexec<br />
texexec: The Windows command script file could not be found.<br />
''(texexec.exe has been present on this computer in <code>C:\Program Files\MiKTeX 2.7\miktex\bin</code>, but I don't know if that's because it was an old installation or because it's always there.)''<br />
* ruby is installed: you get<br />
C:\>ruby --version<br />
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]<br />
instead of<br />
C:\>ruby<br />
'ruby' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
* perl is installed (if you want to use mptopdf)<br />
<br />
== Install ConTeXt base files ==<br />
<br />
Two slightly different ways to install ConTeXt in MikTeX are described below. Choose either of them (but not both; they are equivalent).<br />
<br />
=== Option 1: Installing into existing MikTeX architecture ===<br />
<br />
==== Download ConTeXt ====<br />
<br />
* download [http://www.pragma-ade.com/context/current/cont-tmf.zip cont-tmf.zip] from http://www.pragma-ade.com/download-1.htm and unzip it into <code>C:\Program Files\MikTeX 2.7</code>, so that you get:<br />
C:\Program Files\MiKTeX 2.7\bibtex<br />
C:\Program Files\MiKTeX 2.7\context<br />
C:\Program Files\MiKTeX 2.7\doc<br />
C:\Program Files\MiKTeX 2.7\...<br />
C:\Program Files\MiKTeX 2.7\web2c<br />
but not<br />
C:\Program Files\MiKTeX 2.7\cont-tmf\bibtex\...<br />
<br />
==== Add ConTeXt binaries ====<br />
<br />
* Copy <code>texexec.bat</code> (and any other script that you might be using, like <code>mptopdf.bat</code>) from<br />
C:\Program Files\MiKTeX 2.7\scripts\context\stubs\mswin<br />
into<br />
C:\Program Files\MiKTeX 2.7\miktex\bin<br />
<br />
* Delete<br />
C:\Program Files\MiKTeX 2.7\miktex\bin\texexec.exe<br />
C:\Program Files\MiKTeX 2.7\miktex\bin\mptopdf.exe<br />
and any other <code>foo.exe</code> belonging to ConTeXt that has been replaced by <code>foo.bat</code> in the previous step.<br />
<br />
* Create a file <code>C:\Program Files\MiKTeX 2.7\miktex\bin\texmfstart.bat</code> with the following content:<br />
@echo off<br />
ruby "C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb" %*<br />
<br />
=== Option 2: Installing separately ===<br />
<br />
==== Download ConTeXt ====<br />
<br />
* Create a new folder<br />
C:\Program Files\ConTeXt<br />
<br />
* download [http://www.pragma-ade.com/context/current/cont-tmf.zip cont-tmf.zip] from http://www.pragma-ade.com/download-1.htm and unzip into that folder, so that you get:<br />
C:\Program Files\ConTeXt\bibtex<br />
C:\Program Files\ConTeXt\context<br />
C:\Program Files\ConTeXt\doc<br />
C:\Program Files\ConTeXt\...<br />
C:\Program Files\ConTeXt\web2c<br />
<br />
==== Set up a new tree in MikTeX ====<br />
<br />
* Open<br />
Start Menu -> MikTeX 2.7 -> Settings<br />
<br />
* In tab <code>Roots</code>, choose <code>Add ...</code> button and add <code>C:\Program Files\ConTeXt</code> as a new path<br />
<br />
* In tab <code>General</code>, click on <code>Refresh FNDB</code><br />
<br />
* Click <code>OK</code><br />
<br />
==== Add ConTeXt binaries to PATH ====<br />
<br />
* Go to<br />
Control Panel -> System -> Advanced -> Environment Variables<br />
<br />
* Find <code>PATH</code> in <code>System Variables</code> and <code>Edit</code> it. Add ConTeXt stub path in front of the one for MikTeX, for example replace:<br />
C:\Program Files\MiKTeX 2.7\miktex\bin;<br />
with<br />
C:\Program Files\ConTeXt\scripts\context\stubs\mswin;C:\Program Files\MiKTeX 2.7\miktex\bin;<br />
''(You could just as well copy all the bat files you need from there to some other place in PATH. For most people copying texexec.bat is almost enough. The important thing is to either delete or shield texexec.exe from MikTeX.)''<br />
<br />
* Open a new command line and make sure that you now get<br />
C:\>texexec<br />
'texmfstart' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
<br />
* Create a new file <code>texmfstart.bat</code> anywhere in your PATH, for example in<br />
C:\Program Files\ConTeXt\scripts\context\stubs\mswin\texmfstart.bat<br />
with the following content:<br />
@echo off<br />
ruby "C:\Program Files\ConTeXt\scripts\context\ruby\texmfstart.rb" %*<br />
<br />
* Check that you now get the correct response from command line<br />
C:\>texexec<br />
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD<br />
<br />
TeXExec | --check check versions<br />
TeXExec | --figures generate overview of figures<br />
TeXExec | ...<br />
TeXExec | --help --all shows all switches<br />
<br />
== Make formats ==<br />
<br />
* Go to ''Start Menu -> MikTeX 2.7 -> Settings -> Formats -> New ...''<br />
<br />
{|<br />
|-<br />
| '''Format key:'''<br />
| ConTeXt <br />
| ''(could be anything)''<br />
|-<br />
| '''Format name:'''<br />
| cont-en<br />
| ''(could be anything)''<br />
|-<br />
| '''Compiler:'''<br />
| pdftex<br />
|-<br />
| '''Input file name:'''<br />
| cont-en.tex<br />
|-<br />
| '''Description:'''<br />
| ConTeXt format<br />
| ''(could be anything)''<br />
|-<br />
| (uncheck)<br />
| Exclude this format ...<br />
|<br />
|}<br />
<br />
* Choose the newly created format and <code>Build</code> it.<br />
* For mptopdf uncheck the box for excluding as well.<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Windows_Installation&diff=12658Windows Installation2010-12-18T21:17:04Z<p>Jstein: /* ConTeXt Minimals with TexWorks */</p>
<hr />
<div>== Requirements ==<br />
In order to be able to run ConTeXt under Windows, you will need:<br />
* a TeX distribution<br />
* some scripting languages: Ruby is absolutely required (unless you plan to use MK IV exclusively), Perl and GhostScript are highly recommended, the rest is optional.<br />
* your favorite [[Text Editors|text editor]] and [[#PDF Viewer|PDF viewer]]<br />
<br />
If this was too many options to your taste, try the [[Simple Windows Installation]] page instead.<br />
<br />
== Updating ==<br />
<br />
You have to bear in mind that ConTeXt is being developed reasonably fast (see [[Release Notes]]), so it's recommended to update it regulary. The command<br />
ctxtools --update<br />
used to work OK, but is '''no more recommended'''. All the three distributions mentioned here have their own way to update. We'll come back to that later (and move this section to a better place).<br />
<br />
= TeX Distributions =<br />
<br />
You first need to choose a TeX distribution. Options are:<br />
<br />
== [[ConTeXt Minimals]] ==<br />
* the official ConTeXt distribution<br />
* easy to keep up-to-date<br />
* includes (almost) everything that you need for ConTeXt<br />
* no LaTeX<br />
** if you don't need it, that's a rather small & convenient way to use ConTeXt<br />
** if you need it, you can have minimals installed parallel to [[TeX Live|TL]] or [[MikTeX]]<br />
<br />
There are two ways to install it on Windows:<br />
* use GUI intaller by Vyatcheslav [http://minimals.contextgarden.net/setup/context-installer/] (sets environmental variables globally)<br />
* install from command-line (TODO: instructions)<br />
<br />
== [[TeX Live]] ==<br />
<br />
* reference distribution for (La)TeX for all platforms<br />
* released once per year and sent to members of TeX user groups on DVDs<br />
* used to be gigantic; but since 2008 one can install separate packages and update them<br />
* binaries are compatible with Minimals<br />
* ConTeXt is outdated<br />
** but it's possible to update it manually<br />
** new ConTeXt update mechanism is being prepared<br />
<br />
''Another distribution worth mentioning is [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] that came to our attention when Akira (its author) was the first one to manage to compile [[XeTeX]] for Windows, and still provides the very latest Windows binaries for [[XeTeX]], [[LuaTeX]], [[pdfTeX]], [[MetaPost]], ... Distribution is a bit specific, but his binaries are great - compatible with [[TeX Live]] and used in [[Minimals]].''<br />
<br />
= [[ConTeXt Minimals]] with TexWorks =<br />
<br />
Install ConTeXt MkIV with the GUI installer and accept the default options upon installation. This will install Context in folder c:\contextminimal<br />
<br />
Install [http://www.tug.org/texworks/ TexWorks] and accept the default options upon installation. <br />
Goto EDIT>PREFERENCES>EDITOR>SYNTAX COLORING: <br />
SELECT CONTEXT>TYPESETTING>DEFAULT>SELECT CONTEXT>PROCESSING TOOLS: CONTEXT>EDIT>PROGRAM: context.cmd and ARGUMENTS: only $fullname>OK>OK<br />
<br />
Now populate the screen with ConTeXt code, select ConTeXt and press Typeset. A PDF screen should pup up with the document.<br />
<br />
== Compiling ==<br />
<br />
After you've done all that, you can finally use your favourite editor to write your [[First Document|first document]].<br />
<br />
To compile it, open the command line again (Start -> Run ... -> type '''cmd''' or '''command''') and run<br />
texexec yourfilename<br />
<br />
<br />
== GhostScript ==<br />
<br />
* http://www.cs.wisc.edu/~ghost/<br />
* http://www.ghostscript.com/<br />
<br />
If you already worked with (La)TeX before, you probably already have it installed. Try<br />
gswin32 --version<br />
<br />
You have to download GhostScript (filename '''<code>gs851w32.exe</code>''' or a similar one) and preferrably GSview as well ('''<code>gsv47w32.exe</code>''' or similar). Be sure to include the executables (folder where gswin32.exe is located) into the PATH variable.<br />
<br />
= Special Notes =<br />
===Installation Instructions===<br />
<br />
{{todo|I made an example how to use the stand-alone distr. isolated from an existing distro. I would like to "join" this somehow with the first section and move opening of <code>cdemo.bat</code> to something like <b>testing the installation</b>. Perhaps <tt>pragmatex.bat</tt> can be executed with autorun or something if one is not using another TeX distribution.}}<br />
<br />
''by Ville Voipio on the mailing list, 2006-01-19'' (modified)<br />
<br />
Here is a step by step of how it should go (i.e. what I did with success):<br />
<br />
# Install Perl and Ruby<br />
# Download [http://www.pragma-ade.com/context/install/mswincontext.zip mswincontext.zip], unzip it and move/rename the <code>isoimage</code> folder to your favourite destination. The instructions to follow assume that you renamed <code>isoimage</code> to <pre>c:\Programs\context</pre> There should be one folder (<code>usr</code>) and a few files in it.<br />
# Open the folder <code>c:\Programs\context</code> and double-click <code>cdemo.bat</code>.<br />
# Now you should see the editor SciTE open with a few files. Press F7 to compile one of the files.<br />
If everything goes smoothly, you are done. If not, read these instructions again carefully. If you cannot get it work, mail the list.<br />
<br />
{{todo|review these steps: join the information - notes about ruby, Acrobat, ... apply to all windows distributions.}}<br />
<br />
A few notes on the procedure above:<br />
* It is up to you to choose the location where you unzip the file in step #2, no magic there. Just that you know where the files are.<br />
* The actual location of the ConTeXt tree in step #2 does not matter. I use <tt>c:\context</tt>, but you might use something else. However, I would not use anything with a space in the name (e.g. <tt>c:\Program Files\context</tt>), as that may confuse things. [Seems to work with an August 2006 stand-alone distribution.]<br />
* After you have verified everything works in step #3, you can toss <tt>cdemo.bat</tt> away and use <tt>cstart.bat</tt> to start everything. Make a link to it somewhere so that you can start the system by a shortcut or through the Start menu. ''Do not move the batch script anywhere,'' it has to be run in the root directory of the distribution (e.g. <tt>c:\Programs\context</tt>).<br />
* Make sure you have something Acrobatish (any decent PDF viewer) installed, otherwise you won't see the results in step #4.<br />
* A final note: to have it finally running you should build the formats first. To do so there is at least a way:<br />
<br />
(assuming C:\Programs\context)<br />
Start->Run->cmd<br />
cd C:\Programs\context<br />
cdemo.bat<br />
<br />
Then close the SciTe window but remain in the cmd.<br />
<br />
Then, in one line:<br />
C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex<br />
<br />
texexec --make --all<br />
<br />
Then, close the cmd, double-click in cdemo.bat<br />
and voila !<br />
<br />
* Another way to do it could be to type: texexec --make --all directly in SciTe console.<br />
<br />
===How to use the stand-alone distr. if you have MikTeX/TeX Live installed===<br />
<br />
# Create a file <code>pragmatex.bat</code> (the name doesn't really matter) with this content: <pre>C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex</pre> and make sure that this file is visible by <code>PATH</code>.<br />
# You can safely continue using your old TeX distribution (MikTeX, TeX Live, ...). If you want to invoke the stand-alone distribution, just execute <pre>pragmatex</pre> from the command-line and all the subsequent calls to <code>texexec</code> will use files from the stand-alone tree (you'll notice the difference in file names when running ConTeXt).<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Windows_Installation&diff=12657Windows Installation2010-12-18T21:16:54Z<p>Jstein: /* ConTeXt Minimals with TexWorks */</p>
<hr />
<div>== Requirements ==<br />
In order to be able to run ConTeXt under Windows, you will need:<br />
* a TeX distribution<br />
* some scripting languages: Ruby is absolutely required (unless you plan to use MK IV exclusively), Perl and GhostScript are highly recommended, the rest is optional.<br />
* your favorite [[Text Editors|text editor]] and [[#PDF Viewer|PDF viewer]]<br />
<br />
If this was too many options to your taste, try the [[Simple Windows Installation]] page instead.<br />
<br />
== Updating ==<br />
<br />
You have to bear in mind that ConTeXt is being developed reasonably fast (see [[Release Notes]]), so it's recommended to update it regulary. The command<br />
ctxtools --update<br />
used to work OK, but is '''no more recommended'''. All the three distributions mentioned here have their own way to update. We'll come back to that later (and move this section to a better place).<br />
<br />
= TeX Distributions =<br />
<br />
You first need to choose a TeX distribution. Options are:<br />
<br />
== [[ConTeXt Minimals]] ==<br />
* the official ConTeXt distribution<br />
* easy to keep up-to-date<br />
* includes (almost) everything that you need for ConTeXt<br />
* no LaTeX<br />
** if you don't need it, that's a rather small & convenient way to use ConTeXt<br />
** if you need it, you can have minimals installed parallel to [[TeX Live|TL]] or [[MikTeX]]<br />
<br />
There are two ways to install it on Windows:<br />
* use GUI intaller by Vyatcheslav [http://minimals.contextgarden.net/setup/context-installer/] (sets environmental variables globally)<br />
* install from command-line (TODO: instructions)<br />
<br />
== [[TeX Live]] ==<br />
<br />
* reference distribution for (La)TeX for all platforms<br />
* released once per year and sent to members of TeX user groups on DVDs<br />
* used to be gigantic; but since 2008 one can install separate packages and update them<br />
* binaries are compatible with Minimals<br />
* ConTeXt is outdated<br />
** but it's possible to update it manually<br />
** new ConTeXt update mechanism is being prepared<br />
<br />
''Another distribution worth mentioning is [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] that came to our attention when Akira (its author) was the first one to manage to compile [[XeTeX]] for Windows, and still provides the very latest Windows binaries for [[XeTeX]], [[LuaTeX]], [[pdfTeX]], [[MetaPost]], ... Distribution is a bit specific, but his binaries are great - compatible with [[TeX Live]] and used in [[Minimals]].''<br />
<br />
= [[ConTeXt Minimals]] with TexWorks =<br />
<br />
Install ConTeXt MkIV with the GUI installer and accept the default options upon installation. This will install Context in folder c:\contextminimal<br />
<br />
Install [http://www.tug.org/texworks/ |TexWorks] and accept the default options upon installation. <br />
Goto EDIT>PREFERENCES>EDITOR>SYNTAX COLORING: <br />
SELECT CONTEXT>TYPESETTING>DEFAULT>SELECT CONTEXT>PROCESSING TOOLS: CONTEXT>EDIT>PROGRAM: context.cmd and ARGUMENTS: only $fullname>OK>OK<br />
<br />
Now populate the screen with ConTeXt code, select ConTeXt and press Typeset. A PDF screen should pup up with the document.<br />
<br />
== Compiling ==<br />
<br />
After you've done all that, you can finally use your favourite editor to write your [[First Document|first document]].<br />
<br />
To compile it, open the command line again (Start -> Run ... -> type '''cmd''' or '''command''') and run<br />
texexec yourfilename<br />
<br />
<br />
== GhostScript ==<br />
<br />
* http://www.cs.wisc.edu/~ghost/<br />
* http://www.ghostscript.com/<br />
<br />
If you already worked with (La)TeX before, you probably already have it installed. Try<br />
gswin32 --version<br />
<br />
You have to download GhostScript (filename '''<code>gs851w32.exe</code>''' or a similar one) and preferrably GSview as well ('''<code>gsv47w32.exe</code>''' or similar). Be sure to include the executables (folder where gswin32.exe is located) into the PATH variable.<br />
<br />
= Special Notes =<br />
===Installation Instructions===<br />
<br />
{{todo|I made an example how to use the stand-alone distr. isolated from an existing distro. I would like to "join" this somehow with the first section and move opening of <code>cdemo.bat</code> to something like <b>testing the installation</b>. Perhaps <tt>pragmatex.bat</tt> can be executed with autorun or something if one is not using another TeX distribution.}}<br />
<br />
''by Ville Voipio on the mailing list, 2006-01-19'' (modified)<br />
<br />
Here is a step by step of how it should go (i.e. what I did with success):<br />
<br />
# Install Perl and Ruby<br />
# Download [http://www.pragma-ade.com/context/install/mswincontext.zip mswincontext.zip], unzip it and move/rename the <code>isoimage</code> folder to your favourite destination. The instructions to follow assume that you renamed <code>isoimage</code> to <pre>c:\Programs\context</pre> There should be one folder (<code>usr</code>) and a few files in it.<br />
# Open the folder <code>c:\Programs\context</code> and double-click <code>cdemo.bat</code>.<br />
# Now you should see the editor SciTE open with a few files. Press F7 to compile one of the files.<br />
If everything goes smoothly, you are done. If not, read these instructions again carefully. If you cannot get it work, mail the list.<br />
<br />
{{todo|review these steps: join the information - notes about ruby, Acrobat, ... apply to all windows distributions.}}<br />
<br />
A few notes on the procedure above:<br />
* It is up to you to choose the location where you unzip the file in step #2, no magic there. Just that you know where the files are.<br />
* The actual location of the ConTeXt tree in step #2 does not matter. I use <tt>c:\context</tt>, but you might use something else. However, I would not use anything with a space in the name (e.g. <tt>c:\Program Files\context</tt>), as that may confuse things. [Seems to work with an August 2006 stand-alone distribution.]<br />
* After you have verified everything works in step #3, you can toss <tt>cdemo.bat</tt> away and use <tt>cstart.bat</tt> to start everything. Make a link to it somewhere so that you can start the system by a shortcut or through the Start menu. ''Do not move the batch script anywhere,'' it has to be run in the root directory of the distribution (e.g. <tt>c:\Programs\context</tt>).<br />
* Make sure you have something Acrobatish (any decent PDF viewer) installed, otherwise you won't see the results in step #4.<br />
* A final note: to have it finally running you should build the formats first. To do so there is at least a way:<br />
<br />
(assuming C:\Programs\context)<br />
Start->Run->cmd<br />
cd C:\Programs\context<br />
cdemo.bat<br />
<br />
Then close the SciTe window but remain in the cmd.<br />
<br />
Then, in one line:<br />
C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex<br />
<br />
texexec --make --all<br />
<br />
Then, close the cmd, double-click in cdemo.bat<br />
and voila !<br />
<br />
* Another way to do it could be to type: texexec --make --all directly in SciTe console.<br />
<br />
===How to use the stand-alone distr. if you have MikTeX/TeX Live installed===<br />
<br />
# Create a file <code>pragmatex.bat</code> (the name doesn't really matter) with this content: <pre>C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex</pre> and make sure that this file is visible by <code>PATH</code>.<br />
# You can safely continue using your old TeX distribution (MikTeX, TeX Live, ...). If you want to invoke the stand-alone distribution, just execute <pre>pragmatex</pre> from the command-line and all the subsequent calls to <code>texexec</code> will use files from the stand-alone tree (you'll notice the difference in file names when running ConTeXt).<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Windows_Installation&diff=12656Windows Installation2010-12-18T21:15:06Z<p>Jstein: /* Text Editor */</p>
<hr />
<div>== Requirements ==<br />
In order to be able to run ConTeXt under Windows, you will need:<br />
* a TeX distribution<br />
* some scripting languages: Ruby is absolutely required (unless you plan to use MK IV exclusively), Perl and GhostScript are highly recommended, the rest is optional.<br />
* your favorite [[Text Editors|text editor]] and [[#PDF Viewer|PDF viewer]]<br />
<br />
If this was too many options to your taste, try the [[Simple Windows Installation]] page instead.<br />
<br />
== Updating ==<br />
<br />
You have to bear in mind that ConTeXt is being developed reasonably fast (see [[Release Notes]]), so it's recommended to update it regulary. The command<br />
ctxtools --update<br />
used to work OK, but is '''no more recommended'''. All the three distributions mentioned here have their own way to update. We'll come back to that later (and move this section to a better place).<br />
<br />
= TeX Distributions =<br />
<br />
You first need to choose a TeX distribution. Options are:<br />
<br />
== [[ConTeXt Minimals]] ==<br />
* the official ConTeXt distribution<br />
* easy to keep up-to-date<br />
* includes (almost) everything that you need for ConTeXt<br />
* no LaTeX<br />
** if you don't need it, that's a rather small & convenient way to use ConTeXt<br />
** if you need it, you can have minimals installed parallel to [[TeX Live|TL]] or [[MikTeX]]<br />
<br />
There are two ways to install it on Windows:<br />
* use GUI intaller by Vyatcheslav [http://minimals.contextgarden.net/setup/context-installer/] (sets environmental variables globally)<br />
* install from command-line (TODO: instructions)<br />
<br />
== [[TeX Live]] ==<br />
<br />
* reference distribution for (La)TeX for all platforms<br />
* released once per year and sent to members of TeX user groups on DVDs<br />
* used to be gigantic; but since 2008 one can install separate packages and update them<br />
* binaries are compatible with Minimals<br />
* ConTeXt is outdated<br />
** but it's possible to update it manually<br />
** new ConTeXt update mechanism is being prepared<br />
<br />
''Another distribution worth mentioning is [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] that came to our attention when Akira (its author) was the first one to manage to compile [[XeTeX]] for Windows, and still provides the very latest Windows binaries for [[XeTeX]], [[LuaTeX]], [[pdfTeX]], [[MetaPost]], ... Distribution is a bit specific, but his binaries are great - compatible with [[TeX Live]] and used in [[Minimals]].''<br />
<br />
= [[ConTeXt Minimals]] with TexWorks =<br />
<br />
Install ConTeXt MkIV with the GUI installer and accept the default options upon installation. This will install Context in folder c:\contextminimal<br />
<br />
Install TexWorks and accept the default options upon installation. <br />
Goto EDIT>PREFERENCES>EDITOR>SYNTAX COLORING: <br />
SELECT CONTEXT>TYPESETTING>DEFAULT>SELECT CONTEXT>PROCESSING TOOLS: CONTEXT>EDIT>PROGRAM: context.cmd and ARGUMENTS: only $fullname>OK>OK<br />
<br />
Now populate the screen with ConTeXt code, select ConTeXt and press Typeset. A PDF screen should pup up with the document.<br />
<br />
== Compiling ==<br />
<br />
After you've done all that, you can finally use your favourite editor to write your [[First Document|first document]].<br />
<br />
To compile it, open the command line again (Start -> Run ... -> type '''cmd''' or '''command''') and run<br />
texexec yourfilename<br />
<br />
<br />
== GhostScript ==<br />
<br />
* http://www.cs.wisc.edu/~ghost/<br />
* http://www.ghostscript.com/<br />
<br />
If you already worked with (La)TeX before, you probably already have it installed. Try<br />
gswin32 --version<br />
<br />
You have to download GhostScript (filename '''<code>gs851w32.exe</code>''' or a similar one) and preferrably GSview as well ('''<code>gsv47w32.exe</code>''' or similar). Be sure to include the executables (folder where gswin32.exe is located) into the PATH variable.<br />
<br />
= Special Notes =<br />
===Installation Instructions===<br />
<br />
{{todo|I made an example how to use the stand-alone distr. isolated from an existing distro. I would like to "join" this somehow with the first section and move opening of <code>cdemo.bat</code> to something like <b>testing the installation</b>. Perhaps <tt>pragmatex.bat</tt> can be executed with autorun or something if one is not using another TeX distribution.}}<br />
<br />
''by Ville Voipio on the mailing list, 2006-01-19'' (modified)<br />
<br />
Here is a step by step of how it should go (i.e. what I did with success):<br />
<br />
# Install Perl and Ruby<br />
# Download [http://www.pragma-ade.com/context/install/mswincontext.zip mswincontext.zip], unzip it and move/rename the <code>isoimage</code> folder to your favourite destination. The instructions to follow assume that you renamed <code>isoimage</code> to <pre>c:\Programs\context</pre> There should be one folder (<code>usr</code>) and a few files in it.<br />
# Open the folder <code>c:\Programs\context</code> and double-click <code>cdemo.bat</code>.<br />
# Now you should see the editor SciTE open with a few files. Press F7 to compile one of the files.<br />
If everything goes smoothly, you are done. If not, read these instructions again carefully. If you cannot get it work, mail the list.<br />
<br />
{{todo|review these steps: join the information - notes about ruby, Acrobat, ... apply to all windows distributions.}}<br />
<br />
A few notes on the procedure above:<br />
* It is up to you to choose the location where you unzip the file in step #2, no magic there. Just that you know where the files are.<br />
* The actual location of the ConTeXt tree in step #2 does not matter. I use <tt>c:\context</tt>, but you might use something else. However, I would not use anything with a space in the name (e.g. <tt>c:\Program Files\context</tt>), as that may confuse things. [Seems to work with an August 2006 stand-alone distribution.]<br />
* After you have verified everything works in step #3, you can toss <tt>cdemo.bat</tt> away and use <tt>cstart.bat</tt> to start everything. Make a link to it somewhere so that you can start the system by a shortcut or through the Start menu. ''Do not move the batch script anywhere,'' it has to be run in the root directory of the distribution (e.g. <tt>c:\Programs\context</tt>).<br />
* Make sure you have something Acrobatish (any decent PDF viewer) installed, otherwise you won't see the results in step #4.<br />
* A final note: to have it finally running you should build the formats first. To do so there is at least a way:<br />
<br />
(assuming C:\Programs\context)<br />
Start->Run->cmd<br />
cd C:\Programs\context<br />
cdemo.bat<br />
<br />
Then close the SciTe window but remain in the cmd.<br />
<br />
Then, in one line:<br />
C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex<br />
<br />
texexec --make --all<br />
<br />
Then, close the cmd, double-click in cdemo.bat<br />
and voila !<br />
<br />
* Another way to do it could be to type: texexec --make --all directly in SciTe console.<br />
<br />
===How to use the stand-alone distr. if you have MikTeX/TeX Live installed===<br />
<br />
# Create a file <code>pragmatex.bat</code> (the name doesn't really matter) with this content: <pre>C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex</pre> and make sure that this file is visible by <code>PATH</code>.<br />
# You can safely continue using your old TeX distribution (MikTeX, TeX Live, ...). If you want to invoke the stand-alone distribution, just execute <pre>pragmatex</pre> from the command-line and all the subsequent calls to <code>texexec</code> will use files from the stand-alone tree (you'll notice the difference in file names when running ConTeXt).<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Windows_Installation&diff=12655Windows Installation2010-12-18T21:13:10Z<p>Jstein: /* Requirements */</p>
<hr />
<div>== Requirements ==<br />
In order to be able to run ConTeXt under Windows, you will need:<br />
* a TeX distribution<br />
* some scripting languages: Ruby is absolutely required (unless you plan to use MK IV exclusively), Perl and GhostScript are highly recommended, the rest is optional.<br />
* your favorite [[Text Editors|text editor]] and [[#PDF Viewer|PDF viewer]]<br />
<br />
If this was too many options to your taste, try the [[Simple Windows Installation]] page instead.<br />
<br />
== Updating ==<br />
<br />
You have to bear in mind that ConTeXt is being developed reasonably fast (see [[Release Notes]]), so it's recommended to update it regulary. The command<br />
ctxtools --update<br />
used to work OK, but is '''no more recommended'''. All the three distributions mentioned here have their own way to update. We'll come back to that later (and move this section to a better place).<br />
<br />
= TeX Distributions =<br />
<br />
You first need to choose a TeX distribution. Options are:<br />
<br />
== [[ConTeXt Minimals]] ==<br />
* the official ConTeXt distribution<br />
* easy to keep up-to-date<br />
* includes (almost) everything that you need for ConTeXt<br />
* no LaTeX<br />
** if you don't need it, that's a rather small & convenient way to use ConTeXt<br />
** if you need it, you can have minimals installed parallel to [[TeX Live|TL]] or [[MikTeX]]<br />
<br />
There are two ways to install it on Windows:<br />
* use GUI intaller by Vyatcheslav [http://minimals.contextgarden.net/setup/context-installer/] (sets environmental variables globally)<br />
* install from command-line (TODO: instructions)<br />
<br />
== [[TeX Live]] ==<br />
<br />
* reference distribution for (La)TeX for all platforms<br />
* released once per year and sent to members of TeX user groups on DVDs<br />
* used to be gigantic; but since 2008 one can install separate packages and update them<br />
* binaries are compatible with Minimals<br />
* ConTeXt is outdated<br />
** but it's possible to update it manually<br />
** new ConTeXt update mechanism is being prepared<br />
<br />
''Another distribution worth mentioning is [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] that came to our attention when Akira (its author) was the first one to manage to compile [[XeTeX]] for Windows, and still provides the very latest Windows binaries for [[XeTeX]], [[LuaTeX]], [[pdfTeX]], [[MetaPost]], ... Distribution is a bit specific, but his binaries are great - compatible with [[TeX Live]] and used in [[Minimals]].''<br />
<br />
= [[ConTeXt Minimals]] with TexWorks =<br />
<br />
Install ConTeXt MkIV with the GUI installer and accept the default options upon installation. This will install Context in folder c:\contextminimal<br />
<br />
Install TexWorks and accept the default options upon installation. <br />
Goto EDIT>PREFERENCES>EDITOR>SYNTAX COLORING: <br />
SELECT CONTEXT>TYPESETTING>DEFAULT>SELECT CONTEXT>PROCESSING TOOLS: CONTEXT>EDIT>PROGRAM: context.cmd and ARGUMENTS: only $fullname>OK>OK<br />
<br />
Now populate the screen with ConTeXt code, select ConTeXt and press Typeset. A PDF screen should pup up with the document.<br />
<br />
= Text Editor =<br />
<br />
See [[Text Editors]].<br />
<br />
<br />
== Compiling ==<br />
<br />
After you've done all that, you can finally use your favourite editor to write your [[First Document|first document]].<br />
<br />
To compile it, open the command line again (Start -> Run ... -> type '''cmd''' or '''command''') and run<br />
texexec yourfilename<br />
<br />
<br />
== GhostScript ==<br />
<br />
* http://www.cs.wisc.edu/~ghost/<br />
* http://www.ghostscript.com/<br />
<br />
If you already worked with (La)TeX before, you probably already have it installed. Try<br />
gswin32 --version<br />
<br />
You have to download GhostScript (filename '''<code>gs851w32.exe</code>''' or a similar one) and preferrably GSview as well ('''<code>gsv47w32.exe</code>''' or similar). Be sure to include the executables (folder where gswin32.exe is located) into the PATH variable.<br />
<br />
<br />
<br />
= Special Notes =<br />
===Installation Instructions===<br />
<br />
{{todo|I made an example how to use the stand-alone distr. isolated from an existing distro. I would like to "join" this somehow with the first section and move opening of <code>cdemo.bat</code> to something like <b>testing the installation</b>. Perhaps <tt>pragmatex.bat</tt> can be executed with autorun or something if one is not using another TeX distribution.}}<br />
<br />
''by Ville Voipio on the mailing list, 2006-01-19'' (modified)<br />
<br />
Here is a step by step of how it should go (i.e. what I did with success):<br />
<br />
# Install Perl and Ruby<br />
# Download [http://www.pragma-ade.com/context/install/mswincontext.zip mswincontext.zip], unzip it and move/rename the <code>isoimage</code> folder to your favourite destination. The instructions to follow assume that you renamed <code>isoimage</code> to <pre>c:\Programs\context</pre> There should be one folder (<code>usr</code>) and a few files in it.<br />
# Open the folder <code>c:\Programs\context</code> and double-click <code>cdemo.bat</code>.<br />
# Now you should see the editor SciTE open with a few files. Press F7 to compile one of the files.<br />
If everything goes smoothly, you are done. If not, read these instructions again carefully. If you cannot get it work, mail the list.<br />
<br />
{{todo|review these steps: join the information - notes about ruby, Acrobat, ... apply to all windows distributions.}}<br />
<br />
A few notes on the procedure above:<br />
* It is up to you to choose the location where you unzip the file in step #2, no magic there. Just that you know where the files are.<br />
* The actual location of the ConTeXt tree in step #2 does not matter. I use <tt>c:\context</tt>, but you might use something else. However, I would not use anything with a space in the name (e.g. <tt>c:\Program Files\context</tt>), as that may confuse things. [Seems to work with an August 2006 stand-alone distribution.]<br />
* After you have verified everything works in step #3, you can toss <tt>cdemo.bat</tt> away and use <tt>cstart.bat</tt> to start everything. Make a link to it somewhere so that you can start the system by a shortcut or through the Start menu. ''Do not move the batch script anywhere,'' it has to be run in the root directory of the distribution (e.g. <tt>c:\Programs\context</tt>).<br />
* Make sure you have something Acrobatish (any decent PDF viewer) installed, otherwise you won't see the results in step #4.<br />
* A final note: to have it finally running you should build the formats first. To do so there is at least a way:<br />
<br />
(assuming C:\Programs\context)<br />
Start->Run->cmd<br />
cd C:\Programs\context<br />
cdemo.bat<br />
<br />
Then close the SciTe window but remain in the cmd.<br />
<br />
Then, in one line:<br />
C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex<br />
<br />
texexec --make --all<br />
<br />
Then, close the cmd, double-click in cdemo.bat<br />
and voila !<br />
<br />
* Another way to do it could be to type: texexec --make --all directly in SciTe console.<br />
<br />
===How to use the stand-alone distr. if you have MikTeX/TeX Live installed===<br />
<br />
# Create a file <code>pragmatex.bat</code> (the name doesn't really matter) with this content: <pre>C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex</pre> and make sure that this file is visible by <code>PATH</code>.<br />
# You can safely continue using your old TeX distribution (MikTeX, TeX Live, ...). If you want to invoke the stand-alone distribution, just execute <pre>pragmatex</pre> from the command-line and all the subsequent calls to <code>texexec</code> will use files from the stand-alone tree (you'll notice the difference in file names when running ConTeXt).<br />
<br />
<br />
[[Category:Installation]]</div>Jsteinhttps://wiki.contextgarden.net/index.php?title=Windows_Installation&diff=12654Windows Installation2010-12-18T21:12:34Z<p>Jstein: /* Special Notes */</p>
<hr />
<div>== Requirements ==<br />
In order to be able to run ConTeXt under Windows, you will need:<br />
* a TeX distribution<br />
* some scripting languages: Ruby is absolutely required (unless you plan to use [[MK IV]] exclusively), Perl and GhostScript are highly recommended, the rest is optional.<br />
* your favorite [[Text Editors|text editor]] and [[#PDF Viewer|PDF viewer]]<br />
<br />
If this was too many options to your taste, try the [[Simple Windows Installation]] page instead.<br />
<br />
== Updating ==<br />
<br />
You have to bear in mind that ConTeXt is being developed reasonably fast (see [[Release Notes]]), so it's recommended to update it regulary. The command<br />
ctxtools --update<br />
used to work OK, but is '''no more recommended'''. All the three distributions mentioned here have their own way to update. We'll come back to that later (and move this section to a better place).<br />
<br />
= TeX Distributions =<br />
<br />
You first need to choose a TeX distribution. Options are:<br />
<br />
== [[ConTeXt Minimals]] ==<br />
* the official ConTeXt distribution<br />
* easy to keep up-to-date<br />
* includes (almost) everything that you need for ConTeXt<br />
* no LaTeX<br />
** if you don't need it, that's a rather small & convenient way to use ConTeXt<br />
** if you need it, you can have minimals installed parallel to [[TeX Live|TL]] or [[MikTeX]]<br />
<br />
There are two ways to install it on Windows:<br />
* use GUI intaller by Vyatcheslav [http://minimals.contextgarden.net/setup/context-installer/] (sets environmental variables globally)<br />
* install from command-line (TODO: instructions)<br />
<br />
== [[TeX Live]] ==<br />
<br />
* reference distribution for (La)TeX for all platforms<br />
* released once per year and sent to members of TeX user groups on DVDs<br />
* used to be gigantic; but since 2008 one can install separate packages and update them<br />
* binaries are compatible with Minimals<br />
* ConTeXt is outdated<br />
** but it's possible to update it manually<br />
** new ConTeXt update mechanism is being prepared<br />
<br />
''Another distribution worth mentioning is [http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html W32TeX] that came to our attention when Akira (its author) was the first one to manage to compile [[XeTeX]] for Windows, and still provides the very latest Windows binaries for [[XeTeX]], [[LuaTeX]], [[pdfTeX]], [[MetaPost]], ... Distribution is a bit specific, but his binaries are great - compatible with [[TeX Live]] and used in [[Minimals]].''<br />
<br />
= [[ConTeXt Minimals]] with TexWorks =<br />
<br />
Install ConTeXt MkIV with the GUI installer and accept the default options upon installation. This will install Context in folder c:\contextminimal<br />
<br />
Install TexWorks and accept the default options upon installation. <br />
Goto EDIT>PREFERENCES>EDITOR>SYNTAX COLORING: <br />
SELECT CONTEXT>TYPESETTING>DEFAULT>SELECT CONTEXT>PROCESSING TOOLS: CONTEXT>EDIT>PROGRAM: context.cmd and ARGUMENTS: only $fullname>OK>OK<br />
<br />
Now populate the screen with ConTeXt code, select ConTeXt and press Typeset. A PDF screen should pup up with the document.<br />
<br />
= Text Editor =<br />
<br />
See [[Text Editors]].<br />
<br />
<br />
== Compiling ==<br />
<br />
After you've done all that, you can finally use your favourite editor to write your [[First Document|first document]].<br />
<br />
To compile it, open the command line again (Start -> Run ... -> type '''cmd''' or '''command''') and run<br />
texexec yourfilename<br />
<br />
<br />
== GhostScript ==<br />
<br />
* http://www.cs.wisc.edu/~ghost/<br />
* http://www.ghostscript.com/<br />
<br />
If you already worked with (La)TeX before, you probably already have it installed. Try<br />
gswin32 --version<br />
<br />
You have to download GhostScript (filename '''<code>gs851w32.exe</code>''' or a similar one) and preferrably GSview as well ('''<code>gsv47w32.exe</code>''' or similar). Be sure to include the executables (folder where gswin32.exe is located) into the PATH variable.<br />
<br />
<br />
<br />
= Special Notes =<br />
===Installation Instructions===<br />
<br />
{{todo|I made an example how to use the stand-alone distr. isolated from an existing distro. I would like to "join" this somehow with the first section and move opening of <code>cdemo.bat</code> to something like <b>testing the installation</b>. Perhaps <tt>pragmatex.bat</tt> can be executed with autorun or something if one is not using another TeX distribution.}}<br />
<br />
''by Ville Voipio on the mailing list, 2006-01-19'' (modified)<br />
<br />
Here is a step by step of how it should go (i.e. what I did with success):<br />
<br />
# Install Perl and Ruby<br />
# Download [http://www.pragma-ade.com/context/install/mswincontext.zip mswincontext.zip], unzip it and move/rename the <code>isoimage</code> folder to your favourite destination. The instructions to follow assume that you renamed <code>isoimage</code> to <pre>c:\Programs\context</pre> There should be one folder (<code>usr</code>) and a few files in it.<br />
# Open the folder <code>c:\Programs\context</code> and double-click <code>cdemo.bat</code>.<br />
# Now you should see the editor SciTE open with a few files. Press F7 to compile one of the files.<br />
If everything goes smoothly, you are done. If not, read these instructions again carefully. If you cannot get it work, mail the list.<br />
<br />
{{todo|review these steps: join the information - notes about ruby, Acrobat, ... apply to all windows distributions.}}<br />
<br />
A few notes on the procedure above:<br />
* It is up to you to choose the location where you unzip the file in step #2, no magic there. Just that you know where the files are.<br />
* The actual location of the ConTeXt tree in step #2 does not matter. I use <tt>c:\context</tt>, but you might use something else. However, I would not use anything with a space in the name (e.g. <tt>c:\Program Files\context</tt>), as that may confuse things. [Seems to work with an August 2006 stand-alone distribution.]<br />
* After you have verified everything works in step #3, you can toss <tt>cdemo.bat</tt> away and use <tt>cstart.bat</tt> to start everything. Make a link to it somewhere so that you can start the system by a shortcut or through the Start menu. ''Do not move the batch script anywhere,'' it has to be run in the root directory of the distribution (e.g. <tt>c:\Programs\context</tt>).<br />
* Make sure you have something Acrobatish (any decent PDF viewer) installed, otherwise you won't see the results in step #4.<br />
* A final note: to have it finally running you should build the formats first. To do so there is at least a way:<br />
<br />
(assuming C:\Programs\context)<br />
Start->Run->cmd<br />
cd C:\Programs\context<br />
cdemo.bat<br />
<br />
Then close the SciTe window but remain in the cmd.<br />
<br />
Then, in one line:<br />
C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex<br />
<br />
texexec --make --all<br />
<br />
Then, close the cmd, double-click in cdemo.bat<br />
and voila !<br />
<br />
* Another way to do it could be to type: texexec --make --all directly in SciTe console.<br />
<br />
===How to use the stand-alone distr. if you have MikTeX/TeX Live installed===<br />
<br />
# Create a file <code>pragmatex.bat</code> (the name doesn't really matter) with this content: <pre>C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex</pre> and make sure that this file is visible by <code>PATH</code>.<br />
# You can safely continue using your old TeX distribution (MikTeX, TeX Live, ...). If you want to invoke the stand-alone distribution, just execute <pre>pragmatex</pre> from the command-line and all the subsequent calls to <code>texexec</code> will use files from the stand-alone tree (you'll notice the difference in file names when running ConTeXt).<br />
<br />
<br />
[[Category:Installation]]</div>Jstein