[NTG-context] Error with XML and JS

2004-02-16 Thread Gilles Pérez-Lambert
Hello,

Continuing the ConTeXt exploration with Hans's help:



I'm trying to combine Hans's JS programming with XML processing but an error pops up:


%%%
javascript : loading script set fld
(/Users/gpl/texmf/tex/context/base/java-fld.tex
! Missing \endcsname inserted.
 
   \unhbox 
\leavevmode ->\unhbox 
  [EMAIL PROTECTED] 
\fakeunderscore ->\leavevmode 
  \hbox {\setbox \scratchbox \hbox {(}\scratchdi...

\_...fmmode \mathunderscore \else \textunderscore 
  \fi 
\XML:ent:tex-underscore ...tterunderscore \else \_
  \fi 
\ascii ->Sanitized\getXMLentity {tex-underscore}
TeX\getXMLentity {tex-unders...
...
l.115 \stopJSpreamble
%%%


with the attached TeX file. There's some kind of interaction between the two modes. 
Without \start(stop)XMLdata, it works.

Thanks for your time,

Gilles, preparing the next demo of ConTeXt in June (Paris). :-)



xml-js.tex
Description: TeX document


Re: [NTG-context] t-nath difficulty

2004-02-16 Thread William D. Neumann
On Mon, 16 Feb 2004, Gary Pajer wrote:

> In the following code, the first formula typesets as I want, and the
> second doesn't.  But the syntax in the second looks correct.
> Bug or feature?  or setup problem?
>
> \usemodule[nath]
> \starttext
>
> $ y = (1 + \frac{}{a}{b}) $
>
> $ y = (1 + \frac{a}{b}) $
> \stoptext

What problem are you having?  I tried this example and got the following
output (only typset nicely, of course):

y = (1 + (/a)b)
y = (1 + a/b)

Which appears to be the correct output.  Are you using the current
t-nath/t-amsl (from december 2003, I believe)?

William D. Neumann

---

"Well I could be a genius, if I just put my mind to it.
And I...I could do anything, if only I could get 'round to it.
Oh we were brought up on the space-race, now they expect you to clean toilets.
When you've seen how big the world is, how can you make do with this?
If you want me, I'll be sleeping in - sleeping in throughout these glory days."

-- Jarvis Cocker
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-nath difficulty

2004-02-16 Thread Gary Pajer
Gary Pajer wrote:

I'm taking a look at nath (via t-nath).  Here's the very first thing I 
tried:

In the following code, the first formula typesets as I want, and the 
second doesn't.  But the syntax in the second looks correct.
Bug or feature?  or setup problem?

\usemodule[nath]
\starttext
$ y = (1 + \frac{}{a}{b}) $

$ y = (1 + \frac{a}{b}) $
\stoptext


Furthermore:  I tried the LaTeX version of nath.  It works as expected 
(i.e. the second line produces a fraction)
So,  ... it's looking like a bug in t-nath, I think.

-gary
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] t-nath difficulty

2004-02-16 Thread Gary Pajer
I'm taking a look at nath (via t-nath).  Here's the very first thing I 
tried:

In the following code, the first formula typesets as I want, and the 
second doesn't.  But the syntax in the second looks correct.
Bug or feature?  or setup problem?

\usemodule[nath]
\starttext
$ y = (1 + \frac{}{a}{b}) $

$ y = (1 + \frac{a}{b}) $
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to setup german documents?

2004-02-16 Thread Stefan Wachter
Hi all!

I have a very basic question which occupies me for more than a week now: 
How to setup documents for german language properly, such that:

1. the used input encoding is ISO-8859-1,
2. german special character are available, and
3. german hyphenation patterns are used.
The setup shown below does not work: TeX is not able to hyphenate 
"Änderungsabnahme" and the \quotedblbase symbol is broader than its 
counterpart the \quotedblleft symbol.

Thanks for your attention and help,
--Stefan
\setupoutput[pdftex]
\enableregime[il1]
\usetypescript[times][ec]
\mainlanguage[de]
\starttext
äÄöÖüÜß

quotedblbase: \quotedblbase

quotedblleft: \quotedblleft

\showhyphens{Änderungsabnahme}

\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: proportional column widths in natural tables?

2004-02-16 Thread Stefan Wachter
Hi Hans,

thanks for the tip regarding the stretch option. I tried the option and 
had the impression that the table is streched if the sum of the widths 
of the columns is less then the available width.

Yet, if the sum of the widths exceeds the available width then the table 
is NOT shrunk! I tried other values for the option key (e.g. 'fit' or 
'{stretch, shrink}') but the table remained too broad.

Is there a possibility to make the table width fit the available width 
in any case? My temporary solution now converts the CALS proportional 
width weights into absolute widths with small units (e.g. 'pt'), hoping 
that the sum of these widths does not exceed the available width.

\setupTABLE[option=stretch]
\setupTABLE[column][1][width=10pt]
\setupTABLE[column][2][width=20pt]
\setupTABLE[column][3][width=30pt]
Best regards,
--Stefan
Hans Hagen wrote:
At 19:55 15/02/2004, you wrote:

Hi Willi,

thanks for your reply. Can you please tell me, what the makeupwidth is?

It seems that I have to do some calculations for the widths by myself: 
I have a CALS table model where the widths are specified by 
proportional weights. -> I have to sum the weigths of all columns and 
divide each of the weights by this sum in order to get the necessary 
stretch factors for each column.

I hoped the ConTeXt has already a mechanism for this kind of 
specifiying the widths.


\setupTABLE[option=stretch]

-
  Hans Hagen | PRAGMA ADE/POD/CTS
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context