Re: [NTG-context] Trying to move from LaTeX to MKIV in MikTeX (Mojca Miklavec)

2010-11-24 Thread Mojca Miklavec
On Wed, Nov 24, 2010 at 08:10, barney schwartz wrote:

 Thanks for trying to help, Here's what I do know so far. . .

 1. Yes I bought TUG Lucida and have installed the fonts in c:\localtexmf and
 done fndb update via MikTeX 2.9 wizard.
 2. Yes I also used 3rd party patch and installed those tfm files also in the
 localtexmf directory

What 3rd party patch exactly? After the fix in ConTeXt core one should
not need any 3rd part patch.

This package is obsolete:
http://modules.contextgarden.net/lucidabright

I need to reboot into windows in order to be able to test.

 Missing character: There is no ∘ (U+2218) in font c:/windows/fonts/LBRITE!
 Missing character: There is no ∘ (U+2218) in font c:/windows/fonts/LBRITE!

What exactly is this LBRITE font in c:/windows? That one is not
supposed to be used.

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


[NTG-context] ConTeXt on MikTeX

2010-11-24 Thread Richard Stephens
Hello all,

As I cannot use rsynch to update ConTeXt, I was wondering if the
MikTeX distribution might provide an alternative route to getting
updates. There are questions:
1) The Wiki page on MikTeX (http://wiki.contextgarden.net/MikTeX)
still says it's broken. I presume this is out of date?
2) Does MKIV work in MikTeX?
3) How often will the MikTeX distribution be updated with a new
ConTeXt? I guess I only need updating a couple of times a year, now
that MKIV is looking pretty good.
4) Does TeXworks (which is part of MikTeX distribution) work with ConTeXt?
5) Any opinions or advice?

Thanks,

Richard
Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Tabs inside \starttyping \stoptyping

2010-11-24 Thread Richard Stephens
Hello again,

I am using the latest beta (20.11.2010 12:15) and I've found that a
file with a [tab] inside \starttyping...\stoptyping results in an
error.
Example:
\starttext
\starttyping
Some typing.
\stoptyping
\stoptext
Note the [tab] before Some.

This results in error:
! LuaTeX error ...ools/tex/texmf-context/tex/context/base/util-str.lua:56:
attempt to call global 'rep' (a nil value)
stack traceback:
...ools/tex/texmf-context/tex/context/base/util-str.lua:56: in
function 'tabtospace'
...ools/tex/texmf-context/tex/context/base/buff-ini.lua:576: in 
function 'line'
...ools/tex/texmf-context/tex/context/base/buff-ini.lua:289: in
function 'action'
...ools/tex/texmf-context/tex/context/base/buff-ini.lua:231: in 
function 'type'
main ctx instance:1: in main chunk.
\nododowithbuffer ...\typingparameter \c!range )}
  \dostoptagged \endofverbat...
l.4 \stoptyping

Any thoughts?

Richard
Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tabs inside \starttyping \stoptyping

2010-11-24 Thread Leo Razoumov
On Wed, Nov 24, 2010 at 05:07, Richard Stephens
richard.steph...@converteam.com wrote:
 Hello again,

 I am using the latest beta (20.11.2010 12:15) and I've found that a
 file with a [tab] inside \starttyping...\stoptyping results in an
 error.
 Example:
 \starttext
 \starttyping
        Some typing.
 \stoptyping
 \stoptext
 Note the [tab] before Some.


It works fine with context mkiv  2010.07.30 and luatex, version
beta-0.64.0-2010111215 on Ubuntu-9.04.
No errors.

What is your luatex version?

--Leo--
___
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
___


Re: [NTG-context] MikTeX, ConteXt, Lucida math

2010-11-24 Thread barndog1946

Mojca,

3rd party module is:

Name of module: Lucida Bright font support
Author: Vit Zyka
Short description: Files missing in both TUG Lucida font distribution and  
ConTeXt distribution



it just adds the math tfms which are missing from TUG.

barney
___
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
___


[NTG-context] \starttable ... \stoptable

2010-11-24 Thread Herbert Voss
what is wrong with the \em? With \bf or {\em ...} it is fine

! Misplaced \omit.
recently read \omit

\normalTABLEquote -\unskip \!ttRightGlue \omit
 \tablepos 
l.5 \NC \em Spalte 1 \NC
 \em Spalte 2 \NC \FR \HL   % didn't work
?


\starttext

\starttable[|l|r|]\HL
\NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works
%\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL   % didn't work
\NC $alfa$   \NC $beta$   \NC \MR
\NC Links\NC Rechts   \NC \LR \HL
\stoptable

\stoptext


Herbert
___
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
___


Re: [NTG-context] Tabs inside \starttyping \stoptyping

2010-11-24 Thread Hans Hagen

On 24-11-2010 11:07, Richard Stephens wrote:

Hello again,

I am using the latest beta (20.11.2010 12:15) and I've found that a
file with a [tab] inside \starttyping...\stoptyping results in an
error.


the next beta will have a completely rewritten verbatim support

for the moment you can try to add string. in front of the rep call


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] SciTE ConTeXt

2010-11-24 Thread S Barmeier
Hello,

I tried to follow the PRAGMA document for setting up SciTE to run with
ConTeXt. The Tools menu seems to recognize that I am trying to process
a ConTeXt file and the syntax highlighting seems to fit as well.
However, when trying to Compile or Build, SciTE tells me

mtxrun --autogenerate --script context --autopdf --pdf myfile.tex
sh: mtxrun: not found
Exit code: 127

When running mtxrun from the terminal or from the shell (by entering sh
in the terminal) it works fine. My $PATH variable is set to find mtxrun
(and context). How come SciTE can't find it?

Many thanks.
Severin

P.S.: Does the --autopdf option try to automatically open the output? If
so, how can I change the default to evince?
___
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
___


Re: [NTG-context] ConTeXt mkiv and Drupal

2010-11-24 Thread Otared Kavian
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 ota...@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
___


[NTG-context] \starttable ... \stoptable part II

2010-11-24 Thread Herbert Voss
works with mkii, but not with mkiv
example is from the documentation:

\starttext

\starttable[|l|c|c|]
\DC\DL[2]  \DR
\NC\VL Mickey  \VL Goofy   \VL\SR \HL
\VL Donald \VL $\star$ \VL \VL\SR \HL
\VL Pluto \VL  \VL $\star$ \VL\SR \HL
\stoptable

\stoptext


! Undefined control sequence.
\next -\setTABLEerror
   \TABLEspanoverflow \handleTABLEerror
\normalTABLEmultirule #1-\use {#1}
\normalTABLElongrule 
\complexTableDL ...lTABLEmultirule {#1}}\fi \next
  \fi
l.4 \DC\DL[2]
   \DR
?


Herbert
___
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
___


Re: [NTG-context] SciTE ConTeXt

2010-11-24 Thread Marco Pessotto
S Barmeier severinbarme...@googlemail.com writes:

 Hello,

 I tried to follow the PRAGMA document for setting up SciTE to run with
 ConTeXt. The Tools menu seems to recognize that I am trying to process
 a ConTeXt file and the syntax highlighting seems to fit as well.
 However, when trying to Compile or Build, SciTE tells me

mtxrun --autogenerate --script context --autopdf --pdf myfile.tex
 sh: mtxrun: not found
Exit code: 127

 When running mtxrun from the terminal or from the shell (by entering sh
 in the terminal) it works fine. My $PATH variable is set to find mtxrun
 (and context). How come SciTE can't find it?


Where the PATH is set? in .bashrc or .bash_profile? How do you start the
window manager? (startx or via a login manager?)

Try to start the editor from the shell (so it should pick up the
environment).

-- 
Marco

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


Re: [NTG-context] ConTeXt mkiv and Drupal

2010-11-24 Thread Henning Hraban Ramm


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
___


Re: [NTG-context] \starttable ... \stoptable

2010-11-24 Thread Hans Hagen

On 24-11-2010 12:20, Herbert Voss wrote:

what is wrong with the \em? With \bf or {\em ...} it is fine

! Misplaced \omit.
recently read  \omit

\normalTABLEquote -\unskip \!ttRightGlue\omit
  \tablepos
l.5 \NC \em Spalte 1 \NC
  \em Spalte 2 \NC \FR \HL   % didn't work
?


\starttext

\starttable[|l|r|]\HL
\NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works
%\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL   % didn't work
\NC $alfa$   \NC $beta$   \NC \MR
\NC Links\NC Rechts   \NC \LR \HL
\stoptable

\stoptext


in font-ini.mkiv:

\def\emphasiscorrection
  {\ifhmode\ifnum\currentgrouptype=\@@aligngroup\else
 \expandafter\expandafter\expandafter\emphasislook
   \fi\fi}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \starttable ... \stoptable

2010-11-24 Thread Herbert Voss
Am 24.11.2010 18:27, schrieb Hans Hagen:
 On 24-11-2010 12:20, Herbert Voss wrote:
 what is wrong with the \em? With \bf or {\em ...} it is fine

 \starttext

 \starttable[|l|r|]\HL
 \NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works
 %\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL   % didn't work
 \NC $alfa$   \NC $beta$   \NC \MR
 \NC Links\NC Rechts   \NC \LR \HL
 \stoptable

 \stoptext
 
 in font-ini.mkiv:
 
 \def\emphasiscorrection
   {\ifhmode\ifnum\currentgrouptype=\@@aligngroup\else
  \expandafter\expandafter\expandafter\emphasislook
\fi\fi}


thanks Hans,
works now.

Herbert
___
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
___


[NTG-context] \starttable ... \stoptable III

2010-11-24 Thread Herbert Voss
Next problem with \NL, works with mkii but not mkiv

! Misplaced \noalign.
\TABLEnoalign -\noalign
 \bgroup \let \noalign \relax \let \next =
\complexTableNL [#1]-\TABLEnoalign
{\edef \@@tiNL {#1}\simpleTableNL }
l.5 ...\VL $\star$ \VL \VL\SR \HL\NL[30pt]

?

\starttext

\starttable[|l|c|c|]
\NC\VL Mickey  \VL Goofy   \VL\SR \HL
\VL Donald \VL $\star$ \VL \VL\SR \HL\NL[30pt]
\VL Pluto \VL  \VL $\star$ \VL\SR \HL
\stoptable

\stoptext


Herbert
___
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
___


Re: [NTG-context] \starttable ... \stoptable III

2010-11-24 Thread Hans Hagen

On 24-11-2010 6:50, Herbert Voss wrote:

Next problem with \NL, works with mkii but not mkiv

! Misplaced \noalign.
\TABLEnoalign -\noalign
  \bgroup \let \noalign \relax \let \next =
\complexTableNL [#1]-\TABLEnoalign
 {\edef \@@tiNL {#1}\simpleTableNL }
l.5 ...\VL $\star$ \VL \VL\SR \HL\NL[30pt]

?

\starttext

\starttable[|l|c|c|]
\NC\VL Mickey  \VL Goofy   \VL\SR \HL
\VL Donald \VL $\star$ \VL \VL\SR \HL\NL[30pt]
\VL Pluto \VL  \VL $\star$ \VL\SR \HL
\stoptable

\stoptext


ok, thanks for testing it ... I'm stripping that old code so bugs can 
creep in; I'm also considering removing the CL and such


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \starttable ... \stoptable III

2010-11-24 Thread Alan BRASLAU
On Wednesday 24 November 2010 19:06:19 Hans Hagen wrote:
 
 ok, thanks for testing it ... I'm stripping that old code so bugs can
 creep in; I'm also considering removing the CL and such
 

\CL[color] % colored line
\BL[number_cells] % grey background (BL = ?)

They are useful. What should replace them?

Alan
___
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
___


[NTG-context] Toward the use of inleft for custom secti on's command… or not…

2010-11-24 Thread Renaud AUBIN
Hello there,

Thanks to a hdd crash, I need to rewrite an old document of mine from
scratch (after setting up a software RAID on my machine).
Unfortunately, I let my ConTeXt faculties to rust…

I must deal with several problems (but I will apply the good old divide
and conquer rule).

So, here is a collection of unforgivable workarounds to produce what I
want to:

−
\enableregime[utf8]

\setuppapersize[A4][A4]

\setupbodyfont[10pt]


\setuplayout[reset]
\setuplayout[
  location=singlesided,
  leftedge=0mm,
  leftmargin=45mm,
  rightedge=0mm,
  rightmargin=0mm,
  backspace=60mm,
  topspace=10mm,
  bottomspace=10mm,
  header=0mm,
  headerdistance=0mm,
  footer=0mm,
  footerdistance=0mm,
  margindistance=0mm,
  height=fit,
  width=fit,
  grid=yes]

\setuppagenumbering[state=stop]

\setupinmargin[style=normal,align=outer]

\define[1]\SectionCommand {
\blank % just because I always need some vertical space just before my
Section
\inleft{\bfa #1}
{\line{\leaders\hbox{\vrule width 1pt height .5\strutht depth
  -\dimexpr.5\strutht-\linewidth\relax} \hfil}}
\blank[-1*big] % Are you kidding me with that negative blank???
}

\define[4]\TopicCommand {
\inleft{{\em #1}}{\bfa #2 \hfill \tfx #3}
% \crlf % OK, give me a newline! But, the problem is that there is a big
%   % after space from inleft!
\blank[-1*big] % REALLY DUMMY WORKAROUND!!!
{\em #4}
}

\starttext

\SectionCommand{A Section}
\TopicCommand{The date}{Knuth's topic}{some text}{The detailled topic
  (more than one line)}

\input knuth

\blank % Are you kidding me???
\TopicCommand{Another date}{Zapf}{some text}{The detailled topic
  (more than one line)}

\input zapf

\SectionCommand{Section}

\TopicCommand{A date}{Tufte}{}{Some details}

\input tufte

\stoptext
−

OK, I need that… but a clean version…

Best Regards,

Renaud
___
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
___


[NTG-context] TEI - conTeXt - pdf

2010-11-24 Thread Jon Crump
All,

Having abandoned apache's FOP, I've now been trying to get my arms
around XML typesetting with conTeXt with the help of Thomas's
excellent tutorial at http://wiki.contextgarden.net/TEI_xml. With some
difficulty I got the philostratus.xml/lorem ipsum example to work,
save for errors like this from the \definemargins command:

! You can't use `\dimexpr' in restricted horizontal mode.

(The marginal notations are typeset, but so are the distance arguments)

What I really need help with, however, is Arabic. Can anyone point me
to a 'hello world' example of how to typeset TEIxml in Arabic using
conTeXt? My TeX skills are very out of date and were never much to
begin with, and I'm having a devil of a time getting my head around
the welter of available documentation. I haven't even yet worked out
how to point context at suitable fonts, or how to invoke them in the
--environment .tex file.

[I'm using the MacTeX-2010 Distribution on OSX 10.5.8. It took me some
time do discover that I had to do:
$ luatools --generate
before I could run context at the command line thus:
$ context --environment=tei-style philostratus.xml]

Any hints, examples, or pointers to the relevant documentation would
be gratefully received.

Thanks,
Jon
___
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
___


Re: [NTG-context] How to get \iint?

2010-11-24 Thread Vladimir Lomov
Hi.

2010/11/24 Aditya Mahajan adit...@umich.edu:
 On Wed, 24 Nov 2010, Vladimir Lomov wrote:

 Hi.

 The command \iint is defined in context (mkiv) but it doesn't produce
 the desired sign. What I should do to make it appear? (in log file I see
 that LMMath font desn't contain such symbol but I don't know much about
 font mechanism of context, btw in latex I could easily get that symbol
 so I think it should be in 'standard' math font).

 No, the symbol is not in the 'standard' math fonts, and this is trouble.
 Like LaTeX, we also fake the glyph in MkII. In MkIV, we check if the font
 contains that glyph; if not we fake it. Currently, that test is failing.

 A temporary workaround (for LM) is to redefine:

 \def\repeatintegral#1#2#3%
  {\let\dointlimits\donothing
   \let\dodointlimits\intlimits
   %\iffontchar\textfont\zerocount#1\relax
   % %\edef\dodorepeatintegral{\utfchar{#1}}%
   %  \let\dodorepeatintegral#2%
   %\else
      \fakerepeatintegral{#3}%
   %\fi
   \futurelet\next\dorepeatintegral}

 and then \iint \iiint etc will work.
Thank you for advice (I had to regenerate format to see the result,
because I changed the definition in 'math-int.mkiv') but the result is
terrible for inline math and normal for displaystyle.

Moreover I found that this solution would give unexpected result if one use
\setupmathematics[integral=displaylimits], consider the following example:
example name=ex7_1.tex
\setupmathematics[integral=displaylimits]
\starttext

Ordinary integral: $\int_{a}^{b}f(x)\text{d}x=F(b)-F(a)$.

Ordinary integral: $\int\limits_{a}^{b}f(x)\text{d}x=F(b)-F(a)$.

\startformula
  \int_{a}^{b}f(x)\text{d}x=F(b)-F(a).
\stopformula

Double integral:
$\iint_{D} f(x,y) dx dy$

Double integral sign (faked symbol) could cause incorrect result:
\startformula
  \iint_{D} f(x,y) \text{d}x \text{d} y
\stopformula

\stoptext
/example
(I didn't remember where exactly I found command \setupmathematics.)

 Hans, do you know what the \textfont check is not working for LM?

 The ideal solution is to add esint glyphs to the LM math  virtual font. I
 did not work on this because I was assuming that opentype LM math will be
 out soon. But it seems that right now, the only decent opentype math font is
 Cambria. Both Stix and Asansa give really horrible spacing at times.
IMHO, Cambria looks very odd. I prefer to use CM fonts, the design for
different font families (serif, sans, monospace) is more balanced than
any other font families have.


---
WBR, Vladimir Lomov
___
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
___