ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt mkiv and Drupal
@ 2010-11-22 22:26 Otared Kavian
  2010-11-23 19:27 ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2010-11-22 22:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ConTeXt mkiv and Drupal
  2010-11-22 22:26 ConTeXt mkiv and Drupal Otared Kavian
@ 2010-11-23 19:27 ` Henning Hraban Ramm
  2010-11-24  8:21   ` Otared Kavian
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2010-11-23 19:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/11/22 Otared Kavian <otared@gmail.com>:
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ConTeXt mkiv and Drupal
  2010-11-23 19:27 ` Henning Hraban Ramm
@ 2010-11-24  8:21   ` Otared Kavian
  2010-11-24 14:57     ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2010-11-24  8:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <otared@gmail.com>:
>> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ConTeXt mkiv and Drupal
  2010-11-24  8:21   ` Otared Kavian
@ 2010-11-24 14:57     ` Henning Hraban Ramm
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2010-11-24 14:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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)

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-24 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 22:26 ConTeXt mkiv and Drupal Otared Kavian
2010-11-23 19:27 ` Henning Hraban Ramm
2010-11-24  8:21   ` Otared Kavian
2010-11-24 14:57     ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).