From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70312 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: [OT] Research into Generative Typesetting Date: Wed, 27 Jul 2011 18:21:00 -0400 Message-ID: References: <003c01cc4956$c1e18820$45a49860$@gmx.de> 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: dough.gmane.org 1311805294 19225 80.91.229.12 (27 Jul 2011 22:21:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 22:21:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 28 00:21:28 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QmCTj-00075Q-7U for gctc-ntg-context-518@m.gmane.org; Thu, 28 Jul 2011 00:21:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 094C7CAE81; Thu, 28 Jul 2011 00:21:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id heUnxJz01w+N; Thu, 28 Jul 2011 00:21:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9996CCAE61; Thu, 28 Jul 2011 00:21:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03217CAE61 for ; Thu, 28 Jul 2011 00:21:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ftijK540mqge for ; Thu, 28 Jul 2011 00:21:02 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 2BF62CAE56 for ; Thu, 28 Jul 2011 00:21:02 +0200 (CEST) Original-Received: from mail-gy0-f169.google.com (mail-gy0-f169.google.com [209.85.160.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6RML1xO000747 for ; Thu, 28 Jul 2011 00:21:01 +0200 Original-Received: by gyg13 with SMTP id 13so1844118gyg.14 for ; Wed, 27 Jul 2011 15:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=CYxEspYj3532ufGJcwoM3FV+KK80g9a65vv/yhdjVfI=; b=MgSwABamGzE7jNDWJVRjJs2b7zgCIN0UOk4gy82fEGWX+GPM6cnGmG7cjbZwr6ZF6y vWje+xxo+YT9CbvZhRZbmtfZ9dU/DDPxcE/qC7nBRH+nH2eoIYbhGMetEyicy75lOE3/ UnpHIcrNKnqCHBuGD5omR51R00MK2x9KfafkE= Original-Received: by 10.236.154.5 with SMTP id g5mr410459yhk.198.1311805260235; Wed, 27 Jul 2011 15:21:00 -0700 (PDT) Original-Received: by 10.236.179.40 with HTTP; Wed, 27 Jul 2011 15:21:00 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: mKaWtWL2rp8n0MovCPJn2adEn48 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Fdal12c - 255d4f1d6989 - 20110728 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:70312 Archived-At: On Wed, Jul 27, 2011 at 6:30 AM, John Haltiwanger wrote: > > > On Sat, Jul 23, 2011 at 9:37 AM, Christian wrote: >> >> > >> > [^1]: If anyone is interested, I'm thinking I might make a module that >> > sets up >> > the environment according to these conventions. >> >> >> I like the idea of pre-made styles. I'm not shure if a module would >> provide the necessary flexibility, though. Maybe a style collection (with >> commented code and linked sample output PDFs) in the wiki would do the job. >> Like there is for the biochemistry textbook. From there users could just use >> it as a whole or adapt it to their needs. >> > > That is certainly one approach. Hoewever, I'd like to make it as easy as > possible for people who just want to use defaults to do so. One solution is > to have a script that generates a scaffold environment inside a Context > source file. Then they do not need to keep multiple templates around or have > internet access when creating a document. (I know that for experienced > Context users, having some .env files or source templates around is no > problem, but I'm thinking of users who are less experienced or just want to > typeset Markdown documents without messing with TeX). > > ./context-style-gen.rb --style=bringhurst --input=myThesis.markdown > myThesis.tex Note: The following is untested. You don't need another script, context can handle this natively. For example, you can write a 'process-markdown' module that directly processes a markdown file: (I haven't looked at the new markdown module. I am assuming that it provides a macro, \inputmarkdown{...} to process a markdown file. \startmodule[process-markdown] \starttext \inputmarkdown{\inputfilename} \stoptext \stopmodule Then, you can call ConTeXt using context --usemodules=tufte,other-style,process-markdown --result=whatever file.markdown I followed a similar approach when I was processing markdown files using the filter module. See http://randomdeterminism.wordpress.com/2011/01/09/markdowntopdf/ I used modes instead of a separate module and an evinronment instead of a module because that fit my workflow better. @Hans: do you think that it is a good idea to include something like this in the m-markdown module so that a user could say context --usemodule=markdown --mode=process file.markdown and get a pdf output. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________