Re: [NTG-context] Broken bibliographies in 2014-03-07 beta

2014-04-23 Thread Jelle Huisman

On 03/28/2014 03:08 PM, Hans Hagen wrote:

On 3/28/2014 1:29 PM, Sanjoy Mahajan wrote:

With the latest beta (2014.03.27), my bibliography example below now
works fine.  Thank you for fixing that.  Now I shall run the whole book
mss through the same beta.


some day soon we will enable the new implementation which doesn't use
bibtex at all


Hi Hans, (or Luigi/Thomas?)

Any idea when the new bibliography implementation will become available 
for general (test) use?


Thank you,

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Broken bibliographies in 2014-03-07 beta

2014-04-23 Thread Jelle Huisman

On 04/23/2014 07:15 PM, Hans Hagen wrote:


no schedule ... thomas need to test etc etc ... so not in the tl code
freeze but later (probably kind of stable around the context conference)


Okay, thank you!

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] typeset rss feed

2012-04-20 Thread Jelle Huisman
Hello all,

I'd like to typeset an RSS feed and I was wondering whether I could
instruct ConTeXt to fetch the contents of a url like:
http://feeds.bbci.co.uk/news/rss.xml
Thanks for any pointers,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] extracting word count from a *.words file

2012-04-20 Thread Jelle Huisman
Hello all,

Here is another question. Consider this test file:

\starttext
\setupspellchecking[state=start,method=2]
\ctxlua{languages.words.threshold=3}
\input knuth
\stoptext

Typesetting this file produces a word list 'test.words' which ends like
this:

 [threshold]=1,
 [total]=122,
 [version]=1,
}

Is there a way to extract the value for [total] ('122' in this case)
so that I can use that value somewhere else, e.g. in a project file
where I want to present a word count.

Thanks for a pointer!

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typeset rss feed

2012-04-20 Thread Jelle Huisman
On 04/20/2012 04:40 PM, Philipp Gesang wrote:
 Hi Jelle,
 
 On 2012-04-20 16:15, Jelle Huisman wrote:
 Hello all,

 I'd like to typeset an RSS feed and I was wondering whether I could
 instruct ConTeXt to fetch the contents of a url like:
 http://feeds.bbci.co.uk/news/rss.xml
 Thanks for any pointers,
 
 the fetching part is easy as we have LuaSocket:

Hi Philip,

Thank you, that was precisely what I was looking for. I knew that I had
seen LuaSocket before, but I could not find it.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Jelle Huisman
On 04/20/2012 04:52 PM, Marco wrote:
 On 2012-04-20 Jelle Huisman je...@jhnet.nl wrote:
 
 Is there a way to extract the value for [total] ('122' in this case)
 so that I can use that value somewhere else, e.g. in a project file
 where I want to present a word count.
 
 I used the word count some time ago. Here's the code I used. I have
 no idea what has changed since and if it still works.

Marco,

It looks like the code still works, thanks for sharing it.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Jelle Huisman
On 04/20/2012 04:53 PM, Philipp Gesang wrote:
 Hi again,
 
 On 2012-04-20 16:32, Jelle Huisman wrote:
 Hello all,

 Here is another question. Consider this test file:

 \starttext
 \setupspellchecking[state=start,method=2]
 \ctxlua{languages.words.threshold=3}
 \input knuth
 \stoptext

 Typesetting this file produces a word list 'test.words' which ends like
 this:

  [threshold]=1,
  [total]=122,
  [version]=1,
 }

 Is there a way to extract the value for [total] ('122' in this case)
 so that I can use that value somewhere else, e.g. in a project file
 where I want to present a word count.
 
 The “.words”-file is well formed Lua code, so you can just
 integrate it as a table:

Thank you, Philip, this is a clean solution.

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] beta

2011-06-08 Thread Jelle Huisman
On 08/06/11 19:21, Hans Hagen wrote:
 On 8-6-2011 11:43, Otared Kavian wrote:
 Hi Hans and Taco,

 Updating the minimals resulted for me in an error message:
 
 This is MetaPost, version 1.504 (kpathsea version 6.0.0)

 
 ! I can't open file `metafun'.
 
 can you check again?


The newest version fixes the problem for me.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New ConText Group

2010-12-12 Thread Jelle Huisman

On 12/12/10 06:31, Willi Egger wrote:

Dear ConTeXt users!

We are proud to announce that the ConTeXt community has its own 
users-organisation. The new association is called ConTeXt Group and registered 
in France.



Great!

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] description

2010-10-26 Thread Jelle Huisman

On 26/10/10 14:31, Arthur Reutenauer wrote:

On Tue, Oct 26, 2010 at 08:30:08PM +0200, Arthur Reutenauer wrote:

On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote:

Please explain the meaning of align=left. To me it
is more a raggedleft. (mkiv, TeXLive)


   Yes, you're right.


   ... no pun intended...



Right... you left me wondering about it ;-)

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] export

2010-09-23 Thread Jelle Huisman

On 22/09/10 06:45, Hans Hagen wrote:


\setupbackeds[export=yes]

You will also get a file called jobname.export which represents the
document in xml format. You can postprocess such an export to for
instance html. It's still somewhat experimental but also fun.



Hi Hans,

Thanks! this is a useful step in the direction of ctx2odt support. Are 
you planning to provide (basic) (x)html export too? (I'm thinking about 
this workflow: write in ctx - make pdf/make html - open html in 
OpenOffice - save as odt/doc.)


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] export

2010-09-23 Thread Jelle Huisman

On 23/09/10 11:12, Hans Hagen wrote:


As xhtml is just xml converted to other tags, I suppose that at some
day there will be additional converters. I would only come up with one
in the perspective of a project as I have no need for it.


There cannot be a universal one-to-one mapping between context generate
xml and xhtml. For example, in a book, I may want \chapter to map to
h1 while in an article, I may want \section to map to h1.
Nonetheless, having a specialized xml to xhtml converter should not be
too difficult (using the verbose XSLT transformations). Targetting html5
is another option.


indeed


Sounds like it's time to learn some xslt ;-)

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] direction in columnset (MKII)

2010-06-29 Thread Jelle Huisman

On 28/06/10 21:37, Wolfgang Schuster wrote:


It makes no sense to set values for columnset but use regular columns in
your document
and the correct value for direction you want is 'left' not 'right'.



OK-thanks, this helped me to untangle some messy coding on my part...

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] direction in columnset (MKII)

2010-06-28 Thread Jelle Huisman

Hi all,

Is it possible to tell columnsets which column is the first one?
I use columnset in MKII to typeset Arabic text in a multicolumn layout 
and the text starts in the left column. Is there a nice way to force the 
text to start in the right column? Something like 
\definecolumnset[arabic][n=2,direction=right] doesn't work.

(A nasty, ugly hack is fine too ;-)

Example:

\starttext
\definecolumnset[arabic][n=2,direction=right]
\startcolumns[arabic]
Oeps. In Arabic the 'first' column is on the right: \input knuth
\stopcolumns
\stoptext

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Transliterator module, 2nd revision

2010-03-11 Thread Jelle Huisman

On 11/03/2010 09:32, Philipp Gesang wrote:

for inclusion in the minimals ask Mojca.
 

I'm not sure whether they would stay truly ‘mnml’ with all kinds of niche
modules added.  An entry on the modules page would suffice, I guess.
   


'Minimal' means 'minimal effort' in this context, not 'minimal size'.

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with mp-form.mp while updating minimals

2010-03-10 Thread Jelle Huisman

On 10/03/2010 16:46, luigi scarso wrote:

but today (2010-03-10) minimals seems already ok


Same here.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] problem with mp-form.mp while updating minimals

2010-03-09 Thread Jelle Huisman

Hi all,

I'm updating my ConTeXt (minimals) installation (on Linux-64) and get 
this error:


(/home/jelle/context/tex/texmf-context/metapost/context/base/mp-form.mp
! I can't find file `string'.
l.81 input string

Please type another input file name:


Eventually I did Ctrl-C, but both ConTeXt and MetaPost seem to work, 
so... (I also installed the minimals from scratch, but get the same error.)


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] dictionary

2009-12-23 Thread Jelle Huisman

On 23/12/2009 03:45, Horacio Suarez wrote:

Hi Horacio,

Hans, thankyou very much, I see you answer in gname, but I didnt 
received that mail yet.


I made a marking from each entry in the dictionary and its works, but 
there is a problem because the entry printed is the second, not the first.


See the example at http://texshow.contextgarden.net/cmd/en/getmarking 
and use the correct option: [first] [last] [previous] [both] [all] 
[current] (I usually get it right after a couple of experiments ;-)

HTH,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] redirecting temp files (MkII)

2009-11-26 Thread Jelle Huisman

Hi all,

I use the XeTeX/ConTeXt MkII combi as part of another application. This 
(Windows) application is installed in the C:\Program Files tree which 
apparently is marked 'read only' in Vista/Windows 7. Would it be 
possible to redirect the temp files (*.top, *tui, *.log, *.mp) to a 
different folder outside C:\Program Files\ ? Texexec.rb comes with an 
option --tempdir= but that doesn't work.


Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] redirecting temp files (MkII)

2009-11-26 Thread Jelle Huisman

On 26/11/2009 15:25, Hans Hagen wrote:

why not just run in c:\temp or so


Because I have the ConTeXt application in a subdirectory of the main 
application directory and I don't want to mess around on some else's 
computer. Running in c:\temp means that I would have to copy the ConTeXt 
tree to c:\temp, right? Does it stay there or is  c:\temp emptied every 
so often? (which would mean that I have to copy the whole ConTeXt tree 
to c:\temp again...)
Does this suggestion mean that just setting a tempdir doesn't work (with 
texexec)? No Hans-trick somewhere?


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] redirecting temp files (MkII)

2009-11-26 Thread Jelle Huisman

On 26/11/2009 15:47, Hans Hagen wrote:

texmfstart --path=path-where-you-want-to-run texexec  --path=


No joy, actually I run texexec.rb directly (but that's a different 
story). I'll see if I can run in C:\temp.

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sort register (index) by Bible book

2009-11-17 Thread Jelle Huisman

On 17/11/2009 07:48, Taco Hoekwater wrote:

Using
   \index[Samuel 1 1:1]{1 Samuel 1:1}

Should change the sort order. Untested, though.
   


He probably wants to get Genesis before Exodus (etc.) instead. So would 
it be possible to tell the index mechanism to sort certain items in an 
arbitrary order?  (I don't know what \sort and \loadsorts do?)


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \placecontent floating in a frame

2009-10-30 Thread Jelle Huisman

Hi all,

I want to place a table of contents in a floating frame but somehow all 
the entries are placed in one line (see example) How do I get a proper 
ToC? I know that I can add a height to the \framed but with the real 
data I'm working with I don't know in advance how many lines I need. 
Adding heightfactor=fit didn't work either.


\setupcombinedlist[content][level=2,alternative=f]
\definefloat[TOCfloat][TOCfloats]
\setupfloat[TOCfloat][location=hanging,background=color,backgroundcolor=lightgray]
\starttext
\placeTOCfloat[right,here]{none}{\framed[width=0.4\textwidth]{\placecontent}}
\section{First section title}
\input knuth
\section{Second section title}
\input knuth
 \section{Third section title}
\input knuth
\section{Last section title}
\input knuth
\stoptext

Thanks again,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \placecontent floating in a frame

2009-10-30 Thread Jelle Huisman

On 30/10/2009 13:05, Taco Hoekwater wrote:

   \framed[,align=justify]

should do the trick.
   


It did the trick, thanks!

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] filter contents of xml elements

2009-10-28 Thread Jelle Huisman

Hi all,

First of all a big thank you to Hans for MkIV xml support which is so 
much easier to understand than the MKII based method (or is that just 
me?) Anyway, I'm processing a rather messy html file and I would like to 
do some conditional processing based on the actual content of the 
element. See example below: I have linked h3 with \subject but I would 
like to drop this element if the content of the element matches 'Skip 
title'.

Any hints? Thanks!
Jelle

\startbuffer[test]
html
h3Title 1/h3
pHello world./p
h3Skip title/h3
pHello world!/p
h3Title 2/h3
pHello world?/p
h3Title 3/h3
pHello :-)/p
/html
\stopbuffer

\startxmlsetups xml:setups
\xmlsetsetup{main}{html|h3|p}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:setups}

\startxmlsetups xml:html
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:h3
\subject{\xmlflush{#1}} % but drop this if content of element is 
'Skip Title'

\stopxmlsetups

\startxmlsetups xml:p
\xmlflush{#1}\par
\stopxmlsetups

\starttext
  \xmlprocessbuffer{main}{test}{}
\stoptext

Expected outcome:
  Title 1
  Hello world.
  Hello world!
  Title 2
  Hello world?
  Title 3
  Hello :-)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] filter contents of xml elements

2009-10-28 Thread Jelle Huisman

On 28/10/2009 15:32, Taco Hoekwater wrote:

The next does not deserve a price for elegance, but because
\xmlflush is expandable (this is its best feature, I think!)
you can use the traditional tex toolkit macros:

\startxmlsetups xml:h3
 \doifinstringelse{Skip title}{\xmlflush{#1}}
   {}
   {\subject{\xmlflush{#1}}}
\stopxmlsetups

I'm fairly certain that there are nicer solutions, however.
   


Thanks Taco, this works, I owe you a beer at next year's ConTeXt 
meeting! I'm still interested in a 'proper' xml (= non-TeX) based 
solution, anyone?


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] filter contents of xml elements

2009-10-28 Thread Jelle Huisman

On 28/10/2009 16:54, Hans Hagen wrote:

\startxmlsetups xml:h3
   \xmldoifnot {#1} {[text()='Skip title']} {
   \subject{\xmlflush{#1}}
   }
\stopxmlsetups

or:

\xmlsetsetup {main} {h3[text()='Skip title']} {-}


OK thanks, that's even better.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] urls and linebreaking

2009-09-23 Thread Jelle Huisman

Bowen Alan C. wrote:
Does any one recall how to get urls to break AFTER “.” and “/” etc.  
in MK II using \useURL?


I know this was discussed a long time ago, but I have not found it. 


You're maybe thinking about this discussion: 
http://archive.contextgarden.net/message/20081118.211245.eb1cbbe0.en.html


HTH,

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] hangaround in right side of column?

2009-03-23 Thread Jelle Huisman

Hi all,

I try to get text flowing nicely around a figure but since I'm working 
in a columns environment \placefloat related stuff doesn't work. Using 
\starthangaround I get precisely what I want but I need to place figures 
to the right instead of to the left. I modified the definition for 
\starthangaround (from cont-new.tex) but I'm afraid I don't understand 
enough of it to get it working, anyone who can help?


\starttext
\def\startmyhangaround
 {\noindent\bgroup
  \dowithnextbox
{\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
 \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}%
 \getboxheight\scratchdimen\of\box\nextbox
 \getnoflines\scratchdimen
 \nextboxdp\strutdp
 \nextboxht\strutht
 \hangindent\nextboxwd
 \hangafter-\noflines
 \rlap{\flushnextbox}\ignorespaces}
  \hbox}
\startcolumns[n=2,balance=yes]
\dorecurse{2}{\input tufte \par}
\startmyhangaround{\externalfigure[cow]}% figure placement is right but,
\input tufte % this 
text needs to start left...

\stophangaround
\stopcolumns
\stoptext

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] hangaround in right side of column?

2009-03-23 Thread Jelle Huisman

Wolfgang Schuster wrote:

Am 23.03.2009 um 18:27 schrieb Jelle Huisman:


Hi all,

I try to get text flowing nicely around a figure but since I'm 
working in a columns environment \placefloat related stuff doesn't 
work. Using \starthangaround I get precisely what I want but I need 
to place figures to the right instead of to the left. I modified the 
definition for \starthangaround (from cont-new.tex) but I'm afraid I 
don't understand enough of it to get it working, anyone who can help?



Thanks, Wolfgang! That's precisely what I needed.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with two columns on a page

2009-03-13 Thread Jelle Huisman

Hans Hagen wrote:
the problem is that the paragraph is larger than two columns and 
that's tricky to handle without too much messing around (i'll redo the 
balancer in mkiv once i've arrived at it; i see where the catch takes 
place but i'd rather not touch the mkii code now)


so, what you can do is trigger the otr before columns end

add \penalty\outputpenalty just before \stopcolumns

(ok, might hav eother side effects 


It does indeed not do what I expected. One final try: is there some sort 
of setting for the number of lines allowed in a column that triggers the 
OTR, so that I could tweak that? Or is it hard coded and will it break 
everything?


Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with two columns on a page

2009-03-13 Thread Jelle Huisman

Hans Hagen wrote:

Jelle Huisman wrote:

Hans Hagen wrote:
the problem is that the paragraph is larger than two columns and 
that's tricky to handle without too much messing around (i'll redo 
the balancer in mkiv once i've arrived at it; i see where the catch 
takes place but i'd rather not touch the mkii code now)


so, what you can do is trigger the otr before columns end

add \penalty\outputpenalty just before \stopcolumns

(ok, might hav eother side effects 


It does indeed not do what I expected. One final try: is there some 
sort of setting for the number of lines allowed in a column that 
triggers the OTR, so that I could tweak that? Or is it hard coded and 
will it break everything?


where did you put the penalty? 


Right before \stopcolumns, as you suggested.

\starttext
\showgrid

\startalignment[center] AA \stopalignment\blank
\startcolumns[n=2,balance=yes]
%\dorecurse{40}{a a a a a a a a a a a a a a a a a a a a a } %  this works
\dorecurse{42}{a a a a a a a a a a a a a a a a a a a a a } %  this 
pushes columns (BB) to the next page

\penalty\outputpenalty
\stopcolumns

\startalignment[center] BB \stopalignment\blank
\startcolumns[n=2,balance=yes]
\dorecurse{100}{b b b b b b b b b b b b b b b b b b b b }

\stopcolumns

\stoptext


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with two columns on a page

2009-03-13 Thread Jelle Huisman

Hans Hagen wrote:

\starttext
\showgrid
\startalignment[center] AA \stopalignment\blank
\startcolumns[n=2,balance=yes]
%\dorecurse{40}{a a a a a a a a a a a a a a a a a a a a a } %  this 
works
\dorecurse{42}{a a a a a a a a a a a a a a a a a a a a a } %  this 
pushes columns (BB) to the next page

\penalty\outputpenalty
\stopcolumns
\startalignment[center] BB \stopalignment\blank
\startcolumns[n=2,balance=yes]
\dorecurse{100}{b b b b b b b b b b b b b b b b b b b b }


\penalty\outputpenalty


\stopcolumns
\stoptext 


The B columns still start at the seond page :-(

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] problem with two columns on a page

2009-03-12 Thread Jelle Huisman

Hi,

I'm typesetting a dictionary using \startcolumns[n=2,balance=yes] to get 
balanced columns. I have 26 balanced columns with simple headers in 
between and a lot of situations with two columns on one page. (see 
example). As long as the number of lines of the first columns (AA) is 
fewer than a certain value around 20 the next columns (BB) will be 
placed on the same page, but if there are more lines from the first 
columns they push the second columns to the next page. Is there a way to 
control this behavior, I would like to be able to keep this second 
columns starting on this page even if there are only 5 lines of text 
available for it. (using MkII)


\starttext
\showgrid

\startalignment[center] AA \stopalignment\blank
\startcolumns[n=2,balance=yes]
\dorecurse{40}{a a a a a a a a a a a a a a a a a a a a a } %  this works
%\dorecurse{42}{a a a a a a a a a a a a a a a a a a a a a } %  this 
pushes columns (BB) to the next page

\stopcolumns

\startalignment[center] BB \stopalignment\blank
\startcolumns[n=2,balance=yes]
\dorecurse{100}{b b b b b b b b b b b b b b b b b b b b }
\stopcolumns

\stoptext

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] question about rulethickness

2008-12-08 Thread Jelle Huisman
Hi all,

It looks like rulethickness can only be applied to all 4 sides of a cell 
all at once, or is there a way to specify the thickness of 
left|right|top|bottom? As the example shows I get a thicker frame around 
the 2 rows, but I want to use the normal frame thickness inside the cells.

\starttext
\setupTABLE[r][1,2][rulethickness=1pt]
\bTABLE
\bTR\bTD[nc=3] long  text \eTD\eTR
\bTR\bTD text \eTD\bTD text \eTD\bTD text \eTD\eTR
\bTR\bTD even  \eTD\bTD more \eTD\bTD text \eTD\eTR
\eTABLE
\stoptext

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columnset running into footer when using \setupheader[state=high]

2008-11-26 Thread Jelle Huisman
Jelle Huisman wrote:
 % columnset running into footer area
 \definelayout[1][]
 \setupheader[state=high]
 \definetext[footerpagenumber][footer][pagenumber]
 \setuphead[chapter][page=yes,header=high,footer=footerpagenumber,number=no,align=middle]
 \definecolumnset[columnl][n=2]
 \showgrid \showframe
 \starttext
 \chapter{One}
 \startcolumnset[column]
 \dorecurse{10}{\input knuth}
 \stopcolumnset
 \stoptext

 Looking in the mail archive it looks like this is an old problem (see: 
 http://archive.contextgarden.net/message/20060516.092742.d455b795.en.html 
 ) but I'm wondering about a solution. Any thoughts?

One way around this is to use \setupcolumnsetlines[][][] to balance the 
columns. With a 1200 page publication: no fun.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columnset running into footer when using \setupheader[state=high]

2008-11-25 Thread Jelle Huisman
Hi all,

I have a fairly standard setup with the usual code to move the 
pagenumber to the footer on the first page of the chapter. This works 
fine, except when I place the text in a columnset, in which case the 
columnset on page 2 (and all following pages) runs into the footer area. 
I'm fairly certain that \setupheader[state=high] interferes with way 
columnset counts the number of lines it can fit into each column, 
resulting in columns that run into the footer area. This code shows the 
problem:

% columnset running into footer area
\definelayout[1][]
\setupheader[state=high]
\definetext[footerpagenumber][footer][pagenumber]
\setuphead[chapter][page=yes,header=high,footer=footerpagenumber,number=no,align=middle]
\definecolumnset[columnl][n=2]
\showgrid \showframe
\starttext
\chapter{One}
\startcolumnset[column]
\dorecurse{10}{\input knuth}
\stopcolumnset
\stoptext

Looking in the mail archive it looks like this is an old problem (see: 
http://archive.contextgarden.net/message/20060516.092742.d455b795.en.html 
) but I'm wondering about a solution. Any thoughts?

Thanks.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] no hyphenation over right page break?

2008-10-23 Thread Jelle Huisman
Taco Hoekwater wrote:
 There is only \brokenpenalty :
\brokenpenalty 1
\def\defaultbrokenpenalty {1}
\def\defaultgridbrokenpenalty {1}

 This prevents ConTeXt from breaking any page after any line that ends
 with a hyphen. That is not quite to what you asked, but it is about the
 best that can be done automatically because in TeX, there is no direct
 interaction between the paragraph breaker and the page breaker.

Thanks for this tip. I knew it would not work automatically, but this 
helps at least to detect 'bad' page breaks.

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] picture before \chapter breaking \header \footer setup

2008-10-23 Thread Jelle Huisman
Hi all,

Another question, this time about \headers and \footers. On the first 
page of the chapter I have the page number in the footer and on all 
other pages they are in the header. This works fine, as expected. 
However I have to include an \externalfigure *before* the \chapter 
command and I discovered that I have to use \startcombination because 
otherwise the \chapter moves to the next page. However, when I use 
\startcombination ... etc \chapter is not longer the first thing on the 
page and the special header/footer setup is not triggered (apparently 
\chapter has to come first for that to happen). See sample code:

% sample
\definetext[mychapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=mychapter]
\showframe
\starttext

%\startcombination[1*1]{\externalfigure}{ % uncomment to see problem
\chapter{first}
%}\stopcombination % uncomment to see problem

\dorecurse{20}{\input tufte \relax}
\chapter{second} \dorecurse{20}{\input tufte \relax} % this works as 
expected
\stoptext
% sample

Is it possible to make this work? (maybe an extra \chapter command 
before the combination that triggers the header-footer setup, but that 
is not printed after all?)

Thanks for any help.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] picture before \chapter breaking \header \footer setup

2008-10-23 Thread Jelle Huisman

Taco Hoekwater wrote:
Is it possible to make this work? (maybe an extra \chapter command 
before the combination that triggers the header-footer setup, but that 
is not printed after all?)



I would put the externalfigure in the before= of the chapter head,
maybe wrapped in some form of \doifelse.


I managed to get it working, thanks again Taco. (Once this project is 
finished I'll add stuff like this to the wiki.)


Groeten,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] no hyphenation over right page break?

2008-10-22 Thread Jelle Huisman
Hi all,

In my project I \input a number of text files into a double-column 
layout. One of the layout requests is: no hyphenation over right page 
breaks allowed. I can't think of a way to do this, but I would be happy 
if someone knew a way to prevent hyphenation of the last word of the 
last line in the second column on odd pages. (Yes, I can fix it later, 
but I want to prevent it.) (Still on MkII)

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread Jelle Huisman
Jelle Huisman wrote:
 Maybe I miss something, but it looks there is no rule=on command for use 
 in columnsets? I just want a vertical line between the columns in my 
 columnset, how do I get that?

Answering myself: I have found this solution, using an MP background: 
http://archive.contextgarden.net/message/20080305.203901.d1d3eccf.en.html

%sample%
\definecolumnset[example][n=3,distance=5mm]

\startuseMPgraphic{columnrule}
path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
draw lrcorner p -- urcorner p ;
setbounds currentpicture to p ;
\stopuseMPgraphic

\defineoverlay[columnrule][\useMPgraphic{columnrule}]

\setupcolumnset[example][1,2][background=columnrule]

\setupcolumnsetlines[example][2][1][-26]
\setupcolumnsetlines[example][2][2][-26]
\setupcolumnsetlines[example][2][3][-26]

\starttext

\startcolumnset[example]
\dorecurse{10}{\input knuth}
\stopcolumnset

\stoptext
%/sample%

The only problem is that the height of the columnrule is fixed, which 
doesn't look right with balanced columns :-( Would it be possible to 
force this MPgraphic{columnrule} to use the actual height of the 
balanced columns, instead of going all the way down to the bottom of the 
page regardless of the actual column height? Or should I give up on this 
question? (I'm on MkII/XeTeX for this project, so no lua based solution 
possible.)

Many thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread Jelle Huisman

luigi scarso wrote:

Can you put on the wiki ?


I will do that, but preferably together with an answer to my question...


The only problem is that the height of the columnrule is fixed, which
doesn't look right with balanced columns :-( Would it be possible to
force this MPgraphic{columnrule} to use the actual height of the
balanced columns, instead of going all the way down to the bottom
of the
page regardless of the actual column height? Or should I give up
on this
question? (I'm on MkII/XeTeX for this project, so no lua based
solution
possible.)




Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread Jelle Huisman

Jelle Huisman wrote:

Wolfgang Schuster wrote:
  

\startuseMPgraphic{columnrule}
path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
draw (xpart(urcorner p),ypart(urcorner
p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ;
setbounds currentpicture to p ;
\stopuseMPgraphic



Thanks Wolfgang!, this is precisely what I need. I'll wikify it. (Think 
it's time to learn some MP...)


Oeps, I have found one problem: if there is text before the columnset, 
like a chapter header, the text in the columnset moves down but the 
{columnrule} stays at the top of the page... How can I modify the code 
the make sure that this doesn't happen? See sample:


%sample%
\definecolumnset[example][n=3,distance=5mm]

\startuseMPgraphic{columnrule}
path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
draw (xpart(urcorner p),ypart(urcorner
p)-\the\dimexpr\noflines\lineheight\relax) -- urcorner p ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\defineoverlay[columnrule][\useMPgraphic{columnrule}]

\setupcolumnset[example][1,2][balance=yes,background=columnrule]
\setupcolumnsetlines[example][1][1][-35]
\setupcolumnsetlines[example][1][2][-35]
\setupcolumnsetlines[example][1][3][-35]

\starttext

%\input knuth % - uncomment this to see problem

\startcolumnset[example]
\dorecurse{2}{\input knuth}
\stopcolumnset
\stoptext
%/sample%

Thanks again,

Jelle (MkII/XeTeX)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] rule=on in \columnset?

2008-10-15 Thread Jelle Huisman
Hi all,

Maybe I miss something, but it looks there is no rule=on command for use 
in columnsets? I just want a vertical line between the columns in my 
columnset, how do I get that?

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-29 Thread Jelle Huisman

Jelle Huisman wrote:
When I try to do something with \placefigure I get a floatblocks :  
order disturbed error and no figure placed.
  


Please make a example because this works for me:  


I solved my immediate problem by using a separate layout with a slightly 
bigger text area: the image doesn't float to the next page any longer. 
I'm still curious to know what went wrong, but since my setup is rather 
complicated I need some time to make a good minimal example. (I'll put 
it on my to do list...)


Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-27 Thread Jelle Huisman

Wolfgang Schuster wrote:

Hi Hans,

Is there a way to do this [force] with \externalfigure in a macro  
def like:


\def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2] 
[width=#3mm]}}}


When I try to do something with \placefigure I get a floatblocks :  
order disturbed error and no figure placed.



Please make a example because this works for me:
  


Sorry no time now, but I'll try to make an example on Monday.

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] switching (named) layouts?

2008-09-26 Thread Jelle Huisman
Hi,

Is it possible to give a layout definition a name? It would be really 
helpful to be able to say \definelayout[name=one][...]
\definelayout[name=two][...]
and then to be able to say: \setuplayout[one] and somewhere else in the 
document \setuplayout[two]
(This would mirror the way it is possible to switch papersizes.)

Or is there another way to have different collections of \definelayout 
settings that can be switched on or off at specific places? What is the 
best approach?

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] switching (named) layouts?

2008-09-26 Thread Jelle Huisman
Hans Hagen wrote:
 \setuplayout[key-values] % defines global one

 \setuplayout[somename][key-values] % defines named one
Thanks Hans,

Does this mean that \definelayout is not needed?

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] figure placement

2008-09-26 Thread Jelle Huisman
Hi again,

I try to get a picture on a page using 
\externalfigure[name.pdf][width=\textwidth] The image is pushed to the 
next page, even though there is no text on the current page and the 
height of the image itself is smaller then \textheight, so it should 
fit. How do I force image placement *here*?

Thanks again,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] force figure placement on this page

2008-09-26 Thread Jelle Huisman
[it looks like this mail didn't make it to the list, sorry if double posted]

Hi again,

I try to get a picture on a page using 
\externalfigure[name.pdf][width=\textwidth] The image is pushed to the 
next page, even though there is no text on the current page and the 
height of the image itself is smaller then \textheight, so it should 
fit. How do I force image placement *here*?

Thanks again,

Jelle


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-26 Thread Jelle Huisman

Hans Hagen wrote:
I try to get a picture on a page using 
\externalfigure[name.pdf][width=\textwidth] The image is pushed to the 
next page, even though there is no text on the current page and the 
height of the image itself is smaller then \textheight, so it should 
fit. How do I force image placement *here*?



\placefigure[force]{}{}
  


Hi Hans,

Is there a way to do this [force] with \externalfigure in a macro def like:

\def\picturefile 
#1#2#3{{\rotate[rotation=#1]{\externalfigure[#2][width=#3mm]}}}


When I try to do something with \placefigure I get a floatblocks : 
order disturbed error and no figure placed.


Thanks again,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] problem finding files (cygwin-related?)

2008-09-18 Thread Jelle Huisman
Hi all,

I try to help a colleague who has successfully installed ConTeXt using 
the Windows installer and has started typesetting some documents. His 
installation has problems finding files. Using something like \input 
./path/to/file.tex works OK, but this doesn't: 
\externalfigure[./path/to/file.pdf] He gets a figure ./path/to/file.pdf 
can not be found-error, while the same code works OK with my local 
Windows in a VMware virtual machine. He happens to have cygwin installed 
(I don't have it) and I was wondering whether that is the course of his 
problems? How does cygwin interfere with finding the /path/to/the 
picture file? Can I solve this by escaping the path in some special way? 
Or would moving the picture to the current directory help?

Thanks for any suggestions,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem finding files (cygwin-related?)

2008-09-18 Thread Jelle Huisman
Hi Aditya,
 Is he trying to compile the file on cygwin or on cmd.exe? 
Both don't work.
 Was ruby 
 installed for windows or for cygwin? 
For cygwin.
 Was another tex package installed on 
 cygwin which may be interfering with context binaries (cygwin resets the 
 paths when it is started).
No.

We'll try to remove the path to the cygwin commands and install 
standalone ruby for windows.

Any other suggestions?

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem finding files (cygwin-related?)

2008-09-18 Thread Jelle Huisman
Hi Aditya,
 I had a hard time getting texexec to work with cygwin ruby? Although I 
 do not think that finding images is related to ruby. Try installing 
 windows ruby and run everything from cmd.exe. (And check the paths 
 carefully). This way you eliminate cygwin from the picture (It is 
 installed by not in the path).

This is what we did and that solved it.

Thanks!

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \start \stop problem with itemize

2008-09-12 Thread Jelle Huisman
Hi all,

I try to understand why this doesn't work as I expected?

\definestartstop
[bulletlist]
[before={\startitemize[packed]},
after={\stopitemize}]
\definestartstop
[bulletlistitem]
[before={\item},
after={ }]

\starttext
\startbulletlist{
\startbulletlistitem{One}\stopbulletlistitem
\startbulletlistitem{Two}\stopbulletlistitem
\startbulletlistitem{three}\stopbulletlistitem
}\stopbulletlist
\stoptext

I expect:

* One
* Two
* Three

but I get:

! Extra }, or forgotten \endgroup.
l.17 }
  \stopbulletlist
? 
! Emergency stop.
l.17 }
  \stopbulletlist
!  == Fatal error occurred, no output PDF file produced!


Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \start \stop problem with itemize

2008-09-12 Thread Jelle Huisman
Thank you Patrick and Aditya,

I think I'll use \defineitemgroup etc., but I'm still curios what the 
difference is between these two:

\startbulletlist   \startbulletlistitem{One}\stopbulletlistitem   
\stopbulletlist % this works
\startbulletlist{ \startbulletlistitem{One}\stopbulletlistitem 
}\stopbulletlist % this breaks

(I would prefer to use the second version with { }...)

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stay on grid in double column

2008-08-14 Thread Jelle Huisman
Jelle Huisman wrote:
 Hi,

 I have text with a small intro section in a double column environment. 
 The main text is set on a grid and the intro text is slightly off-grid 
 with a \vskip -2pt before and a \vskip 2pt after the intro. As this 
 sample shows this works fine, until the intro text is broken over two 
 columns. In that case the last part of the intro starts on grid (in the 
 second column) and the main text is moved off-grid and does not longer 
 register with the main text in the first column :( [see example code].
 Is there is way to detect and prevent this (automatically)? Can ConTeXt 
 remember that it is setting some text \vskip-ped, while it is breaking 
 the current paragraph over columns? (Basically I want to keep all the 
 B's on the grid and all the A's \vskipped.)

Should I conclude that this is not possible?

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stay on grid in double column

2008-08-14 Thread Jelle Huisman
Hans Hagen wrote:
 ok, you suffered enough ... so, this is for your eyes only because 
 otherwise i get complaints about a non documented feature: 
 \synchronizegrid (we needed it once in a project; it worked ok there but 
 was never tested being that which is why it's still on cont-new)
   
(...)
 the thing with grids is that one can make things work for most cases but 
 normally doc are always more tricky

OK, thank you Hans, this does (almost) what I need and that is enough 
(in this case.)

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] stay on grid in double column

2008-08-13 Thread Jelle Huisman
Hi,

I have text with a small intro section in a double column environment. 
The main text is set on a grid and the intro text is slightly off-grid 
with a \vskip -2pt before and a \vskip 2pt after the intro. As this 
sample shows this works fine, until the intro text is broken over two 
columns. In that case the last part of the intro starts on grid (in the 
second column) and the main text is moved off-grid and does not longer 
register with the main text in the first column :( [see example code].
Is there is way to detect and prevent this (automatically)? Can ConTeXt 
remember that it is setting some text \vskip-ped, while it is breaking 
the current paragraph over columns? (Basically I want to keep all the 
B's on the grid and all the A's \vskipped.)

Thanks, Jelle

% sample code
\definecolumnset[doublecolumn][n=2]
\setupcolumnset[doublecolumn][2][distance=5mm]
\setupbodyfont[12pt]
\setupinterlinespace[line=11pt]
\setuplayout[grid=yes]
\showgrid
\starttext
\startcolumnset[doublecolumn]
\ss \subject{Header}
\dorecurse{2}{\vskip -2pt This text is vskipped. A \dorecurse{40}{ aa 
aa} \vskip 2pt % intro text
This text should stay on the grid. B \dorecurse{270}{ bb bb}} % main 
text should stay on grid
\stopcolumnset
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-16 Thread Jelle Huisman
Wolfgang Schuster wrote:
 You should be switch to MkIV if possible, it is easier to select
 the elements and you don't need different commands for normal
 div elements as environments or as commands.
Problem is that I have to use XeTeX for some special fonts, so I have to 
stay with MkII for this project. (Unless there is a way to mix MkII and 
MkIV that would allow me to use the MkIV xml handling together with the 
MkII/XeTeX back end. I guess that would involve using MkIV (at least for 
the xml bit) but shipping the pages to XeTeX rather then to luaTeX. 
Which is not possible, as far as I know...)

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-16 Thread Jelle Huisman
Wolfgang Schuster wrote:
 What special fonts or features do you use with XeTeX which are not
 possible with LuaTeX.
I need to support Graphite enabled fonts for the rendering of complex 
non-roman scripts [1], Graphite can currently only be used with XeTeX. 
Anyway, I'll reformat my source file to something more readable in MkII. 
In the meantime I'm still interested in ways to mix MkIV xml-support 
into MkII usage or to output from MkIV to XeTeX.

Jelle

[1] http://scripts.sil.org/RenderingGraphite
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-15 Thread Jelle Huisman
Hi again,

I'm working on my xhtml file again but somehow I don't get it... 
Consider this bit of xml:

  body class=dicBody
div class=letHead
  div class=letterA a/div

I want to pickup the A a-bit and put it in a \chapter. I tried a good 
number of variations like this:

\defineXMLargument [div] \chapter{\XMLpar{div}{class=letter}{}}

but this does not work. Any hints to solve (and understand!) this would 
be appreciated! Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-15 Thread Jelle Huisman
Wolfgang Schuster wrote:
 You're misusing the div element for something it is not meant, could
 you use h1 ... elements in your html and map them to ConTeXt's own
 header commands.
Yes, I know that the xhtml is not very nice (if only I could write my 
own xml...) The situation is that I get this file from a customer and I 
want to avoid having to reformat it (for compatibility reasons). That's 
why I try to make it work, but it seems I'm out of luck here... :-(

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-15 Thread Jelle Huisman

Wolfgang Schuster wrote:

Yes, I know that the xhtml is not very nice (if only I could write my
own xml...) The situation is that I get this file from a customer and I
want to avoid having to reformat it (for compatibility reasons). That's
why I try to make it work, but it seems I'm out of luck here... :-(



It's not impossible but a pain to achive with MkII, 
It is a pain indeed, I'll try and see if I can reformat the file a bit. 
Thanks for your comments, they were helpful,


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-09 Thread Jelle Huisman
Wolfgang Schuster wrote:
 Did this come closer to what you want.
   
Almost, however I added xlanguagetag=\let\FormatSpan\bold to get to 
the nested span element and that didn't work. Any suggestions?
 \defineXMLenvironment [span] [class=]
   {\bgroup
\processaction
  [\XMLpar{span}{class}{}]
  [word=\let\FormatSpan\bold,
   defenition=\let\FormatSpan\mono]%
   
xlanguagetag=\let\FormatSpan\bold % - this does not 
work (because it is nested?)
\FormatSpan}
   {\egroup}


 \starttext

 \startXMLdata
 span class=word lang=nldpapa/span
 span class=defenition lang=en
   span class=xlanguagetag lang=enEng/span
   daddy
 /span
 \stopXMLdata

 \stoptext

 You should give us more information too help you, how is \Mywordstyle
 defined because \defineXMLargument can't be nested.
\Mywordstyle is a font switch:
\def\Mywordstyle #1{\switchtobodyfont[GentiumItalics] 
#1\switchtobodyfont[Gentium]}

Thanks again,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-09 Thread Jelle Huisman

Wolfgang Schuster wrote:

\Mywordstyle is a font switch:
\def\Mywordstyle #1 {\switchtobodyfont[GentiumItalics]{#1} 
\switchtobodyfont[Gentium]}



Do you really want a font switch, isn't a style switch enough in your case
from roman to italic and back.
Since I also need to be able to switch to a Non-Roman script I do need a 
font switch here (that's also the reason why I use XeTeX and MKII.) 
Anyway when I use \Mywordstyle inside the FormatSpan like this:


   [\XMLpar{span}{class}{}]
   [word=\let\FormatSpan\Mywordstyle,
defenition=\let\FormatSpan\Mywordstyle,
xlanguagetag=\let\FormatSpan\Mywordstyle]%

the font change is applied to the word and xlanguagetag-items, but 
not to the definition-item!?(see attachment) Any idea why and how to 
solve this? (And it looks like there is some unwanted extra space 
inserted between the word and xlanguagetag as well.)


Jelle


xmltest.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-09 Thread Jelle Huisman
Hans Hagen wrote:
 grep for \XMLmapvalue and \XMLval and so ... faster than processaction
You mean \mapXMLvalue? (can't find \XMLmapvalue...) Time for example.pdf 
again :-)

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-09 Thread Jelle Huisman
Wolfgang Schuster wrote:
 You could also switch between different typescripts. If you really want to 
 relly
 on \switchtobodyfont use it inside of a group because the font switch will be
 local to the group and you go back to the global font after the group.
Thanks Wolfgang, I'll try the typescripts approach.

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] getting inside xhtml / mkii

2008-05-08 Thread Jelle Huisman
Hello,

I want to process have a rather complicated xhtml file with dictionary 
data containing lots of entries like:

span class=word lang=nldpapa/span
span class=defenition lang=en
span class=xlanguagetag lang=enEng /span
daddy/span

I tried to write some code to get the individual data elements into my 
ConTeXt-module, but I didn't succeed. This:

\defineXMLargument [span 
class=word]{\Mywordstyle{\XMLvar{class=word}{}}}

for example fails, it gives all the data within all the different 
span's, whereas I want to select the different data items using the 
span class-attributes (and typeset the different items in different 
ways afterwards). Maybe I miss something obvious, but I would appreciate 
some help to solve this. (BTW: I use MKII for this project)

Thanks,

Jelle

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 14th century music (Mensuralnotation)

2007-10-24 Thread Jelle Huisman

Hans Hagen wrote:
Unbelievable stuff! Byzantine notation!! I never dared to hope that  
all this is available (and even non-commercial) with fonts ...



indeed

how about adding such top level links to the wiki (some font resource page)
I have added the link to the page Fonts by Unicode character range to 
the main Fonts page ( 
http://wiki.contextgarden.net/Fonts#Available_Free_Fonts )


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 14th century music (Mensuralnotation)

2007-10-23 Thread Jelle Huisman
Steffen Wolfrum wrote:
 Hi,

 I'd like to typeset various symbols (as examples included in normal  
 text lines) from musical notation from the 14th century  
 (Mensuralnotation). These symbols can be seen in

 http://www.unicode.org/charts/PDF/U1D100.pdf

 I just have absolutely no idea e.g. which font these symbols support ...

Hi Steffen,

You might want to have a look at this font: 
http://openfontlibrary.org/media/files/Eimai/191 (though I'm not sure 
this font covers all the symbols you need.)

A good resource for finding fonts is: 
http://www.alanwood.net/unicode/fonts.html

HTH,

Jelle


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] merging data from four files in one document

2007-09-20 Thread Jelle Huisman

Hi Aditya,

 What is the best way to
automate this process?



Write a script in your favourite language to create the 420 natural 
tables. 

I think it's time to make Lua my favorite language :-)

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] merging data from four files in one document

2007-09-19 Thread Jelle Huisman
Hi all,

I try to merge data from four files in one document. The source files 
are simple text files, each with 420 numbered lines of text. I have 
created a simple natural table with cells for the different pieces of 
data. I would like to make one document with 420 tables, each with the 
right data from the four source files (so Table 1 with data from line 1 
from file One and line 1 from file Two and line 1 from file Three and 
line 1 from file Four, and next Table 2 with data from line 2 from file 
One and line 2 from file Two et cetera...) What is the best way to 
automate this process?

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figures using xetex

2007-09-10 Thread Jelle Huisman
Hi Andrea,
 I saw that many tmp .rli files are generated. Apart form the 
 increasing compiling time, the first problem is that I had to run 
 several times texexec --xtx in order to generate them all. Is it normal?
This (many .rli files) is normal if you use \externalfigure in an older 
version of ConTeXt, but ...
 Most important it behaves strangely with layers using pdfs figures.  
 Color is not applied, or typically they are not shown.
... if you use the special command \XeTeXpicfile or (in this case) 
\XeTeXpdffile everything should be OK. I'm not sure how this interacts 
with layers (not tested).

HTH,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Displayed formula

2007-07-19 Thread Jelle Huisman
 I desperately need your help ... why does the following code not
 produce my formula?

 \starttext
 \startformula
 [-iH(A),-iH(B)]=-iH([A,B])
 \stopformula
 \stoptext

Hi Olivier,

I don't know what ConTeXt is doing behind the scenes, but I found two  
solutions:

\starttext
\startformula
{[-iH(A),-iH(B)]=-iH([A,B])}
\stopformula
\startformula
\ [-iH(A),-iH(B)]=-iH([A,B])
\stopformula
\stoptext

HTH,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pragma?

2007-07-04 Thread Jelle Huisman
 Hallo
Hallo Wolfgang,

 I can not get pragma ade website any longer:

Try pragma-ade.nl

Gr,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] question about macro's

2007-06-28 Thread Jelle Huisman
Hello,

I try to create a macro for processing a document tagged with some 
non-standard tags, like:

\TAGc The title of this chapter
\TAGs Here starts a new section with a lot of bla bla bla text. More bla 
bla. And yet another piece of bla bla.

To process the tags I have defined some macro's, like this one:

\def\TAGc#1
{\dosomething{#1} % the \dosomething has to do with fonts etc.
\dosomethingelse}

However, when I typeset the document this macro only works with the 
first word of the line tagged with \TAGc. Is it possible to tell the 
macro to process the whole line? (changing my source document is no option.)

Many thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about macro's

2007-06-28 Thread Jelle Huisman

Hello Aditya,

Do you have a blank line between the two lines? If so, see below.
No, I don't have a blank line. (well, I can change my test file, but 
that is not the solution I am looking for.)

To process the tags I have defined some macro's, like this one:

\def\TAGc#1
{\dosomething{#1} % the \dosomething has to do with fonts etc.
\dosomethingelse}

However, when I typeset the document this macro only works with the
first word of the line tagged with \TAGc. Is it possible to tell the
macro to process the whole line? (changing my source document is no option.)



Have a look at \dowithpargument. 
Thank you for this hint and your example. I see in the source browser 
that there is also an \dowithwargument, so I think I am looking for 
something like \dowithlargument (with l for line). Any idea's how to do 
that?


Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gwTeX problem

2007-06-07 Thread Jelle Huisman



On the other hand, it would be convenient if we could quickly upgrade
to the latest ConTeXt on a Mac.
ctxtools --update
gives me
unable to fetch cont-tmf.zip



same here (OSX 10.4.9)
Maybe you are behind a firewall?, we discussed this on the list earlier 
this year. (BTW upgrading will break XeTeX :-( but maybe you don't mind.


Gr,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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] ConTeXt release 2007.03.19

2007-03-22 Thread Jelle Huisman
 I'm afraid there still seems to be a problem with the XeTeX
 engine ... try to compile the following (I guess you can choose
 whichever OpenType font you have on your machine):

[snip]

 The same file used to compile with the January release of ConTeXt
 (2007.01.12) ... perhaps something has changed in the way how one has
 to specify the desired OpenType font?

Same problem and same question here. Remaking format files doesn't  
solve the problem. :-(

Jelle

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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-20 Thread Jelle Huisman

Op 20-mrt-2007, om 11:32 heeft Taco Hoekwater het volgende geschreven:

 Hi all,

 I am pleased to announce that the new ConTeXt release from Hans Hagen
 can be downloaded as of now from the Pragma ADE website or one of its
 mirrors.

Hello,

I try to update ConTeXt using ctxtools --updatecontext but CtxTools  
is unable to fetch cont-tmf.zip (even though I was able to download  
that file from the Pargma website.) Is my Ctxtools broken? or is  
there an alternative way to update ConTeXt (I use the MacTex  
distribution)?

Thanks,

Jelle


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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-20 Thread Jelle Huisman

Op 20-mrt-2007, om 13:46 heeft Lutz Haseloff het volgende geschreven:

 Hi Jelle,

 do you have to use a Proxy?

Hello Lutz,

No, as far as I know I don't use a Proxy. But I will try again when I  
am at home (other network, other provider...)

Greetings,

Jelle

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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-20 Thread Jelle Huisman
Op 20-mrt-2007, om 15:02 heeft Thomas A. Schmitz het volgende  
geschreven:

 I must admit that I always do this manually, I never use ctxtools. If
 you've already dlded the file, just unzip it. From the command line:

Of course I can do it manually, but since there is a tool for it, why  
not use it?

Greetings,

Jelle

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


[NTG-context] wiki link doesn't work

2006-03-17 Thread Jelle Huisman
Hello,

The 'Web resources' page on the wiki has a link to an interface that  
can be used to generate sheets with labels (stickers) or other grid  
oriented content. It links to http://www.pragma-ade.com/labels.html,  
but that link doesn't work. Is this interface available elsewhere, or  
can I find the TeX-source somewhere in the ContextGarden?

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