Re: [NTG-context] \pdfannot and \tooltip won't work with Chinese characters

2007-04-13 Thread Zhichu Chen

Hi

I've been looking at some core codes and the PDF reference, still have no
idea.

Somehow, I was told that LaTeX can do such things using hyperref package
and \pdfstringdef\temp{???}, then \pdfannot{... /Contents(\temp) ...} should
be OK.


On 4/11/07, Zhichu Chen [EMAIL PROTECTED] wrote:


Hi everybody,

Since \inmargin won't break through pages and I've tried everything but
still can't make it, I bended. Now I want to comment some words with
\pdfannot. It seems that this command don't support Chinese very well, the
annotations appeared like lookaheaduchar 73 and something. Then I turned
to \tooltip, and this time it showed nothing.

Can anybody help me?

--
Sincerely yours,
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn






--
Sincerely yours,
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

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


Re: [NTG-context] Interesting interview

2007-04-13 Thread Maurice Diamantini

Le 12 avr. 07 à 07:37, Thomas A. Schmitz a écrit :

 ... There are fast approaching competitors that
 will eventually overtake LaTeX if we continue to stagnate. (Not to
 mention ConTeXt, which has surpassed LaTeX in essentially every
 area. Maybe the solution is just for everyone to switch to that.)

Except for reference documentation or book (no need for a s here!).
That's why I come back to LaTeX (but keep subscribe to this mailing
list ;-)

 I mean, we all know that this is true, but it's great that a fairly
 well-known member of the LaTeX crowd says so as well.

-- Maurice

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


[NTG-context] macro for api-documentation

2007-04-13 Thread Janko Hauser
Hello everyone, good morning europe, I want to generate an API- 
documentation. For this I use a table (bTABLE) for every function  
definition. That's a lot of code, which is in part dynamic (number of  
rows for example depends on number of arguments). Here is a simple  
example, but I will need colors and different fonts, different lines  
between in/out and so on.


\startalignment[middle]
\midaligned{\ss
\bTABLE
\bTR \bTD[nc=3] validateRegistration \eTD  \eTR
\bTR \bTD[nr=3] \rotate[rotation=90]{Input} \eTD \bTD parameter1 \eTD  
\bTD Beschreibung zu

Parameter 1  \eTD \eTR
\bTR \bTD parameter2 \eTD \bTD Beschreibung zu
Parameter 2  \eTD \eTR
\bTR \bTD parameter2 \eTD \bTD Beschreibung zu
Parameter 2  \eTD \eTR
\bTR \bTD[nr=3] \rotate[rotation=90]{Output} \eTD \bTD parameter1  
\eTD \bTD Beschreibung zu

Parameter 1  \eTD \eTR
\bTR \bTD parameter2 \eTD \bTD Beschreibung zu
Parameter 2  \eTD \eTR
\bTR \bTD parameter3 \eTD \bTD Beschreibung zu
Parameter 3  \eTD \eTR
\eTABLE}
\stopalignment


Are there any examples to do this more generally or better approaches  
to set this up?


With regards,

__Janko

--
Janko Hauser  email:  [EMAIL PROTECTED]
  mobile: +49 1721 641552




PGP.sig
Description: Signierter Teil der Nachricht
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Interesting interview

2007-04-13 Thread Aditya Mahajan
On Fri, 13 Apr 2007, Maurice Diamantini wrote:


 Le 12 avr. 07 à 07:37, Thomas A. Schmitz a écrit :

 ... There are fast approaching competitors that
 will eventually overtake LaTeX if we continue to stagnate. (Not to
 mention ConTeXt, which has surpassed LaTeX in essentially every
 area. Maybe the solution is just for everyone to switch to that.)

 Except for reference documentation or book (no need for a s here!).

While starting ConTeXt, I found ConTeXt an excrusion and ConTeXt 
manual to be extremely well written, much better than what I had read 
for LaTeX (but then, I never bought a LaTeX book). What do you find 
missing in the ConTeXt documentation that a book should cover? I know 
that there are certain places where the documentation is a bit old and 
outdated, but given the pace at which ConTeXt is developed, that will 
happen with any reference book.

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


Re: [NTG-context] macro for api-documentation

2007-04-13 Thread Wolfgang Schuster

2007/4/13, Janko Hauser [EMAIL PROTECTED]:


Hello everyone, good morning europe, I want to generate an API-
documentation. For this I use a table (bTABLE) for every function
definition. That's a lot of code, which is in part dynamic (number of
rows for example depends on number of arguments). Here is a simple
example, but I will need colors and different fonts, different lines
between in/out and so on.

\startalignment[middle]
\midaligned{\ss
\bTABLE
\bTR \bTD[nc=3] validateRegistration \eTD  \eTR
\bTR \bTD[nr=3] \rotate[rotation=90]{Input} \eTD \bTD parameter1 \eTD
\bTD Beschreibung zu
Parameter 1  \eTD \eTR
\bTR \bTD parameter2 \eTD \bTD Beschreibung zu
Parameter 2  \eTD \eTR
\bTR \bTD parameter2 \eTD \bTD Beschreibung zu
Parameter 2  \eTD \eTR
\bTR \bTD[nr=3] \rotate[rotation=90]{Output} \eTD \bTD parameter1
\eTD \bTD Beschreibung zu
Parameter 1  \eTD \eTR
\bTR \bTD parameter2 \eTD \bTD Beschreibung zu
Parameter 2  \eTD \eTR
\bTR \bTD parameter3 \eTD \bTD Beschreibung zu
Parameter 3  \eTD \eTR
\eTABLE}
\stopalignment


Are there any examples to do this more generally or better approaches
to set this up?

With regards,

__Janko



Hi Janko,

\starttext

\placetable
{none}
{\setupTABLE[style=sans]
\setupTABLE[c][1][left=\rotate\bgroup,right=\egroup]
\setupTABLE[1][1][left=,right=]
\bTABLE
 \bTR
   \bTD[nc=3] validateRegistration \eTD
 \eTR
 \bTR
   \bTD[nr=3] Input \eTD
   \bTD parameter1 \eTD
   \bTD Beschreibung zu Parameter 1 \eTD
 \eTR
 \bTR
   \bTD parameter2 \eTD
   \bTD Beschreibung zu Parameter 2 \eTD
 \eTR
 \bTR
   \bTD parameter2 \eTD
   \bTD Beschreibung zu Parameter 2 \eTD
 \eTR
 \bTR
   \bTD[nr=3] Output \eTD
   \bTD parameter1 \eTD
   \bTD Beschreibung zu Parameter 1 \eTD
 \eTR
 \bTR
   \bTD parameter2 \eTD
   \bTD Beschreibung zu Parameter 2 \eTD
 \eTR
 \bTR
   \bTD parameter3 \eTD
   \bTD Beschreibung zu Parameter 3 \eTD
 \eTR
\eTABLE}

\stoptext

you can use \placetable or any other coammand defined with \definfloat to
center your  figures, tables ...  Another positive effect is that setups are
local
to the current float.

Greetings from Ingolstadt

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


Re: [NTG-context] Killing the space after a section.

2007-04-13 Thread Hans Hagen
luigi scarso wrote:
 On 4/12/07, John R. Culleton [EMAIL PROTECTED] wrote:
   
 I have the file set up with no parindent and one blank line between
 paragraphs. but I want to kill the extra space after \section
 headers.  The current definition is:
 \setuphead[section][number=no,style=\SectSans,page=no,after={\vskip
 2sp}]

 ...but the blank line remains.  Do I need to use a negative \vskip?
 
 not an answer (sorry). But try this

 \setuphead[section][style={\ssbfb},
   before={\begingroup\ruledvbox\bgroup},
 after={\egroup\endgroup}]
 \starttext
 \section{Foo} foo baa
 \section{gMoo()} gMoo
 \stoptext


 luigi
 ___
 ntg-context mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/ntg-context
   
after=\nowhitespace

-- 

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

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


Re: [NTG-context] Interesting interview

2007-04-13 Thread Jelle Huisman
Op 13-apr-2007, om 9:20 heeft Aditya Mahajan het volgende geschreven:

 While starting ConTeXt, I found ConTeXt an excrusion and ConTeXt
 manual to be extremely well written, much better than what I had read
 for LaTeX (but then, I never bought a LaTeX book). What do you find
 missing in the ConTeXt documentation that a book should cover?

In Epen we discussed 'the book' and a 'ConTeXt cookbook'. I think  
that this discussion shows that it would be good for the ConTeXt  
community to have a book published by a publisher (like AW), but  
someone (or a small committee) has to coordinate it.

Greetings,

Jelle


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


Re: [NTG-context] Interesting interview

2007-04-13 Thread luigi scarso
 Except for reference documentation or book (no need for a s here!).
This is exactly why I'm doing modules

 That's why I come back to LaTeX
Very sad about that.
I would like www.ensta.fr/~diam/latex/pst-uml/
in context some day.

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


[NTG-context] Announcing: XPSTeX . A joke. Really ?

2007-04-13 Thread luigi scarso
ok, it's a joke
http://article.gmane.org/gmane.comp.tex.pdftex/3404
(but the best is
http://www.google.com/tisp/
)

But my question is:
Will be  easy in luatex to implement  a new output format
(dvi,pdf,xps,my-xml,my-bin-format)
driven by command line ?

Actually
$texmfstart texexec --pdf a.tex == a.pdf
$texmfstart texexec a.tex == a.dvi
ie, tex=pdf  or tex=dvi
because pdftex has two native output format.

Of course one can use workflows tex=dvi=ps=pdf
tex=dvi=html by external tools,
or one can write a tex macro that write on file whatever one wants,
but it's not what I mean.


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


Re: [NTG-context] Grid-keeping list (again)

2007-04-13 Thread Johannes Kuester
Dear Luigi,

luigi scarso wrote:
 hmm maibe i have not understand, but

 \zeichen{0002}{b}{second letter \vrule width 0.1pt height 1em depth2em }{}%
 %% or this
 %%  \zeichen{0002}{b}{second letter \blank Mlg() }{}%
 
 breaks the rule.
 
 Or not ?

Yes, it does, definitely. So it's my (or any other user's)
responsibility that the cells contain only allowed stuff.

I still have to see how to deal with large symbols (bigops and
integrals). Maybe with \blank[medium] in between (and some \smash),
so that every second line will be on the grid again.

When I typeset a similar list previously (for Detailtypografie), I still
did that in LaTeX. That required a lot of trickery and manual
correction, but at least I was able to do it (and yes, it was arranged
on a grid, but LaTeX didn't know that).

That is currently my main conceptual problem with ConTeXt: sometimes
it's too high-level and too clever, and it's hard to figure out how to
do the trickery and the tweaking ...


Johannes


-- 
Johannes Kuester
typoma

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


Re: [NTG-context] Grid-keeping list (again)

2007-04-13 Thread luigi scarso
 I still have to see how to deal with large symbols (bigops and
 integrals). Maybe with \blank[medium] in between (and some \smash),
 so that every second line will be on the grid again.
Maybe a strategy is to use a vbox with ht+dp multiple of a grid space
...but the first line of every page has another height
I have posted something with bTABLE last days under this topic

 That is currently my main conceptual problem with ConTeXt: sometimes
 it's too high-level and too clever, and it's hard to figure out how to
 do the trickery and the tweaking ...
There are many pdf about context;
I try to have a 'programmer view' of these things.
Among others, see and criticize
http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf#modules.pdf


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


Re: [NTG-context] Grid-keeping list (again)

2007-04-13 Thread luigi scarso
 Among others, see and criticize
 http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf#modules.pdf
Of course, the main starting point is
http://wiki.contextgarden.net
exp.Search wiki

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


[NTG-context] The ConTeXt Companion (was: Interesting interview)

2007-04-13 Thread Ulf Martin
Jelle Huisman schrieb:
 Op 13-apr-2007, om 9:20 heeft Aditya Mahajan het volgende geschreven:
 
 While starting ConTeXt, I found ConTeXt an excrusion and ConTeXt
 manual to be extremely well written, much better than what I had read
 for LaTeX (but then, I never bought a LaTeX book). What do you find
 missing in the ConTeXt documentation that a book should cover?
 
 In Epen we discussed 'the book' and a 'ConTeXt cookbook'. I think  
 that this discussion shows that it would be good for the ConTeXt  
 community to have a book published by a publisher (like AW), but  
 someone (or a small committee) has to coordinate it.

I agree! The documentation situation of ConTeXt is rather messy. Some
stuff on the wiki, many, many PDFs with cryptic names and some years old.

LaTeX since ages has lshort as the quick standard intro (and of course
numerous others) and then the mighty 1100+ pages tome Mittelbach et al.
The LaTeX Companion where most things can be found that even the
anvanced user might need (recently it appeared in a second edition, thus
probably securing LaTeXs leading position for another decade...).
http://www.amazon.com/dp/0201362996

Now, if we had The ConTeXt Companion ;-)

Cheers
Ulf


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


Re: [NTG-context] Announcing: XPSTeX . A joke. Really ?

2007-04-13 Thread Hans Hagen
luigi scarso wrote:
 ok, it's a joke
 http://article.gmane.org/gmane.comp.tex.pdftex/3404
 (but the best is
 http://www.google.com/tisp/
 )

 But my question is:
 Will be  easy in luatex to implement  a new output format
 (dvi,pdf,xps,my-xml,my-bin-format)
 driven by command line ?
   
in principle yes, and i will look into that some time next year; it 
relates to the fact that we can intercept tex's data flow any place any 
time, also when producing output

i'm nos saying that it's easy ... as always fonts will be the tricky part

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
-

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


Re: [NTG-context] Grid-keeping list (again)

2007-04-13 Thread Hans Hagen
Johannes Kuester wrote:
 Dear Luigi,

 luigi scarso wrote:
   
 hmm maibe i have not understand, but

 \zeichen{0002}{b}{second letter \vrule width 0.1pt height 1em depth2em }{}%
 %% or this
 %%  \zeichen{0002}{b}{second letter \blank Mlg() }{}%

 breaks the rule.

 Or not ?
 

 Yes, it does, definitely. So it's my (or any other user's)
 responsibility that the cells contain only allowed stuff.

 I still have to see how to deal with large symbols (bigops and
 integrals). Maybe with \blank[medium] in between (and some \smash),
 so that every second line will be on the grid again.

 When I typeset a similar list previously (for Detailtypografie), I still
 did that in LaTeX. That required a lot of trickery and manual
 correction, but at least I was able to do it (and yes, it was arranged
 on a grid, but LaTeX didn't know that).

 That is currently my main conceptual problem with ConTeXt: sometimes
 it's too high-level and too clever, and it's hard to figure out how to
 do the trickery and the tweaking ...

   
there is some some gridmath support available; see details.pdf

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
-

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


Re: [NTG-context] Can I use OpenType fonts with ConTeXt on Windows right now

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello Paul,

Thanks a lot for help with Xetex+Context on Windows.

And by the way, what is the uc encoding? It is not mentioned on 
http://wiki.contextgarden.net/Encodings_and_Regimes

-- 
With best regards
 Vyatcheslav  Yatskovsky

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


Re: [NTG-context] Can I use OpenType fonts with ConTeXt on Windows right now

2007-04-13 Thread Mojca Miklavec
On 4/13/07, Vyatcheslav Yatskovsky wrote:
 Hello Paul,

 Thanks a lot for help with Xetex+Context on Windows.

 And by the way, what is the uc encoding? It is not mentioned on 
 http://wiki.contextgarden.net/Encodings_and_Regimes

That page should be improved. uc stands for Unicode. It might be
that it will become the default encoding for XeTeX in future anyway
(so that it will be possible to drop the explicit usage). uc is the
only encoding that makes sense in XeTeX since no other (except
texnansi by a pure chance) is supported there. And you cannot use uc
encoding in 8bit TeX (pdfTeX).

Btw: \enableregime[utf-8] is ignored in XeTeX: utf-8 is already the
default input regime.

Perhaps it might make sense to support other 8-bit regimes (it's only
one or two lines of modifications), but well ... the purpose of XeTeX
is too head towards future, not to look back into the past mess of
encodings.

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


[NTG-context] \placefigure problems in Xetex

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello

Unfortunately, I get dummy boxes instead of .pdf figures in the
XeteXed document. I know, it has been discussed already in the list. However, I 
downloaded and installed the fresh
version of TexLive2007 today, and no problems from updating shouldn't arise.

The log says:
figures : dimensions of ./f01.pdf calculated by rlxtools
system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
figures : dimensions of ./f01.pdf calculated by rlxtools
figures : figure f01.pdf can not be found

Surely, the figure is present in the same directory as the .tex document
itself.

(The same running pdftex works fine).

Best,
Vyatcheslav Yatskovsky














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


Re: [NTG-context] Can I use OpenType fonts with ConTeXt on Windows right now

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello Mojca,

Thanks a lot. In other words, XeTeX handles Unicode-coded fonts and the author 
creates UTF-coded documents.  Then those encodings are merged somewhere inside. 
Do I think right?


 On 4/13/07, Vyatcheslav Yatskovsky wrote:
 Hello Paul,

 Thanks a lot for help with Xetex+Context on Windows.

 And by the way, what is the uc encoding? It is not mentioned on 
 http://wiki.contextgarden.net/Encodings_and_Regimes

 That page should be improved. uc stands for Unicode. It might be
 that it will become the default encoding for XeTeX in future anyway
 (so that it will be possible to drop the explicit usage). uc is the
 only encoding that makes sense in XeTeX since no other (except
 texnansi by a pure chance) is supported there. And you cannot use uc
 encoding in 8bit TeX (pdfTeX).

 Btw: \enableregime[utf-8] is ignored in XeTeX: utf-8 is already the
 default input regime.

 Perhaps it might make sense to support other 8-bit regimes (it's only
 one or two lines of modifications), but well ... the purpose of XeTeX
 is too head towards future, not to look back into the past mess of
 encodings.

 Mojca


-- 
Best regards,
Vyatcheslav Yatskovsky

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


Re: [NTG-context] Grid-keeping list (again)

2007-04-13 Thread Johannes Kuester
Hans Hagen wrote:
 there is some some gridmath support available; see details.pdf
 
 Hans

Yes, I know, I use that already.
Very helpful for my display formulas.
I didn't try it yet on my symbols list, here the module from Wolfgang
and blanks will do, I think.

Johannes

-- 
Johannes Kuester
typoma

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


Re: [NTG-context] Grid-keeping list (again)

2007-04-13 Thread Johannes Kuester
 Maybe a strategy is to use a vbox with ht+dp multiple of a grid space
 ...but the first line of every page has another height

Each first line will be some heading, so that's not a problem in my case.

My grid-keeping list problem is solved, the module by Wolfgang serves my
purpose very well.

 There are many pdf about context;
 I try to have a 'programmer view' of these things.
 Among others, see and criticize
 http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf#modules.pdf

Nice and interesting (although I didn't had enough time to look at it
thoroughly).

I'm aware of all the pdf manuals, and I use the wiki, source browser,
mailing list + archive.

Still it's sometimes hard to find one's way through.
But on to my next problems ...


Johannes


-- 
Johannes Kuester
typoma

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


[NTG-context] XeTeX is broken after ConTeXt update

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello,

To get rid of dummy boxes instead of figures in XeTeX output, I've decided to 
update the stuff (I already has installed fresh latest TeXLive). 
I typed
ctxtools --update
then
texexec --xtx --make en
and even recreated format files from TeXLive GUI. After all, I get

(c:/TeXLive2007/../texmf-local/tex/context/base/type-xtx.tex)
! Font \*myface12ptrmtfrm*:='mapping=tex-text at 12.0pt' not loadable: 
installed font not found.

The test file is 
\enableregime[utf]

\definetypeface[myface][rm][Xserif][Times New Roman]
\setupbodyfont[myface, 12pt]

\starttext
Hello!
\stoptext

I can reinstall the TeXLive completely, but I need to know what is wrong to 
update it succesfully next time.

Best,
Vatcheslav Yatskovsky

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


Re: [NTG-context] Can I use OpenType fonts with ConTeXt on Windows right now

2007-04-13 Thread Mojca Miklavec
I admit it. I admit everything. I'm the guily one for the whole mess
about XeTeX!

http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX

Some time ago Hans has decided to ignore \enableregime in XeTeX. I
could have written more (and cite things), but I'm in a hurry right
now and I will probably be offline for the whole weekend.

The wiki pages need a massive adaption! Really.

On 4/13/07, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote:
 Hello Mojca,

 And what is more, you have said that other input regimes should work as well, 
 but the following fragment doesn't work. (arbitrary symbols are substituted)

I said that it could have worked ... I didn't say that it actually works ;)

\enableregime should be adapted in my opinion. I had a patch already,
but I don't have time to look for it right now. The following should
work though:

Either
\XeTeXinputencoding bytes
% uncomment the line which prevents loading of regimes in XeTeX
\enableregime[cp1251]

or
\XeTeXinputencoding cp1251

 \enableregime[cp1251]
 \definetypeface[myface][rm][Xserif][Times New Roman]
 \setupbodyfont[myface, 12pt]
 \starttext
 Hello World!
 Привет!
 \stoptext

 (I really saved the file in that encoding - Windows Cyrillic, 1251)

 It is quite disappointing, because that encoding would cover my 
 English-Russian-Ukrainian typesetting needs fully. UTF is amazing but not as 
 convenient as cp1251.

There should really be no problem in adapting the \enableregime to
cover those regimes (it's really a simple patch). From the fact that
Hans added quite some new files and definitions during transition to
luaTeX ... I guess that he might still be willing to adapt that
behaviour in XeTeX as well.

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


[NTG-context] book by hermann zapf

2007-04-13 Thread Hans Hagen
Hi,

For those who like beautiful books and are not a Dante member ...

http://www.linotype.com/26/merchandise.html

you can order Hermann Zapfs latest book here, apart from being an 
interesting and well designed book, it's also also a nice palatino 
showcase (nova and sans), perfect paper, hard cover and bound, so go for 
it ...

Dante members got this book as gift sponsored by Hermann Zapf.

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


Re: [NTG-context] XeTeX is broken after ConTeXt update

2007-04-13 Thread Oliver Buerschaper
Hi Vyatcheslav,

I encountered the same problem a couple of weeks ago ... and it will  
probably not be fixed until luaTeX is out.

The reason is that Hans is currently reworking bits and pieces of  
ConTeXt in order to prepare for the transition to luaTeX ... and font  
handling is apparently one of the things undergoing a massive  
overhaul these days. Unfortunately this appears to have broken  
compatibility with XeTeX. At the Epen conference Hans told me that  
he's going to finalize ConTeXt's font interface code for luaTeX first  
and then eventually backport everything to XeTeX.

So for the time being your best bet might be to stick with the  
January version of ConTeXt included in TeXLive 2007. It's fairly  
stable and can be used for production purposes although it obviously  
won't benefit from the latest bug fixes to parts other than fonts.  
Alternatively, you might as well want to wait for the inaugural  
release of luaTeX.

Best,
Oliver



 Hello,

 To get rid of dummy boxes instead of figures in XeTeX output, I've  
 decided to update the stuff (I already has installed fresh latest  
 TeXLive).
 I typed
   ctxtools --update
 then
   texexec --xtx --make en
 and even recreated format files from TeXLive GUI. After all, I get

 (c:/TeXLive2007/../texmf-local/tex/context/base/type-xtx.tex)
 ! Font \*myface12ptrmtfrm*:='mapping=tex-text at 12.0pt' not  
 loadable: installed font not found.

 The test file is
 \enableregime[utf]

 \definetypeface[myface][rm][Xserif][Times New Roman]
 \setupbodyfont[myface, 12pt]

 \starttext
 Hello!
 \stoptext

 I can reinstall the TeXLive completely, but I need to know what is  
 wrong to update it succesfully next time.

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


Re: [NTG-context] \placefigure problems in Xetex

2007-04-13 Thread Oliver Buerschaper
Hi,

again, I've been through this a couple of days ago so I'm happy to  
share my experience with you ;-)

For me the problem was not having installed ImageMagick in the first  
place. But judging from your log this doesn't seem to be the problem.

Let me think ... perhaps your glitch might be related to a funny  
thing I stumbled upon: including a PDF figure with \externalfigure  
resulted in a crazy distortion of the image although I didn't specify  
any height or width arguments (i.e. I didn't override its natural  
dimensions)... Hans, Mojca, do you have any ideas? I'm going to send  
a test file tomorrow ...

Best,
Oliver



 Hello

 Unfortunately, I get dummy boxes instead of .pdf figures in the
 XeteXed document. I know, it has been discussed already in the  
 list. However, I downloaded and installed the fresh
 version of TexLive2007 today, and no problems from updating  
 shouldn't arise.

 The log says:
 figures : dimensions of ./f01.pdf calculated by rlxtools
 system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
 figures : dimensions of ./f01.pdf calculated by rlxtools
 figures : figure f01.pdf can not be found

 Surely, the figure is present in the same directory as the .tex  
 document
 itself.

 (The same running pdftex works fine).

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


[NTG-context] Updates with older dates

2007-04-13 Thread Vyatcheslav Yatskovsky
Sorry, just found a strange thing. 

A month old distribution of TeXLive contains bib-mod.doc file dated November 4, 
2006. And current cont-tmf.zip contains the same file but dated... September 7, 
2006. 

Strange, isn't it?

Best,
Vyatcheslav Yatskovsky

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


[NTG-context] No way to use XeTeX

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello Oliver,

I reinstalled TeXLive2007 from scratch -- fonts work fine, but .pdf images are 
replaced by dummy rectangles. (ImageMagik makes no difference.)
After manually updating ConTeXt files to the current release -- font handling 
is broken.

So, there is no way to use XeTeX for me.
:(((

-- 
Best,
Vyatcheslav Yatskovsky

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


Re: [NTG-context] \placefigure problems in Xetex

2007-04-13 Thread Aditya Mahajan
On Fri, 13 Apr 2007, Vyatcheslav Yatskovsky wrote:

 Hello

 Unfortunately, I get dummy boxes instead of .pdf figures in the
 XeteXed document. I know, it has been discussed already in the list. However, 
 I downloaded and installed the fresh
 version of TexLive2007 today, and no problems from updating shouldn't arise.

 The log says:
 figures : dimensions of ./f01.pdf calculated by rlxtools
 system(texmfstart rlxtools --identify ./f01.pdf)...disabled.
 figures : dimensions of ./f01.pdf calculated by rlxtools
 figures : figure f01.pdf can not be found

I do not run XeTeX, but guessing from the error message, is write18 
enabled on your system?

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


Re: [NTG-context] No way to use XeTeX

2007-04-13 Thread Taco Hoekwater
Vyatcheslav Yatskovsky wrote:
 Hello Oliver,
 
 I reinstalled TeXLive2007 from scratch -- fonts work fine, but .pdf
 images are replaced by dummy rectangles. (ImageMagik makes no
 difference.) 

This sounds like the command execution extension is turned off.
Whether or not ConTeXt is allowed to run other programs from
within (Xe)TeX is controlled by a variable in texmf.cnf called
shell_escape. That variable is likely set to f (false) after
initial installation, but should be easy to fix if you can find
the texmf.cnf on your disk, and set the variable to t (true)
instead.

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


Re: [NTG-context] Updates with older dates

2007-04-13 Thread Taco Hoekwater
Vyatcheslav Yatskovsky wrote:
 Sorry, just found a strange thing.
 
 A month old distribution of TeXLive contains bib-mod.doc file dated
 November 4, 2006. And current cont-tmf.zip contains the same file but
 dated... September 7, 2006.

I'll check. The differences can't be big. It looks like I forgot
to update the one inside the context distribution.

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


Re: [NTG-context] XeTeX is broken after ConTeXt update

2007-04-13 Thread Taco Hoekwater
Oliver Buerschaper wrote:
 Hi Vyatcheslav,
 
 I encountered the same problem a couple of weeks ago ... and it will  
 probably not be fixed until luaTeX is out.

It appears to me that reverting back to the situation from three months
ago would already be a step forward from what we have now, yes?

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


Re: [NTG-context] XeTeX is broken after ConTeXt update

2007-04-13 Thread Oliver Buerschaper
 I encountered the same problem a couple of weeks ago ... and it will
 probably not be fixed until luaTeX is out.

 It appears to me that reverting back to the situation from three  
 months
 ago would already be a step forward from what we have now, yes?

As far as fonts are concerned ... definitely yes!

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


[NTG-context] Fwd: Re[2]: No way to use XeTeX

2007-04-13 Thread Vyatcheslav Yatskovsky
Hello,
Taco and Anita, you are geniuses! shell_escape was set to false, indeed.

However, it fails further. My ch6.pdf output file isn't created at all whenever 
I insert \externalfigure[f01.pdf].

The log says
...
systems : begin file ch6 at line 10
[EMAIL PROTECTED]@\@@shortsectionnumber=\count214
section : 1 Random numbers
[EMAIL PROTECTED]@\textunderscore=\count215
(././f01.pdf.rli)
figures : dimensions of f01.pdf are determined externally
[EMAIL PROTECTED]@\crossreferenceobject=\count216
(./ch6.tuo)
fonts   : resetting map file list
fonts   : using map file: texnansi-public-lm
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: lm-ec
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: texnansi-base
fonts   : using map file: qx-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
fonts   : using map file: qx-public-lm
fonts   : using map file: t5-public-lm
[1.1] [2.2]
subsection  : 1.1 Uniform distribution
subsection  : 1.2 Random integers
[3.3]
subsection  : 1.3 Normal distribution
[4.4]
systems : end file ch6 at line 91
system  : cont-err loaded
(c:/TeXLive2007/texmf-dist/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) ) 
Here is how much of TeX's memory you used:
 1675 strings out of 58098
 29794 string characters out of 548810
 4596067 words of memory out of 5529777
 41303 multiletter control sequences out of 1+5
 77322 words of font info for 68 fonts, out of 120 for 2000
 192 hyphenation exceptions out of 8191
 47i,22n,60p,526b,1090s stack positions out of 5000i,500n,6000p,20b,5000s

-- 
Best regards,
Vyatcheslav Yatskovsky

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