Re: [NTG-context] literal escape strings in bookmarks

2005-07-07 Thread Hans Hagen

Stuart Jansen wrote:

Below is a simple example of chapter/section titles containing
characters that need to be escaped. Although the page content turns out
correctly, the PDF bookmarks contain the literal escape string instead
or the desired character. Any ideas how avoid this? I guess this is a
bug report.

==

\setupinteraction[state=start]
\placebookmarks[chapter,section]
\starttext
\chapter{test{\char`_}chapter}
The underscore character needs to be escaped in certain situations.
\chapter{start{\char124}stop}
So does the pipe symbol.
\chapter{foo}
\section{bar}
How can I avoid literals escape strings in bookmarks?
\stoptext


there some sanitizing mechanism, but i'm not sure if you wan that here; Why do 
you use the hard coded \char's? If you use the named access mechanisms they are 
normally handled ok in bookmarks


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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Guit

2005-07-07 Thread luigi.scarso

Hans Hagen wrote:


  2. at http://www.guit.sssup.it/forum there is a forum for ConTeXt in
 italian language;



i grep no 'context' on that page, so no opportunity to polish my 
italian -)



Only Forum su TeX, LaTeX e GuIT (grrr)
I will send an email to our admin.

BTW, 
http://www.guit.sssup.it/phpbb/index.php


luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] enumerated lists

2005-07-07 Thread Frank Grieshaber

Hello all (esp. the ConTeXt-Developers),

some time ago I sent the following email to this list and got no reply 
so I'm resending it.


Is there any possibility that this feature will be part of the next/one 
of the next ConTeXt-versions?


Frank



Dear all,
I have a manuscript with long nested numbered enumerations and I want 
the numbers of all levels to be printed automatically like:


1. one
1.1 one-one
1.2 one-two
2. two
2.1 two-one
2.2.1 two-two-one
...

Using the following prints only the current level's number, not all levels:

\startitemize[n,packed]
\item
\item
  \startitemize[m,packed]
  \item
  \item
  \stopitemize
\item
\item
\stopitemize


For Latex there is the package paralist.sty for doing the desired 
numbering, how can this be done with ConTeXt?


Frank



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Guit

2005-07-07 Thread Hans Hagen

luigi.scarso wrote:


  2. at http://www.guit.sssup.it/forum there is a forum for ConTeXt in
 italian language;


i grep no 'context' on that page, so no opportunity to polish my italian -)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Guit

2005-07-07 Thread Hans Hagen

Frank Grieshaber wrote:


try the following link:

http://www.guit.sssup.it/phpbb/index.php


ah, i see, context is still less 'difficoltà' than latex -)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] enumerated lists

2005-07-07 Thread Taco Hoekwater



Frank Grieshaber wrote:

Hello all (esp. the ConTeXt-Developers),

some time ago I sent the following email to this list and got no reply 
so I'm resending it.


Just to let you know i've received your message. Unfortunately,
I don't have a clue about how to achieve this effect.

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] Why does ConTeXt try to load Latin Modern?

2005-07-07 Thread Giuseppe Bilotta
Wednesday, July 6, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

 The fallback being a fallback, it should be something that
 everybody has for sure. So it should stay cmr12. This, at
 least, is MNHO.
 
 Is there a way to set the fall-back font? (In cont-usr or
 something)

 actually, lmr will be in all distributions, if it isn't
 already; it will replace cmr (at least the non math part)
 [either or not by map file entries]; the reason why i push
 it a bit is (1) it needs testing and (2) well, i want to
 push usage, and (3) it is simply a better solution esp
 with accented characters.

 So, even if you use cmr12, it will be mapped onto lmr12
 (either in (con)tex(t) or by means of a map file); don't
 worry, it is compatible; (although there may be future
 variants that have improvements)

Yes, but my point is that I *don't* use cmr (at least not in
this document), so I see no reason why ConTeXt shoud load
lmr :)

So, how do I set my preferred fall-back font?

BTW, does ConTeXt support the pazo family of fonts?

http://www.ctan.org/tex-archive/help/Catalogue/entries/mathpazo.html

-- 
Giuseppe Oblomov Bilotta




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \openlineheight not set

2005-07-07 Thread Giuseppe Bilotta
It seems that \setupbodyfont does not set \openlineheight, I
have to call \switchtobodyfont to call it. Is this as
intended?

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modules.pdf : unicode/fonts problems

2005-07-07 Thread luigi.scarso

While making modules.pdf

$texmfstart texexec --pdf --modu font-chi

fails with
font-chi.log:! Font \unicodefont=gbsongcd at 10.0pt not loadable: Metric 
(TFM) file not found


I have
$ls ./texmf-local/fonts/tfm/chinese
b5kai/  b5kaii/  b5song/  b5songi/  gbkai/  gbkaii/  gbsong/  gbsongi/

$ls ./texmf-local/fonts/tfm/chinese/gbsong/
gbsong01.tfm ..to..  gbsong89.tfm
with some holes in between.


Apparently I have loose some tfm.
Any ideas ?

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] modules.pdf : unicode/fonts problems

2005-07-07 Thread luigi.scarso

luigi.scarso wrote:


While making modules.pdf 


Sorry, I have not search into mail list ;
forget it.

luigi

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupitemize[packed,paragraph]

2005-07-07 Thread Mojca Miklavec

Why does
\setupitemize[packed,paragraph]
ignore the packed option?

Another way would probably be to say
\setupitemize[packed,joinedup],
but I would only like some additional space after the itemization and 
none before. \setupitemize[joinedup] produces the same result as 
\setupitemize[packed,joinedup], which I also don't really understand.


Is there a way to specify how packed two items are? There is a
packed and unpacked option, but when I'm working with huge fonts (on
slides for example), it would be nice to be able to specify some 
fraction of how well packed two succesive items are.


Thank you,
Mojca

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] modules.pdf : unicode/fonts problems

2005-07-07 Thread Lutz Haseloff



luigi.scarso schrieb:

While making modules.pdf

$texmfstart texexec --pdf --modu font-chi

fails with
font-chi.log:! Font \unicodefont=gbsongcd at 10.0pt not loadable: Metric 
(TFM) file not found


I have
$ls ./texmf-local/fonts/tfm/chinese
b5kai/  b5kaii/  b5song/  b5songi/  gbkai/  gbkaii/  gbsong/  gbsongi/

$ls ./texmf-local/fonts/tfm/chinese/gbsong/
gbsong01.tfm ..to..  gbsong89.tfm
with some holes in between.



I think, you have CJK fonts, but you need GBK fonts.
I send them off list.

Lutz



Apparently I have loose some tfm.
Any ideas ?

luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why does ConTeXt try to load Latin Modern?

2005-07-07 Thread Hans Hagen

Giuseppe Bilotta wrote:


Yes, but my point is that I *don't* use cmr (at least not in
this document), so I see no reason why ConTeXt shoud load
lmr :)


as taco explained in a previous mail, we *do* need a fall back font, just in 
case somewhere later in the process


of course we can start being restrictive like demanding that styles have an 
explicit order of definitions and such (no box building before such and so) but 
then we end up in a real messy situation



So, how do I set my preferred fall-back font?


i guess in cont-en.tex and such


BTW, does ConTeXt support the pazo family of fonts?


never tried them ... question for adam -)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun not working

2005-07-07 Thread Hans Hagen

Mojca Miklavec wrote:

pstoedit now doesn't crash any more, but 'P' or 'O' for example don't 
have holes any more. I'll try to reinstall my cygwin or to compile the 
source of pstoedit on Linux later. If I understood correctly than this 
patch should solve the problem and -ssp should work again.


do you need a cygwin version on windows? there is a regular one

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Animations in ConTeXt

2005-07-07 Thread Hans Hagen

Mojca Miklavec wrote:

I don't get it. Examples (animations) on
http://www.fi.muni.cz/~xholecek/animations/ compile and work OK with
my TeX and Acrobat (Windows XP, Adobe Acrobat Professional 6.0.1).
However, the example below doesn't work on my computer.

I replaced some lines below with:

\starttext
  \placefigure [here] [fig:animation]
  {A simple \MetaFun\ animation,
  click \goto {here} [JS(Rotate_Star)] to start (or stop) or
  % this line was added as described in MetaFun manual
  click \goto {here} [JS(Walk_Field{vortex})] for next step}
  {\fieldstack [vortex]}
\stoptext 


which results in the PDF file attached.



(old/buggy?) Acrobat/OS or because of problems in JavaScript?


works ok here in acrobat 7

(acrobat has fuzzy ways of initializing js and widgets)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Making texshow easier to edit

2005-07-07 Thread Nikolai Weibull
Patrick Gundlach wrote:

 [a luckily not so long list snipped]
 
 I'll have a look at texshow-web this weekend. Thank you for your
 suggestion, I will report back to you and Mojca. There is also (at
 least) one feature reqest from Taco, so I won't get bored soon. So if
 there are more suggestions, shout out now. 

Great!  I hope I didn't come of as negative to texshow or its
implementation.  I like it, but I would also like to see it become
better and easier to use/edit.  Thank you for your work so far,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] literal escape strings in bookmarks

2005-07-07 Thread Stuart Jansen
On Thu, 2005-07-07 at 09:17 +0200, Hans Hagen wrote:
 there some sanitizing mechanism, but i'm not sure if you wan that here; Why 
 do 
 you use the hard coded \char's? If you use the named access mechanisms they 
 are 
 normally handled ok in bookmarks

Mostly because I wasn't aware they existed. Your suggestion mostly
works. Unfortunately, I still have a problem with the braces. I'm doing
automated document generation, and I've had problems with stray spaces
finding their way into the document, so I've taken to always using
{\letterbar} or \letterunderscore{}. I suppose I might be able to solve
the problem instead with some creative post-processing, but it'd be
kinda tricky. Any simple solutions?

=
\setupinteraction[state=start]
\starttext
\placebookmarks[chapter,section]
\chapter{test{\letterunderscore}chapter}
The underscore character needs to be escaped in certain situations.
\chapter{start\letterbar{}stop}
So does the pipe symbol.
\chapter{foo}
\section{bar}
How can I avoid literals escape strings in bookmarks?
\stoptext
=


-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why does ConTeXt try to load Latin Modern?

2005-07-07 Thread Adam Lindsay
Hans Hagen said this at Thu, 7 Jul 2005 15:39:23 +0200:

 BTW, does ConTeXt support the pazo family of fonts?

never tried them ... question for adam -)

Me neither, but they look to be of good quality, but of lesser glyph
coverage (lacking AMS symbols) than the PX fonts. That said, the basic
three fonts are 99.8% glyph compatible with the existing PX support.

So here's really really _cheap_ support (no bold yet):

% add these two typescripts to your environment 
% before calling palatino math:

\starttypescript[map][palatino][all]
  \loadmapfile[pazo]
\stoptypescript

\starttypescript[math][palatino][default]
  \definefontsynonym[pxmi][zplmr7m]
  \definefontsynonym[pxr][zplmr7t]
  \definefontsynonym[pxex][zplmr7v]
  \definefontsynonym[pxsy][zplmr7y]
\stoptypescript

% then call your palatino family:
\usetypescript[adobekb][ec]
\usetypescript[palatino][ec]
\setupbodyfont[palatino]

% and run it thru some tests:
\starttext
\input knuth

\startformula
\theta\over\xi = {\os 2}\varphi
\stopformula

\startformula
\sqrt{\sqrt{\sqrt{\sqrt{1\over{a+b}
\stopformula

\showmathcharacters
\stoptext

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] how to create many blank pages

2005-07-07 Thread Ciro Soto
I need to create a book with many blank pages (with its header  footer texts).
Is there any easy way to create, say, 300 blank pages one after the other, wihout using
\page 300 times? I guess what I need is to know how to loop within context.

thank you
Ciro
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to create many blank pages

2005-07-07 Thread Taco Hoekwater

Ciro Soto wrote:
I need to create a book with many blank pages (with its header  footer 
texts).
Is there any easy way to create, say, 300 blank pages one after the 
other, wihout using

\page 300 times? I guess what I need is to know how to loop within context.


\dorecurse{300}{\ \page}

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to create many blank pages

2005-07-07 Thread Stuart Jansen
On Thu, 2005-07-07 at 22:17 +0200, Taco Hoekwater wrote:
 Ciro Soto wrote:
  I need to create a book with many blank pages (with its header  footer 
  texts).
  Is there any easy way to create, say, 300 blank pages one after the 
  other, wihout using
  \page 300 times? I guess what I need is to know how to loop within context.
 
 \dorecurse{300}{\ \page}

Argh! Finally a question I could answer and you beat me by less than 60
seconds... Oh well, at least I can confirm that works (although I used
\crlf\page instead of \ \page).

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] enumerated lists

2005-07-07 Thread Mojca Miklavec

Frank Grieshaber wrote:

Hello all (esp. the ConTeXt-Developers),

some time ago I sent the following email to this list and got no reply 
so I'm resending it.


Is there any possibility that this feature will be part of the next/one 
of the next ConTeXt-versions?


Frank


I'm affraid that despite the huge amount of features that itemize 
offers, it should be rewritten one day. Sometimes it doesn't really work 
as expected (some comments can be found in my post 
\setupitemize[packed,paragraph]) and the features you are mentioning 
here are missing, although they would be sensible.



Dear all,
I have a manuscript with long nested numbered enumerations and I want 
the numbers of all levels to be printed automatically like:


1. one
1.1 one-one
1.2 one-two
2. two
2.1 two-one
2.2.1 two-two-one
...

Using the following prints only the current level's number, not all 
levels:


\startitemize[n,packed]
\item
\item
  \startitemize[m,packed]
  \item
  \item
  \stopitemize
\item
\item
\stopitemize


For Latex there is the package paralist.sty for doing the desired 
numbering, how can this be done with ConTeXt?


Frank


Here's a solution that:
- doesn't work (well, it's actually not far away from working)
- may not be taken as an example of nice programming habits:
  so use it at your own risk!!! (You have been warned!)
- if someone can help me to define this command, it will work:

% the command to be defined:
\def\deleteeverythingbehindthelastdot#1{#1}
\def\MyCommand{\deleteeverythingbehindthelastdot{\itemreference}}

\starttext

\setupitemize[1][n][indentnext=no]

% what should indentnext do?
%
% I thought it would not try to indent further
% Is there a way to itemize like
% 1. one
% 1.1. one-one
% 1.2. one-two
% 2. two
%
% instead of
% 1. one
%1.1. one-one
%1.2. one-two
% 2. two

\setupitemize[2][n,3*broad][left={\MyCommand}]
\setupitemize[3][n,4*broad][left={\MyCommand}]
\startitemize
  \item bla
  \item blabla
  \startitemize
\item bla
\item blabla
\startitemize
  \item bla
  \item blabla
\stopitemize
\item bla
\item bla
\item bla
\startitemize
  \item bla
  \item blabla
\stopitemize
\item bla
\item bla
\item bla
  \stopitemize
  \item bla
  \startitemize
\item bla
\item blabla
\startitemize
  \item bla
  \item blabla
\stopitemize
\item bla
  \stopitemize
  \item bla
  \item bla
\stopitemize

\stoptext


Mojca


PS: But once again - If anyone will be reading this post in the mail 
archive: please, don't use this trick!!! Please check first if this 
feature has been added in the meantime.

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] literal escape strings in bookmarks

2005-07-07 Thread Hans Hagen

Stuart Jansen wrote:

On Thu, 2005-07-07 at 09:17 +0200, Hans Hagen wrote:

there some sanitizing mechanism, but i'm not sure if you wan that here; Why do 
you use the hard coded \char's? If you use the named access mechanisms they are 
normally handled ok in bookmarks



Mostly because I wasn't aware they existed. Your suggestion mostly
works. Unfortunately, I still have a problem with the braces. I'm doing
automated document generation, and I've had problems with stray spaces
finding their way into the document, so I've taken to always using
{\letterbar} or \letterunderscore{}. I suppose I might be able to solve
the problem instead with some creative post-processing, but it'd be
kinda tricky. Any simple solutions?

=
\setupinteraction[state=start]
\starttext
\placebookmarks[chapter,section]
\chapter{test{\letterunderscore}chapter}
The underscore character needs to be escaped in certain situations.
\chapter{start\letterbar{}stop}
So does the pipe symbol.
\chapter{foo}
\section{bar}
How can I avoid literals escape strings in bookmarks?
\stoptext
=



\setupinteraction[state=start]

\placebookmarks[chapter,section]

\starttext

\chapter{test\getvalue{letterunderscore}chapter}

The underscore character needs to be escaped in certain situations.

\chapter{start\getvalue{letterbar}stop}

So does the pipe symbol.

\chapter{foo}
\section{bar}

\stoptext


-
  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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Animations in ConTeXt

2005-07-07 Thread Mojca Miklavec

Hans Hagen wrote:

Mojca Miklavec wrote:


I don't get it. Examples (animations) on
http://www.fi.muni.cz/~xholecek/animations/ compile and work OK with
my TeX and Acrobat (Windows XP, Adobe Acrobat Professional 6.0.1).
However, the example below doesn't work on my computer.

I replaced some lines below with:

\starttext
  \placefigure [here] [fig:animation]
  {A simple \MetaFun\ animation,
  click \goto {here} [JS(Rotate_Star)] to start (or stop) or
  % this line was added as described in MetaFun manual
  click \goto {here} [JS(Walk_Field{vortex})] for next step}
  {\fieldstack [vortex]}
\stoptext
which results in the PDF file attached.




(old/buggy?) Acrobat/OS or because of problems in JavaScript?



works ok here in acrobat 7

(acrobat has fuzzy ways of initializing js and widgets)


Yes, in the meantime I noticed that too. Acrobat 5 doesn't support those 
JS stuff at all, but the funny thing is that Acrobat 6 supports only a 
half of it. I was already running a continuous animation in Acrobat 6 
(the one mentioned above), however it was compiled from plain TeX and I 
don't know how to include the fields in the same way in ConTeXt and how 
to write the same JS code for them.


JS(Rotate_Star) didn't work in Acrobat 6, but I don't want to care about 
the bugs in Adobe products. They will never be removed (if ever) as soon 
as the bugs are removed from ConTeXt :)


Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to create many blank pages

2005-07-07 Thread Hans Hagen

Stuart Jansen wrote:


\dorecurse{300}{\ \page}



Argh! Finally a question I could answer and you beat me by less than 60
seconds... Oh well, at least I can confirm that works (although I used
\crlf\page instead of \ \page).


or, more code:

\starttext

\dorecurse{300}{\page[empty]}

\stoptext




-
  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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Animations in ConTeXt

2005-07-07 Thread Hans Hagen

Mojca Miklavec wrote:

Yes, in the meantime I noticed that too. Acrobat 5 doesn't support those 
JS stuff at all, but the funny thing is that Acrobat 6 supports only a 
half of it. I was already running a continuous animation in Acrobat 6 
(the one mentioned above), however it was compiled from plain TeX and I 
don't know how to include the fields in the same way in ConTeXt and how 
to write the same JS code for them.


timers were added in version 6

JS(Rotate_Star) didn't work in Acrobat 6, but I don't want to care about 
the bugs in Adobe products. They will never be removed (if ever) as soon 
as the bugs are removed from ConTeXt :)


currently in acrobat you can use catch to make sure that the document at least 
opens ok


here is the deal:

- i add the attached (a bit old and rusty) file to the distribution
- and you add an animation page to the wiki

(you probably recognize the result if you process it)

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
-


pdfclock.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Hiding the content (drawing empty boxes?)

2005-07-07 Thread Mojca Miklavec

Hello,

Some TeX challenge (probably not solvable?): for gurus only.

Is there a way to somehow

\starthidden
...
\stophidden,

which would leave exactly the same amount of blank space as if the 
content would be typeset?


Adam suggested to use transparent font colour, but this doesn't solve 
the problem as this won't stop the images, frames and nested 
\color[red]{font color changing commands} being displayed.


I tried to adapt the macro \demobox from the TeXBOOK which processes 
token by token and draws an empty box instead of that token. It works 
perfectly as long as there is only plain text between the braces, but as 
soon there is something more complex, it breaks. This behaviour is 
probably to be expected, but I have no idea how to let all the commands 
do what they are expected to do and only prohibit placing any boxes with 
some content.


Thanks,
Mojca



% the portion of code adapted from the TeXBOOK, Excercise 11.5 %


\def\dolist{\afterassignment\dodolist\let\next= }
\def\dodolist{\ifx\next\endlist\let\next\relax
  \else \\\let\next\dolist \fi
\next}
\def\endlist{\endlist}

\def\\{\if\space\next\ % assume that \next is unexpandable
\else\setbox0=\hbox{\next}\setbox1=\hbox{}%
  \dp1=\dp0\ht1=\ht0\wd1=\wd0\box1\fi}

\def\demobox#1{{\dolist#1\endlist}}



\setupframed[strut=no,offset=0pt]
\setupcolors[state=start]
\starttext

%%
% this works %
%%

\color[blue]{This works OK:}

bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \demobox{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla

bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla

%
% The examples below have some troubles %
%

\color[blue]{This is not 100\% properly aligned, but works:}\par
a\demobox{Tough exercise.}b\par
a\hbox{Tough exercise.}b\par
a\framed{\hbox{Tough exercise.}}b\par
a\framed{\demobox{Tough exercise.}}b\par
%a\demobox{\framed{Tough exercise.}}b\par % this doesn't work

a\externalfigure[cow]b\par
\color[blue]{This cow has shrinked:}\par
a\demobox{\externalfigure[cow]}b\par
a\framed{\externalfigure[cow]}b\par
\color[blue]{And this cow disappeared:}\par
a\framed{\demobox{\externalfigure[cow]}}b\par
% a\demobox{\framed{\externalfigure[cow]}}b\par % this doesn't work

\color[blue]{The commented stuff didn't even dare to compile.}

%\input tufte \demobox{{\input tufte }}\input tufte\par
%\input tufte \input tufte \input tufte

%\dorecurse{10}{bla }
%\demobox{\dorecurse{10}{bla }}
%\dorecurse{10}{bla }\par
%\dorecurse{10}{bla }
%\dorecurse{10}{bla }
%\dorecurse{10}{bla }

\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] literal escape strings in bookmarks

2005-07-07 Thread Stuart Jansen
On Thu, 2005-07-07 at 23:00 +0200, Hans Hagen wrote:
 \getvalue{letterunderscore}

Very nice. Thank you.

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Hiding the content (drawing empty boxes?)

2005-07-07 Thread Mojca Miklavec

Hans Hagen wrote:

Mojca Miklavec wrote:


Is there a way to somehow

\starthidden
...
\stophidden,

which would leave exactly the same amount of blank space as if the 
content would be typeset?



well, how about:

\defineproperty[mojcas-secrets][layer][state=top]

\starttext

\input tufte

\startproperty[mojcas-secrets]\input knuth \stopproperty

\input tufte

\stoptext


Great! Thank you, Hans.

That's unfair again:
it seems too easy to be possible, but it actually works ... -)

Just a hint: don't ever expect my secrets to be hidden that way. They 
are way too precious to be seen by others by simply switching them on 
again in Acrobat :)


Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Hiding the content (drawing empty boxes?)

2005-07-07 Thread Adam Lindsay
Mojca Miklavec said this at Fri, 8 Jul 2005 00:33:38 +0200:

Just a hint: don't ever expect my secrets to be hidden that way. They 
are way too precious to be seen by others by simply switching them on 
again in Acrobat :)

It's not hidden in other PDF viewers, such as Apple's native one.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context