From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32367 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Manual (English) Update soon? Date: Sat, 30 Dec 2006 05:47:56 +0000 Message-ID: References: <9D262742-4464-4342-8EA8-EA01AAC9A344@mac.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167457702 14889 80.91.229.12 (30 Dec 2006 05:48:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2006 05:48:22 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 30 06:48:21 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H0X4r-0004Eo-6Q for gctc-ntg-context-518@m.gmane.org; Sat, 30 Dec 2006 06:48:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A16C1FF47; Sat, 30 Dec 2006 06:46:06 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32210-04; Sat, 30 Dec 2006 06:45:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A044F1FF40; Sat, 30 Dec 2006 06:45:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 350FE1FF47 for ; Sat, 30 Dec 2006 06:45:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30782-06-2 for ; Sat, 30 Dec 2006 06:45:47 +0100 (CET) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id 756A11FF37 for ; Sat, 30 Dec 2006 06:45:47 +0100 (CET) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1H0X4W-0005mt-AE; Sat, 30 Dec 2006 05:47:56 +0000 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1H0X4W-0000XV-00; Sat, 30 Dec 2006 05:47:56 +0000 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Fri, 29 Dec 2006 11:14:52 EST." <9D262742-4464-4342-8EA8-EA01AAC9A344@mac.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32367 Archived-At: > So, I've been contemplating whether I should move "up" the > abstraction ladder to ConTeXt or "down" to plain TeX and really > learn to build the world from boxes and glue. :-) I wrote my dissertation using plain TeX plus eplain, and spent several days learning about insertions so that I could float figures in the margin. It looked decent, but I got tired of maintaining and improving the macro hackery, so I decided to leap over LaTeX to ConTeXt. I use LaTeX under duress (e.g. journal gives you a style file). But for any document where I decide the layout, I use ConTeXt, and I'm very happy with the decision to leap. Here is a hello-world template that I just wrote. It contains many of the ConTeXt commands that I use most frequently. Maybe it should go on the wiki? -Sanjoy % "Hello world!" document for the ConTeXt typesetting system % % === History === % 2006-12-29 Sanjoy Mahajan % * Created % % This document is the public domain (no copyright). \setupcolors[state=start] % otherwise you get greyscale \definecolor[headingcolor][r=1,b=0.4] % for the document info/catalog (reported by 'pdfinfo', for example) \setupinteraction[state=start, % make hyperlinks active, etc. title={Hello world!}, subtitle={A ConTeXt template}, author={Sanjoy Mahajan}, keyword={template}] % useful urls \useURL[author-email][mailto:a.u.thor@somewhere.edu][][a.u.thor@somewhere.edu] \useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki] \useURL[sanjoy][mailto:sanjoy@mit.edu][][sanjoy@mit.edu] % for US paper; the sensible default is [A4][A4] (A4 typesetting, % printed on A4 paper) \setuppapersize[letter][letter] \setuplayout[topspace=0.5in, backspace=1in, header=24pt, footer=36pt, height=middle, width=middle] % uncomment the next line to see the layout % \showframe % headers and footers \setupfooter[style=\it] \setupfootertexts[\date\hfill \ConTeXt\ template] \setuppagenumbering[location={header,right}, style=bold] \setupbodyfont[11pt] % default is 12pt \setuphead[section,chapter,subject][color=headingcolor] \setuphead[section,subject][style={\ss\bfa}, before={\bigskip\bigskip}, after={}] \setuphead[chapter][style={\ss\bfd}] \setuphead[title][style={\ss\bfd}, before={\begingroup\setupbodyfont[14.4pt]}, after={\leftline{\ss\tfa A. U. Thor $\langle$\from[author-email]$\rangle$} \bigskip\bigskip\endgroup}] \setupitemize[inbetween={}, style=bold] % set inter-paragraph spacing \setupwhitespace[medium] % comment the next line to not indent paragraphs \setupindenting[medium, yes] \starttext \title{Hello, world!} Here is a hello-world template document to illustrates a few \ConTeXt\ features. Have fun. You can find a lot more information at \from[wiki]; the preceding text should be colored and clickable, and clicking it should take you to the wiki. \subject{A list} Here is an example of a list. \startitemize[a] % tags are lowercase letters \item first \item second \item third \stopitemize \subject{Math} An equation can be typeset inline like $e^{\pi i}+1=0$, or as a displayed formula: \startformula \int_0^\infty t^4 e^{-t}\,dt = 24. \stopformula % don't use $$...$$ (the plain TeX equivalent) You can also have numbered equations: \placeformula[eq:factorial-example]\startformula \int_0^\infty t^5 e^{-t}\,dt = 120. \stopformula And you can refer to them by name. I called the previous equation {\tt factorial-example}, and it is equation \in[eq:factorial-example]. \ConTeXt\ figures out the number for you. And with interaction turned on, you can click on the equation number to get to the equation. \subject{Text with figures} Now text with a few figures. The first figure goes on the right, with the paragraph flowing around it. \placefigure[right,none]{}{\externalfigure[dummy]} \input tufte The next figure will go inline, like a displayed formula: \placefigure[here,none]{}{\externalfigure[dummy]} \input tufte Here's another reference to the numbered equation -- equation \in[eq:factorial-example] on \at{page}[eq:factorial-example], so that you can test clicking on it or on the page reference. % most plain TeX commands work \vfill \noindent \framed[corner=round, width=\textwidth,height=1in, backgroundcolor=gray,background=color] {This document is in the public domain, so that you can improve it, share it, and otherwise do what you want with it. Suggestions are welcome. You can send them to me at \from[sanjoy] (Sanjoy Mahajan).} \stoptext