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. Thanks in advance for any insight. Best regards: OK
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
Thanks Hraban for your answer, so you too have TeX files processed in order to present them on web pages. I'll look inside DruTeX to see whether it can be adpated for ConTeXt. I was wondering whether there are other means using the capabilities of ConTeXt mkiv to export TeX files into xml and then show them on the webpages. I'll do some more search on the issue before making a final decision. Best regards: OK On 23 nov. 2010, at 20:27, Henning Hraban Ramm wrote:
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
Am 2010-11-24 um 09:21 schrieb Otared Kavian:
Thanks Hraban for your answer, so you too have TeX files processed in order to present them on web pages.
Sorry, I didn't read your question accurately. No, I just produce PDFs using ConTeXt from web apps (i.e. pull data from the app's database and use Django's templating engine to write ConTeXt files).
I'll look inside DruTeX to see whether it can be adpated for ConTeXt. I was wondering whether there are other means using the capabilities of ConTeXt mkiv to export TeX files into xml and then show them on the webpages.
That would probably work, if your ConTeXt sources are structured enough (e.g. use \startchapter instead of \chapter).
I'll do some more search on the issue before making a final decision.
Good luck! Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
participants (2)
-
Henning Hraban Ramm
-
Otared Kavian