Re: [NTG-context] using \startfiguretext ... \stopfiguretext

2004-12-13 Thread Hans Hagen
Nikolai Weibull wrote:
ik, let's give you a cue:

I don't understand...is that an ik, as in I disapprove?
no, a typo: ik = ok
Hans
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


[NTG-context] bookmarks problems

2004-12-13 Thread Christopher Creutzig
Salvete,
 I have two problems with bookmarks:
- Preview.App does display the list of bookmarks, but they do not work.
  The same file has no such problems in Adobe.  (There are files with
  bookmarks that work ok in Preview.App, such as the Adobe JavaScript
  reference.)
- I fail to provide a bookmark different from a chapter title, if that
  title is not followed by text, but directly by a \section command.
  Whether I place \bookmark in front of or behind the \chapter command,
  it affects the next section command with text behind it.
\setupinteraction[state=start]
\placebookmarks[chapter,section]
\starttext
\chapter{normal chapter}
\section{one}
\chapter{\quotation{special} chapter}
\bookmark{special chapter}
\section{two}
\section{three}
test
\stoptext
regards,
Christopher Creutzig
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placefigure bug

2004-12-13 Thread Taco Hoekwater


On Mon, 13 Dec 2004 17:15:27 +0100
Hans Hagen [EMAIL PROTECTED] wrote:

 Taco Hoekwater wrote:
  Hans,
  The following gives me and undefined reference:
  
  %%%
  \starttext
  A test of a figure, see \in {figure} [figa]
  
  \placefigure [figa] {The caption} {\externalfigure [02.jpg]}
  \stoptext
  %%%
  
  It only works correctly if both bracketed arguments to \placefigure
  are supplied (I tested versions 2004.11.06 and 2004.12.06, but it 
  probably affects other versions as well).
 
 the first [arg] is the directive location and such), so it's:
 
 \placefigure [here] [figa] {The caption} {\externalfigure [02.jpg]}

I know this, but I was not worried about placement, I only wanted a working 
figure reference. The actual author-supplied example that I was trying 
to typeset was this:

%% grin 
Dat uitbundig fontgebruik niet van onze tijd is, toont de meer dan honderd
jaar oude voorpagina in \in {figuur} [fig:font:1].

\placefigure
  [fig:font:1]
  {Een voorpagina.}
  {\externalfigure[scan-2.jpg]}
%% /grin

If that was incorrect, then I'll happily shift from 'bug' to 'feature request'
on the spot :-) That input looks perfectly sensible to me.

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


Re: [NTG-context] \placefigure bug

2004-12-13 Thread Hans Hagen
Taco Hoekwater wrote:
Hans,
The following gives me and undefined reference:
%%%
\starttext
A test of a figure, see \in {figure} [figa]
\placefigure [figa] {The caption} {\externalfigure [02.jpg]}
\stoptext
%%%
It only works correctly if both bracketed arguments to \placefigure
are supplied (I tested versions 2004.11.06 and 2004.12.06, but it 
probably affects other versions as well).
the first [arg] is the directive location and such), so it's:
\placefigure [here] [figa] {The caption} {\externalfigure [02.jpg]}
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] \placefigure bug

2004-12-13 Thread Taco Hoekwater

Hm, yes. Oh well, too bad.

Hans Hagen [EMAIL PROTECTED] wrote:

 sure, but it's hard to distunguish between [here] as directive and [here] as 
 reference -)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bookmarks problems

2004-12-13 Thread Adam Lindsay
Christopher Creutzig said this at Mon, 13 Dec 2004 16:40:13 +0100:

- Preview.App does display the list of bookmarks, but they do not work.
   The same file has no such problems in Adobe.  (There are files with
   bookmarks that work ok in Preview.App, such as the Adobe JavaScript
   reference.)

Apple has a limited idea of what's a reference in the bookmark list. They
only have a partial implementation of the spec. Hans's use of the PDF
spec with the bookmarks is a little loose. I studied this in more
detail with respect to XeTeX. I might be able to find some of that
correspondence. Oh, here it is:

 If so, I'd be interested to see the PDF 
that results (pdfTeX, at least, can be told not to compress the PDF 
streams, can't it?), so as to get some idea of the link types that 
Preview understands.

It turns out that it understands indirect links very well. That is, the
first fails:
/S/GoTo/D [ 4/Fit]
...where 4 is the page number, but the second succeeds:
/S/GoTo/D [ 36 0 R /Fit]
...where 36 is the object number of a /Type /Page object in the PDF file. 

Yeah, that sums up the difference between a link that doesn't work, and
one that does, in Preview.app. ConTeXt may use a bit of JavaScript in
some of its links, which Preview.app has a tough time with.

I haven't looked at this in detail lately, and barely at all with the
pdftex drivers. Hans, do you think it would be hard to turn direct page
links into indirect links (point to page object)?

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bookmarks problems

2004-12-13 Thread Hans Hagen
Christopher Creutzig wrote:
 I have two problems with bookmarks:
- Preview.App does display the list of bookmarks, but they do not work.
  The same file has no such problems in Adobe.  (There are files with
  bookmarks that work ok in Preview.App, such as the Adobe JavaScript
  reference.)
preview is buggy and weak on interactive features
- I fail to provide a bookmark different from a chapter title, if that
  title is not followed by text, but directly by a \section command.
  Whether I place \bookmark in front of or behind the \chapter command,
  it affects the next section command with text behind it.
i'll fix this, for the moment say:
\appendtoks\def\quotation#1{#1}\to\simplifiedcommands
\appendtoks\def\quote#1{'#1'}\to\simplifiedcommands
-
  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] \bfm broken

2004-12-13 Thread h h extern
David Munger wrote:
\bfm seems broken in 2004.12.06
in font-bfm, change the \dosetskewchar lines into:
  \dosetskewchar\mifam\defaultskewcharmi
  \dosetskewchar\syfam\defaultskewcharsy
(i added an 'fam' argument to \dosetskewchar some time ago, but didn't change 
these lines for bold math)

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] Directions to use the new table format.

2004-12-13 Thread Hans Hagen
Dirar BOUGATEF wrote:
Hi all,
 
I think that Hans is more concerned by this one ...
 
Having looked at all the tables ways to make tables within context, i 
think, that learning the last one (linetable) to do things is more 
appropriate because it summarises the functionnalities of all the others 
(hence, less headaches and a smaller lurning curve).
 
Can anyone give just a few lines of directions to start using this mode 
(The wiki example is too small to learn from) or at least some words 
about how to use the implementation file which is  core-ltb.tex to 
understand how things work (This is gonna be very helpful to all 
Contexters).
very undocumented indeed; i made this module for a project long ago but never 
came to documenting it;

\starttable
\setuplinetable[n=6,lines=40]
\setuplinetable[c][1]   [width=2cm,background=color,backgroundcolor=red]
\setuplinetable[c][4]   [width=3cm,background=color,backgroundcolor=yellow]
\setuplinetable[c][6]   [width=3cm,background=color,backgroundcolor=magenta]
\setuplinetable[r][odd] [background=color,backgroundcolor=gray]
\setuplinetable[r][even][background=color,backgroundcolor=green]
\starttext
\showframe \showstruts
\setupcolors[state=start]
\setuppagenumbering[alternative=doublesided]\page[left]
\startlinetable
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC d \NC  \NC ff} \NC \NR
\dorecurse{100}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC d \NC  \NC ff} 
\NC \NR}
\stoplinetable

\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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: mag-0008 (was: XML formulas)

2004-12-13 Thread Bruce D'Arcus
On Dec 13, 2004, at 1:02 PM, Adam Lindsay wrote:
What I propose is clearly a debatable XML-design issue, but it seemed
strange that fx:definelayout and fx:p were put into the same namespace.
Why do the formatting definitions share the same (theoretical) schema 
as
markup? Your documents keep these categories separate, as one would
expect. Why not encourage people to put them in separate files, as with
normal ConTeXt workflows? The designer and author are more clearly
divorced when you don't assume an XSLT-centric flow, right?
FWIW, I'm currently working on a comprehensive XSLT-based solution for 
bibliographic formatting (think bibtex for xml, only better).  In that, 
I'm working across multiple namespaces:

1)  document (docbook ng)
2)  bibliographic data (mods)
3)  a citation formatting language (homegrown; again, in its own 
namespace)
4)  output (xhtml, for example)

I agree with the notion that, in principle, semantic document markup 
should be in a separate namespace from the formatting language.

BTW, Hans, I've yet to see the ContML schema.  Care to post it 
somewhere?

Also, FYI, I and an engineer at Sun have some up with a small citation 
schema designed for embedding in other XML dialects.  It has been 
approved for OpenOffice.

http://www.users.muohio.edu/darcusb/files/citation-schema.tar.gz
It's more for GUI apps (it's rather verbose), but could still be useful 
in other contexts.

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


[NTG-context] French quotes ..

2004-12-13 Thread Dirar BOUGATEF
Hi,
Just wandering how to configure Context to display french quotes instead of 
english ones.

French quotes look like this :  my text , where english ones look like 
this: my text.

Of course, am using the  \mainlanguage[fr] option in my document.
Many thanks.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] m-letter.tex

2004-12-13 Thread Wolfgang Zillig
Hello,
is someone using the letter module as mentioned in xcorresp.pdf (the 
correspondence manual)?

There is written that the layout is defined in a file m-letter.tex. I canĀ“t 
find this file and the examples from the manual are not working too.

Is there an example file for the use of this module?
regards
Wolfgang
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] French quotes ..

2004-12-13 Thread David Antos
On Tue, Dec 14, 2004 at 12:31:44PM +, Dirar BOUGATEF wrote:
 French quotes look like this :  my text , where english ones look like 
 this: my text.
 
 Of course, am using the  \mainlanguage[fr] option in my document.

Hello,

if \mainlanguage[fr] is set, \quotation{my quoted text} should typeset
the strange French quotes.

Yours,
D.A.

-- 
Science is what happens when preconception meets verification.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] French quotes ..

2004-12-13 Thread Dirar BOUGATEF
French quotes look like this :  my text , where english ones look like
this: my text.
Of course, am using the  \mainlanguage[fr] option in my document.

Hello,

if \mainlanguage[fr] is set, \quotation{my quoted text} should typeset
the strange French quotes.
Many thanks,
My bizarre quotations work now, but they are quite ugly ! How can i change 
the caracter shape ? Does this depend on the font i use ?

Yours,
D.A.
--
Science is what happens when preconception meets verification.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
htmlDIVDirar/DIV/html
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placefigure bug

2004-12-13 Thread Taco Hoekwater
Hans, 

The following gives me and undefined reference:
%%%
\starttext
A test of a figure, see \in {figure} [figa]
\placefigure [figa] {The caption} {\externalfigure [02.jpg]}
\stoptext
%%%
It only works correctly if both bracketed arguments to \placefigure
are supplied (I tested versions 2004.11.06 and 2004.12.06, but it probably 
affects other versions as well).

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


Re: [NTG-context] \placefigure bug

2004-12-13 Thread Hans Hagen
Taco Hoekwater wrote:
%% grin 
Dat uitbundig fontgebruik niet van onze tijd is, toont de meer dan honderd
jaar oude voorpagina in \in {figuur} [fig:font:1].

\placefigure
  [fig:font:1]
  {Een voorpagina.}
  {\externalfigure[scan-2.jpg]}
%% /grin
ok, you got me, i made an error there -)
If that was incorrect, then I'll happily shift from 'bug' to 'feature request'
on the spot :-) That input looks perfectly sensible to me.
sure, but it's hard to distunguish between [here] as directive and [here] as 
reference -)

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


[NTG-context] mag-0008 (was: XML formulas)

2004-12-13 Thread Adam Lindsay
h h extern said this at Fri, 10 Dec 2004 22:38:27 +0100:

 Also, what's the status of contml? I like the idea of it as a simple,
 structural, basic markup that ConTeXt handles with zero effort, but is
 anyone actually using it?

we sometimes mix it into other xml docs; i have no problem with
extending it; 
actualy, (see mag-0008.pdf), i want to map most context directly onto xml so 
that we have a rather complete xml input syntax

Yes, indeed. I took a look at the magazine again last night, and it was
put in an entirely new light. I'm very curious to work with x-fx now...

I've been working on a general-ish conversion script from a new Mac
application. I'd like to offer most of ContML as basic level constructs,
but it should be possible for a user to add their own tags. If they can
tap into fx:anything tags, it should make people (hi, Bruce!) fairly happy.

My first reaction/critique of the approach was: why not fix at least one
of the problems of TeX: that it's a mixture between typesetting and
programming features as you say? 

What I propose is clearly a debatable XML-design issue, but it seemed
strange that fx:definelayout and fx:p were put into the same namespace.
Why do the formatting definitions share the same (theoretical) schema as
markup? Your documents keep these categories separate, as one would
expect. Why not encourage people to put them in separate files, as with
normal ConTeXt workflows? The designer and author are more clearly
divorced when you don't assume an XSLT-centric flow, right?
(or, is this already planned with this tidbit from foxet: fs = setup)

I'm curious about how the namespacing would work, though, because I want
to use (and enable the use of) these nice fs:setuphead -like
configurations with my hybrid ContML++ documents. Will:
 fs:setuphead label='section' /
correctly (in my mind) affect a ContML element like this?
 context:sectionsomething/context:section

Curious,
adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Directions to use the new table format.

2004-12-13 Thread Dirar BOUGATEF
Hi all,

I think that Hans is more concerned by this one ...

Having looked at all the tables ways to make tables within context, i think, that learning the last one (linetable) to do things is more appropriate because it summarises the functionnalities of all the others (hence, less headaches and a smaller lurning curve).

Can anyone give just a few lines of directions to start using this mode (The wiki example is too small to learn from) or at least some words about how to use the implementation file which is core-ltb.tex to understandhow things work(This is gonna be very helpful to all Contexters).

Many thanks.

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


[NTG-context] \placetable and \starttables ... \stoptables

2004-12-13 Thread Nikolai Weibull
\starttext
\placetable
  [][]
  {Operators}
  {\start
\starttablehead
\HL
\NC \bf Operator \NC \bf Matches \NC\SR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables[|l|lp(25em)|]
\dorecurse{50}{\NC . \NC anything \NC\AR}
\stoptables\stop}
\stoptext

This doesn't split appropriately.  It works OK if one removes the
placetable, but that kind of counteracts the whole idea.  Am I doing
something wrong, or is this an issue with the tables code?
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context