Re: [NTG-context] question about mplib/mkiv

2008-04-25 Thread Thomas Schmitz
On Thu, 24 Apr 2008 08:38:51 +0200
  Taco Hoekwater [EMAIL PROTECTED] wrote:

 
 That error indeed comes from mplib, but from the 
overflow test in
 realloc(), not the memory array overflow function. You 
get this
 error when you attempt to allocate more than 2^31 bytes. 
Since that
 clearly should not happen, there is a bug somewhere in 
MPlib. But
 I'll need your source to dig it out. (likely you do 
something we
 have never tested yet).
 

Thanks Taco. I will try to produce a minimal example this 
afternoon/evening. The problem occurs with one of my 
presentation modes, but I have other documents with the 
same module which don't trigger the error, so I'll have to 
spend some time debugging.

Thomas
___
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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Thomas Schmitz

On Thu, 2 Jun 2011 11:39:46 +0200
 Piotr Kopszak kops...@gmail.com wrote:

Dear list,

I am beginning a rather tedious documentation project 
and will most
  probably end up with DocBook. The fact is I haven't 
used it for any
  serious work for about 10 years. Docbook In ConText 
haven't been
  updated since 2003. Does it mean it's so perfect or 
instead rather
  obsolete? Could you recommend other approaches which 
work
  out-of-the-box (or almost). Obviously I would prefer 
ConTeXt based
  solutions. DocBook is not mandatory in fact, I would 
happily learn  other
  documentation system. Main prerequisite is utf-8 
output at least in
  pdf and html and sensible defaults (this time I don't 
want to be a

  typographer, nor I want to fiddle with structure).

  Best

  Piotr
  --
  http://okle.pl


Difficult to say of course without knowing the complexity 
of your documents, but just a few thoughts: if you're 
referring to Simon Pepping's Docbook in ConTeXt, this 
was targeted at mkii, so it will probably still work, but 
could be considered obsolete. xml support in mkiv has 
changed a lot, but is much more powerful and flexible. 
It's fairly easy to write a stylesheet to translate your 
xml for typesetting, so I would look at the relevant xml 
documentation (like xml-mkiv.pdf) and make a fresh start. 
You can always refine and elaborate things as you go, and 
if you really hit a wall, there's the list.


Thomas
___
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] footnotes: conversion = numberconversion

2011-06-20 Thread Thomas Schmitz

Hi Hans,

since it took me a while to figure this out: could you 
please change the occurrences of conversion in 
strc-not.mkiv to numberconversion? conversion doesn't do 
anything, and it was a bit frustrating to see the very 
examples from the source were not working.


Thanks, and best

Thomas
___
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] footnotes: conversion = numberconversion

2011-06-20 Thread Thomas Schmitz

On Mon, 20 Jun 2011 08:38:34 +0200
 Thomas Schmitz tschm...@uni-bonn.de wrote:

Hi Hans,

since it took me a while to figure this out: could you 
please change the occurrences of conversion in 
strc-not.mkiv to numberconversion? conversion doesn't 
do anything, and it was a bit frustrating to see the very 
examples from the source were not working.


Thanks, and best

Thomas


Oh, and while I'm at it: this looks like a bug to me:

\starttext

This is just a test!{\setupfootnotes[numberconversion=set 
2]\footnote{With a footnote attached.}}


This is just a test!\footnote{With a footnote attached.}

\stoptext

The first note has * as a marker, the second is numbered 
2, but it should be 1.


All best

Thomas
___
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] footnotes: conversion = numberconversion

2011-06-20 Thread Thomas Schmitz

On Mon, 20 Jun 2011 14:30:13 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 20.06.2011 um 08:42 schrieb Thomas Schmitz:


Oh, and while I'm at it: this looks like a bug to me:

\starttext

This is just a 
test!{\setupfootnotes[numberconversion=set 
2]\footnote{With a footnote attached.}}


This is just a test!\footnote{With a footnote attached.}

\stoptext

The first note has * as a marker, the second is numbered 
2, but it should be 1.


When you need a footnote with a different symbol then 
create a new one.


Wolfgang


How? I can only see the option of creating a whole new set 
of footnotes, which is not at all what I want:


\definenote[Ack][numberconversion=set 2,
 rule=off]

\setupfootnotes[rule=off]

\starttext

This is just a test!\Ack{With a footnote attached.}

This is just a test!\footnote{With a footnote attached.}

\stoptext

How do I get rid of the vertical space between both sets? 
And how do I make sure that the notes are printed in the 
right order?


Thomas
___
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] footnotes: conversion = numberconversion

2011-06-20 Thread Thomas Schmitz

On Mon, 20 Jun 2011 15:39:21 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:

How? I can only see the option of creating a whole new 
set of footnotes, which is not at all what I want:


The following is the best i can do (to change the symbol 
each \MyNote you need a counter for it):


\define[1]\MyNote
 {\bgroup
  \savenumber [footnote]%
  \resetnumber[footnote]%
  \setupnote[footnote][numberconversion=set 2]%
  \footnote{#1}%
  \restorenumber[footnote]%
  \egroup}

\starttext

This is just a test!\MyNote{With a footnote attached.}

This is just a test!\footnote{With a footnote attached.}

\stoptext

Wolfgang

Thanks Wolfgang! This starred footnote is often used for 
acknowledgments etc. in articles, and it's always the 
first note, often appended to the title. So I come back to 
my first attempt: this does work, and unless one wants 
unusual symbols in the middle of ordinary footnotes, seems 
like the easiest solution:


\setupfootnotes[rule=off]

\starttext

This is just a test!{\setupfootnotes[numberconversion=set 
2]\footnote{With a footnote 
attached.}\resetnumber[footnote]}


This is just a test!\footnote{With a footnote attached.}

\stoptext

Thomas
___
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] where to place \index (again)

2011-06-26 Thread Thomas Schmitz

On Sun, 26 Jun 2011 21:29:47 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 26.06.2011 um 21:13 schrieb Steffen Wolfrum:

concerning the character protrusion: that looks like a 
bug so if we can have a small example demonstrating it 
... esp the disappearing character is weird


Sure, the minimal example that I posted already twice 
shows exactly this case: 
The line before an indexed word appears to be missing 
one character at the end.



You should try to make shorter examples ;)

\setuplayout[width=6.3cm]\showframe
%\let\forcecolorhack\relax
\starttext
This is a short sentence to check \index{test}the 
\tex{index} command.


This is another sentence for the test\index{test}.
\stoptext

The problem when you put the \index command before a 
word is that
it can end in a visible space at the end of the previous 
line.


Wolfgang

Thanks, Wolfgang. Just to confirm: yes, this short test 
does indeed show exactly the effects I was referring to. 
So question to Taco: could some lua trickery somehow get 
around these nasty effects?  Because they really make 
finishing a long project somewhat difficult...


Thomas
___
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] footnotes, blank

2011-07-01 Thread Thomas Schmitz

Hi all,

two questions here:

1. Is it possible to define a blank so that the paragraph 
after it will not be indented (in a document which 
otherwise does have indents)? I looked at \defineblank and 
the new \definevspacing, but couldn't find anything 
appropriate.


2. I want footnotes placed at the bottom of the page so 
that the vertical place is filled (so with a flexible 
vertical space between text and notes), but on the last 
page of every chapter, the publisher prefers the footnotes 
right below the text, not at the bottom of the page. Is 
this feasible?


Thanks and all best

Thomas
___
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] footnotes, blank

2011-07-01 Thread Thomas Schmitz

On Fri, 1 Jul 2011 10:04:22 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 01.07.2011 um 09:46 schrieb Thomas Schmitz:


Hi all,

two questions here:

1. Is it possible to define a blank so that the 
paragraph after it will not be indented (in a document 
which otherwise does have indents)? I looked at 
\defineblank and the new \definevspacing, but couldn't 
find anything appropriate.


You can use the fancybreak module for this.


Ah yes, I see! Thanks Wolfgang, I will use that.

2. I want footnotes placed at the bottom of the page so 
that the vertical place is filled (so with a flexible 
vertical space between text and notes), but on the last 
page of every chapter, the publisher prefers the 
footnotes right below the text, not at the bottom of the 
page. Is this feasible?



Endnotes at the end of each chapter are easy when you 
use start/stopchapter because you can flush them with the 
“aftersection” key.


No, that's not what I was asking. I want footnotes on 
every page, just the ones on the last page should be moved 
up to the end of the text, not down to the bottom of the 
page. I tried \setupfootnotes[location=high], but when I 
enable it for the entire document, it wreaks havoc 
(footnotes running off the page instead of breaking, very 
inconsistent spacing). So also tried to enable 
location=high manually just for the last paragraph of 
every chapter (and putting this paragraph into a group), 
but that doesn't seem to change anything.


Thomas
___
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] footnotes, blank

2011-07-01 Thread Thomas Schmitz

On Fri, 1 Jul 2011 10:44:35 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:






You have to set “location=page” at the begin of each new 
chapter.


\setuphead
 [chapter]
 [beforesection={\page % Necessary!
 \setupnote[footnote][location=page]},
   aftersection={\setupnote[footnote][location=high]}]

As always, you never cease to wow me - excellent, this 
looks very good! Thanks a bunch, and all best!


Thomas
___
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] Continuous chapter numbering without prefixes in documents with parts

2011-07-01 Thread Thomas Schmitz

On Fri, 1 Jul 2011 15:02:22 +0200
 Julian Becker becker.jul...@gmail.com wrote:
Does anybody know how to implement a continuous 
numbering of chapters in

documents with several parts?

More specifically: how can I achieve the following 
numbering scheme (with

unprefixed chapter numbers):
I First part
1 Chapter one
2 Chapter two
II Second part
3 Chapter three


I tried (unsuccessfully) the following:

\setuphead[part][placehead=yes]
\starttext
\part{First part}
\chapter{Chapter one}
\chapter{Chapter two}
\part{Second part}
\chapter{Chapter three}
\stoptext

The here result is something like:
First part
1.1 Chapter one
1.2 Chapter two
Second part
2.1 Chapter three


I tried to get rid of the chapter prefixes by putting
\setuphead[chapter][prefix=no]
but that had no effect whatsoever.

Any ideas?


Yes: search the list; the same question was asked three 
weeks ago, together with a solution: 
http://archive.contextgarden.net/message/20110619.234245.2e8ee926.en.html


Thomas
___
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] Continuous chapter numbering without prefixes in documents with parts

2011-07-01 Thread Thomas Schmitz

On Fri, 1 Jul 2011 15:33:07 +0200
 Julian Becker becker.jul...@gmail.com wrote:
Thank you Thomas, and sorry for not having performed a 
proper search

priorly.
Still, the thread you refered me to only provides half 
of what I need (if I

didn't miss anything):

I added the line:
\setuphead[chapter][chaptersegments=chapter]
which indeed got rid of the chapter number prefix.
Still,  the chapter numbering gets reset in each new 
part. How can I avoid

that?


Excuse me for sounding a bit grumpy, but please make
complete minimal examples. Which means they should be
compilable, see
http://www.minimalbeispiel.de/mini-en.html. Here is one
such example which does what you want (and this solution 
could also be found in the list archive):


\definestructureresetset[default][0,0][1]

\setuphead[part][sectionresetset=default]

\setuphead[part][placehead=yes]

\setuphead[chapter][sectionsegments=chapter,ownnumber=yes]

\starttext

\startpart[title=First part]
\startchapter[title=Chapter one]
\input tufte
\stopchapter
\startchapter[title=Chapter two]
\input tufte
\stopchapter
\stoppart
\startpart[title=Second part]
\startchapter[title=Chapter three]
\input tufte
\stopchapter
\startchapter[title=Chapter four]
\input tufte
\stopchapter
\stoppart
\stoptext

Thomas
___
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] header labels

2007-03-25 Thread Thomas Schmitz
On Fri, 23 Mar 2007 12:45:37 +0100
  Wolfgang Schuster [EMAIL PROTECTED] 
wrote:
 2007/3/19, Thomas A. Schmitz 
[EMAIL PROTECTED]:


 On Mar 19, 2007, at 4:46 PM, Aditya Mahajan wrote:

  (Untested)
 
  \setuplabeltext[de][section=]
 
  Aditya

 Nice try, but no cigar :-) Even with 
\setuplabeltext[deo][...], it
 still gobbels the periods after the converted numbers. 
Strange...
 Thanks for your help, Aditya!

 Thomas
 
 
 Hi Thomas,
 
 there problem is related to all languages that are 
defined as synonyms
 for other languages, this means the same happens for uk 
and us.
 
 I found a solution by changing the definition from 
\defaultlanguage in
 lang-ini.tex.
 Add the next macro to your document.
 
 \def\defaultlanguage#1%
  {\ifcsname\??la#1\c!default\endcsname
 #1%
   \else
 \csname\??la#1\c!default\endcsname
   \fi}
 
 Wolfgang

Hi Wolfgang,

thanks a lot! We're sitting in Epen right now; Mojca is 
giving a presentation, so I'll have to wait a bit to look 
into your solution, but the explanation makes perfect 
sense.

Thanks, and best wishes

Thomas


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


[NTG-context] latest current

2010-08-02 Thread Thomas Schmitz

Hi all,

for some reason, hyphenation for ancient Greek isn't
working in the latest current. test file:

\usetypescript[type-gentium]
\setupbodyfont[gentium,12pt]

\starttext

\hyphenatedword{allegorical}

{\fr\hyphenatedword{détoxication}}

{\agr\hyphenatedword{#966;#953;#955;#959;#963;#959;#966;#959;#973;#956;#949;#957;#945;}}

\stoptext

I looked at lang-grk.tex but couldn't find anything
obvious, and according to the log file, all languages are
loaded,

mkiv lua stats : loaded patterns   - agr:gr:31
en::2 fr::15


so I'm a bit puzzled.

Thomas

___
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] latest current

2010-08-02 Thread Thomas Schmitz
Thanks Hans. Here's another small problem I have noticed 
which I think started with the latest current and is still 
there in the beta: aligning footnumbers numbers (instead 
of footnote text) at the left margin as described in the 
wiki doesn't work any longer. Example:


\setupnote[footnote][margindistance=0em,command=\myfootnotecommand]
\setupnotedefinition[footnote][location=left,hang=1]

\def\myfootnotecommand#1{\hbox to 1.5em{#1}}

\showframe

\starttext

\input{tufte}\footnote{Look, a footnote}

\stoptext

(no pesky utf characters this time).

All best

Thomas
___
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] latest current

2010-08-02 Thread Thomas Schmitz

On Mon, 02 Aug 2010 21:21:00 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:




You don't need \setupnote:

\setupnotedefinition[footnote][location=serried,hang=1,width=1.5em,headalign=flushleft]


Ah I see, there's now support in the core. That's great!




\input{tufte}


This is LaTeX syntax.

Oops. Won't happen again!

Thanks

Thomas
___
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] footnotes again

2010-08-03 Thread Thomas Schmitz

Hi all,

I'm sorry I have to ask again about footnotes setup. I 
misunderstood the
style that our publisher wants. Maybe it's easiest when I 
do a bit of ASCII

art (will only work with a fixed-width font):

| texttexttexttexttex |
| textexttexttexttext |
| |
|  9 footnote 9, more |
|than one line.   |
| 10 footnote 10. |

So: the footnote numbers in the footnotes are typeset in a 
box. This box is
just big enough to hold a three-digit footnote number. Its 
left edge is
flush with the text area. Within this box, the note number 
is aligned
flushright. The footnote text itself is one block; this 
block is indented a
fixed amount: the publisher wants all indentations (normal 
paragraphs,

blockquotes, footnotes) to be identical; let's say 16pt.

I played with the parameters of \setupnotedefinition and 
\setupfootnotes
that Wolfgang taught me yesterday, but I just can't find 
the right

combination.

Will wikify!

All best

Thomas
___
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] \qedhere equivalent in ConTeXt

2010-08-07 Thread Thomas Schmitz

On Sat, 7 Aug 2010 10:54:52 +0200
 Emanuele Sacco emanuelesa...@gmail.com wrote:

Thank you very much, but still does not work to me..

%%%

\definedescription
[proof]
[text=Proof.]

\setupdescriptions
[proof]
[width=broad,
 distance=0.5em,
 location=serried,
 headstyle=it,
 indentnext=yes,
 indenting=yes,
 closesymbol=\mathematics{\square},
 closecommand=\ifmmode\eqno\else\wordright\fi]



\starttext

\startproof
Questa \`e una dimostrazione
\startformula
a=b.
\stopformula
\stopproof

\stoptext

%%


This works with mkiv, but not with mkii. Wolfgang couldn't 
know which you were using since your replies were always 
rather short on details.


Thomas
___
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 cross references

2010-08-07 Thread Thomas Schmitz

On Sat, 7 Aug 2010 14:22:32 +0200
 Robert Blackstone blackstone.rob...@gmail.com wrote:

Hi all,
I would like to get some advice concerning a problem, or 
rather a

nuisance, with internal references.
I am making a longish document with several chapters, 
all of which are
separate .tex-files to be input into the main file, 
which contains all
setups and the skeleton of the document. There are a 
number of cross

references between elements that sit in different files.
With some simple test files I checked that this worked 
and that I use

the proper commands.
However, with the real files it does not work, that is, 
not
immediately. Even after 4 or 5 runs I still get ?? 
instead of page
numbers, and then suddenly things are OK. I have no idea 
what happened
between failure and success and I have no idea what I 
have to do to

get the proper result immediately.
It is a nuisance because I cannot be sure the thing 
worked till I have
checked the entire output after each run, which is 
rather time

consuming.
I’m using the latest version of TeXShop with the 
minimals of july 20,

but older versions show the same symptoms.
Thanks for any advice.

Robert Blackstone

Difficult to analyze, of course, but one thing that 
occurred to me: are you using a proper project structure, 
with the chapters as components, as described in chapter 
2.3 of the manual, or just using \input for the chapters? 
Right now, I'm editing a book (~ 300 pages) with 
cross-references between chapters, and I don't see any of 
the problems you describe.


Btw, the version of TeXshop is irrelevant to the problem, 
but you may want to update your minimals.


Thomas
___
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] Bib Module: \cite can kill spaces

2010-08-15 Thread Thomas Schmitz

On Sun, 15 Aug 2010 19:14:53 +0200
 Andreas Schneider ak...@gmx.de wrote:

Hi,

I don't know how exactly it happens, but in the attached 
example the last
footnote is missing a space before the inserted \cite. 
In my real document
that happens a lot and kills the layout. Anything I can 
do to fix that?


Best Regards,
Andreas.


Ugly workaround:

\def\prefix{Vgl. \strut} % or \null

But I have no idea what's happening here, maybe Hans or 
Taco can come up with a real solution. 
\cite[alternative=data] seems to eat any horizontal space 
before it; I don't know if this is a bug or a feature.


Thomas
___
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] \setuphead

2010-10-18 Thread Thomas Schmitz

On Mon, 18 Oct 2010 10:00:40 +0200
 Herbert Voss herbert.v...@fu-berlin.de wrote:


I know ...
I want to know if the wiki text is outdated or not.
However, I am looking for an example where 
deeptextcommand

is really needed

Herbert


I get an error when I compile your code in mkii; 
deeptextcommand is needed. It's only in mkiv that your 
code works, AFAICS. So the wiki is not outdated but 
cautious.


Thomas
___
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] TEI XML

2010-11-07 Thread Thomas Schmitz

On 7 Nov 2010 19:19:11 +0100
 Daniel Grycman daniel.gryc...@rub.de wrote:

Hi list,

used the example on the wiki 
(http://wiki.contextgarden.net/TEI_xml), but

I didn't get any correct output. I used Mark IV.
I want to use TEI for an project and use ConTeXt for the 
specific output.

Is it a good choice?

Daniel 


If you want a meaningful answer, you must give meaningful 
information. I didn't get any correct output. is not 
meaningful information. All I can reply to this is works 
here.


Thomas
___
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] XML pretty printer?

2010-11-13 Thread Thomas Schmitz

On Sat, 13 Nov 2010 19:39:31 +0100
 Renaud AUBIN au...@nibua-r.org wrote:

Hi folks,

My custom XML pretty printer: 
http://www.nibua-r.org/gitsnap/pret-xml/

A direct link to the sample:
http://www.nibua-r.org/gitsnap/pret-xml/pret-xml_test.pdf

I'm sorry, the lua code is quite bad but I will improve 
it as soon as I

will figure out how to implement functors…

Feel free to improve…

Renaud

Pardon my ignorance, but where in your test file is your 
pretty printer invoked? Aren't the colors you get the 
default ConTeXt colors?


Thomas

___
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] XML pretty printer?

2010-11-13 Thread Thomas Schmitz

On Sat, 13 Nov 2010 21:32:09 +0100
 Renaud AUBIN au...@nibua-r.org wrote:
The local pret-xml.lua is used when running context on 
pret-xml_test

from the basedir.
To get the original pret-xml.lua and check the 
differences, just rename

pret-xml.lua to pret-xml.new and re-run context…
You should see some differences between the good 
ol'pret-xml and the
draft of mine… I don't remember if that's due to my 
configuration or if

that's the default behavior…

The color used is indeed the default one… See my last 
post

[NTG-context] Dummy buff-ver.mkiv question.

Renaud


Ah OK, now I see. But I don't think this is a good idea - 
creating your own file with the same name as files in the 
core. You should at least add a t- to the name so people 
see it's a third party addition.


Thomas
___
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 beta

2010-11-26 Thread Thomas Schmitz

On Fri, 26 Nov 2010 22:03:55 +0100
 Willi Egger w.eg...@boede.nl wrote:

Hi Hans,

just was busy to update Context

There is a missing file error during updating: v-mp

Willi


Hmm, this one appears to there:

v-default.lua
v-default.mkiv
v-escaped.lua
v-escaped.mkiv
v-lua.lua
v-lua.mkiv
v-mp.lua
v-mp.mkiv
v-nested.lua
v-nested.mkiv
v-tex.lua
v-tex.mkiv
v-xml.lua
v-xml.mkiv

The one I'm missing here is

! I can't find file `v-parsed-xml.mkiv'.
to be read again
   \relax

Thomas
___
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] interactive chapter titles in margin

2010-12-01 Thread Thomas Schmitz

Hi all,

for my document setup, I would like to have interactive
chapter headings, and I want the chapter titles in the
margins only; they should not interfere with normal
indentation, spacing, etc. So far, I haven't really found
a solution. Here's a small example (with some code from
the wiki):

\defineinmargin [ChapterInMargin] [outer] [normal]
[distance=0.3em]

\setuphead[chapter][style=bold,
number=no,
expansion=yes,
alternative=text,
distance=0pt,
indentnext=yes,
before={\blank[0pt]},
after={\blank[0pt]},
command=\MyChapter,
page=no]

\def\MyChapter#1#2{\ChapterInMargin{#2}}

\setupinteraction[state=start]
 
\placebookmarks[chapter][all][force=yes]


\setupindenting[medium,yes]

\starttext

\startchapter[title=One,bookmark=One]

\dorecurse{5}{\input knuth}

\stopchapter

\startchapter[title=Two,bookmark=Two]

\dorecurse{5}{\input tufte}

\stopchapter

\startchapter[title=Three,bookmark=Three]

\dorecurse{5}{\input bryson}

\stopchapter

\stoptext

Can anybody provide an idea what to do? THanks!

All best

Thomas
___
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] latest beta

2010-12-10 Thread Thomas Schmitz

Hi Hans,

the latest beta is looking for files

! I can't find file 
`/mnt/shared/context/tex/texmf-context/tex/context/base/symb-mis.tex'.


and

! I can't find file 
`/mnt/shared/context/tex/texmf-context/tex/context/base/symb-nav.tex'.


only symb-mis.mki(i|v) and symb-nav.mki(i|v) are present.

All best

Thomas
___
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] bib problems

2010-12-10 Thread Thomas Schmitz

On Wed, 8 Dec 2010 11:47:09 +0100
 Matija Šuklje mat...@suklje.name wrote:
Dne sreda 8. decembra 2010 ob 10:08:19 je Robert 
Blackstone napisal(a):

On Tue, Dec 7, 2010 at 8:10 PM,  Mojca Miklavec

mojca.miklavec.li...@gmail.com wrote:



 I have a tiny feature request.
 
 I would like to have a separate bibliography for, 
say, list of
 figures. Basically all I ask for is the ability to 
have a separate

 named bibliography as opposed to a single list.

I too would be very happy with the possibility to 
produce a

Bibliography with various sections.


+1 on that.

I would need to separate it by type of medium — 
monographies, articles, links 
etc.


This is not a bug report, so I won't include it in my test 
files, but just to comment on this: for a project I'm 
doing with ConTeXt, I will need to the ability to have a 
bibliography with several sections. I've discussed this 
with Hans, and he will write code to support filtering by 
keywords. We haven't yet discussed the interface etc., but 
this is something that will come in the spring at the very 
latest. Mojca, this is not the same as your original 
suggestion, but this looks like it would take care of the 
two +1 messages, right?


Thomas
___
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] Bug in fontswitching

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 11:51:54 +0100
 Willi Egger w.eg...@boede.nl wrote:

Hi,

There seems to be a bug in the font switching mechanism. 

I was just preparing a minimal example for a similar 
problem :-) Switching to italic fonts doesn't work at all. 
Here is an example:


\starttext

This is regular, {\it and this not italic} {\bf (and this 
is bold).}


\stoptext

All best

Thomas
___
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] bib problems

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 14:18:20 +0100
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:
I should think about it a bit. But just a few 
possibilities ... At the

moment I use:
   \startpublication
 [k=xy,
  t=xy]
 
   \stoppublication

Options are:


When we think from the bibtex side, it would boil down to 
processing the keyword= key (which is already there in 
the bibtex specification). You could then order your 
publications with terms such as keyword=image 
keyword=article etc.




1.)
\startpublicationlist[images] or 
\startpublications[images] or ...

   \startpublication[k=xy,t=xy]
 
   \stoppublication
...
\stoppublicationlist

2.)
   \startpublication[k=xy,t=xy,list=images]
 
   \stoppublication

3.)
   \startpublication[images][k=xy,t=xy]
 
   \stoppublication

And then
   \placepublications[list=images]

Then \cite would work in exactly the same way (one would 
not need to

provide any extra key to cite itself).

But one would need to think of a proper model to number 
the
references. That is: it would have to be configurable to 
be able to
either number images with roman instead of arabic 
numerals (or with a,
b, c, ...), or to prepend something, like [img1], 
[img2], [img3]

instead of [1], [2], [3]. Or simply let the user do in
\cite{figure}[xy], or to number images with numbers 
bigger than other

references. For example:

Books:
[1]
[2]
[3]
Articles:
[4]
[5]
[6]
[7]
Images:
[8]
[9]

or

Books:
[1]
[2]
[3]
Articles:
[a1]
[a2]
[a3]
[a3]
Images:
[i1]
[i2]

or any other user-configurable option for numbering ...

However, having a properly designed model is better than 
having some
ad-hoc solution that turns out not flexible enough or 
clumsy to use

and buggy later on ...


One syntax would be

\placepublications[filter=image,prefix={img.},option=continue,numberconversion=romannumbers]



And yes, something that would allow splitting references 
across
sections could just as well be used for this. It just 
needs to be
designed properly ... (But section-based bibliography 
could work

without any extra key, right?)

And no, please don't count it as bug report. I just 
mentioned it
because Hans wanted to have a big bunch of everything 
at a single

place.

I suggest to reopen the topic and create exact 
specification before

the actual implementation.


Yes, we can discuss it (on or off list) when it will be 
implemented.


Thomas
___
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] Bug in fontswitching

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 15:23:37 +0100
 Hans Hagen pra...@wxs.nl wrote:

I was just preparing a minimal example for a similar 
problem :-)
Switching to italic fonts doesn't work at all. 


hopefully fixed (math vs text issue)


Yes, looks like this is fixed.

Thomas
___
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] TEI - conTeXt

2010-12-10 Thread Thomas Schmitz

On Thu, 9 Dec 2010 15:20:06 -0800
 Jon Crump jjcr...@uw.edu wrote:

All,

More naive questions about xml and context. I'm finding 
this slow
going and documentation opaque or just thin on the 
ground. 


Before I try and help you with your question: you posted 
another problem on Nov 24 and got replies. Has this issue 
been solved?


More practical examples of TEI (or other xml texts)- 
ConTeXt - PDF

would sure come in handy.

You're more than welcome to contribute such examples. 
Remember, this is a volunteer effort.


Thomas
___
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] TEI - conTeXt

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 12:00:59 -0800
 Jon Crump jjcr...@uw.edu wrote:

Jon,

OK, good to know. I'll need a bit more leisure to look at 
your example; here are just a few points:


processing an attribute with the 'xml:' namespace has been 
fixed by Hans very recently (last weekend), so if you 
haven't updated to the latest beta version, please do and 
try again; your syntax \xmlsetsetup{#1}{d...@xml:id='a']} 
is basically right.


Addressing content that has been set in xml anchors is 
possible, but not quite easy. I wouldn't have been able to 
figure it out without Hans. Just to show you an example: 
here's code that in my TEI document will fetch the content 
of a witness list:


\xmlfirst{#1}{root::/TEI/text/front/d...@type=='sigla']/listWit/witne...@xml:id==string.sub('\xmlatt{#1}{wit}',2)]}

The (for you) relevant part is root::/: this is the 
topmost level of your TEI xml document. You then traverse 
all the elements and drill down to a witness element 
whose xml:id attribute is identical to the wit attribute 
of your current element. So element wit=#foo will pick 
up the content of witness xml:id=foobar/witness and 
print bar. This should get you going.


Last point: I don't want to sound negative, but what 
you're attempting is not straightforward and certainly not 
easy stuff. I am currently planning on doing a long-term 
project on editing texts in this manner, and I'm quite 
optimistic that all problems can eventually be solved. But 
if you need short-term solutions, a perfectly typeset 
edition within a matter of weeks, this may not be possible 
right away. E.g., I don't think we really have a solid 
framework yet for a bilingual edition as you envisage it. 
It is possible, but not easy, Hans needs the time and many 
test cases to make the code work. There is a research 
group here in Germany (with public funding) who are 
currently working on xml printing of material of exactly 
this type. I can assure you that for the time being, 
there's nothing out there which comes even close to 
ConTeXt in this area, but we're still at the beginning. 
So: if you want to help and test and be part of this, you 
are more than welcome, but none of us has a magic bullet; 
this is work in progress, not drop-in solutions.


All best

Thomas
___
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] xml: test for attribute

2010-12-13 Thread Thomas Schmitz

Hi all,

I thought I had done this and it was easy, but I can't 
find a solution: I want to test whether a xml tag has an 
attribute and vary the typeset content accordingly. There 
used to be \xmldoifelseempty, but that has been commented 
out (lxml-ini.mkiv). What else could I use? Here's a small 
test that shows what I'm trying to do:


\startbuffer[test]
a
  bsome text/b
  b important=differentmore text/b
/a
\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a|b}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

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

\startxmlsetups xml:b
\xmldoifelse{#1}{./[...@important]}
%\doifemptyelse{\expanded{\xmlatt{#1}{important}}}
{\color[darkred]{NOTEMPTY: \xmlatt{#1}{important}}\par}
{\color[darkblue]{EMPTY: \xmlflush{#1}\par}}
\stopxmlsetups

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

Hints appreciated!

All best

Thomas
___
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] xml: test for attribute

2010-12-13 Thread Thomas Schmitz

Hans, thanks a lot!

On Mon, 13 Dec 2010 21:17:23 +0100
 Hans Hagen pra...@wxs.nl wrote:


something like this:

\doifelse {\xmlatt{#1}{important}} {} {
  \color[darkblue]{EMPTY: \xmlflush{#1}}
} {
  \color[darkred]{NOTEMPTY: \xmlatt{#1}{important}}
}
\par

Yes, this works!



or (untested): \xmldoifelse{#1}{./[...@important==''])


This doesn't, for some reason. But I'm glad to see that my 
syntax wasn't too far off. Thanks a lot, and all best!


Thomas
___
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] mkiv: append to buffer

2010-12-18 Thread Thomas Schmitz

Hi all,

i guess this is easy, but I can't find an example to help
me: I want to write a macro that will collect one of its
arguments in a buffer and then collect the other argument 
in a buffer. Difficult to make a minimal example since I 
don't know how to do this, so here is some pseudo-code; 
this is what I want to achieve:


\definebuffer[MyBuffer]

\def\MyGreatMacro#1#2#3%
{\item[#1] #2 \par
 \appendtobuffer{MyBuffer}{\in[#1] #3}}

\starttext
\startitemize
\MyGreatMacro{1}{aa}{AA}
\MyGreatMacro{2}{bb}{BB}
\stopitemize

\page
\getbuffer[MyBuffer]
\resetbuffer[MyBuffer] % so I can reuse the buffer
\stoptext

What I want to do with this is typeset exercises for my 
students, with an itemization for problems and solutions 
which use the same numbering. In real life, this will 
involve xml, but I will try and figure that out myself 
once I know how to use buffers...


It looks like buffers.collectcontent should be able to do 
this, but I can't figure out how to use it. Any pointers? 
Thanks a lot!


All best

Thomas
___
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] mkiv: append to buffer

2010-12-19 Thread Thomas Schmitz

On Sat, 18 Dec 2010 19:35:53 +0100
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 18.12.2010 um 17:52 schrieb Aditya Mahajan:

I am not sure what you want to do, and why you want to 
use buffers. Wont a simple token list work?


I can only agree with this, token lists are the easiest 
solution but the new cld manuals mentions the 
“context.tobuffer” function which allows one to add 
content to a buffer.


Wolfgang


Aditya, Wolfgang, thanks for your replies. I didn't want 
to bore the list with lengthy explanations, but maybe I 
didn't give enough information. So here comes what I hope 
are the relevant bits: I'm typesetting sheets with 
problems and solutions for a class. Those come from an xml 
database. Unfortunately, there is one catch: depending on 
the type of the problem, some problems don't have an 
explicit solution. The problems are typeset as a numbered 
itemization on page 1; on page 2, I want the solutions, 
with matching numbers. And since I'm lazy, I don't want to 
take care of this myself but have context do it for me. So 
let's begin with the output. I want:


PROBLEMS

1. problem without solution

2. problem with solution

3. problem without solution

4. problem with solution

and then, on a new page:

SOLUTIONS

2. solution to 2

4. solution to 4

So: I have been trying to write a macro that will retrieve 
problems from the database (successful, with help by 
Hans), pack them in an itemize list (successful), and 
store the solution somewhere so it can be typeset on the 
next page (unsuccessful as yet). I thought buffers were 
the natural way to go, but I must admit I didn't know 
about tokenlists. Aditya's suggestion unfortunately 
doesn't seem to work with itemizations. Test files:


This works:

\newtoks\mytoks

\def\TestMacro#1#2#3%
  {\color[darkred]{#1} \color[darkblue]{#2}\endgraf
   \appendtoks \color[darkgreen]{#3} \to\mytoks}

\starttext

\TestMacro{A}{B}{C}

\TestMacro{X}{Y}{Z}

\hairline

\the\mytoks

and this doesn't:

\newtoks\mytoks

\def\TestMacro#1#2#3%
  {\item[#1] #2\par
   \appendtoks \in[#1]: {#3} \to\mytoks}

\starttext

\startitemize[n]

\TestMacro{A}{B}{C}

\TestMacro{X}{Y}{Z}
\stopitemize

\hairline

\the\mytoks

I have absolutely no preference for buffers or 
itemizations or whatever, so if there's a better solution, 
I'm all open. But for the time being, I don't get what I 
want. I'll look into context.tobuffer next...


Thanks for any suggestions, and best wishes

Thomas
___
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] mkiv: append to buffer

2010-12-19 Thread Thomas Schmitz

On Sun, 19 Dec 2010 13:21:26 +0100
 Peter Münster pmli...@free.fr wrote:

On Sun, Dec 19 2010, Thomas Schmitz wrote:


and this doesn't:

\newtoks\mytoks

\def\TestMacro#1#2#3%
  {\item[#1] #2\par
   \appendtoks \in[#1]: {#3} \to\mytoks}



\doglobal \appendtoks \in[#1]: {#3} \to\mytoks}

Cheers, Peter


Hooray, not it works!!! Thanks a lot, everyone, thanks 
Peter - so easy, yet my knowledge of TeX wasn't advanced 
enough to see this. Is it because I'm inside a group and 
TeX empties the tokenlist once I get out of the group?


All best

Thomas
___
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] mkiv: append to buffer

2010-12-19 Thread Thomas Schmitz




Hooray, not it works!!! 


s/not/now/

Thomas
___
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] Html to pdf using pragma script

2010-12-21 Thread Thomas Schmitz

On Tue, 21 Dec 2010 09:13:00 +0100
 Henning Hraban Ramm hra...@fiee.net wrote:

Am 2010-12-21 um 03:12 schrieb Anand Raj:

my need is to convert the html page to pdf and this html 
contains  
svg and mathml content.

I have linux environment

1. What are things to be installed to fulfill my need
2. how to convert html -- xml -- pdf using context 
(may be the  
commands)


There's nothing ready-made that you can use 
out-of-the-nonexistant-box.
ConTeXt is (part of) a programmable system that you can 
and must adapt  to your needs.
It's not that hard, but you can't expect us to provide 
you with a  complete solution for your fuzzy needs.


Somehow, the OP reminds me of something I've read on the 
interwebs a long time ago: 
http://thedailywtf.com/Articles/plz-email-me-teh-codez.aspx


Thomas
___
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 encoding

2010-12-21 Thread Thomas Schmitz

On Tue, 21 Dec 2010 12:19:15 +0100
 Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote:

But context uses some non-standard codes also: “deo” 
instead of
“de-1901” for sane German orthography, and “agr” for 
ancient
Attic instead of “grc” or “el-polyton”. (Testfile 
appended.)


Yes, we should make grc a synonym of agr. el-polyton is, 
AFAIK, modern polytonic Greek, which is not the same.


Thomas
___
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] Interesting package for XeTeX

2010-12-21 Thread Thomas Schmitz

Hi all,

on ctt, I just saw an annoucement for a xe(la)tex package 
which I found quite interesting. Here's the description:


Location on CTAN: /macros/xetex/latex/ucharclasses

This package addresses one of the few features where TeX 
still has to play catch-up to
word processing programs: automatic font switching for 
different languages. In fact, it
goes one better than word processing programs and comes 
with macros for inserting
arbitrary code between text from different unicode blocks, 
by making use of XeTeX's little

known intercharclass behaviour.

I was wondering: is something similar possible in mkiv 
yet? I know that with the font fallback mechanism, it's 
trivial to change fonts for unicode ranges, but is it 
possible to change hyphenation patterns (or even insert 
arbitrary code) according to unicode blocks? Would be 
quite helpful for those of us working with different 
scripts.


All best

Thomas
___
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] Interesting package for XeTeX

2010-12-22 Thread Thomas Schmitz

On Wed, 22 Dec 2010 11:02:03 +0100
 Ulrike Fischer ne...@nililand.de wrote:



Do you know where (roughly) the code for the fallback 
is? I would

like to know how it work.
 
--


You mean where it is actually defined in the core files? A 
quick grep for fontfallback shows that it's in 
font-ini.mkiv and font-ctx.lua.


Thomas
___
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] line numbers - method=page

2011-01-02 Thread Thomas Schmitz

On Sun, 02 Jan 2011 00:34:12 +0100
 Daniel Schopper daniel.schop...@aon.at wrote:


I'm using
ConTeXt  ver: 2010.07.30 11:35 MKIV  fmt: 2010.12.31
which should be the newest version available on 
http://tlcontrib.metatex.org/2010.


You will have to use a more recent (beta) version. I have 
added a sentence to the wiki page explaining that.


Thomas
___
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] updating in texlive

2011-01-02 Thread Thomas Schmitz

Hi all,

a Happy New Year to all of you! Here's a small question: 
from time to time, as a mental exercise (and because I 
like a backup), I try to bring my texlive installation up 
to date. I have copied these relevant files over from my 
minimal tree:

- luatex binary
- mtxrun
- texmfcnf.lua (with modifications, of course)

then unzipped the latest ConTeXt. Everything works - but I 
get no hyphenation. For a simple test file like:


\mainlanguage[en]

\starttext

\hyphenatedword{philosophically}

\stoptext

I see in the log file

mkiv lua stats : loaded patterns - en::2

but no hyphenation is given. in a run with the minimals, I 
see:


mkiv lua stats : loaded patterns - en::2
mkiv lua stats : language load time - 0.155 seconds , 
nofpatterns: 1


(the last line is not present in the log from texlive). I 
don't see anything wrong in cont-en.log, so I wonder how I 
can find out why the patterns are not applied?


All best

Thomas
___
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 beta

2011-01-26 Thread Thomas Schmitz

On Wed, 26 Jan 2011 09:26:18 +0100
 Hans Hagen pra...@wxs.nl wrote:

On 26-1-2011 8:50, Alan BRASLAU wrote:

On Tuesday 18 January 2011 20:13:36 Renaud AUBIN wrote:

Hi Hans,

On Linux with debian minimals:

l.42 \loadmarkfile{catc-ini}

Please type another input file name:
! Emergency stop.
to be read again
\relax
l.42 \loadmarkfile{catc-ini}



There appears to be a problem (for quite some time, not 
just for the current
beta) of the robustness of \loadmarkfile{}. Indeed, 
quite often, the conditions
under which this occurs is not clear to me, but almost 
systematically,
updating the minimals gives such errors. The update 
succeeds by entering the

full path, such as
/usr/local/context/beta/tex/texmf-context/tex/context/base/catc-ini.mkiv
and repeating the whole path many times, for all 
instances of unfound markfiles

(under X11, right-click is your friend)!

It is strange, as the update process finds the other 
files perfectly well, and

is really annoying.


it is probably a side effect of files being renamed, 
i.e. the new name is mkiv while the old one is tex; in 
that case the file database has to be rebuild (using 
mtxrun --generate); it can also happen when there are new 
files added


so, the main question is: why isn't mtxrun --generate 
run?


Hans


Yes, I have encountered this problem many times during the 
last weeks. Aborting the format-making, rerunning mtxrun 
--generate works too, after that, all the files that have 
been flagged before are found. So the question is: is 
mtxrun --generate maybe run too early in the process, 
before all the files are copied into their place?


Thomas
___
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] Pdfselect in texexec not working!?

2011-01-26 Thread Thomas Schmitz

On Wed, 26 Jan 2011 10:39:46 +0100
 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote:

Hi,

I use ConTeXt minimals (MkIV, MTXrun | current version: 
2011.01.18 19:34) and want to select a few pages from a 
larger pdf-file using the familiar --pdfselect switch 
from texexec.


However this option is not working any more; the run 
ends with the following error message:


.
(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 17 ({)
### bottom level
No pages of output.
Transcript written on texexec.log.
TeXExec | runtime: 1.237985

Perhaps something has changed of which I am unaware?

Regards,


You have to update. This has been fixed (and discussed 
here).


Thomas
___
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-01-31 Thread Thomas Schmitz

On Mon, 31 Jan 2011 18:33:57 +0100
 Otared Kavian ota...@gmail.com wrote:

Hi Hans,

I uploaded the new beta with the Minimals, but neither 
mkii nor mkiv work anymore…

I get
	MTXrun | unknown script 'context.lua' or 
'mtx-context.lua'
and 
	luatools --generate

gives the same result.


This has been deprecated for quite a while now; you have 
to run


mtxrun --generate

Has something changed in first-setup.sh for Mac OS X and 
other machines (I followed the thread about that file 
being changed for Windows by Mojca, but I don't know 
about other operating systems).


I see the same thing on linux: you have to run mtxrun 
--generate and mktexlsr and texexec --make by hand now; 
after that, mkiv and mkii will run.


I assume that's a result of our discussion last week, but 
not quite what Hans and Mojca are aiming at...


Thomas
___
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] filtering xml

2011-02-21 Thread Thomas Schmitz

Hi all,

this must be easy, but I don't find the solution. Given an 
xml structure like this:


X
  Adog/A
  ABcat/B/A
  ABmouse/B/A
/X

which \xmlfilter expression do I need to get the first A 
element which has a subelement B? I.e., the filter 
should only return cat, not dog or mouse. There can 
be 0 or more elements without B before and after the one 
I want to retrieve.


Sorry if this is elementary, but I looked at xml-mkiv.pdf 
and mk.pdf and couldn't find an answer.


Thanks

Thomas
___
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] Fonts in ConTeXt is now available from boekplan.com

2011-02-28 Thread Thomas Schmitz

On Mon, 28 Feb 2011 10:45:52 +0100
 Taco Hoekwater t...@elvenkind.com wrote:


After some delays, thankfully the book Fonts in 
ConTeXt is now

finally available for immediate ordering.

Fonts in ConTeXt describes how to define and use fonts 
in ConTeXt
MkIV. In this book, for the first time all existing 
documentation
related to fonts has been combined into a single 
document. In 128
pages, the reader is guided through everything there is 
to know about
fonts in ConTeXt MkIV. The earlier chapters deal with 
the theory behind
the font subsystem of ConTeXt and explain how to use the 
font switching
macros. The later chapters deal with defining fonts, for 
both single
(symbolic) fonts and complete typescripts for font 
families. Finally,
there are chapters on extending the ConTeXT font system 
and font

installation.

Fonts in ConTeXt costs 19 euro + pp, and can be 
ordered from


  http://www.boekplan.com/


Hans and I have decided that there will not be a free 
PDF version;
ordering a hardcopy is the only way to get this book. 
Please note
that besides receiving a useful book, you will also be 
sponsoring

ConTeXt development by doing so!


Taco Hoekwater
(also for Hans Hagen)


I ordered as well - very nice and clean interface for the 
web shop! Looking forward to reading my copy, and thanks 
for all the work you've put in; 19 Euros is more than 
fair, and I'm happy that part of the money will be going 
into development!


Thomas
___
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] Fonts in ConTeXt is now available from boekplan.com

2011-02-28 Thread Thomas Schmitz

On Mon, 28 Feb 2011 11:27:16 +0100
 luigi scarso luigi.sca...@gmail.com wrote:
Why don't put original signs and dedications of the 
authors on each
copy after, let's say, the first 5 orders after 1hour 
the annuncement

in this mailing list ?
The first two :-) That'll make them collectibles that my 
grandchildren can sell at a greatly inflated price...


Thomas
___
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] problems with bib

2011-02-28 Thread Thomas Schmitz

On Mon, 28 Feb 2011 11:41:02 -0500
 Curiouslearn curiousle...@gmail.com wrote:
I had the same problem a few months back (the 
bibliography includes
all references not only the ones I have cited in my 
document)


I still have this problem. I think Thomas Schmitz is 
going to fix
this. Any ideas on when this is going to be fixed? Can I 
request that
this be fixed soon as it is important for writing papers 
that need to

be circulated to others.

Thanks in advance.

Regards,
Bharat


Hi Bharat and all,

1. No, that's not right. I simply collected outstanding 
issues, I can't fix them.


2. Hans is working on bib issues as we speak, but he has 
only so much time, so no ETA.


3. For the problem described above, try

\usepublications[criterium=text]

Bib support is an extremely complex area, so be aware that 
we're still experimenting and things are moving. Having as 
many testers as possible with many different requirements 
helps a lot finding and identifying errors.


HTH

Thomas
___
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] Layers on simpleslides

2011-03-05 Thread Thomas Schmitz

On Sat, 5 Mar 2011 19:58:47 +0100
 Vedran Mileti? riva...@gmail.com wrote:

Hi,

I'm trying to insert a simple logo on a simpleslides 
slide, but for some

reason it doesn't appear:

\usemodule[simpleslides]

\definelayer[mybg]
   [x=0mm, y=0mm, width=\paperwidth, 
height=\paperheight]

\setlayer[mybg]
   [hoffset=1cm, voffset=1cm]
   {\framed[frame=on, width=3cm, height=2cm]{LAYER}}
\setupbackgrounds[page][background=mybg]


\starttext

\SlideTitle{Bla}

Bla

\stoptext

Any ideas?

backgrounds[page] is already in use by the module. Try 
backgrounds[paper][background={foreground,mybg}].


Thomas
___
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] special character in filename

2011-03-05 Thread Thomas Schmitz

On Sat, 5 Mar 2011 20:09:12 +
 Reviczky, Adam adam.revic...@kcl.ac.uk wrote:



It works with the + character though.
The same problem goes for the directory names; 
directories with ~ in the name drops and error, even if 
the filename has no special characters in it.


Can this be fixed?

Yeah, please fix this ASAP. I keep all my context files in 
a directory which I call /dev/null, and for some reason, 
this doesn't really work. But I am not going to change the 
name of my directory, no, you have to rewrite your 
software!


Thomas
___
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] special character in filename

2011-03-05 Thread Thomas Schmitz

On Sat, 5 Mar 2011 20:38:13 +
 Reviczky, Adam adam.revic...@kcl.ac.uk wrote:


Dear Thomas

I understand, that it's not a good idea, and I've seen 
similar issues on the list 
(http://www.ntg.nl/pipermail/ntg-context/2010/052339.html).
I ran into this by making a deb package of a software 
(that includes context files) with a version that have a 
~ in it, and therefore it makes a folder name having 
this character and context fails.


So i guess the answer is then, no.

Hi Adam,

I didn't want to sound rude - in the end, only Hans can 
decide if this can/should be changed. It's just when you 
think about the complexity of a system like context which 
runs on many different platforms, which involves a number 
of programming languages, which passes names to and fro in 
temporary files and commands - I just would advise to 
stick to characters which you can be sure will be parsed 
correctly by all parts involved. If you want to know a bit 
more about it, have a look at all the efforts Hans makes 
to sanitize font names so they will be found in the mkiv 
font database; taking out all the spaces and periods and 
whatnot. And yet, next week, some smart font designer will 
certainly come up with an even more bizarre name which 
breaks everything. That's all I wanted to say with my 
sarcasm.


Thomas
___
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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Thomas Schmitz

On Sun, 06 Mar 2011 21:31:12 +0100
 Florian Wobbe florian.wo...@awi.de wrote:



Unfortunately I cannot reproduce this behaviour with a 
minimal example. Still I have the problem with the empty 
list (in section Cited references):


\setupbibtex[database=sample]
\setuppublications[alternative=apa]

\starttext

\cite[hh2010a]
\cite[hh2010a]
\cite[Eijkhout1991]

\section{Cited references}
\placepublications
\placepublications[criterium=cite]

\section{All references}
\placepublications[criterium=all]

\stoptext

A problem related to \placepublications[criterium=cite] 
was reported 
by Mojca on 2010-11-27. But then the issue was inverted: 
complete list instead of only the cited references.


Try \placepublications[criterium=text]

@Hans: can you make criterium=cite a synonym of 
criterium=text, please?


Thomas
___
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] \setuppublications problem

2011-03-12 Thread Thomas Schmitz

On Sat, 12 Mar 2011 08:37:28 +0100
 Jean Magnan de Bornier jm.born...@free.fr wrote:


Fair enough. Here:
.
\setupbibtex [database=/home/jean/biblio]
\setuppublications[alternative=apa]

\starttext


{\bf Bibliography}

\nocite[hh2010a,hh2010b,Eijkhout1991]
\placepublications
\stoptext



Have you tried \placepublications[criterium=all] or 
\placepublications[criterium=text]?
 

biblio.bib is a file already known to some:


So it's sample.bib. It would have made helping easier if 
you had said that.


Thomas
___
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] \setuppublications problem

2011-03-12 Thread Thomas Schmitz

Hi Florian,

On Sat, 12 Mar 2011 11:45:16 +0100
 Florian Wobbe florian.wo...@awi.de wrote:
Have you tried \placepublications[criterium=all] or 
\placepublications[criterium=text]?


Hi Thomas,

you gave me exactly the same hint last week. 


Not only that, but someone gave exactly the same hint to 
Jean in December...


We should
add criterium=cite and criterium=text to the Wiki 
(Bibliography MKIV page: 
http://wiki.contextgarden.net/Bibliography_mkiv).


You are of course right, but I assume Hans is working on 
bibliographies right now (he promised to finish something 
which I need for a project in March, so that leaves him 
another two weeks ;-), so we should maybe wait a bit. 
criterium=cite should work as well, but doesn't right now.


In the beginning it was not clear to me, that 
http://wiki.contextgarden.net/Bibliography refers to the 
MKII implementation of Taco. Therefore, I would suggest 
to rename Bibliography to Bibliography_mkii and create an 
alias Bibliography that redirects to Bibliography_mkiv 
instead. In the wiki pages Bibliography_mkiv and 
Bibliography_mkii the first sentence should state that 
the page is related to mkii/mkiv only and link to the 
other page. Do you think this is reasonable?


I had begun rewriting the page. There is now 
http://wiki.contextgarden.net/Bibliographies which links 
to the other pages, and which is linked to on the front 
page. But another context-related project kept me away 
from this and I never finished this, so fell free to 
shuffle and rewrite things!


I would like to add a section on customising bibstyle 
files and add space for sharing reference styles of 
different journals. What do you think?


Again, that's a very good idea, but we should maybe wait 
just a bit till the dust settles a bit.
 
In general I find it difficult to differentiate between 
mkiv and mkii related  information in the wiki. How could 
we better structure the wiki to make it easier for the 
reader? Disambiguation pages, mkiv/mkii sections, 
independent pages with mkiv/mkii in headerline?
 
Just my 2 cents on this: difficult, because you won't be 
able to make everybody happy. Every now and then, I see a 
new user on the list who asks about installing mkiv and 
doesn't realize that it is not really something which you 
have to install additionally. We shouldn't scare those 
users because in so many cases, mkii and mkiv are exactly 
identical, so that would be an arguments against a too 
stric separation. But of course you're also right that 
it's frustrating for users if they can't find relevant 
information for the areas where the two differ. As long as 
mkiv hasn't settled, this is not easy...


All best

Thomas
___
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] Ideas for restructuring the ConTeXt garden?

2011-03-13 Thread Thomas Schmitz

On Sat, 12 Mar 2011 15:35:54 -0800
 Henry House hajho...@hajhouse.org wrote:



I strongly agree that sample set-up code (ideally 
well-commented so that
it also serves as a tutorial of sorts) to reproduce the 
style of LaTeX
would be helpful. The appearance of LaTeX documents 
isn't perfect but it
produces reasonably high-quality results suitable for 
complex technical
documents right out of the box of the box without any 
tweaking, whereas
ConTeXt requires (at least it did for me) some trouble 
to set it up for
the first time. To some extent this is not because of 
the merit of the
LaTeX design itself but the fact that it is familiar and 
therefore
highly readable to someone used to reading it. It is 
also the point of
departure for a LaTeX user wanting to convert to using 
ConTeXt; hence, i
would imagine many such people would prefer to tweak a 
LaTeX-like
document appearance to better suit their needs rather 
than starting with
something quite different. Certainly, this was the case 
for me; being
basically satisfied with my LaTeX documents but wanting 
more control and
the option to use the advanced features of ConTeXt. 
Having sample set-up
code that emulated LaTeX would have eased the initial 
transition for me.




Pardon my French, but this thread is getting less and less 
useful, probably because it addresses too many issues at a 
time. It is rapidly degenerating from a how to 
restructure the garden into a things I wish others would 
do so my life becomes easier. If someone says I added a 
section to the wiki which explains which ConTeXt settings 
will give a document equivalent to LaTeX XXX class, fine 
- I would consider this superfluous, but it may help some 
people. But even strongly agreeing that somebody else 
should write a tutorial isn't getting any work done. And 
the assumption that most or all ConTeXt users are, at 
their heart, LaTeX renegades is not true, I think. Many 
advanced users haven't used LaTeX ever or in a long time 
and wouldn't want to waste their time on learning it just 
for the sake of such a comparison.


Sorry for being so blunt, but I think this will be more 
helpful if we stay focussed.


Thomas
___
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] simpleslides/metapost bug ?

2011-03-13 Thread Thomas Schmitz

On Fri, 11 Mar 2011 16:02:32 +0100
 zs zstry...@physics.ujep.cz wrote:

Hello everybody.

Can you please confirm that following code fails:

\usemodule[simpleslides]
\starttext
\IncludePicture[horizontal][cow][highlight=yes, 
alternative=circle, x=1, y=1, xscale=1, yscale=1, 
shadow=bottomleft]{hello}

\stoptext

And this does not:

\usemodule[simpleslides]
\starttext
\IncludePicture[horizontal][cow][highlight=no, 
alternative=circle, x=1, y=1, xscale=1, yscale=1, 
shadow=bottomleft]{hello}

\stoptext

It seems like something goes wrong when circle is made.
I can't find what is wrong from error messages.

I will be back on Friday next week to answer.

Regards

Zdenek


Hi,

what fails is the shadow for the highlight. Aditya wrote 
this code, so please curse him :-) I must admit I don't 
really understand what he did there. As a workaround (or 
solution?): line 835 of simpleslides-s-default.tex:

   withcolor transparent (normal,
replace this with
   withcolor transparent (1,

We'll upload a new version when we've found out why this 
doesn't work anymore!


HTH

Thomas

___
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] criterium=cite

2011-03-21 Thread Thomas Schmitz

On Mon, 21 Mar 2011 14:42:36 +0100
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

Dear Hans,

What is the status of criterium=cite in bib module for 
MKIV?


\placepublications doesn't want to leave the uncited 
references out.
(There are workarounds like making copies of 
bibliography and only
include the items that have to be cited, but it is not 
too convenient

to use.)

Thanks a lot,
  Mojca

Mojca,

have you seen this? [But I don't know what the status of 
it is]


http://archive.contextgarden.net/message/20110306.204956.f965473e.en.html

Thomas
___
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-03-26 Thread Thomas Schmitz

On Sat, 26 Mar 2011 12:53:10 +0100
 Hans Hagen pra...@wxs.nl wrote:

Hi,

One of the changes in mkiv font handling is that from 
now on we have mode=auto as default (beware, this is one 
of those mkiv only options and not supported in the 
generic variant).



Hans,

I may be misunderstanding things, but I can't get my font 
features to work with the latest beta, possibly because of 
this change, or I'm doing something wrong. Here is an 
example:


\definefontfeature[antikwa] 
[mode=node,language=dflt,script=latn,kern=yes,onum=yes]


\starttypescript [serif] [test]
\definefontsynonym [Serif] [file:antpoltlt-regular]
\stoptypescript

\starttypescript [test]
	\definetypeface[test] [rm] [serif] [test] [default] 
[features=antikwa]

\stoptypescript

\setupbodyfont[test]

\starttext

Test 1234567890

\stoptext

This gives me oldstyle figures with the beta of 
2011.02.25, but not with the latest beta. Is this a bug, 
or do I have to adapt my definitions?


Thomas
___
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-03-27 Thread Thomas Schmitz

On Sun, 27 Mar 2011 08:52:38 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com 
wrote:


Am 26.03.2011 um 22:04 schrieb Thomas Schmitz:

I may be misunderstanding things, but I can't get my 
font features to work with the latest beta, possibly 
because of this change, or I'm doing something wrong.


font-ini.mkiv (enable \inheritfromfontclass):

- \newconditional\inheritfromfontclass % used in 
\definefont and \definedfont
+ \newconditional\inheritfromfontclass 
\settrue\inheritfromfontclass % used in \definefont and 
\definedfont


font-ctx.lua (check “classfeatures” before 
“fontfeatures”):


function 
definers.stage_two(global,cs,str,size,classfeatures,fontfeatures,classfallbacks,fontfallbacks,

   mathsize,textsize,relativeid,classgoodies,goodies)
   ...
   if detail and detail ~=  then
   specification.method, specification.detail = 
method or *, detail
   elseif specification.detail and specification.detail 
~=  then

   -- already set
-   elseif fontfeatures and fontfeatures ~=  then
-   specification.method, specification.detail = 
*, fontfeatures

-   elseif classfeatures and classfeatures ~=  then
-   specification.method, specification.detail = 
*, classfeatures

+   elseif classfeatures and classfeatures ~=  then
+   specification.method, specification.detail = 
*, classfeatures

+   elseif fontfeatures and fontfeatures ~=  then
+   specification.method, specification.detail = 
*, fontfeatures

   end
   ...
   statistics.stoptiming(fonts)
end

Wolfgang



Wolfgang,

thanks a lot. This works with the minimal example I have 
created but breaks with a real file. I need to go deeper 
and construct another example. In the meantime, here's the 
error:


system   logs  lua: compiling 
/home/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma 
into 
/home/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tmc

fontsnames  accessing the data table failed
fontsotf loading  loading: 
/home/tas/context/tex/texmf/fonts/opentype/gust/poltawski/antpolt-regular.otf 
(hash: antpolt-regular-oxoniensis)

fontsotf loading  font loaded okay
fontsotf loading  file size: 131876

mtx-context | fatal error: no return code, message: 
luatex: execution interrupted%


The document doesn't use the poltawski font, so I'm very 
puzzled about the error message.


Thomas
___
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-03-27 Thread Thomas Schmitz

On Sun, 27 Mar 2011 13:05:38 +0200
 Hans Hagen pra...@wxs.nl wrote:


hm, so class features should always win? maybe we should 
make that configureable .. i cannot oversee the 
implication of this


I'm still trying to make a minimal example for my errors. 
It has something to do with lookups in a fea file (which 
work with version 11-02-25). I'm pretty unhappy atm, many 
of my custom fonts  typescripts do not work as they used 
to...


Thomas
___
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] bug with \cite in latest beta (2011.04.13)

2011-04-16 Thread Thomas Schmitz

On Sat, 16 Apr 2011 07:55:29 +0200
 Bernhard Rosensteiner brosenstei...@gmail.com wrote:
when i use \cite[...][reference...] instead of 
\cite{reference} the error is also not triggered. Anyway 
strange.


Why is that strange? \cite{...} isn't context syntax. I 
don't find it surprising that wrong usage triggers an 
error.


Thomas
___
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] bug with \cite in latest beta (2011.04.13)

2011-04-16 Thread Thomas Schmitz

On Sat, 16 Apr 2011 07:53:20 +0100
 Reviczky, Adam adam.revic...@kcl.ac.uk wrote:
So does anybody have a working example with 2011.04.13 
for the cite?


Using this example gives me a luatex error, and it used 
to work with earlier beta's:


This is a (new) bug with cite; numbered lists are not 
working. I'll send Hans a report...


Thomas
___
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] How to produce a dotless i with ConTeXt?

2011-04-16 Thread Thomas Schmitz

On Sat, 16 Apr 2011 11:24:00 +0200
 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote:



I for example tried to generate the soft g, the g with 
the caron (inverted circumflex!) above it, using \gcaron, 
which just works fine. But I'm unable to generate a 
dotless i!


So what did you try? Here's 3 methods that work for me:

1. (best): write the character directly into your source 
file: #305;


2. \dotlessi (see the list of characters in char-def.lua)

3. \i (compatibility, defined in enco-ini.mkiv)

HTH

Thomas
___
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] How to produce a dotless i with ConTeXt?

2011-04-18 Thread Thomas Schmitz

On Mon, 18 Apr 2011 10:23:54 +0200
 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote:


Thanks for the answers!

Only one suggestion doesn't work for me; inserting the 
#305; (it looks like an HTML code not ConTeXt code!?) in 
my source file.


Well, I prefer to use \dotlessi and \i, and don't like 
#305 or \char0131, because I'm not very good at 
remembering number codes!


As Mojca already pointed out, I meant typing the character 
directly. I'm using a web mail interface which 
unfortunately  replaces the character with this strange 
entity.


Thomas
___
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] Error running compiling with ConTeXt MKII

2011-05-02 Thread Thomas Schmitz

On Mon, 2 May 2011 17:23:37 +
 Isaac Mulolani imulol...@uwaterloo.ca wrote:

Hi Majorca

Thanks for your hints. I actually used the tlmgr to add 
the modules from tlcontrib.metatex.org/2010 which 
includes taspresent. I did try the commands you gave and 
none of them seem to work on my system. I may need to 
locate the web2/xetex/cont-en.fmt as you suggested.



Hi Ismael,

for starters, call texexec from the command line, not from 
within an editor, this will give you more info and will 
make it easier to help. Giving us the output of


which texexec

and

kpsewhere -engine=/ cont-en.fmt

might already be helpful. And don't use the taspresent 
module, it has been superseded by simpleslides.


Good luck

Thomas
___
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] Latest beta not working.

2011-05-06 Thread Thomas Schmitz

On Fri, 6 May 2011 14:46:15 -0600
 Bart Wise bart.c.wise+cont...@gmail.com wrote:

Otared,

Thanks for the response.

I installed like I always do with the following two 
commands:
rsync -av 
rsync://contextgarden.net/minimals/setup/first-setup.sh .

./first-setup.sh --extras=all

I always do this in a new directory on a Linux system.

I'm purplexed.

Bart


Did you try and run

mtxrun --generate

manually? If this doesn't help: last week, I encountered a 
similar problem on linux-ppc. I was completely baffled 
because mtxrun always reported that it couldn't find 
anything. In the end, I discovered that the luatex binary 
was missing the execute bit. So check this as well.


HTH

Thomas

PS: http://www.catb.org/jargon/html/T/top-post.html
___
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
___