From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63863 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt mkiv and Drupal Date: Tue, 23 Nov 2010 20:27:12 +0100 Message-ID: References: <4ECD878D-A855-444D-839D-68C9401E8833@gmail.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: dough.gmane.org 1290540454 2297 80.91.229.12 (23 Nov 2010 19:27:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2010 19:27:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 23 20:27:29 2010 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 1PKyWT-0007pJ-I4 for gctc-ntg-context-518@m.gmane.org; Tue, 23 Nov 2010 20:27:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39AE9CA873; Tue, 23 Nov 2010 20:27:24 +0100 (CET) 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 KgTcWoKY0j5T; Tue, 23 Nov 2010 20:27:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A7F1CA870; Tue, 23 Nov 2010 20:27:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15D13CA870 for ; Tue, 23 Nov 2010 20:27:20 +0100 (CET) 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 SfTOPfZY3yj1 for ; Tue, 23 Nov 2010 20:27:14 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id B12A7CA86A for ; Tue, 23 Nov 2010 20:27:14 +0100 (CET) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oANJRDuL011163 for ; Tue, 23 Nov 2010 20:27:14 +0100 Original-Received: by iwn34 with SMTP id 34so376162iwn.14 for ; Tue, 23 Nov 2010 11:27:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=3ja9ssarFwd6Qy4TsEledqDHRvAmBA7g1/Ef3P1zOMU=; b=Zjus/bNcQELQCUngYQsFZdew0HqRlnDlyEAUTw9lKtcyMn5lB3RAePpu4LnHJ8ckYx 1yj6flrFaBPYrJLww4yy/41DQIkauEIGHNpLqgENl5SEDspy+tc6BV3PmedaMYMN/VJi WnBpQsWhxgPilLjo+2fBVz0aaESv92skhCxk0= DomainKey-Signature: a=rsa-sha1; c=nofws; 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 :content-transfer-encoding; b=mQoF7fhVWoO0fLc72W0u14zqQaPcwEyF2QeQhmJzU97zfqqepFjlLMVOL3INAEMmvS flUqPr7uKfSSiR88PjIEnITRSQqBs8vjkLVt63LRsYOUAVgxKtBnwr/SWmK5bdah1H1n XG4J68v4dH5lWxwjgaOJ9X7HpofBYrGTzyMhw= Original-Received: by 10.231.10.200 with SMTP id q8mr8629416ibq.144.1290540432569; Tue, 23 Nov 2010 11:27:12 -0800 (PST) Original-Received: by 10.231.193.75 with HTTP; Tue, 23 Nov 2010 11:27:12 -0800 (PST) In-Reply-To: <4ECD878D-A855-444D-839D-68C9401E8833@gmail.com> X-Google-Sender-Auth: WsgnRtqOPhrl3QUvE2a5YKqlW0c X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 08DyHrdka - 2237ddd8662e - 20101123 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:63863 Archived-At: 2010/11/22 Otared Kavian : > Dear Contextators, > > Has anyone tried to process TeX files written for ConTeXt mkiv in Drupal (http://drupal.org/)? > To be more precise, there exists a so-called filter DruTeX (http://drupal.org/project/drutex) which can process LaTeX files for viewing them in a web page, but since my TeX files are written for ConTeXt, I wonder if there is a simple way to do the same in Drupal with ConTeXt. > > Or maybe I am going the wrong direction? > Should I export through mkiv my TeX files to some other format than TeX for being understood by Drupal? > Actually my documents are essentially one page each, without any complicated layout or graphics: there is only some text, and items within two or three sets of \startitemize, \stopitemize. But they do contain maths and I would like to have them on the web pages. You can use any TeX with any web application server, if you can execute a TeX binary (e.g. normally not in a shared hosting environment). Use your system's templating engine to produce ConTeXt files instead of HTML and run ConTeXt on them. Getting the paths right might be a major problem - it took me some weeks of debugging, since also my process supervision tools played a role. I don't know Drupal (I use Django), but if you look into that DruTeX, it's probably rather simple. Greetlings, Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________