Re: [NTG-context] multiple bibliographies

2006-09-06 Thread Taco Hoekwater

Hi guys,

Aditya Mahajan wrote:
 On Tue, 5 Sep 2006, Thomas A. Schmitz wrote:
 
 
Dear all (and esp. Taco),
Maybe a bit of background, and please tell me if you think this is a
stupid idea: every term, I have to prepare lists of references for my
several classes, and there usually is a lot of repetition and
overlap. So I'm dreaming of having one big bibtex database and
producing the lists via assorted \nocite commands. But i usually
split up these bibliographies into several sections, and I want all
items numbered in sequence, so I have in my source:

This should work except that the numbers in the second
\placepublications will probably restart at 1 with the
current version.  That would be easy to fix, so if you
send me a small test file I can easily add a no-reset
switch.

 I do not know anything about feasibility, but have a suggestion for 
 the input syntax. How about if there is
 
 \definecitemethod[one]
 \definecitemethod[two]

I have to think about that. It sounds useful, but I am not
sure off-hand how to make it work.

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


[NTG-context] index page range bug

2006-09-06 Thread Jason Grout
Hans (or whoever could change this),

When using startregister/stopregister commands, if the range is only one 
one page, then while both a [f] and a [t] are written to the tui file, 
only one \registerfrom command is put in the tuo file.  If there is only 
one range, it seems like the software deals with it nicely.  However, if 
there are two ranges (like in the example below), then the index 
incorrectly assumes that the first \registerfrom command in the tuo file 
corresponds to the \registerto command.

Here's an example

test.tex:

\setuppapersize [letter][letter]
\starttext
\input knuth

KNUTH START\startregister[index][knuthrange1]{Knuth}

\input knuth

KNUTH END\stopregister[index][knuthrange1]

\dorecurse{10}{\input zapf }

KNUTH START\startregister[index][knuthrange2]{Knuth}

\dorecurse{10}{\input knuth }

KNUTH END\stopregister[index][knuthrange2]

\completeindex
\stoptext

test.tui:

r f {index} {1} {} {Knuth} {2--0-0-0-0-0-0-0--1} {1}
r t {index} {2} {} {Knuth} {2--0-0-0-0-0-0-0--1} {1}
r f {index} {3} {} {Knuth} {2--0-0-0-0-0-0-0--3} {3}
r t {index} {4} {} {Knuth} {2--0-0-0-0-0-0-0--5} {5}

test.tuo:

\registerentrya{index}{Knuth}
\registerfrom{index}{,}{1}{2--0-0-0-0-0-0-0--1}{1}
\registerfrom{index}{,}{3}{2--0-0-0-0-0-0-0--3}{3}
\registerto{index}{,}{4}{2--0-0-0-0-0-0-0--5}{5}


and the index reads Knuth 1--5, but it should read Knuth 1, 3--5


My guess is the problem lies in the line in texutil.rb:

if copied || ! ((lastpage == entry.page)  \
(lastrealpage == entry.realpage)) then

(sorry, that was one line before my mail program wrapped it).

Since the ending [t] reference for the first \stopregister command is on 
the same page as the first one, the whole section outputting a 
\registerto command to the tuo file is skipped.  Instead, how about 
making the code check to see if we have a range that ends on the same 
page as it started?  If it does, then just insert a \registerpage 
command instead of a \registerfrom command.

I've corrected this in the perl version (I had an old version of ConTEXt 
before today, otherwise I would have worked on the ruby version).  I 
also added support for nesting ranges, which I then discovered weren't 
supported anyway.  (I also had to change the sort order on 
@RegisterEntries so that [f] and [t] entries would be consecutive, 
instead of all the [f] entries preceding the [t] entries, but it looks 
like that was fixed already). Here's my code from the perl texutil (with 
a bunch of comments from me):



   { # print $LastPage / $Page // $LastRealPage / $RealPage\n ;
 $NextEntry = 
{$Class}{$PreviousA}{$PreviousB}{$PreviousC}{$PageHow,$TextHow} ;
 $SavedLine = 
{$Class}{$PageHow,$TextHow}{$Location}{$Page}{$RealPage}\n ;
  # If we are starting a new level, start our nesting over.
  # This will completely ignore the last non-properly
  # nested result in the previous heading.
 if($Copied)
   { $NestingLevel=0;
 $TopLevelFromPage=;
 $TopLevelFromRealPage=;
 $TopLevelFromLine=;
   }
 if ($RegisterState eq $RegStat{f}) # If we are starting a 
range
   { FlushSavedLine ;
 if($NestingLevel eq 0)
   { $TopLevelFromLine=$SavedLine;
 $TopLevelFromPage=$Page;
 $TopLevelFromRealPage=$RealPage;
   }
 $NestingLevel++;
   }
 elsif ($RegisterState eq $RegStat{t}) # If we are ending 
a range
   { FlushSavedLine ;
 $NestingLevel--;
 if($NestingLevel = 0)
   { if((($Page eq $TopLevelFromPage) and ($RealPage eq 
$TopLevelFromRealPage))
or $NestingLevel  0)
   { print TUO \\registerpage$SavedLine ;
   }
 else
   { print TUO \\registerfrom$TopLevelFromLine ;
 print TUO \\registerto$SavedLine ;
   }
 $NestingLevel = 0 ;
 $TopLevelFromPage=;
 $TopLevelFromRealPage=;
 $TopLevelFromLine=;
   }
   }
 else # If we have a normal single entry
   { if ($CollapseEntries)
   { if ($SavedEntry ne $NextEntry)
   { $SavedFrom = $SavedLine }
 else
   { $SavedTo = $SavedLine }
 $SavedEntry = $NextEntry }
 else
  { print TUO \\registerpage$SavedLine }
   }


Of course, if I've missed something, please let me know.  I've only 
started using ConTEXt in the last few weeks.  I needed grid typesetting 
for a book I was working on and I was getting tired of LaTeX not helping 
me there.  I've absolutely loved working with 

[NTG-context] preliminary support for tex4ht is there (for ConTeXt to HTML conversion)

2006-09-06 Thread Mojca Miklavec
Just to let you know: if you want to convert your ConTeXt documents
into HTML, you can try to install tex4ht and replace the old files
with new ones: http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
(newt4ht.zip)

It works OK with the old perl texexec.pl, the ruby version causes some
problems, but none of them are fatal. You need DVI as an intermediate
format, so if you use texexec.rb, you have to add \setupoutput[dvi] at
the top of the document, otherwise tex4ht won't be able to create HTML
out of it.

You can compile a document with htcontext filename or by manually running
texexec --use=tex4ht filename
tex4ht filename
t4ht filename

I cannot give you extensible information about how fonts are set up.
In MikTeX it worked out-of-the-box, however I didn't play yet to make
it work under the stand-alone distribution, but the following link
might be of some importance:
http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn32.html

Support is not that extensive yet, but sections, external images (as
long as they reside in the same directory and if they are in PNG/JPG),
natural tables, itemisations, place[something], buffers, footnotes,
very basic frames, math, ... are somehow working. (The big difference
with math is that in LaTeX it is changed into bitmap and in ConTeXt
it's currently text-based, so you'll get weird results when using \sum
or similar, but I think that that is configurable, so if you manage to
play enough with it you might be able to get formulas translated into
MATHML, which will be displayed nicely in firefox for example.) And I
guess that conversion into an OpenOffice document is very similar.

I only asked the author to rewrite the pieces of code that caused
problems before and to add some additional basic support to
context.4ht, so if you have other requests, you should contact the
author of tex4ht, not me !!!

He adds support based on user requests (his first response was: nobody
asked for improving ConTeXt support so far), so if you want to have
better support implemented, feel free to ask him. Adding full support
for ConTeXt is a bit too optimistic, but stepwise improvements are
possible.

Comments wellcome.

(I currently have some problems with my computer, so I might not be
very responsive to additional questions, but I'll try to fix the
computer ASAP. Once that I manage to make it work inside stand-alone
distr., I'll report how I did it if nobody else does that before me.)

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


Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-06 Thread Peter Rolf
Zhichu Chen wrote:
 Thank you very much Peter.
 
 I've inserted these code and when I open my pdf file in Acrobat
 Reader, it crashed :(. But this is not a big deal, I modified it and
 it's working, but it only tells me that:
 do_digit(7) at page 0

First thing to say: I'm also a javascript beginner (used it only once!),
so don't expect too much from me :)

In the following code the missing vars and function are added
(javascript debugger), but still the initialisation ('undefined' text)
and the reset for the result field are missing (and who knows what
else). But it's a 'working' starting point.

\startJSpreamble functions used now
  function do_digit(d)
{console.println(do_digit(+d+) at page +[this.pageNum]);
 Stack[Level] += String(d);
 do_refresh(Level) }

  var Stack = new Array();
  var Level = 1 ;

  function do_refresh (i) { vv = this.getField(Stack..concat(i)) ;
  if (vv) { vv.value = Stack[i] ;
  vv.readonly = (i!=Level) ;
  this.dirty = false } }
\stopJSpreamble

 and the field never changes. I guess I have to specify some link
 between the JavaScript variant and the ConTeXt. Can you give me just
 one simplest example that shows JavaScript code
 var tempstring = Yes;
 in pdf file? Or you could think I'm very boring so can you just
 suggest some materials that I can find these techniques?

I have not used text fields before (so no example code) and this is all
I have about JavaScript:

http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/


from http://partners.adobe.com/public/developer/pdf/topic_js.html:

http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJS.pdf
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSGuide.pdf
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSRefErrata.pdf

BUT MOST IMPORTANT:

http://partners.adobe.com/public/developer/en/pdf/debugger.js

Description:
Use this file to enable the JavaScript Debugger in Adobe Reader, as
described in the Acrobat JavaScript Scripting Guide.

Hope that helps,

Peter

 From: Peter Rolf [EMAIL PROTECTED]
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Date: Tue, 05 Sep 2006 11:42:44 +0200
 Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt
 Zhichu Chen wrote:
 Hello everybody,

 I want to add a clock which shows the system time to a pdf file.
 And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find
 some approaches but failed shamely. I am indeed new at ConTeXt and
 JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2
 years, so I'm confused with the conventions between ConTeXt and LaTeX.
 My code is here:

 I don't have the time right now for more than this short tip. If you
 work with JavaScript you should open the JaveScript Debugger (CTRL-J in
 Acrobat; in the Adobe Reader hit CTRL-K and check Show console on
 errors and messages in the JavaScript categorie) to see the warnings
 and error messages. You also should insert some log messages in your
 code. For example
 
 console.println(do_digit(+d+) at page +[this.pageNum]);
 
 at the start of your function do_digit. This helps a lot to see what is
 going on.
 
 Greetings, Peter
 
 --
 \setupinteraction[state=start]

 \startJSpreamble functions used now
   function do_digit(d)
 { Stack[Level] += String(d);
   do_refresh(Level) }
 \stopJSpreamble

 \startJScode{digit}
   do_digit(JS_S_1);
 \stopJScode

 \definefield[Stack.1][line][Results][][

 \setupfield
   [Results]
   [horizontal,frame]
   [width=fit,
height=2cm,
frame=on]
   [height=18pt,width=80pt,align=middle,frame=off]
   [height=18pt,width=80pt,color=red,align=right,style=type,frame=off]

 \setupbuttons [background=infobutton]

 \starttext

 Click \button{7}[JS(digit{7})] will get
 \field[Stack.1]

 \stoptext
 

 I only copied these codes from art-calc.pdf so there must be some
 other critical concepts that I haven't realized. Please point them to
 me. Thanks
 ___
 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
 
 

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


[NTG-context] Footnote Setup

2006-09-06 Thread Pepe Barbe
Hi,

I would like to setup the footnotes so that the footnote in the
textbody shows slanted (or just different) to the rest of the text and
in sans serif, to avoid some confusion with exponents.

So far what I have tried, does not seem to work. In setupfoonotes,
style and numbercommand seem to only affect the style for the footnote
at the bottom of the page, but not the footnote inside the textbody.

Any ideas on how to achieve this?

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


Re: [NTG-context] 2DOWN imposition gives blank pages

2006-09-06 Thread Willi Egger
Hi,

The 2SIDE arrangment is not intended for a doublesided layout. If the 
layout is single sided you can easily add an empty page with 
\strut\page. This impositionscheme is only for arranging 2 pages on a 
suitable paper, the pages remain in their normal sequence. that is, 
there is no booklet!
In order to have an empty page you can stop pagenumbering first and 
start numbering on the second page (see below).

The 2UP arrangement is suitable for a doublesided layout, pages are 
arranged in such a way, that you can fold a booklet. Whether or not the 
left part of the paper-sheet remains blank depends on the number of 
pages to be arranged. This method uses a lot of paper because a chapter 
will allways start on an odd page, i.e. on the right-half of the paper.
Otherwise you can use a singlesided layout with 2UP and in this case 
chapters will also start on odd pages. This is the most compact way of 
arranging 2 pages on one sheet of paper, ending up still with a booklet.

Tests were performed with the following code:

\setuppapersize[A5,portrait][A4,landscape]%
% \setuparranging [2*8,doublesided]
\setuparranging[2SIDE]%not intended for a duoblesided layout.
%\setuparranging[2UP]% can be used with doublesided layout, chapters 
start allways on an odd page.
% can be used with a singlesided 
layout, chapters will start also on even pages, keep in mind
% that the imposition takes place 
after typesetting. In the case of a singlesides layout, all pages
% are odd.
\setuplayout [location=middle]
\setuppagenumbering[location={footer,marginedge},state=start]%,alternative=doublesided

\starttext
\setuppagenumbering[state=stop]
\strut\page
\setuppagenumbering[state=start]

\dostepwiserecurse{1}{20}{1}{%
\startalignment[middle]
\chapter{Chapter title}
\vfil
This is {\bfd \recurselevel}
\input zapf
\stopalignment
\vfil
\page}
\stoptext

Willi

Sanjoy Mahajan wrote:
 I've mostly understood arranging but I cannot figure out how to make
 2SIDE place a blank page (page 0, to not affect the page numbering) on
 the left half of the first arranged sheet and carry on as normal.  To
 illustrate, where the enclosed numbers are the unarranged numbers:

 p.1: | |1|
 p.2: |2|3|
 p.3: |4|5|

 That way each arranged sheet (p.1,2, or 3) will be a spread from the
 final book, plus one saves paper.

 Gerben Wierda (12 March 2005) asked this question on the list, but I
 did not see an answer so perhaps it is difficult.  I looked at the
 code in page-imp.tex and had hopes for \ejectdummypage but my
 experments didn't work.

 Also my hopes for a cheap hack also were dashed.  I tried inserting a
 \null\page[blank] before the \chapter{First chapter}.  But with
 doublesided pagenumbering, the chapter starts only on an odd page, so
 the single blank page turns into two blank pages.

 -Sanjoy

 `Never underestimate the evil of which men of power are capable.'
  --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
 ___
 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] 2DOWN imposition gives blank pages

2006-09-06 Thread Aditya Mahajan
On Wed, 6 Sep 2006, Sanjoy Mahajan wrote:

 I've mostly understood arranging but I cannot figure out how to make
 2SIDE place a blank page (page 0, to not affect the page numbering) on
 the left half of the first arranged sheet and carry on as normal.  To
 illustrate, where the enclosed numbers are the unarranged numbers:

 p.1: | |1|
 p.2: |2|3|
 p.3: |4|5|

 That way each arranged sheet (p.1,2, or 3) will be a spread from the
 final book, plus one saves paper.

 Also my hopes for a cheap hack also were dashed.  I tried inserting a
 \null\page[blank] before the \chapter{First chapter}.  But with
 doublesided pagenumbering, the chapter starts only on an odd page, so
 the single blank page turns into two blank pages.

How about if you change the meaning of odd and even. That is,

set up everything so that chapters start from even page, setuplayout 
as a mirror image of the layout that you want, setupheaders and 
footers in a mirror manner. Finally insert a blank page right at the 
begining; you can use \startTEXpage[width=\paperwidth, 
height=\paperheight] and this will not affect the normal 
pagenumbering.

Then you can fool context to do what you want.

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


Re: [NTG-context] stange error in Live ConTeXt

2006-09-06 Thread Patrick Gundlach
Hi Taco,


Taco Hoekwater [EMAIL PROTECTED] writes:

 Hi Peter and Author of Live.contextgarden.net,

 Peter Rolf wrote:
 The following code works here, but not at context live. What have I
 done
 now? ;)

 Not something you did ;-)

 Your first comment line is confusing the Live setup. This extremely
 minimal example fails as well:

% interface=en output=pdftex
\starttext
Hello
\stoptext

Hmm, I can't see anything wrong at live.contextgarden.net with the
simple code. Should live ignore the % comment line?

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] listoffloats question

2006-09-06 Thread Hans Hagen
richard rascher-friesenhausen wrote:
 Willi Egger schrieb:
   
 Hi,

 with Context 2006.08.08 there is  no problem with the figure-numbering.

 In order to get your figure lists typeset:

 \conpletelistoffigures
 \completelistofafigures
 \completelistofbfigures

 Kind regards
 Willi

   
 
 Hello,

 that's right, there is no problem in getting *three* lists. But i want 
 only *one* list, showing figures, afigures and bfigures in correct 
 order. I think, there must be a simple solution, but i don not find it

 (There are three kinds of figures, because each of them has its own setups.)
   
\placelist[figures,afigures,bfigures] 



-
  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] beta (31.08.2006)

2006-09-06 Thread Hans Hagen
Peter Rolf wrote:
 Hi,

 just tested the new beta, but with no luck. I get the following error

 [.
can you test the version i just uploaded and when it fails send me a test file? 

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


[NTG-context] MathPazo Palatino

2006-09-06 Thread Pepe Barbe
Hello,

I am using Palatino to typeset my document and it involves a fair use
of maths typesetting, and seems Palatino is incomplete for some of it.

I've read about the MathPazo LaTeX package and about previous
discussions about it in this list, but nothing conclusive.

Anything anyone would recommend to typeset math with Palatino without
any sort of Caveat?

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


[NTG-context] mk ii mkiv

2006-09-06 Thread Hans Hagen
Hi,

http://www.pragma-ade.com/general/manuals/mk.pdf

for those who wonder what the MK II note is doing in the banner of context 

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] MathPazo Palatino

2006-09-06 Thread Steve Grathwohl
On 9/6/06, Pepe Barbe [EMAIL PROTECTED] wrote:
Hello,I am using Palatino to typeset my document and it involves a fair useof maths typesetting, and seems Palatino is incomplete for some of it.I've read about the MathPazo LaTeX package and about previous
discussions about it in this list, but nothing conclusive.Anything anyone would recommend to typeset math with Palatino withoutany sort of Caveat?Thanks,PepeThat must be some heavy maths if Palatino out of the box can't do it. It makes use of the pxfonts set for math which is very complete, including everything the amsfonts contain and more besides. Certainly more complete than MathPazo IIRC.
Steve -- Steve Grathwohl || Digital Content DeveloperDuke University Press Journals || +1 919 687 3634905 W Main St || Durham, NC 27701 USA
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MathPazo Palatino

2006-09-06 Thread Pepe Barbe
On 9/6/06, Steve Grathwohl [EMAIL PROTECTED] wrote:

 That must be some heavy maths if Palatino out of the box can't do it. It
 makes use of the pxfonts set for math which is very complete, including
 everything the amsfonts contain and more besides. Certainly more complete
 than  MathPazo IIRC.

They are not that complicated but I need to use Bold a lot for
Matrices and Vectors. AFAIK, and in my experiments not all glyphs
worked as bold when doing math. I don't know if I am calling palatino
correctly or what. I understood that I could get bold through
MathPazo.

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


Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-06 Thread Zhichu Chen
It's so kind of you. Your example really helps me 'cause I can learn
javascript and ConTeXt by books but there are few materials about how
to associate them.

Still, I'm sorry I have to open a new thread. I don't know how to
reply under you, it's sad.



-- Forwarded message --
From: Peter Rolf [EMAIL PROTECTED]
To: mailing list for ConTeXt users ntg-context@ntg.nl
Date: Wed, 06 Sep 2006 12:06:02 +0200
Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt
Zhichu Chen wrote:
  . . .
First thing to say: I'm also a javascript beginner (used it only once!),
so don't expect too much from me :)

In the following code the missing vars and function are added
(javascript debugger), but still the initialisation ('undefined' text)
and the reset for the result field are missing (and who knows what
else). But it's a 'working' starting point.

\startJSpreamble functions used now
 function do_digit(d)
   {console.println(do_digit(+d+) at page +[this.pageNum]);
Stack[Level] += String(d);
do_refresh(Level) }

 var Stack = new Array();
 var Level = 1 ;

 function do_refresh (i) { vv = this.getField(Stack..concat(i)) ;
 if (vv) { vv.value = Stack[i] ;
 vv.readonly = (i!=Level) ;
 this.dirty = false } }
\stopJSpreamble

  . . .

I have not used text fields before (so no example code) and this is all
I have about JavaScript:

http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/


from http://partners.adobe.com/public/developer/pdf/topic_js.html:

http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJS.pdf
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSGuide.pdf
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJSRefErrata.pdf

BUT MOST IMPORTANT:

http://partners.adobe.com/public/developer/en/pdf/debugger.js

Description:
Use this file to enable the JavaScript Debugger in Adobe Reader, as
described in the Acrobat JavaScript Scripting Guide.

Hope that helps,

Peter

  . . .


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


Re: [NTG-context] mk ii mkiv

2006-09-06 Thread Aditya Mahajan
On Thu, 7 Sep 2006, Hans Hagen wrote:

 Hi,

 http://www.pragma-ade.com/general/manuals/mk.pdf

 for those who wonder what the MK II note is doing in the banner of context

Great!

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


Re: [NTG-context] MathPazo Palatino

2006-09-06 Thread Aditya Mahajan
On Wed, 6 Sep 2006, Pepe Barbe wrote:

 On 9/6/06, Steve Grathwohl [EMAIL PROTECTED] wrote:

 That must be some heavy maths if Palatino out of the box can't do it. It
 makes use of the pxfonts set for math which is very complete, including
 everything the amsfonts contain and more besides. Certainly more complete
 than  MathPazo IIRC.

 They are not that complicated but I need to use Bold a lot for
 Matrices and Vectors. AFAIK, and in my experiments not all glyphs
 worked as bold when doing math. I don't know if I am calling palatino
 correctly or what. I understood that I could get bold through
 MathPazo.

How do you call bold? ConTeXt's inbuilt support for bold math does not 
work in all situations. Check the wiki for a \hbox workaround and see 
if that helps.

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


[NTG-context] [Fwd: Line numbering]

2006-09-06 Thread CV Radhakrishnan
Any help for the following problem will be highly appreciated.

Radhakrishnan


 Forwarded Message 
From: CV Radhakrishnan [EMAIL PROTECTED]
Reply-To: mailing list for ConTeXt users ntg-context@ntg.nl
To: Mailing list for ConTeXt users ntg-context@ntg.nl
Subject: [NTG-context] Line numbering
Date: Sat, 02 Sep 2006 10:13:31 +0530

Dear all,

Forgive me if I sound naive.  I searched the archives, but could not
find the solution for my following problem:

I need to have line numbers for the text formatted in two columns.  The
numbers for left column shall appear in the left side and that for right
column shall appear in the right side of the page.  location=inmargin
option to the \setuplinenumbering doesn't help much.  Please take a look
at the following image:

  http://www.river-valley.com/cvr/one.png

which will give you an idea of my requirement.  Any help in this matter
will be highly apprecaited and thanks in advance.

Best

Radhakrishnan


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


Re: [NTG-context] [Fwd: Line numbering]

2006-09-06 Thread Aditya Mahajan
Hi CVR,

 From: CV Radhakrishnan [EMAIL PROTECTED]
 Reply-To: mailing list for ConTeXt users ntg-context@ntg.nl
 To: Mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: [NTG-context] Line numbering
 Date: Sat, 02 Sep 2006 10:13:31 +0530

 Dear all,

 Forgive me if I sound naive.  I searched the archives, but could not
 find the solution for my following problem:

 I need to have line numbers for the text formatted in two columns.  The
 numbers for left column shall appear in the left side and that for right
 column shall appear in the right side of the page.  location=inmargin
 option to the \setuplinenumbering doesn't help much.  Please take a look
 at the following image:

  http://www.river-valley.com/cvr/one.png

 which will give you an idea of my requirement.  Any help in this matter
 will be highly apprecaited and thanks in advance.

I do not know how to automate what you want. An ugly solution is to 
specify the column breaks yourself, something like

\unprotect
\def\dosetuplinenumbering[#1]%
   {\getparameters[\??rn][\c!start=1,\c!step=1,#1]%
%\global\linenumber\plusone
%Do not reset linenumber. Why is this here?
   }
\protect


\starttext
\startcolumns
\setuplinenumbering[location=inleft]
   \startlinenumbering
 \input knuth
   \stoplinenumbering
   \column
   \setuplinenumbering[location=inright]
   \startlinenumbering[continue]
 \input knuth
   \stoplinenumbering
\stopcolumns
\stoptext

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


[NTG-context] TABLEproblem

2006-09-06 Thread Bernd Militzer

Hi all,

after I installed ConTeXt (TeXExec | version 6.2.0 - 1997-2006 - PRAGMA 
ADE/POD) om my MacMini my family-project does not compile any more.

With version 5.2.4 -1967-2005 (linux resp. PowerBook) I have no problems.

systems : begin file TestFile at line 731
TestFile-PID0134-A.tmp
(/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex)
section : 1 \getPID {134}
(./TestFile-PID0134-A.tmp
Underfull \vbox (badness 1) detected at line 12
references  : unknown reference [][PID135dat]
references  : unknown reference [][PID67dat]
references  : unknown reference [][PID268dat]
references  : unknown reference [][PID269dat]
references  : unknown reference [][PID134adat]
! Misplaced \noalign.
\TABLEnoalign -\noalign
\bgroup \let \noalign \relax \let \next =
\insertTABLEtail -\TABLEnoalign
{\global \settrue \preventTABLEbreak 
\globa...


\stoptables ...erepeattail \else \insertTABLEtail
 \fi \finishTABLE 
\egroup \...


\StopPersDatTab -\stoptables
 \stop
l.25 \StopPersDatTab
   
?


I have no idea what to do.
every hint is welcome.
Thanks for help.

Bernd


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