[NTG-context] Bug with setupinteraction and footnote

2012-08-05 Thread Otared Kavian
Hi Hans,

With the latest beta (ConTeXt  ver: 2012.08.04 14:00 MKIV  fmt: 2012.8.5) the 
following use of \setupinteraction[state=start] and \footnote causes a luatex 
error:

%%
\setupinteraction[state=start]
\starttext
While testing footnotes\footnote{This is a footnote.} we encounter a bug with 
\type{\setupinteraction}.
\stoptext
%%

The error message starts with:
 ! LuaTeX error ...imal/tex/texmf-context/tex/context/base/strc-not.lua:351: 
 attempt to call global 'getdeltapage' (a nil value)
 stack traceback:
   ...imal/tex/texmf-context/tex/context/base/strc-not.lua:351: in 
 function 'notedeltapage'
   main ctx instance:1: in main chunk.

and finishes with:

 \ctxcommand ...\directlua \zerocount {commands.#1}
   
 \strc_notes_set_style_color_special ...tenumber )}
   \relax 
 \setlocationcolorsp...
 \strc_notes_set_style_color_inline ...lor_special 
   \fi 
 \strc_notes_inject_symbol ...xtstyle \c!textcolor 
   \hbox 
 \strc_notes_get_refe...
 \195notation:note ...l \strc_notes_inject_symbol 
   \else \unskip \unskip 
 \glo...
 \strc_notations_command_nop ...handler \endcsname 
   
 \strc_constructions_finali...
 l.6 ...ing footnotes\footnote{This is a footnote.}
we encounter a bug with 
 \...
 ? 
 Process aborted
 


By the way just before line 351 of strc-not.lua, on lines 345--347 are the 
equalities written in this way on purpose?
Best regards: OK

___
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] Strange bug with \ in footnotes

2012-08-05 Thread Aditya Mahajan
Hi,

I usually use \ after abbreviations to avoid bad interword spaces. For 
example, Prof.\ ABC. However, when using this in footnotes, if there is a 
linebreak after the \, I get an error:

! Undefined control sequence.

1   \starttext
2 Someone\footnote{Prof.\
3 ABC}
4 \stoptext
5

l.1 Prof.\

   ABC
\ctxcommand ...\directlua \zerocount {commands.#1}

\handlenoteitself ...text \strc_notes_inject_text
  \endstrut 
\strc_constructi...
\handlenoteinsert ... {\handlenoteitself {#1}{#2}}
  \egroup \the 
\everyafterno...
\195notation:note ...rentnote \currentnotenumber
  \fi \fi \endgroup \fi 
\fi ...
\strc_notations_command_nop ...handler \endcsname

\strc_constructions_finali...
l.3 ABC}

Minimal example (There should be a linebreak after \)

\starttext
Someone\footnote{Prof.\
ABC}
\stoptext

What's going on here?

Aditya
___
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] Strange bug with \ in footnotes

2012-08-05 Thread Otared Kavian
Hi Aditya,

On 4 août 2012, at 20:59, Aditya Mahajan aditya.maha...@mcgill.ca wrote:

 […]
 Minimal example (There should be a linebreak after \)

Is it not « \\ » that should give a line break? Indeed this gives a line break:
\starttext
Someone\footnote{Prof.\\ ABC}
\stoptext

However, you are right to observe that 

Someone\footnote{Prof.\
ABC}

results in an error with the latest beta, while 

Someone\footnote{Prof.\ ABC}

does not (and of course there is no line break neither, the « .\ » gives only a 
normal space after the dot).

Best regards: OK

 
 \starttext
 Someone\footnote{Prof.\
 ABC}
 \stoptext
 
 What's going on here?
 
 Aditya
 ___
 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
 ___

___
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] Italic page number.

2012-08-05 Thread Wolfgang Schuster

Am 05.08.2012 um 02:37 schrieb john Culleton j...@wexfordpress.com:

 IMO the following code should result in an italic iii on the
 contents page. Instead I get a roman 1.
 ---
 \startfrontmatter
 \setuppagenumbering[alternative=doublesided,conversion=romannumerals]
 \setuppagenumber[number=iii]
 \setuppagenumber[state=start]
 \completecontent
 --
 I have tried variations such as a single \setupagenumber with two
 parameters, using \page[iii] instead and so on. 
 
 This ought to be a smple task: start page numbering on the
 contents page with iii. But I haven't mastered it yet.

\setuppagenumbering[alternative=doublesided]

% You can use this instead of 
\setuppagenumbering[numberconversion=romannumerals]
% to set the conversion of the pagenumber outside of the sectionblock 
environment,
% the first argument takes the name of the conversion which is applied to the
% userpage counter with \setupcounter[userpage][numberconversionset=pagenumber].
%
% You can set a conversion for a certain sectionblock when you write the name
% of the block before the name of the conversion set separated by a “:”.
%
%\defineconversionset[frontpart:pagenumber][][romannumerals]

\startsectionblockenvironment[frontpart]

\setuppagenumbering[numberconversion=romannumerals]

\setcounter[userpage][3]

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]

\setcounter[userpage][1]

\stopsectionblockenvironment

\starttext

\startfrontmatter

\completecontent

\stopfrontmatter

\startbodymatter

\dorecurse{100}
  {\chapter{Chapter #1}
   \dorecurse{5}
 {\section{Section #1.##1}}}

\stoptext

BTW: Send next time a complete minimal example.

Wolfgang

___
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] Strange bug with \ in footnotes

2012-08-05 Thread Wolfgang Schuster

Am 05.08.2012 um 09:28 schrieb Otared Kavian ota...@gmail.com:

 Hi Aditya,
 
 On 4 août 2012, at 20:59, Aditya Mahajan aditya.maha...@mcgill.ca wrote:
 
 […]
 Minimal example (There should be a linebreak after \)
 
 Is it not « \\ » that should give a line break? Indeed this gives a line 
 break:
 \starttext
 Someone\footnote{Prof.\\ ABC}
 \stoptext
 
 However, you are right to observe that 
 
 Someone\footnote{Prof.\
 ABC}
 
 results in an error with the latest beta, while 
 
 Someone\footnote{Prof.\ ABC}
 
 does not (and of course there is no line break neither, the « .\ » gives only 
 a normal space after the dot).

The “\ ” command gives a control space which is necessary when you use 
\nonfrenchspacing
(which is normally set with \setuplanguage[…][spacing=broad]). What \\ produce 
depends
on the environment and can be a line break, a space or something different.

Wolfgang
___
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 setupinteraction and footnote

2012-08-05 Thread Sietse Brouwer
Hi Otared,

This is the same error as in the Luatex error in latest beta
(standalone) thread.

In line 317 of strc-not.lua, change this:
 function notes.deltapage(tag,n)
into this:
 local function getdeltapage(tag,n)

Cheers,
Sietse
___
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] Strange bug with \ in footnotes

2012-08-05 Thread Hans Hagen

On 4-8-2012 20:59, Aditya Mahajan wrote:

Hi,

I usually use \ after abbreviations to avoid bad interword spaces. For
example, Prof.\ ABC. However, when using this in footnotes, if there is a
linebreak after the \, I get an error:

! Undefined control sequence.

1   \starttext
2 Someone\footnote{Prof.\
3 ABC}
4 \stoptext
5

l.1 Prof.\

ABC


interesting ... it only surfaces now because notes have been redone, but

\section{Prof.\
 ABC}

has the same issue (something in the tex-lua-tex cycle)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Struggling with ConTeXt

2012-08-05 Thread Thomas A. Schmitz

On 08/03/2012 04:50 PM, Sietse Brouwer wrote:

I'm looking for a place to put it, but I'm handicapped by the fact
that I know nothing about ConTeXt's XML handling. I don't even know
whether the question+answer is about general lxml.att usage, or a
howto for some specific result. Can somebody tell me:

Is the lxml namespace common and populated enough that it would be
worth creating
http://wiki.contextgarden.net/XML_manipulation  to document the lxml.*
functions, much like
http://wiki.contextgarden.net/String_Manipulation  documents string.*
and lpeg.*, and
[[table_manipulation]] documents table.*, and
[[Extensions_to_the_Lua_I/O_library]] documents io.*. (Consistent page
names? Maybe for Christmas (or St. Nicholas), if you're very good.)

Or is there a more suitable page among the links on
http://wiki.contextgarden.net/XML?

Cheers,

Sietse
___


Hi Sietse,

I have reorganized the XML page on the wiki a bit. The separation 
between mkii and mkiv wasn't visible enough, I think. It would now make 
sense to add a category manipulating xml in lua code (or something to 
that effect) under the mkiv heading and then add the lxml code.


All best

Thomas

--
Prof. Dr. Thomas A. Schmitz
Abteilung für Griechische und Lateinische Philologie
Universität Bonn
Am Hof 1e
53113 Bonn
http://www.philologie.uni-bonn.de/personal/schmitz
___
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] Strange bug with \ in footnotes

2012-08-05 Thread Hans Hagen

On 4-8-2012 20:59, Aditya Mahajan wrote:
Hi Aditya,


I usually use \ after abbreviations to avoid bad interword spaces. For
example, Prof.\ ABC. However, when using this in footnotes, if there is a
linebreak after the \, I get an error:

! Undefined control sequence.

1   \starttext
2 Someone\footnote{Prof.\
3 ABC}
4 \stoptext
5


Ok, the next is only for those who want to spend some time on the 
internals ...


\starttext

\def\TestA#1%
  {\writestatus{Test A}{#1}%
   \ctxlua{str = #1 print(str) context(str) io.savedata(temp.tmp,str)}}

\def\TestB#1%
  {\writestatus{Test B}{#1}%
   \ctxlua{str = \detokenize{#1} print(str) context(str) 
io.savedata(temp.tmp,str)}}


\def\TestC#1%
  {\writestatus{Test C}{#1}%
   \edef\temp{#1}%
   \ctxlua{str = \detokenize\expandafter{\temp} print(str) 
context(str) io.savedata(temp.tmp,str)}%

   \typefile{temp.tmp}}

\TestA{Test\
A}

\TestB{Test\
B}

\TestC{Test\
C}

Test\
D

\section{Test\
E}

Test F\footnote{Note\
F}

\stoptext

I patched the helpers.title macro to deal with it but it's still 
something to look into as one might wonder why the newline end up there 
(Taco might know).


(The 'context' function takes care of newlines so this is why it don't 
get noticed in other cases. Here a more low level sprint (catcodeid, 
str) was used.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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 \startitemize[randomize]

2012-08-05 Thread Hans Hagen

On 4-8-2012 17:22, Aditya Mahajan wrote:

Hi,

\startitemize[randomize] does not randomize properly (one entry at
random is gobbled and another is repeated in its place). I guess that
this is because of an off-by-one error somewhere.

Example (from: http://tex.stackexchange.com/a/65662/323)

 \defineitemgroup[institm]

 \setupinstitm[1][text, random]
 \setupinstitm[1][symbol=2, indentnext=no, intro=yes]

 \starttext

 \startTEXpage[offset=5mm]
 \bold{Contributions}
 \startinstitm
   \startitem Foo Pvt Ltd {\sc nsw} \stopitem
   \startitem Bar Pvt Ltd {\sc vic} \stopitem
   \startitem Baz Pvt Ltd {\sc abc} \stopitem
 \stopinstitm
 \stopTEXpage

 \stoptext


an \if going wild du eto a lack of \relax'ing

\unexpanded\def\getrandomcount #1#2#3%
  {#1=\ctxcommand{getrandomcounta(\number#2,\number#3)}\relax}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Marking a textfragment for later reference

2012-08-05 Thread Robert Blackstone
Dear list,

How can I refer to some text, for example a discussion of a particular topic, 
on another page or in another chapter of my document with, for instance (See 
discussion on page xx)?
I tried to do this by marking the relevant text as a delimited text without 
altering its layout:
\definedelimitedtext[topica]
\setupdelimitedtext[topica][left=,right=] %maybe superfluous?
\starttopica
some text
\stoptopica

and then, further on, referring to that text with  (See discussion on 
\at{page}[topica])
But this does not work (mkiv 27-07).

Thanks in advance for any advice.

Best regards,
Robert Blackstone
___
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] Italic page number.

2012-08-05 Thread Wolfgang Schuster

Am 05.08.2012 um 09:39 schrieb Wolfgang Schuster wolfgang.schus...@gmail.com:

 \setuppagenumbering[alternative=doublesided]
 
 % You can use this instead of 
 \setuppagenumbering[numberconversion=romannumerals]
 % to set the conversion of the pagenumber outside of the sectionblock 
 environment,
 % the first argument takes the name of the conversion which is applied to the
 % userpage counter with 
 \setupcounter[userpage][numberconversionset=pagenumber].
 %
 % You can set a conversion for a certain sectionblock when you write the name
 % of the block before the name of the conversion set separated by a “:”.
 %
 %\defineconversionset[frontpart:pagenumber][][romannumerals]
 
 \startsectionblockenvironment[frontpart]
 
 \setuppagenumbering[numberconversion=romannumerals]


This has to be (wrong command for the conversion and missing style for the 
numbers):

\setuppagenumbering [style=italic]
\setupuserpagenumber[numberconversion=romannumerals] % you can also use 
\setuppagenumber which is a synonym for \setupuserpagenumber

Wolfgang___
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] Marking a textfragment for later reference

2012-08-05 Thread Wolfgang Schuster

Am 05.08.2012 um 16:05 schrieb Robert Blackstone blackstone.rob...@gmail.com:

 Dear list,
 
 How can I refer to some text, for example a discussion of a particular topic, 
 on another page or in another chapter of my document with, for instance (See 
 discussion on page xx)?
 I tried to do this by marking the relevant text as a delimited text without 
 altering its layout:
 \definedelimitedtext[topica]
 \setupdelimitedtext[topica][left=,right=] %maybe superfluous?
 \starttopica
 some text
 \stoptopica
 
 and then, further on, referring to that text with  (See discussion on 
 \at{page}[topica])
 But this does not work (mkiv 27-07).


With \definedelimtedtext you can create your own quote and quotation command or 
environment.

You can set your own references in the text with \pagereference:

\starttext

This is the first topic.\pagereference[topic:1]

\page

This is another topic.\pagereference[topic:2]

\blank

This example contains two topic, the first topic is on \at{page}[topic:1] and 
the second on \at{page}[topic:2].

\stoptext

Wolfgang
___
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] Marking a textfragment for later reference

2012-08-05 Thread Marco Patzer
Hi Robert,

\starttext
See \in{section}[sec:foo] on \at{page}[sec:foo]
or the text on \at{page}[ref:a].

\page
\startsection [title=Foo, reference=sec:foo]
\stopsection
\page

Some text\reference[ref:a]
\stoptext


Marco

___
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] Marking a textfragment for later reference

2012-08-05 Thread Robert Blackstone

On  Sun, 5 Aug 2012 16:37:36 +0200
 Wolfgang Schuster wolfgang.schus...@gmail.com
 wrote
 
 Am 05.08.2012 um 16:05 schrieb Robert Blackstone 
 blackstone.rob...@gmail.com:
 
 
 How can I refer to some text, for example a discussion of a particular 
 topic, on another page or in another chapter of my document with, for 
 instance (See discussion on page xx)?
 
 You can set your own references in the text with \pagereference:
 
 \starttext
 
 This is the first topic.\pagereference[topic:1]
 
 \page
 
 This is another topic.\pagereference[topic:2]
 
 \blank
 
 This example contains two topic, the first topic is on \at{page}[topic:1] and 
 the second on \at{page}[topic:2].
 
 \stoptext
 
 Wolfgang

Thank you very much, Wolfgang. Marvelously simple and effective.

Kind regards,

Robert Blackstone
___
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] inproceedings failes me

2012-08-05 Thread Meer, H. van der
Bibtex's inproceedings gives me an error.

entries:

@inproceedings{elgamal:84,
Author = {T. ElGamal},
Crossref = {crypto84},
Pages = {10--18},
Title = {{A Public Key Cryptosystem and a Signature Scheme Based on Discrete 
Logarithms}}}
@proceedings{crypto84,
Booktitle = {{Proceedings of Crypto '84}},
Editor = {G. R. Blakley and D. Chaum},
Publisher = pub-springer,
Series = j-lncs,
Title = {{Advances in Cryptology}},
Volume = {196},
Year = {1985}}
These worked in the past and should be ok.

The error is:
to be read again
  \pbd:
\bibgetvart #1-\csname pbd:#1\endcsname
\plussix
\bibalternative ... \??pv \@@currentalternative #1
 \endcsname
\dotypesetapublication ...ative {\bibgetvart {#1}}
 \removeunwantedspaces \egr...
\93 #1,-\dobibdata {#1}
 \syst_helpers_do_process_comma_item
\syst_helpers_do_process_comma_list ...rgument #1,
 ]\relax \global \advance \...
...
l.5 ...elijke klaartekst\footnotecite[elgamal:84].

Version of ConTeXt:
ConTeXt  ver: 2012.07.20 00:58 MKIV  fmt: 2012.7.22  int: english/english

Version of bibtex according to the log
This is BibTeX, Version 0.99d (TeX Live 2012)

\footnotecite puts an bibentry in a footnote, other citations pose no problem, 
just inproceedings.

Hans van der Meer



___
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] inproceedings failes me

2012-08-05 Thread Meer, H. van der
Maybe it helps if add my def's. Just forgot them in my previous post, sorry.

% Usage: \footnotecite[citation,citation,.. ][optional text]
%\footnotecite[citation,citation,..,][optional text on new line]
%\footnotecite[citation,,citation,..][optional text] white within
\def\bibentry#1{\noexpand\bibentrypar\cite[data][#1]\strut}
\def\footnotecite{\dodoubleargument\dofootnotecite}
\def\dofootnotecite[#1][#2]{%
\def\bibentrypar{\def\bibentrypar{\par}}%
\unskip\footnote{\processcommalist[#1]\bibentry
\doifnotempty{#2}{\space#2\strut\par}}}

It might be the \processcommalist that now makes this code fail, but I cannot 
see why.

Hans van der Meer



On 5 aug. 2012, at 20:35, Meer, H. van der wrote:

 Bibtex's inproceedings gives me an error. 
 
 entries:
 
 @inproceedings{elgamal:84,
 Author = {T. ElGamal},
 Crossref = {crypto84},
 Pages = {10--18},
 Title = {{A Public Key Cryptosystem and a Signature Scheme Based on Discrete 
 Logarithms}}}
 @proceedings{crypto84,
 Booktitle = {{Proceedings of Crypto '84}},
 Editor = {G. R. Blakley and D. Chaum},
 Publisher = pub-springer,
 Series = j-lncs,
 Title = {{Advances in Cryptology}},
 Volume = {196},
 Year = {1985}}
 These worked in the past and should be ok.
 
 The error is:
 to be read again 
   \pbd: 
 \bibgetvart #1-\csname pbd:#1\endcsname 
 \plussix 
 \bibalternative ... \??pv \@@currentalternative #1
  \endcsname 
 \dotypesetapublication ...ative {\bibgetvart {#1}}
  \removeunwantedspaces \egr...
 \93 #1,-\dobibdata {#1}
  \syst_helpers_do_process_comma_item 
 \syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance \...
 ...
 l.5 ...elijke klaartekst\footnotecite[elgamal:84].
 
 Version of ConTeXt:
 ConTeXt  ver: 2012.07.20 00:58 MKIV  fmt: 2012.7.22  int: english/english
 
 Version of bibtex according to the log
 This is BibTeX, Version 0.99d (TeX Live 2012)
 
 \footnotecite puts an bibentry in a footnote, other citations pose no 
 problem, just inproceedings.
 
 Hans van der Meer
 
 
 
 ___
 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
 ___

___
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] inproceedings failes me

2012-08-05 Thread Meer, H. van der
This error rang a bell after sifting (slowly) down into my subconscience, it 
seemed.
But back in september last year I remembered having the same sort of problem. 
After much detective work I then found the culprit being \bibinsertcrossref. 
The solution proved to be the following redefinition:

\unprotect
\def\bibinsertcrossref#1#2#3{\bibdoifelse\@@pb@crossref{\edef\tmp{\@@pb@crossref}#1\cite[\tmp]#2}{#3}}
\protect

Doing this, the error dispappears. I think I reported it at the time, but that 
message might have been passed unnoticed.
I therefore post this again. Will this be included in the next beta? Or perhaps 
something better than my (possibly clumsy) stopgap?

Hans van der Meer



On 5 aug. 2012, at 20:48, Meer, H. van der wrote:

 Maybe it helps if add my def's. Just forgot them in my previous post, sorry.
 
 % Usage: \footnotecite[citation,citation,.. ][optional text]
 %\footnotecite[citation,citation,..,][optional text on new line]
 %\footnotecite[citation,,citation,..][optional text] white within
 \def\bibentry#1{\noexpand\bibentrypar\cite[data][#1]\strut}
 \def\footnotecite{\dodoubleargument\dofootnotecite}
 \def\dofootnotecite[#1][#2]{%
 \def\bibentrypar{\def\bibentrypar{\par}}%
 \unskip\footnote{\processcommalist[#1]\bibentry
 \doifnotempty{#2}{\space#2\strut\par}}}
 
 It might be the \processcommalist that now makes this code fail, but I cannot 
 see why.
 
 Hans van der Meer
 
 
 
 On 5 aug. 2012, at 20:35, Meer, H. van der wrote:
 
 Bibtex's inproceedings gives me an error. 
 
 entries:
 
 @inproceedings{elgamal:84,
 Author = {T. ElGamal},
 Crossref = {crypto84},
 Pages = {10--18},
 Title = {{A Public Key Cryptosystem and a Signature Scheme Based on Discrete 
 Logarithms}}}
 @proceedings{crypto84,
 Booktitle = {{Proceedings of Crypto '84}},
 Editor = {G. R. Blakley and D. Chaum},
 Publisher = pub-springer,
 Series = j-lncs,
 Title = {{Advances in Cryptology}},
 Volume = {196},
 Year = {1985}}
 These worked in the past and should be ok.
 
 The error is:
 to be read again 
  \pbd: 
 \bibgetvart #1-\csname pbd:#1\endcsname 
\plussix 
 \bibalternative ... \??pv \@@currentalternative #1
 \endcsname 
 \dotypesetapublication ...ative {\bibgetvart {#1}}
 \removeunwantedspaces \egr...
 \93 #1,-\dobibdata {#1}
 \syst_helpers_do_process_comma_item 
 \syst_helpers_do_process_comma_list ...rgument #1,
 ]\relax \global \advance \...
 ...
 l.5 ...elijke klaartekst\footnotecite[elgamal:84].
 
 Version of ConTeXt:
 ConTeXt  ver: 2012.07.20 00:58 MKIV  fmt: 2012.7.22  int: english/english
 
 Version of bibtex according to the log
 This is BibTeX, Version 0.99d (TeX Live 2012)
 
 \footnotecite puts an bibentry in a footnote, other citations pose no 
 problem, just inproceedings.
 
 Hans van der Meer
 
 
 
 ___
 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
 ___
 
 ___
 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
 ___

___
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] Et tu, Taco?

2012-08-05 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear Knights of the ConTeXt Table,

I am sad to report that our beloved Taco has gone over to the dark side:

http://tacosw.com/latexian/

Is there a Merlin among us to bring back our holy grail? Wolfgang? Luigi?

:D

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Et tu, Taco?

2012-08-05 Thread luigi scarso
On Sun, Aug 5, 2012 at 11:00 PM, Idris Samawi Hamid ادريس سماوي حامد 
isha...@colostate.edu wrote:

 Dear Knights of the ConTeXt Table,

 I am sad to report that our beloved Taco has gone over to the dark side:

 http://tacosw.com/latexian/

 Is there a Merlin among us to bring back our holy grail? Wolfgang? Luigi?

 It's all part of the plan.
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Broken Nightly (2012.08.02)

2012-08-05 Thread Kip Warner
On Sat, 2012-08-04 at 00:48 +0200, luigi scarso wrote:
 see
 Luatex error in latest beta (standalone)

Hey Luigi. Thanks for the heads up. I read the whole thread, but my lua
knowledge has not been exercised in a long time. If I understand the
thread correctly, there was a bug in ConTeXt?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___