[NTG-context] 2*2*4

2008-10-26 Thread Matthias Wächter
Marcin Borkowski schrieb:
> What is the difference between the above?
> 
> In particular, do I get this correctly:
> 
> (*) 2SIDE just puts 2 pages onto one sheet, in the following order:
> 
> 1 2
> 3 4
> ...
> 
> (*) 2UP prepares a booklet

BTW: I just wanted to say „Thank You!“ for the 2*2*4 arranging option. 
While our double-side printing able A3 printer pretends to support 
16-page booklet generation, the only way it really worked for printing 
my Thesis was using this ConTeXt option (and --arrange).

- Matthias

___
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] Fun with Bibtex

2008-09-25 Thread Matthias Wächter
On 9/25/2008 10:07 AM, Taco Hoekwater wrote:
> 
> Matthias Wächter wrote:
>> I would suggest you put your .bst into, say, cont-my.bst and issue
>> the command
> 
>> \def\bibstyle{cont-my}
>>
>> right after executing \setupbibtex
> 
> That won't work, the .aux file is written by \writeauxfile.

For whatever reason, the .aux file contained \bibstyle{cont-my} in
my tests …

> But you could replace the whole \setupbibtex command with this:
> 
>\unprotect
>\def\@@pbdatabase{..your bib file ..}
>\def\bibstyle{cont-my}
>\writeauxfile
>\protect

right. So the attached would be an appropriate long-term patch then?

- Matthias
--- texmf-context/doc/context/bib/bibmod-doc.tex.orig   2006-09-15 
11:52:34.0 +0200
+++ texmf-context/doc/context/bib/bibmod-doc.tex2008-09-25 
11:33:30.828125000 +0200
@@ -353,6 +353,7 @@
  `author' (\type{cont-au.bst}) sorts alphabetically on author and within 
that on year,
  `title' (\type{cont-ti.bst}) sorts alphabetically on title and then on 
author and
  year, and `short' (\type{cont-ab.bst}) sorts on the short key that is 
generated
+ by \BIBTEX. If \type{FILE} is given, it specifies an individual 
\type{.bst} file name used
  by \BIBTEX.\NC\NR 
 \stoptabulate
 
--- texmf-context/tex/context/bib/t-bib.tex.orig2008-04-17 
17:02:02.0 +0200
+++ texmf-context/tex/context/bib/t-bib.tex 2008-09-25 11:15:01.734375000 
+0200
@@ -300,15 +300,14 @@
 
 \def\dosetupbibtex[#1]%
   {\let\@@pbdatabase\empty
-   \let\@@pbsort\empty
-   \getparameters[\??pb][#1]%
+   \getparameters[\??pb][sort=\s!default,#1]%
\expanded{\processaction[\@@pbsort]}
 [  \v!no=>\def\bibstyle{cont-no},
\v!author=>\def\bibstyle{cont-au},
 \v!title=>\def\bibstyle{cont-ti},
 \v!short=>\def\bibstyle{cont-ab},
   \s!default=>\def\bibstyle{cont-no},
-  \s!unknown=>\def\bibstyle{cont-no}]%
+  \s!unknown=>\def\bibstyle{\@@pbsort}]%
\ifx\@@pbdatabase\empty\else \writeauxfile \fi}
 
 \dosetupbibtex[bibtex=bibtex]
--- texmf-context/tex/context/interface/t-bib.xml.orig  2006-09-15 
11:52:06.0 +0200
+++ texmf-context/tex/context/interface/t-bib.xml   2008-09-25 
11:27:16.953125000 +0200
@@ -266,6 +266,7 @@
 
 
 
+
   
 
   
___
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] Fun with Bibtex

2008-09-25 Thread Matthias Wächter
On 9/24/2008 11:01 PM, Peter Daum wrote:
> Hi all
> 
> I'm using Taco's Bibtex module and got some problems with it.
> 
> \setupbibtex[database=xx,sort=author]
> \setuppublications[alternative=apa-de,refcommand=authoryear,monthconversion=month]
> \placepublications[criterium=all]
> 
> ... works fine. The references list contains only publications referenced in 
> the document.
> 
> Unfortunately, I was forced to use a special bst file, since I needed to 
> change the fields of the entrytype "misc". As I didn't find a way to make 
> ConTeXt or texexec aware of this new file living in my document's directory, 
> I deleted the database parameter, customised the aux file and ran bibtex by 
> myself.
> 
> The problem is, that, with the new method, only a very small subset of the 
> referenced publication makes it into the list. If I add "criterium=all" to 
> the setuppublications command, I get the whole database, whether the pub is 
> referenced or not.
> 
> Any ideas?

After reading t-bib.tex:

[…]
\def\setupbibtex{\dosingleempty\dosetupbibtex}

\def\dosetupbibtex[#1]%
  {\let\@@pbdatabase\empty
   \let\@@pbsort\empty
   \getparameters[\??pb][#1]%
   \expanded{\processaction[\@@pbsort]}
[  \v!no=>\def\bibstyle{cont-no},
   \v!author=>\def\bibstyle{cont-au},
\v!title=>\def\bibstyle{cont-ti},
\v!short=>\def\bibstyle{cont-ab},
  \s!default=>\def\bibstyle{cont-no},
  \s!unknown=>\def\bibstyle{cont-no}]%
   \ifx\@@pbdatabase\empty\else \writeauxfile \fi}

[…]

I would suggest you put your .bst into, say, cont-my.bst and issue
the command

\def\bibstyle{cont-my}

right after executing \setupbibtex

- Matthias
___
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] setupinteraction breaks urls in MK Ⅳ

2008-09-24 Thread Matthias Wächter
On 9/24/2008 5:31 PM, Taco Hoekwater wrote:
> Hmm indeed. But there will be a new luatex in just a few more days,
> maybe you can wait for that?

I'd like to, but I can't. Tomorrow is the day for the thesis to get
lasered and processed by the bookbinder. :-)

Thanks for your support, I am lucky that I didn't use any of
MKⅣ-only features, just page breaking is a little different with
MKⅡ, so I will go with that for the last hours of the project.

cu,
-Matthias
___
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] setupinteraction breaks urls in MK Ⅳ

2008-09-24 Thread Matthias Wächter
On 9/24/2008 1:03 PM, Taco Hoekwater wrote:
> Matthias Wächter wrote:
>> Are there any known workarounds? It makes my bibliography
>> undeliverable …
> 
> Works for me. What versions are you running?

Thanks for checking. I'm running Win32 here and executed a simple

> texexec texmfstart --luatex test

I also tried it via the short

> context test

with the same result. The following is from test.log:

> ConTeXt  ver: 2008.09.21 22:31 MKIV  fmt: 2008.9.23  int:
english/english

I updated contextminimals using first-setup.bat yesterday. Just did
a re-run of »luatools --generate« and »context --make« for making
sure everything is up-to-date, but to no effect (just the fmt
changed to today's date).

Hmmm…
- Matthias
\setupinteraction[state=start]

\starttext

\useURL[u][http://www.x.com/]

see \from[u].

\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
___


[NTG-context] setupinteraction breaks urls in MK Ⅳ

2008-09-24 Thread Matthias Wächter
minimum source:

\setupinteraction[state=start]

\starttext

\useURL[u][http://www.x.com/]

see \from[u].

\stoptext


It works:

• in MKⅡ
• in MKⅣ only if the first line is commented, i.e. without
setupinteraction.

It doesn't work in MKⅣ, no change by updating to latest.

Are there any known workarounds? It makes my bibliography
undeliverable …

Thanks,
- Matthias


test.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
___


[NTG-context] headstyle for synonyms

2008-08-12 Thread Matthias Wächter

Folks,

Just wanted to send the following patch, requesting inclusion to 
ConTeXt. It adds support for headstyle option in \setupsynonyms by 
passing it to \definedescription.


Maybe the \style option of \definedescription could be set by an 
additional option for \setupsynonyms as well, but as I am currently 
satisfied with the result in my document, I didn’t care yet.


Thanks for considering,
- Matthias
--- core-syn-old.tex2008-08-12 15:35:08.59375 +0200
+++ core-syn.tex2008-08-12 14:55:03.84375 +0200
@@ -80,7 +80,7 @@
   \c!inbetween=\synonymparameter\c!inbetween,
   \c!after=\synonymparameter\c!after,
   \c!indentnext=\synonymparameter\c!indentnext,
-  \c!headstyle=,
+  \c!headstyle=\synonymparameter\c!headstyle,
   \c!style=]%
\setupwhitespace[\v!none]%
%doutilities{#1}\jobname{#2}\relax\par % no longer \par
@@ -195,7 +195,7 @@
\fi
\dosetupsynonyms
  [#1]%
- [\c!synonymstyle=,\c!textstyle=,
+ [\c!synonymstyle=,\c!textstyle=,\c!headstyle=,
   \c!state=\v!start,\c!criterium=,
   \c!location=\v!left,\c!width=5em,\c!distance=0pt,
   \c!sample=,\c!hang=,\c!align=,
@@ -422,6 +422,7 @@
   [\v!abbreviation]
   [\c!textstyle=\v!capital,
\c!synonymstyle=,
+   \c!headstyle=,
\c!textcolor=,
\c!synonymcolor=,
\c!location=\v!left,
___
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] \Word broken

2008-08-05 Thread Matthias Wächter
On 8/5/2008 6:48 PM, Hans Hagen wrote:
> Matthias Wächter wrote:
>> On 8/5/2008 6:37 PM, Hans Hagen wrote:
>>> Matthias Wächter wrote:
>>>
>>>> Do you know how this can be fixed? Is the descripion descriptive enough?
>>> will be fixed in the next release (tomorrow we plan to do a formal release)
>> Thanks! I am looking forward to the change as I am curious what’s the proper 
>> way of doing it.
> 
> you mean in lua code?

Yeah. While I survived a journey into changing some ConTeXt (MKII) 
functionality recently and found everything clear (texbook is your friend), I 
am really puzzled about attribute handling in Lua. But it’s just a couple of 
lines I have investigated, maybe I’ll be a wizz as soon I roll things up from 
bottom to top … ;-)

- Matthias
___
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] \Word broken

2008-08-05 Thread Matthias Wächter
On 8/5/2008 6:37 PM, Hans Hagen wrote:
> Matthias Wächter wrote:
> 
>> Do you know how this can be fixed? Is the descripion descriptive enough?
> 
> will be fixed in the next release (tomorrow we plan to do a formal release)

Thanks! I am looking forward to the change as I am curious what’s the proper 
way of doing it.

Keep up the good work,
- Matthias
___
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] \Word broken

2008-08-05 Thread Matthias Wächter
Hans,

Do you know how this can be fixed? Is the descripion descriptive enough?

Thanks,
- Matthias

On 7/30/2008 10:23 AM, Matthias Wächter wrote:
> On 7/29/2008 11:22 PM, Hans Hagen wrote:
>> Matthias Wächter wrote:
>>
>>> Hans, do you feel something about the issue?
>> only if i get a test file and a description of expected behaviour
> 
> Sure, here it is. removing the comment on the \word version works only in 
> MKIV, i.e. LuaTeX, but that’s not the issue anyway.
> 
> \starttext
> 
> assert \WORDS{oNe two} = ONE TWO (works in MKII + MKIV)
> 
> %% \word is not defined in MKII, just in MKIV
> % assert \word{oNe two} = one two (works in MKIV)
> 
> assert \Words{oNe two} = ONe Two (works in MKII + MKIV)
> 
> assert \Word{oNe two} = ONe two (works in MKII, does not work in MKIV)
> 
> \stoptext
> 
> 
> Thanks for taking care, Hans,
> - Matthias
___
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] \Word broken

2008-07-30 Thread Matthias Wächter
On 7/29/2008 11:22 PM, Hans Hagen wrote:
> Matthias Wächter wrote:
> 
>> Hans, do you feel something about the issue?
> 
> only if i get a test file and a description of expected behaviour

Sure, here it is. removing the comment on the \word version works only in MKIV, 
i.e. LuaTeX, but that’s not the issue anyway.

\starttext

assert \WORDS{oNe two} = ONE TWO (works in MKII + MKIV)

%% \word is not defined in MKII, just in MKIV
% assert \word{oNe two} = one two (works in MKIV)

assert \Words{oNe two} = ONe Two (works in MKII + MKIV)

assert \Word{oNe two} = ONe two (works in MKII, does not work in MKIV)

\stoptext


Thanks for taking care, Hans,
- Matthias
___
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] \Word broken

2008-07-29 Thread Matthias Wächter
On 7/25/2008 11:30 AM, Matthias Wächter wrote:
> On 7/24/2008 9:49 PM, Peter Münster wrote:
>> On Thu, Jul 24 2008, Matthias Wächter wrote:
>>> What am I doing wrong? \Word, \Words and \WORDS cannot be applied to
>>> synonyms, they are displayed unmodified which is a pity as these words
>>> should be capitalized at the beginning of a sentence. Is there a
>>> solution?
>> Try "texexec --luatex file" (luatex has to be installed).
> 
> Wow, it's always impressive to see what difference luatex makes … :-)
> 
> Only problem: \Word does the same as \Words (checked on live.contextgarden). 
> Any hints?

This is the respective code from core-spa.mkiv, and it is obviously broken as 
it defines \Words to be the same as \Word (and it defines \Word wrongly in the 
first place).

[…]
\def\WORD{\groupedcommand{\setcharactercasing[\plusone  ]}{}}
\def\word{\groupedcommand{\setcharactercasing[\plustwo  ]}{}}
\def\Word{\groupedcommand{\setcharactercasing[\plusthree]}{}} % \plusfour

\let\WORDS\WORD
\let\words\word
\let\Words\Word
[…]

I just played a little bit with the lua code but get lost miserably considering 
all those nodes, linked lists etc.

It seems to be the hard part to skip the remaining words properly, so its 
implementation was postponed. Is this correct?

Hans, do you feel something about the issue?

Thanks,
- Matthias

___
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] \word of synonyms

2008-07-25 Thread Matthias Wächter
On 7/24/2008 9:49 PM, Peter Münster wrote:
> On Thu, Jul 24 2008, Matthias Wächter wrote:
>> What am I doing wrong? \Word, \Words and \WORDS cannot be applied to
>> synonyms, they are displayed unmodified which is a pity as these words
>> should be capitalized at the beginning of a sentence. Is there a
>> solution?
> 
> Try "texexec --luatex file" (luatex has to be installed).

Wow, it's always impressive to see what difference luatex makes … :-)

Only problem: \Word does the same as \Words (checked on live.contextgarden). 
Any hints?


Cheers,
- Matthias
___
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] \word of synonyms

2008-07-24 Thread Matthias Wächter
Hi list!

What am I doing wrong? \Word, \Words and \WORDS cannot be applied to synonyms, 
they are displayed unmodified which is a pity as these words should be 
capitalized at the beginning of a sentence. Is there a solution?

\starttext
\definesynonyms[term][terms]
\setupsynonyms[term][headstyle=bold,width=4cm,criterium=all]

\term[FTce]{fault tolerance}{The ability of a system to mitigate a
  fault avoiding desastrous behavior}

\placelistofterms

Original: \FTce\

First letter: \Word{\FTce}

All first letters: \Words{\FTce}

All letters: \WORDS{\FTce}

First letter: \Word{fault tolerance}

All first letters: \Words{fault tolerance}

All letters: \WORDS{fault tolerance}

\stoptext

Thanks,
- Matthias
___
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] Quickie about Line Numbering

2007-11-26 Thread Matthias Wächter
Hans,

Hans Hagen schrieb:
> Matthias Wächter wrote:
>> I really wonder why this is not implemented. It's so easy to do in
>> LaTeX, and we _really_ need it for our review process. I will never
>> convince my boss to change to ConTeXt without document-wide line numbers
>>  :/
> afaik in latex they tweak the output routine by handling line by line 
> which is ok for proofing article like stuff where messing up the spacing 
> is no problem
>
> in context, which has much more integrated in the otr that will not
> work out ok and i don't like implementing things half broken (apart
> from not needing it)

I see.

> in mkiv i will deal with line numbering in a different way (i have some 
> experimental code) and there it will be available in a couple of months
> (i just need time and reason)

Great news! Is there a principle change of operation in mkiv that makes
such new approach to line numbering possible, or is it just new
'motivation' to implement it in lua?

- Matthias
___
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] Quickie about Line Numbering

2007-11-23 Thread Matthias Wächter
Thomas A. Schmitz schrieb:

>> Just wondering how I can manage to number all the lines of my document.
>> Thought that this would work but it actually doesn't.

> I have some dim recollection that I asked a similar question some time
> ago, and the answer was: you can't (but I can't find a reference in the
> archive, so I may be wrong). You'll have to explicitly tell ConTeXt to
> start line numbering after headings:

Thanks for your (sad) answer.

I really wonder why this is not implemented. It's so easy to do in
LaTeX, and we _really_ need it for our review process. I will never
convince my boss to change to ConTeXt without document-wide line numbers
... :/

But maybe in Lua it's just a three-liner, so I won't give up hope. Not
now. :)

- Matthias
___
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] Quickie about Line Numbering

2007-11-23 Thread Matthias Wächter
Hi!

Just wondering how I can manage to number all the lines of my document.
Thought that this would work but it actually doesn't.

\starttext
\startlinenumbering

\chapter{First}

A paragraph

Another paragraph.

\chapter{Second}

Wait and see---nothing.

\stoplinenumbering
\stoptext


Is there a better/smarter way for doing this than typing a lot of
\(start|stop)linenumbering around paragraphs of text? We need line
numbers as part of our document review process for clearly referencing
error spots.

- Matthias
___
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] bib and bibltx problems

2006-11-02 Thread Matthias Wächter
Hi Taco, any progress?

- Matthias

On 24.10.2006 15:13, Taco Hoekwater wrote:
> Hi Matthias,
> 
> I goofed somewhere, that's for sure. Are you in a real hurry, or can
> I take a day or two staring at it?
> 
> Taco
> 
> Matthias Wächter wrote:
>> Hi Taco,
>>
>> I ran into the following problems:
>>
>> 1. see attached files. Three bib entries with different authors, but the 
>> resulting references are the same for two of them (!). Appearantly, 
>> without sorting the bib entries, the extra label numbering does not work 
>> correctly. Changing \setupbibtex to "sort=short" fixes the issue 
>> (appending "a" and "b") as well does changing "ITERATE {presort.none}" 
>> to "ITERATE {presort.clabel}" in cont-no.bst. But is this a 
>> once-and-for-all fix?
>>
>> 2. see attached files. In \setuppublications, numbering is given as 
>> "short", but the resulting list of references is only as good as "yes" - 
>> I only get the numbers, not the short references in the list. Hmmm, 
>> what's the cause for this? Any ideas? Or is it My Fault(TM)?
>>
>> 3. In general: If I'd use bib handwriting \{start,stop}publication 
>> without bibltx, would I have to care about the uniqueness of the "short" 
>> document names (the "s=" option to \startpublication)? Really? 
>> Considering hundreds of possible bibliography entries, this would double 
>> the effort: Not only the key (the "k=" option) but also the short name 
>> must be unique for correct references.
>>
>> 4. Sometimes, the build process ("texexec --pdf test") breaks after 
>> changing some text in the bibliography. Appearantly, sometimes the .bbl 
>> file is not updated. removing the .bbl file fixes the build. No recipy 
>> available, sorry.
>>
>> Thanks,
>> - Matthias
>>
>>
>> 
>>
>> \usemodule[bib]
>> \usemodule[bibltx]
>> \setupbibtex[database=mybibs,sort=no]
>> \setuppublications[refcommand=short,numbering=short]
>> \starttext For all times, \cite[TRUE] is right and \cite[FALSE] is wrong.
>> \completepublications
>> \stoptext
>>
>>
>> 
>>
>> @techreport{TRUE,
>> Title=  "True Values",
>> Author   =  "True Author",
>> Year =  "2005",
>> }
>>
>> @techreport{GNUS,
>> Title=  "Gnus in the Wild",
>> Author   =  "Another Doctor",
>> Year =  "2005",
>> }
>>
>> @techreport{FALSE,
>> Title=  "False values",
>> Author   =  "False Author",
>> Year =  "2005",
>> }
>>
>>
>> 
>>
>> ___
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib and bibltx problems

2006-10-24 Thread Matthias Wächter
On 24.10.2006 15:13, Taco Hoekwater wrote:
> I goofed somewhere, that's for sure. Are you in a real hurry, or can
> I take a day or two staring at it?

No hurry, please. :) Thanks for taking care.

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


[NTG-context] bib and bibltx problems

2006-10-24 Thread Matthias Wächter

Hi Taco,

I ran into the following problems:

1. see attached files. Three bib entries with different authors, but the resulting references are the same for two of them (!). 
Appearantly, without sorting the bib entries, the extra label numbering does not work correctly. Changing \setupbibtex to 
"sort=short" fixes the issue (appending "a" and "b") as well does changing "ITERATE 
{presort.none}" to "ITERATE {presort.clabel}" in cont-no.bst. But is this a once-and-for-all fix?

2. see attached files. In \setuppublications, numbering is given as "short", but the 
resulting list of references is only as good as "yes" - I only get the numbers, not the 
short references in the list. Hmmm, what's the cause for this? Any ideas? Or is it My Fault(TM)?

3. In general: If I'd use bib handwriting \{start,stop}publication without bibltx, would I have to care about 
the uniqueness of the "short" document names (the "s=" option to \startpublication)? 
Really? Considering hundreds of possible bibliography entries, this would double the effort: Not only the key 
(the "k=" option) but also the short name must be unique for correct references.

4. Sometimes, the build process ("texexec --pdf test") breaks after changing 
some text in the bibliography. Appearantly, sometimes the .bbl file is not updated. 
removing the .bbl file fixes the build. No recipy available, sorry.

Thanks,
- Matthias
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=mybibs,sort=no]
\setuppublications[refcommand=short,numbering=short]
\starttext For all times, \cite[TRUE] is right and \cite[FALSE] is wrong.
\completepublications
\stoptext
@techreport{TRUE,
Title=  "True Values",
Author   =  "True Author",
Year =  "2005",
}

@techreport{GNUS,
Title=  "Gnus in the Wild",
Author   =  "Another Doctor",
Year =  "2005",
}

@techreport{FALSE,
Title=  "False values",
Author   =  "False Author",
Year =  "2005",
}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] tempdir support in texexec.rb

2006-07-18 Thread Matthias Wächter
On 18.07.2006 10:29, Hans Hagen wrote:
>>> if it's because of the temp files. you can run with --purge and get them 
>>> removed
>> Well, then Context could not benefit from "incremental" builds with just one 
>> run instead of 4 to 5 runs. But I get the idea.
> eh ... the tuo file is kept

Appearantly, only mpgraph.mp is removed by --purge, and --purgeall only gives 
some CtxTools help messages. Hmm ...

>> Maybe for this task, --purge is reasonable enough. I'll give it a try.
>>   
> that's indeed the best way to go; btw, here i only version tex files 

Depending on the process you have to maintain (you know, I mentioned Context 
version numbers before ...), you want to version everything except stuff that 
is there and unversioned by intent. At least you want to get warned of new 
files you may have forgotten to put under revision control, and as said, you 
may want to mark the document tainted because of unclean checkouts. The easiest 
approach would be to have a separate directory for non-output related stuff 
like .tmp, .log, .tui, .tuo, .mp, then any other unversioned file would be a 
sign of unallowed modification.

OK, I will simply mark *.tmp, *.log, *.tui and *.tuo as "ignore".

What's the difference between mpgraph.mp and -mpgraph.mp ? The latter 
is not removed when using --purge. Is this by intent? Then I have to put 
*-mpgraph.mp to the ignore list, too.

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


Re: [NTG-context] tempdir support in texexec.rb

2006-07-18 Thread Matthias Wächter
On 17.07.2006 21:35, Hans Hagen wrote:
> Matthias Wächter wrote:
>> Naively, I thought that the --tempdir option would allow the 'temporary' 
>> files created/updated at a run of texexec be written to whatever is given as 
>> --tempdir=/dir/, but it doesn't work, the files remain in the current 
>> directory. Additionally, --output seems to disallow the output be put into 
>> another directory (it's always put into `pwd`).
>> Is there a (better?) way to specify where these files should go?
> currently not, an option like that is doable but would involve both an 
> patch to context itself (runtime locating files) and texexec 
> (inbetween/postprocessing) [pretty fuzzy btw]

I see.

> if it's because of the temp files. you can run with --purge and get them 
> removed

Well, then Context could not benefit from "incremental" builds with just one 
run instead of 4 to 5 runs. But I get the idea.

>> $ texexec --pdf --tempdir=tmp --output=out/project.pdf project
> --output concerns the backend while --result
> 
> texexec test --result=what/oeps
> 
> should work ok given that what exists (i'll add a check for existence)
>> Is /me the only one who desires such a split?
> I think so 

Then, is there a list of files that are automatically created by Context (not 
mentioning files that are manually created as part of TeX output functions and 
such)?

The prime aspect of my question is to have a reasonable list of file names that 
shouldn't be version controlled with the source code. Our scripts automatically 
check for unknown files and mark our documents tainted if the local version is 
not consistent with the repository (say, completely committed and updated). If 
I could instruct context to put all temporary files into a separate directory, 
I could simply put "tmp/*" to the ignore list, and that's it.

Maybe for this task, --purge is reasonable enough. I'll give it a try.

Thanks, Hans!

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


[NTG-context] tempdir support in texexec.rb

2006-07-17 Thread Matthias Wächter
Hi,

Naively, I thought that the --tempdir option would allow the 'temporary' files 
created/updated at a run of texexec be written to whatever is given as 
--tempdir=/dir/, but it doesn't work, the files remain in the current 
directory. Additionally, --output seems to disallow the output be put into 
another directory (it's always put into `pwd`).

Is there a (better?) way to specify where these files should go?

What I'd expect is a directory layout like the following:

files/
  onesource.tex
  env.tex
  othersource.tex
  project.tex
  out/
  project.pdf
  tmp/
  project.tmp
  project.log
  project.tui
  project.tuo
  mpgraph.mp
  project-mpgraph.mp

as a result of

$ cd files/
$ texexec --pdf --tempdir=tmp --output=out/project.pdf project

Is /me the only one who desires such a split?

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


Re: [NTG-context] Version Numbers in Download File Names

2006-07-12 Thread Matthias Wächter
Taco Hoekwater wrote:
> Matthias Wächter wrote:
>> https://foundry.supelec.fr/frs/?group_id=14 gives me quite some versions of 
>> Context, but the download paths for each precise version is not related to 
>> the 
>> release date or the SVN revision, 
> Correct. SVN release ids have numbers, not dates, and it was a bitch
> getting all this stuff into subversion as it was, so I did not want
> to fiddle too much with extra tag ids. The SVN log entry is always the
> release date number.

So you take the official, newly released .zip file, unpack it to the checked 
out Subversion copy, and commit the changes using your name and the release 
date as commit text (no change tracking using information from the Release 
Notes or the prime version control system),? It's not that Context development 
is actually performed on supelec.fr, is it? Looks like a lot of effort (riding 
the horse backwards).

So: Why is Context development not performed on a public SVN repository? The 
whole release procedure would be a lot simpler then ... Am I too progressive 
asking this? ;)

> For the 'Files' section, it could actually be retrofitted, by
> rearranging the uploaded files (and uploading a few hundred
> extra zip files that are now skipped). I will happily give
> anybody who wants to do such a project enough gforge permissions
> to do so ;-)

I don't understand precisely what actions you mean. Maybe together we can work 
out a better 'Files' section.

>> Second: I tried to checkout the repository anonymously as mentioned 
>>  on  https://foundry.supelec.fr/scm/?group_id=14 without success
> That is odd, because it should have worked. I will investigate

Thank you very much!

Just a configuration hint (actually I don't know how much access you have to 
the various SVN config files on supelec.fr):

1) Put a "* = r" for the part (or whole) of the repository in the file referred 
to by the AuthZSVNAccessFile directive in the apache config. Usually, the file 
looks like the following enabling write access for users "taco" and "hans" 
while only read access for anybody including anonymous:


[groups]
committers = taco, hans

[/]
* = r
@committers = rw


2) Assure that "Require valid-user" is accompanied by "Satisfy Any" inside the 
... section of the apache config file. An example config 
section is



  DAV svn
  SVNPath /path/to/contextrev

  # our access control policy
  AuthzSVNAccessFile /path/to/access/file

  # try anonymous access first, resort to real 
  # authentication if necessary.
  Satisfy Any
  Require valid-user

  # how to authenticate a user
  AuthType Basic
  AuthName "Subversion repository for Context"
  AuthUserFile /path/to/users/file



HTH,
- Matthias

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


Re: [NTG-context] Version Numbers in Download File Names

2006-07-12 Thread Matthias Wächter
Taco Hoekwater schrieb:
> Matthias Wächter wrote:
>> Is there a strong motivation against having versioned package file names, 
>> possibly with some months/years of history? 
>  > Or is this archive available but I am unable to find it? ;)
> There is an archive of old releases and file versions on-line,
> but at a different location. Check this page as a starting point:
>http://wiki.contextgarden.net/Revisions

Taco, thanks for pointing me there and indirectly to the releases and SVN 
repository at supelec.fr. Stupid /me didn't search the garden for it.

Two comments nevertheless.

https://foundry.supelec.fr/frs/?group_id=14 gives me quite some versions of 
Context, but the download paths for each precise version is not related to the 
release date or the SVN revision, for example, the 20060609 release can be 
downloaded as https://foundry.supelec.fr/frs/download.php/305/cont-tmf.zip. 
Can't it be something like 
https://foundry.supelec.fr/frs/download.php/cont-tmf-20060609.zip, or in case 
of true SVN snapshots maybe 
https://foundry.supelec.fr/frs/download.php/cont-tmf-164.zip having '164' as 
the associated SVN repository revision number? That would be easy to maintain 
in subsequent application packages for Context. Certainly, supelec.fr and 
gforge.org have the last word on this issue. Anyway, thanks for the link, it is 
a big step towards a solution.

Second: I tried to checkout the repository anonymously as mentioned on 
https://foundry.supelec.fr/scm/?group_id=14 without success (it asks me for 
username/password). Either anonymous read-only access should be enabled as 
documented, or the documentation on this page should change (but why should the 
repository be publicly browseable as well as versioned snapshots be publicly 
available without proper public Subversion access?). In case cont-tmf.zip is a 
simple consistent snapshot of the (then) publicly available SVN repository, the 
problem of versioning would vanish in a second, I'd just have to refer to the 
associated SVN revision of the tree.

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


[NTG-context] Version Numbers in Download File Names

2006-07-12 Thread Matthias Wächter
Hi!

Pardon me for requesting more support from pragma-ade prior to ever using the 
mailing list for general support questions. Maybe I should post this one 
directly to Hans but others might be interested in this issue as well.

Despite my little but growing knowledge of Context I am currently evaluating 
its suitability for document building in our company (our workflow is currently 
Latex-based). A prime aspect of our company's work is to follow well-defined 
processes, and as part of that, we have to be able to refer to specific 
versions of applications that are used in the development of our projects. When 
used, this would apply to Context as well.

Obviously, downloading from pragma-ade gives version numbers only on the entry 
pages like http://www.pragma-ade.nl/download-1.htm next to the links to the 
files, but the package files themselves like 
http://www.pragma-ade.nl/context/current/cont-tmf.zip don't have versioned 
names (not mentioning that Context and its modules actually _do_ report version 
numbers as dates upon use).

Is there a strong motivation against having versioned package file names, 
possibly with some months/years of history? Has this support feature ever been 
considered by pragma-ade or asked for by their (non-)paying customers? Or is 
this archive available but I am unable to find it? ;)

Just an example:

Instead of
http://www.pragma-ade.nl/context/current/cont-tmf.zip

use a browseable directory like http://www.pragma-ade.nl/context/archive/ 
containint files like
http://www.pragma-ade.nl/context/archive/cont-tmf-20060518.zip
http://www.pragma-ade.nl/context/archive/cont-tmf-20060601.zip
http://www.pragma-ade.nl/context/archive/cont-tmf-20060629.zip

and possibly set /context/current/cont-tmf.zip as an internal file system link 
to the latest file in /context/archive/ for those interested only in the latest 
version. The proposed method could be applied to all other download files as 
well.

That way and as long as the archive files are available, a precise version of 
Context could be fetched from pragma-ade's server without maintaining a local 
versioned archive of cont.tmf.zip etc. Referral to a specific version of 
Context would be a lot easier, and documenting the tools used for a project 
would be a lot simpler. A common understanding of a Context version, reflected 
in its package file name, would reduce the effort of those responsible for 
local version control and install package maintenance.

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


Re: [NTG-context] !?!? -what's up?

2006-07-11 Thread Matthias Wächter
Hans Hagen schrieb:
> andrea valle wrote:
>> I reinstalled all (tex, texshop) and solved the problem. Now I 
>> installed  ConTeXt Beta.
>> Still I have this warning I do not understand:
>>
>>  remark : 'texutil' is now part of 'texexec'
>> warning : use 'texmfstart texutil' instead
>>
>>  total run time : 7 seconds
>>
>> warning : use 'texmfstart texexec' instead
>>
>>
>> What does it mean?
>>   
> that you run texexec.pl (which calls texutil.pl) instead of texexec.rb 
> (which has texutil built in)

The same text is returned when using live.contextgarden.net.

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