Re: [NTG-context] on block quotes

2007-11-09 Thread Idris Samawi Hamid
Dear Wolfgang,
Thank you for your improvements and corrections. I always appreciate your  
lessons!

Best wishes
Idris

 I think this is a goog idea but your definition is a little bit to long.

 
 \definedelimitedtext
 [blockquote][quote]


 \startvariables all
 blockquote: blockquote
 \stopvariables

 \definedelimitedtext
[\v!blockquote][\v!quotation]

 \setupdelimitedtext
 [blockquote]
 [location=margin,
 left=,
 right=,
 leftmargin=standard,
 ]


 \setupdelimitedtext
   [\v!blockquote]
   [\c!left=,
\c!right=]

 


 location=margin is a default value and set with \definedelimitedtext and
 leftmargin=standard is taken from quotation.

 I'm working on a context utility that I want to distribute when done and
 we need a standard, quotes-empty blockquote mechanism. This way we can
 leave \quote and \quotation alone.

 Best wishes
 Idris


 Wolfgang

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] doc at minimals

2007-11-09 Thread Mojca Miklavec
On 11/8/07, Aditya Mahajan wrote:
 On Thu, 8 Nov 2007, Arthur Reutenauer wrote:

  Just discovered
  http://minimals.contextgarden.net/doc

Those man pages are taken from TeX Live. Sanjoy has updated them for
TeX Live 2007, so that's not anything new.

(But manpages are still missing, at least for luatools and mktxrun.
Volunteers welcome :)

   That's not possible, it doesn't exist ...

I also wonder how you managed to discover them almost after they have
been removed :) I doubt they were there for more than half an hour :)

 Someone is trying to make us explore the minimals directory structure in
 detail. I think that this directory has moved to

 http://minimals.contextgarden.net/bin/man/man/

Not to explore, but everything there is still more or less
experimental (already usable, but not even approved by Hans yet), so
if you have any suggestions about the structure, you're welcome to
tell us your opinion.

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Easy way to start working with cyrillic?

2007-11-09 Thread luigi scarso
On Nov 8, 2007 8:28 AM, Klaus Gena [EMAIL PROTECTED] wrote:
 Hi,

 I am entirely new to Tex and Context. I installed the stand alone mswin
 context distro and manage to typeset Dutch texts without any problems, using
 the manuals.

 I also need to typeset Russian texts, however, and I was wondering if there
 exists a painless, 'out of the box', way to make Context understand Russian
 (and not transliterating everything), or is it necessary to install
 additional fonts?

 The wikipage on the contextgarden site on Russian doesn't really give any
 positive results, and browsing the mailinglist archives neither.

I think it's possible (at least
I've already  typeset some russian text from XML utf-8 encoded)
Do you have a comprensive and short example ?
-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Easy way to start working with cyrillic?

2007-11-09 Thread Lutz Haseloff
Hi Klaus,

try this:
---
% engine=xetex
\definetypeface[MyFace][rm][Xserif][TeX Gyre Pagella]
\setupbodyfont[MyFace,10pt]
\starttext
\midaligned{\tfb\bf Arkadi und Boris Strugazki}
\blank
\midaligned{\tfb\bf Аркадий и Борис Стругацкие}
\blank[7*big]
\midaligned{\tfc\bf Milliarden Jahre vor dem Weltuntergang}
\blank
\midaligned{\tfc\bf За миллиард лет до конца света}
\blank[5*big]
\midaligned{\tfa\bf Eine unter seltsamen Umständen aufgefundene Handschrift}
\stoptext
---

if this doesn't work, you can mail me directly.

Greetings

Lutz

2007/11/8, Klaus Gena [EMAIL PROTECTED]:
 Hi,

 I am entirely new to Tex and Context. I installed the stand alone mswin
 context distro and manage to typeset Dutch texts without any problems, using
 the manuals.

 I also need to typeset Russian texts, however, and I was wondering if there
 exists a painless, 'out of the box', way to make Context understand Russian
 (and not transliterating everything), or is it necessary to install
 additional fonts?

 The wikipage on the contextgarden site on Russian doesn't really give any
 positive results, and browsing the mailinglist archives neither.

 Thanks,

 Klaus Gena
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Easy way to start working with cyrillic?

2007-11-09 Thread Hans Hagen
Klaus Gena wrote:
 Hi,
 
 I am entirely new to Tex and Context. I installed the stand alone mswin
 context distro and manage to typeset Dutch texts without any problems, using
 the manuals.
 
 I also need to typeset Russian texts, however, and I was wondering if there
 exists a painless, 'out of the box', way to make Context understand Russian
 (and not transliterating everything), or is it necessary to install
 additional fonts?
 
 The wikipage on the contextgarden site on Russian doesn't really give any
 positive results, and browsing the mailinglist archives neither.

just use context with xetex or luatex

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: Flow charts forgetting text

2007-11-09 Thread Willi Egger
I tried to send the files off line to Aditya, I could not get the  
message through, so it comes to the list ...

Wili

Begin forwarded message:

 From: Willi Egger [EMAIL PROTECTED]
 Date: November 8, 2007 8:28:01 PM GMT+01:00
 To: Aditya Mahajan [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Flow charts forgetting text

 Hi Aditya,

 sorry for the late reply!

 Please find attached the pdf and sorce (I added another \FLOWchart 
 [test]

 I do hope, that the problem can be fixed.

 Kr
 Willi


 On Nov 5, 2007, at 6:44 PM, Aditya Mahajan wrote:

 Hi Willi,

 On Mon, 5 Nov 2007, Willi Egger wrote:

 Your code compiles correctly here. Well with the following  
 version of
 Context

 ConTeXt  ver: 2007.10.03 12:52 MKII  fmt: 2007.10.4  int: english/
 english


 Thank you for checking this. Can you send me the pdf file off- 
 list? I do
 not get a X_t in the second flowchart, either on my machine (MKII  
 09.28)
 or on contextgarden.

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 _ 
 __

 Willi Egger
 [EMAIL PROTECTED]




Willi Egger
[EMAIL PROTECTED]



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font sizes using Chinese module

2007-11-09 Thread Wolfgang Schuster
2007/11/7, Mojca Miklavec [EMAIL PROTECTED]:
 On 11/7/07, Hans Hagen wrote:
  Mojca Miklavec wrote:
 
   Btw: Is there any reason for not using XeTeX (or LuaTeX in the future)
   for Chinese? (To be honest: I have absolutely no idea whether it works
   and how good it works if at all, but I would expect less problems
   there.)
 
  i bet that duncan uses it in some workflow that has to be stable i.e. no
  moving targets like xetex or luatex (yet)

 That's certainly true for LuaTeX, but XeTeX is really not *so
 unstable*. I agree, font support has been (and still is a bit) broken
 until recently (and Leopard users report serious problems with
 xdvipdfmx), but the rest of problems seems approximately equally
 buggy/problematic to me as the rest of ConTeXt  :) :) :) :)


 Only as a suggestion: could someone who has managed to install
 Chinese fonts and map files successfully, upload the needed files to
 http://modules.contextgarden.net/, so that it would be easier for
 other users to take ready-to-start-using module rather than having
 to read dozens of pages of how to get started?

 In that case, supporting Chinese on the garden could be done right
 away if needed (perhaps we need to enable third party modules on the
 garden, which is really not so difficult to do).

 Mojca

I put two files to files to the wiki to write chinese, the contain the tfm, enc
and map files to use the fonts.

The first file [1] provides support for the fonts from the wiki page
for chinese [3],
the only thing you have to do is to unzip my file in a local TeX tree
and to place
the fonts files in the truetype directory.

The second file [2] has support for the cwTeX fonts (cwTeX is a chinese TeX
distribution), they look a little bit different and you have to
download the fonts from
their site [4].To use the fonts unzip my archiv from the module section in your
TeX tree and put the truetype fonts in the corresponding folder. You can choose
between fonts with centered punctuation or punctuation at the baseline, use only
one of them because both have the same files names.

After you have installed the fonts on your system refresh the database
with texhash
and and you try my attached example file (the text is taken from Hans
mkii/iv manual).

Wolfgang

[1] http://modules.contextgarden.net/chinese
[2] http://modules.contextgarden.net/cwTeX
[3] http://wiki.contextgarden.net/Chinese
[4] ftp://ftp.ctex.org/pub/tex/fonts/cwTeX/


chinese.tex
Description: TeX document
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Easy way to start working with cyrillic? (Hans Hagen)

2007-11-09 Thread Klaus Gena
Thanks a lot for your help !

I managed to get xetex talking with the help of the Texlive DVD and Lutz's
tips. I'm a happy ConText user now.

Klaus



 Klaus Gena wrote:
  Hi,
 
  I am entirely new to Tex and Context. I installed the stand alone mswin
  context distro and manage to typeset Dutch texts without any problems,
 using
  the manuals.
 
  I also need to typeset Russian texts, however, and I was wondering if
 there
  exists a painless, 'out of the box', way to make Context understand
 Russian
  (and not transliterating everything), or is it necessary to install
  additional fonts?
 
  The wikipage on the contextgarden site on Russian doesn't really give
 any
  positive results, and browsing the mailinglist archives neither.

 just use context with xetex or luatex

 Hans


 --

 Message: 7
 Date: Thu, 8 Nov 2007 13:18:33 +0100
 From: Lutz Haseloff [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Easy way to start working with cyrillic?
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Message-ID:
[EMAIL PROTECTED]
 Content-Type: text/plain; charset=UTF-8

 Hi Klaus,

 try this:
 ---
 % engine=xetex
 \definetypeface[MyFace][rm][Xserif][TeX Gyre Pagella]
 \setupbodyfont[MyFace,10pt]
 \starttext
 \midaligned{\tfb\bf Arkadi und Boris Strugazki}
 \blank
 \midaligned{\tfb\bf ??? ? ? ??}
 \blank[7*big]
 \midaligned{\tfc\bf Milliarden Jahre vor dem Weltuntergang}
 \blank
 \midaligned{\tfc\bf ??  ??? ?? ? ?}
 \blank[5*big]
 \midaligned{\tfa\bf Eine unter seltsamen Umst?nden aufgefundene
 Handschrift}
 \stoptext
 ---

 if this doesn't work, you can mail me directly.

 Greetings

 Lutz


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [OT]UK TeX FAQ, v3.17, released

2007-11-09 Thread luigi scarso
From
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

What is ConTeXt?

ConTeXt is a macro package developed by Hans Hagen of Pragma-Ade. ConTeXt is
a document-production system based, like LaTeX, on the TeX typesetting
system. Whereas LaTeX insulates the writer from typographical details,
ConTeXt takes a complementary approach by providing structured interfaces
for handling typography, including extensive support for colors,
backgrounds, hyperlinks, presentations, figure-text integration, and
conditional compilation. It gives the user extensive control over formatting
while making it easy to create new layouts and styles without learning the
TeX macro language. ConTeXt's unified design avoids the package clashes that
can happen with LaTeX.

ConTeXt also integrates MetaFun, a superset of MetaPost and a powerful
system for vector graphics. MetaFun can be used as a stand-alone system to
produce figures, but its strength lies in enhancing ConTeXt documents with
accurate graphic elements.

ConTeXt allows the users to specify formatting commands in English, Dutch,
German, French, or Italian, and to use different typesetting engines
(PDFTeX, XeTeX, Aleph, and soon LuaTeX) without changing the user interface.
ConTeXt is developed rapidly, often in response to requests from the user
community.

*ConTeXt doesn't yet have quite such a large developer community as does
LaTeX, but those developers who are active seem to have prodigious
energy.*Support is available via a WIKI site and via the mailing list.
*
*
(my bold-italic)
Thank you very much ,
Mr.  Fairbairns

-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] rotate bug?

2007-11-09 Thread Peter Rolf
Hi,

This morning I used \rotate to correct some slightly sloped graphics and
noticed a weird behavior. In case of the rotation angle interval (-1,0)
the negative sign is simply ignored, so the rotation goes to the
opposite direction.

Donno if negative values for the rotation angle are allowed (they
normally work). But it's easier to handle it this way (sign for
direction of rotation).

@Wolfgang: as workaround, only use positive values or add -360 ;)
 (and sorry for my wrong interpretation of your table mail)
@Taco: are you still collecting the ConTeXt bugs?

Best wishes, Peter


\setuplayout[grid=yes]

\starttext
\showgrid

\def\Foobar{\blackrule[width=\textwidth,height=0.5\lineheight]}

\framed{\rotate[rotation=-0.5]{\Foobar}} % -0.x is not working (sign is
ignored)
\snaptogrid\hbox\bgroup
\framed{\rotate[rotation=359.5]{\Foobar}} % ok
\egroup

\snaptogrid\hbox\bgroup
\framed{\rotate[rotation=0.5]{\Foobar}} % ok
\egroup
\snaptogrid\hbox\bgroup
\framed{\rotate[rotation=-359.5]{\Foobar}} % ok
\egroup

\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] table layout

2007-11-09 Thread Wolfgang Schuster
2007/11/7, Peter Rolf [EMAIL PROTECTED]:
 Wolfgang Schuster schrieb:
 
  Hi Peter,
 
  your solution would be really a option but I hope the real bugs will be
  fixed,

 I see :)

 So things could be worse. You have

  - a workaround (?)
  - a complete minimal description/example of the problem (as starting
 point for Hans)
  - some good hints/solution for fixing

 If you add some patience this all looks quite promising. ;)


 Best wishes, Peter

Hi Peter,

most of the are also possible with the tabulate environment and I was able
to get a nearly perfect result (a few minor spacing problems) with it.

\unprotect

\newconditional\tabulaterepeatfoot

\settrue\tabulaterepeatfoot
%\setfalse\tabulaterepeatfoot

\def\dosplittabulatebox#1%
  {\resettsplit
   \def\tsplitminimumfreelines{2}%
   \def\tsplitminimumfreespace{0pt}%
   \setbox\tsplitcontent\box#1%
   \ifcase\tabulaterepeathead\or
 \setbox\tsplithead\vsplit\tsplitcontent to \lineheight
 \setbox\tsplithead\vbox{\unvbox\tsplithead}%
   \or
 \setbox\tsplithead\vbox{\hbox{\strut\tabulateparameter\c!title}}%
   \fi
   \ifcase\tabulaterepeatfoot
 \setbox\tsplittail\vsplit\tsplitcontent to \lineheight
 \setbox\tsplittail\vbox{\vskip-\strutht\unvbox\tsplittail}%
   \fi
   \handletsplit}

\def\fulltabulatecontent
  {\tabulateheadcontent
   \ifcase\tabulaterepeatfoot
 \tabulatetailcontent
 \tabulatecontent
   \else
 \tabulatecontent
 \tabulatetailcontent
   \fi
   \removefunnytabulateline}

\protect

\setupcolors[state=start]

\starttext

\setuptabulate
  [split=no,
   header=repeat,
   rulecolor=red]

\starttabulatehead
%\TABLEnoalign{\dotabulaterule\nobreak\vskip-\tabulateparameter{rulethickness}\nobreak}
\TABLEnoalign{\dotabulaterule\nobreak}
\NC Head \NC Head \NC\NR
%\TABLEnoalign{\nobreak\vskip-\tabulateparameter{rulethickness}\nobreak\dotabulaterule}
\TABLEnoalign{\nobreak\vskip-2\tabulateparameter{rulethickness}\nobreak\dotabulaterule}
\stoptabulatehead

\starttabulatetail
\TABLEnoalign{\allowbreak\dotabulaterule\allowbreak}
\stoptabulatetail

\starttabulate[|l|l|]
\dorecurse{100}{\expanded{\NC Row \hfill\recurselevel \NC Row
\hfill\recurselevel \NC\NR}}%
%\NC Text \NC Text \NC\NR
\stoptabulate

\stoptext

Wolfgang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] table layout

2007-11-09 Thread Peter Rolf
Hi Wolfgang,

nice patch. I just looked at the comparison of the table type
(http://wiki.contextgarden.net/Tables_Overview). There it says:

tabulate problems: very limited

Add some more stuff and we can change this to 'limited' ;)

Best wishes, Peter


Wolfgang Schuster schrieb:
 2007/11/7, Peter Rolf [EMAIL PROTECTED]:
 Wolfgang Schuster schrieb:
 Hi Peter,

 your solution would be really a option but I hope the real bugs will be
 fixed,
 I see :)

 So things could be worse. You have

  - a workaround (?)
  - a complete minimal description/example of the problem (as starting
 point for Hans)
  - some good hints/solution for fixing

 If you add some patience this all looks quite promising. ;)


 Best wishes, Peter
 
 Hi Peter,
 
 most of the are also possible with the tabulate environment and I was able
 to get a nearly perfect result (a few minor spacing problems) with it.
 
 \unprotect
 
 \newconditional\tabulaterepeatfoot
 
 \settrue\tabulaterepeatfoot
 %\setfalse\tabulaterepeatfoot
 
 \def\dosplittabulatebox#1%
   {\resettsplit
\def\tsplitminimumfreelines{2}%
\def\tsplitminimumfreespace{0pt}%
\setbox\tsplitcontent\box#1%
\ifcase\tabulaterepeathead\or
  \setbox\tsplithead\vsplit\tsplitcontent to \lineheight
  \setbox\tsplithead\vbox{\unvbox\tsplithead}%
\or
  \setbox\tsplithead\vbox{\hbox{\strut\tabulateparameter\c!title}}%
\fi
\ifcase\tabulaterepeatfoot
  \setbox\tsplittail\vsplit\tsplitcontent to \lineheight
  \setbox\tsplittail\vbox{\vskip-\strutht\unvbox\tsplittail}%
\fi
\handletsplit}
 
 \def\fulltabulatecontent
   {\tabulateheadcontent
\ifcase\tabulaterepeatfoot
  \tabulatetailcontent
  \tabulatecontent
\else
  \tabulatecontent
  \tabulatetailcontent
\fi
\removefunnytabulateline}
 
 \protect
 
 \setupcolors[state=start]
 
 \starttext
 
 \setuptabulate
   [split=no,
header=repeat,
rulecolor=red]
 
 \starttabulatehead
 %\TABLEnoalign{\dotabulaterule\nobreak\vskip-\tabulateparameter{rulethickness}\nobreak}
 \TABLEnoalign{\dotabulaterule\nobreak}
 \NC Head \NC Head \NC\NR
 %\TABLEnoalign{\nobreak\vskip-\tabulateparameter{rulethickness}\nobreak\dotabulaterule}
 \TABLEnoalign{\nobreak\vskip-2\tabulateparameter{rulethickness}\nobreak\dotabulaterule}
 \stoptabulatehead
 
 \starttabulatetail
 \TABLEnoalign{\allowbreak\dotabulaterule\allowbreak}
 \stoptabulatetail
 
 \starttabulate[|l|l|]
 \dorecurse{100}{\expanded{\NC Row \hfill\recurselevel \NC Row
 \hfill\recurselevel \NC\NR}}%
 %\NC Text \NC Text \NC\NR
 \stoptabulate
 
 \stoptext
 
 Wolfgang
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT]UK TeX FAQ, v3.17, released

2007-11-09 Thread Aditya Mahajan
On Thu, 8 Nov 2007, luigi scarso wrote:

 From
 http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
 
 What is ConTeXt?

 ConTeXt is a macro package developed by Hans Hagen of Pragma-Ade. ConTeXt is
 a document-production system based, like LaTeX, on the TeX typesetting
 system. Whereas LaTeX insulates the writer from typographical details,
 ConTeXt takes a complementary approach by providing structured interfaces
 for handling typography, including extensive support for colors,
 backgrounds, hyperlinks, presentations, figure-text integration, and
 conditional compilation. It gives the user extensive control over formatting
 while making it easy to create new layouts and styles without learning the
 TeX macro language. ConTeXt's unified design avoids the package clashes that
 can happen with LaTeX.

 ConTeXt also integrates MetaFun, a superset of MetaPost and a powerful
 system for vector graphics. MetaFun can be used as a stand-alone system to
 produce figures, but its strength lies in enhancing ConTeXt documents with
 accurate graphic elements.

 ConTeXt allows the users to specify formatting commands in English, Dutch,
 German, French, or Italian, and to use different typesetting engines
 (PDFTeX, XeTeX, Aleph, and soon LuaTeX) without changing the user interface.
 ConTeXt is developed rapidly, often in response to requests from the user
 community.

 *ConTeXt doesn't yet have quite such a large developer community as does
 LaTeX, but those developers who are active seem to have prodigious
 energy.*Support is available via a WIKI site and via the mailing list.
 *
 *
 (my bold-italic)
 Thank you very much ,
 Mr.  Fairbairns


I had sent this updated writeup on ConTeXt to Robin, I think, almost a 
year ago when there was a discussion on the mailing list about the writeup 
for Debian. IIRC, most of it was written by Idrid and Sanjoy.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Flow charts forgetting text

2007-11-09 Thread Aditya Mahajan
Willi,

I did receive your message. I am travelling so am not able to check mail 
frequently.

Hans and you do get X_t when the flowchart is reused. I do not get it on 
my machine. Since I have moved to a new computer recently, there can be a 
configuration problem. I will try to test it and see what is happening.

But the thing that troubles me is that I get the same (wrong) output on 
the garden. Can you also send me the log files of your run (with a 
\loggingall place in the front), so that I can check why I get different 
output.

Thanks for your efforts.

Aditya


On Thu, 8 Nov 2007, Willi Egger wrote:

 I tried to send the files off line to Aditya, I could not get the
 message through, so it comes to the list ...

 Wili

 Begin forwarded message:

 From: Willi Egger [EMAIL PROTECTED]
 Date: November 8, 2007 8:28:01 PM GMT+01:00
 To: Aditya Mahajan [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Flow charts forgetting text

 Hi Aditya,

 sorry for the late reply!

 Please find attached the pdf and sorce (I added another \FLOWchart
 [test]

 I do hope, that the problem can be fixed.

 Kr
 Willi


 On Nov 5, 2007, at 6:44 PM, Aditya Mahajan wrote:

 Hi Willi,

 On Mon, 5 Nov 2007, Willi Egger wrote:

 Your code compiles correctly here. Well with the following
 version of
 Context

 ConTeXt  ver: 2007.10.03 12:52 MKII  fmt: 2007.10.4  int: english/
 english


 Thank you for checking this. Can you send me the pdf file off-
 list? I do
 not get a X_t in the second flowchart, either on my machine (MKII
 09.28)
 or on contextgarden.

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 _
 __

 Willi Egger
 [EMAIL PROTECTED]




 Willi Egger
 [EMAIL PROTECTED]



 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] table layout

2007-11-09 Thread luigi scarso
On Nov 9, 2007 10:50 AM, Wolfgang Schuster [EMAIL PROTECTED]
wrote:

 2007/11/7, Peter Rolf [EMAIL PROTECTED]:
  Wolfgang Schuster schrieb:

What about this ?
 tabulate spec
\def\PRETABRULE{%
%\vrule width1pt height \strutht depth \strutdp%
\ifnum\tabulatecolumn=0%
  \rlap{\raise\strutht\hbox{\color[lightgray]{\vrule width \textwidth height
0.5pt}}}%
\fi%
}
\def\POSTTABRULE{%
%\vrule width1pt height \strutht depth \strutdp
%\ifnum\tabulatecolumn=3%
%  \ifnum\numexpr(\totalnoftabulatelines -1-\noftabulatelines)=0%
%\rlap{\lower\strutdp\hbox{\color[lightgray]{\vrule width 3cm height
0.5pt}}}%
% \fi%
%\fi%
}

\let\pretabrule \PRETABRULE
\let\posttabrule\POSTTABRULE
%\let\posttabrule\donothing




-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Columnsets and footnote placement

2007-11-09 Thread Elliot Clifton
Hi,

Is there a way to place footnotes when using columnsets, so that they
[the footnotes] span across the bottom of the page, like they do when
using \startcolumn?

TIA,

Elliot
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT]UK TeX FAQ, v3.17, released

2007-11-09 Thread luigi scarso
On Nov 9, 2007 4:18 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:


 I had sent this updated writeup on ConTeXt to Robin, I think, almost a
 year ago when there was a discussion on the mailing list about the writeup
 for Debian. IIRC, most of it was written by Idrid and Sanjoy.

 Aditya


*
ConTeXt doesn't yet have quite such a large developer community as does
LaTeX, but those developers who are active seem to have prodigious energy **
*
and in particularly Aditya,Idris and Sanjoy.
:)))

-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Some update woes on Linux

2007-11-09 Thread Jeff Smith
Hi again,

Sorry for the delay, I was taken with real life worries for a bit.

So, I realized I did have some leftovers from an earlier installation
attempt. I cleaned everything and reinstalled TeXLive from the CD,
from scratch. I will wait a bit before updating ConTeXt again, because
right now I just want to access my system fonts (I'm on Linux) with
XeTeX and I can't seem to manage to do that anymore. Everything else
works. Now I just can't remember what I did back on Ubuntu
Edgy/Feisty. When I run:

fc-list

I do see my fonts listed (after a fc-cache -f). What do I need more?

Thanks for all the help!
Jeff
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT]UK TeX FAQ, v3.17, released

2007-11-09 Thread luigi scarso

  I had sent this updated writeup on ConTeXt to Robin, I think, almost a
  year ago when there was a discussion on the mailing list about the
  writeup
  for Debian. IIRC, most of it was written by Idrid and Sanjoy.
 
  Aditya


 *
 ConTeXt doesn't yet have quite such a large developer community as does
 LaTeX, but those developers who are active seem to have prodigious energy
 **
 *
 and in particularly Aditya,Idris and Sanjoy.
 :)))

 and mojca
(sorry sorry sorry sorry...)
-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Doc to ConTeXt [was Re: HTML to ConTeXt]

2007-11-09 Thread Andrea Valle
Hi to all (Idris, in particular, as we are always dealing with the  
same problems... ),


I just want to share some thoughts about the ol' damn' problem of  
converting to ConTeXt from Word et al.


As I told Andrea: For relatively simple documents (like the kind we  
use in

academic journals) it seems we can now

1) convert doc to odt using OOo
2) convert odt to markdown using


As suggest by Idris, I subscribed to the pandoc list, but I have to  
say that the activity is not exactly like the one on ConTeXt list...
So the actual support for ConTeXt conversion is not convincing. More,  
it's always better to put the hands on your machine...


My problem is to convert a series of academic journals in ConTeXt.  
They come form the Humanities so little structure (basically, mainly  
body and footnotes).
Far from me the idea of automatically doing all the stuff, I'd like  
to be faster and more accurate in conversion.
(No particular interest in figures, they are few, not so much in  
references: they tends to be typographically inconsistent if done

in a WYSISYG environment, so difficult to parse).
More, as the journal has already being published we need to work with  
final pdfs.


After wasting my time with an awful pdf to html converter by  
Acrobat,  I discovered this, you may all know:

http://pdftohtml.sourceforge.net/

The html  conversion is very very good in resulting rendering and  
also in sources, but after some tweakings I got interested in the xml  
conversion it allows.
The xml format  substantially encodes the infos related to page,  
typically each line is an element. Plus, there are bold and italics  
marked easily as b and i
I'm still struggling to understand something really operative of XML  
processing in ConTeXt, so  I switched back to Python.

I used an incremental sax parser with some replacement.
This is today's draft.
Original:
http://www.semiotiche.it/andrea/membrana/02%20imp.pdf

Recomposed (no setup at all, only \enableregime[utf]):
http://www.semiotiche.it/andrea/membrana/02imp.pdf

pdf -- pdftoxml -- xml -- python script -- tex -- pdf

I recovered par, bold, em, footnotes,  stripping dashes and  
reassembling the text with footnote references. Not bad as a first step.


I guess that you xml gurus could probably do much easier and cleaner.
So, I mean -just for my very specific needs, I con probably  take  
word sources, convert to pdf and then finally reach ConTeXt as  
discussed.


Just some ideas to share with the list

Best

-a-




--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Doc to ConTeXt [was Re: HTML to ConTeXt]

2007-11-09 Thread Idris Samawi Hamid
Hi Andrea,

On Fri, 09 Nov 2007 18:30:36 -0700, Andrea Valle [EMAIL PROTECTED] wrote:

 Hi to all (Idris, in particular, as we are always dealing with the
 same problems... ),

 I just want to share some thoughts about the ol' damn' problem of
 converting to ConTeXt from Word et al.

 As I told Andrea: For relatively simple documents (like the kind we
 use in
 academic journals) it seems we can now

 1) convert doc to odt using OOo
 2) convert odt to markdown using

http://wiki.services.openoffice.org/wiki/Odt2txt.py

3) use the pandoc utility to convert markdown to ConTeXt.

[you left this out]

 As suggest by Idris, I subscribed to the pandoc list, but I have to
 say that the activity is not exactly like the one on ConTeXt list...
 So the actual support for ConTeXt conversion is not convincing. More,
 it's always better to put the hands on your machine...

Did you try the markdown-to-ConTeXt conversion? The  
doc-odt-markdown-context workflow seems pretty useful as is. See also

http://code.google.com/p/pandoc/wiki/ConTeXtImprovements

I'm working on something else related to this issue that I hope to say  
more about in the coming weeks ;-)

Best wishes
Idris
-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Doc to ConTeXt [was Re: HTML to ConTeXt]

2007-11-09 Thread Idris Samawi Hamid
On Fri, 09 Nov 2007 18:30:36 -0700, Andrea Valle [EMAIL PROTECTED] wrote:

 After wasting my time with an awful pdf to html converter by
 Acrobat,  I discovered this, you may all know:
 http://pdftohtml.sourceforge.net/

Looks impressive...

 The html  conversion is very very good in resulting rendering and
 also in sources, but after some tweakings I got interested in the xml
 conversion it allows.
 The xml format  substantially encodes the infos related to page,
 typically each line is an element. Plus, there are bold and italics
 marked easily as b and i
 I'm still struggling to understand something really operative of XML
 processing in ConTeXt, so  I switched back to Python.
 I used an incremental sax parser with some replacement.
 This is today's draft.
 Original:
 http://www.semiotiche.it/andrea/membrana/02%20imp.pdf

 Recomposed (no setup at all, only \enableregime[utf]):
 http://www.semiotiche.it/andrea/membrana/02imp.pdf

Looks VERY impressive... Tell me, how did you set up the cropmarks etc.?

 pdf -- pdftoxml -- xml -- python script -- tex -- pdf

 I recovered par, bold, em, footnotes,  stripping dashes and
 reassembling the text with footnote references. Not bad as a first step.

Did you also try pdftohtml -- html -- context?

 I guess that you xml gurus could probably do much easier and cleaner.
 So, I mean -just for my very specific needs, I con probably  take
 word sources, convert to pdf and then finally reach ConTeXt as
 discussed.

Again, very nice stuff!

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Doc to ConTeXt [was Re: HTML to ConTeXt]

2007-11-09 Thread Saji Njarackalazhikam Hameed
Hi Andrea,

I face a similar issue while organizing large-scale documents
prepared by members of my group (many folks are not conversant
with TeX here and write documents with WORD). My solution was to take their
input through a wiki and convert the HTML to context markup
using filters written with ruby (also see 
http://wiki.contextgarden.net/HTML_and_ConTeXt). Converting
HTML syntax to ConTeXt syntax is very do-able. 

If it is of any use, I attach the ruby filters I use for
my purpose. BTW, I use a ruby library called hpricot to ease
some of these conversions.

saji
...

def scrape_the_page(pagePath,oFile,hFile) 
items_to_remove = [
  #menus,#menus notice
  div.markedup,
  div.navigation,
  head,  #table of contents 
  hr
  ]

doc=Hpricot(open(pagePath))
# this may not be applicable to your case
# this removes some unnecessary markup from the Wiki pages

@article = (doc/#container).each do |content|
  #remove unnecessary content and edit links
  items_to_remove.each { |x| (content/x).remove }
end 

# Write HTML content to file
hFile.write @article.inner_html

# How to replace various syntactic elements using Hpricot
# replace p/b element with \bf
(@article/p/*/b).each do |pb|
  pb.swap({\\bf #{pb.inner_html}})
end

# replace p/b element with \bf
(@article/p/b).each do |pb|
  pb.swap({\\bf #{pb.inner_html}})
end

# replace strong element with \bf
(@article/strong).each do |ps|
  ps.swap({\\bf #{ps.inner_html}})
end

# replace h1 element with section
(@article/h1).each do |h1|
  h1.swap(\\section{#{h1.inner_html}})
end

# replace h2 element with subsection
(@article/h2).each do |h2|
  h2.swap(\\subsection{#{h2.inner_html}})
end

# replace h3 element with subsection
(@article/h3).each do |h3|
  h3.swap(\\subsubsection{#{h3.inner_html}})
end

# replace h4 element with subsection
(@article/h4).each do |h4|
  h4.swap(\\subsubsubsection{#{h4.inner_html}})
end

# replace h5 element with subsection
(@article/h5).each do |h5|
  h5.swap(\\subsubsubsubsection{#{h5.inner_html}})
end

# replace precode by equivalent command in context
(@article/pre).each do |pre|
  pre.swap(\\startcode \n #{pre.at(code).inner_html} \n
  \\stopcode)
end

# when we encounter a reference to a figure inside the html
# we replace it with a ConTeXt reference

(@article/a).each do |a|
  a.swap(\\in[#{a.inner_html}])
end


# remove 'alt' attribute inside img element
# replace pimg by equivalent command in context
(@article/p/img).each do |img|

  img_attrs=img.attributes['alt'].split(,)

  # separate the file name from the extension
  # have to take of file names that have a . embedded in them
  img_src=img.attributes['src'].reverse.sub(/\w+\./,).reverse
  # puts img_src
  # see if position of figure is indicated
  img_pos=force
  img_attrs.each do |arr| 
img_pos=arr.gsub(position=,) if arr.match(position=)
  end
  img_attrs.delete(position=#{img_pos}) unless img_pos==force 

  # see if the array img_attrs contains an referral key word
  if img_attrs.first.match(/\w+[=]\w+/)
img_id= 
  else
img_id=img_attrs.first
img_attrs.delete_at(0)
  end

  if img_pos==force
if img.attributes['title']
  img.swap(
  \\placefigure\n 
  [#{img_pos}][#{img_id}] \n 
  {#{img.attributes['title']}} \n 
  {\\externalfigure[#{img_src}][#{img_attrs.join(,)}]}  \n
  )
else
  img.swap(
  \\placefigure\n 
  [#{img_pos}] \n
  {none} \n
  {\\externalfigure[#{img_src}][#{img_attrs.join(,)}]} 
  )
end
  else
if img.attributes['title']
  img.swap(
  \\placefigure\n 
  [#{img_pos}][#{img_id}] \n 
  {#{img.attributes['title']}} \n 
  {\\externalfigure[#{img_src}][#{img_attrs.join(,)}]}  \n
  )
else
  img.swap(
  \\placefigure\n 
  [#{img_pos}] \n
  {none} \n
  {\\externalfigure[#{img_src}][#{img_attrs.join(,)}]}
   \n 
  )
end
  end

end # end of converting inside (@article/p/img)

 
   
# why not search for table and if we find caption, keep it ; if not add an empty

# Styling options: Here I catch the div element called Col2 and
# format the tex document in 2 columns


# Tables : placing them
# replace pimg by equivalent command in context
(@article/table).each do |tab|
  if tab.at(caption)
  tab.swap(
  \\placetable[split]{#{tab.at(caption).inner_html}}\n
  {\\bTABLE \n
  #{tab.inner_html}
  \\eTABLE} 
 )
  else
  tab.swap(
   \\placetable[split]{}\n
   {\\bTABLE \n
  #{tab.inner_html}
  \\eTABLE} \n 
)
  end
end

# Tables: remove the caption
(@article/caption).each do |cap|
  cap.swap(\n)
end



# Now we transfer the syntactically altered html to a string Object
# and manipulate that object further

[EMAIL PROTECTED]

# remove empty space in the beginning
newdoc.gsub!(/^\s+/,)

# remove all elements we don't need.
newdoc.gsub!(/^div.*/,)
newdoc.gsub!(/^\/div.*/,)
newdoc.gsub!(/^form.*/,)
newdoc.gsub!(/^\/form.*/,)
newdoc.gsub!(/p/,\n)
newdoc.gsub!(/\/p/,\n)