ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: bug with \cite in latest beta (2011.04.13)
@ 2011-04-16  4:47 Reviczky, Adam
  2011-04-16  5:55 ` Bernhard Rosensteiner
  0 siblings, 1 reply; 12+ messages in thread
From: Reviczky, Adam @ 2011-04-16  4:47 UTC (permalink / raw)
  To: ntg-context

> there are some problems with the citecommand in the latest beta. I always get a LuaTeX error...
I've hit the same problem, though apa doesn't seem to be affected, so in the meantime you can use:
\setuppublications[alternative=apa]

Adam
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16  4:47 bug with \cite in latest beta (2011.04.13) Reviczky, Adam
@ 2011-04-16  5:55 ` Bernhard Rosensteiner
  2011-04-16  6:38   ` Thomas Schmitz
  2011-04-16  6:39   ` Pontus Lurcock
  0 siblings, 2 replies; 12+ messages in thread
From: Bernhard Rosensteiner @ 2011-04-16  5:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 965 bytes --]

when i use \cite[...][reference...] instead of \cite{reference} the error is also not triggered. Anyway strange.


best regards
Bernhard

On Samstag, 16. April 2011 at 06:47, Reviczky, Adam wrote: 
> there are some problems with the citecommand in the latest beta. I always get a LuaTeX error...
> I've hit the same problem, though apa doesn't seem to be affected, so in the meantime you can use:
> \setuppublications[alternative=apa]
> 
> Adam
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 

[-- Attachment #1.2: Type: text/html, Size: 1995 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16  5:55 ` Bernhard Rosensteiner
@ 2011-04-16  6:38   ` Thomas Schmitz
  2011-04-16 16:03     ` Bernhard Rosensteiner
  2011-04-16  6:39   ` Pontus Lurcock
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Schmitz @ 2011-04-16  6:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 16 Apr 2011 07:55:29 +0200
  Bernhard Rosensteiner <brosensteiner@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16  5:55 ` Bernhard Rosensteiner
  2011-04-16  6:38   ` Thomas Schmitz
@ 2011-04-16  6:39   ` Pontus Lurcock
  1 sibling, 0 replies; 12+ messages in thread
From: Pontus Lurcock @ 2011-04-16  6:39 UTC (permalink / raw)
  To: ntg-context

On Sat 16 Apr 2011, Bernhard Rosensteiner wrote:

> when i use \cite[...][reference...] instead of \cite{reference} the
> error is also not triggered. Anyway strange.

I believe that \cite{reference} is incorrect in ConTeXt. The general
rule is {} for anything that will actually be typeset as text, and 
[] for parameters that have a semantic meaning for ConTeXt. Hence
things like \section[sec:some-reference]{The visible section title}.

(The above is my understanding but I'm sure someone will correct me if
it's wrong.)

Pont
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16  6:38   ` Thomas Schmitz
@ 2011-04-16 16:03     ` Bernhard Rosensteiner
  0 siblings, 0 replies; 12+ messages in thread
From: Bernhard Rosensteiner @ 2011-04-16 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1101 bytes --]

strange in the sense: "it worked before and after the update not"
I will from now on use proper context syntax, thanks for clearing.

best regards
Bernhard

On Samstag, 16. April 2011 at 08:38, Thomas Schmitz wrote: 
> On Sat, 16 Apr 2011 07:55:29 +0200
>  Bernhard Rosensteiner <brosensteiner@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
> ___________________________________________________________________________________
> 

[-- Attachment #1.2: Type: text/html, Size: 2146 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-17 14:57     ` Hans Hagen
@ 2011-04-17 18:27       ` Reviczky, Adam
  0 siblings, 0 replies; 12+ messages in thread
From: Reviczky, Adam @ 2011-04-17 18:27 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Thanks Hans!

That was it, now it works again.

Best wishes
Adam

________________________________________
From: Hans Hagen [pragma@wxs.nl]
Sent: 17 April 2011 15:57
To: Reviczky, Adam
Cc: mailing list for ConTeXt users
Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13)

On 16-4-2011 11:51, Reviczky, Adam wrote:
> Sadly that didn't help at all (neither on my thesis file nor on the minimal example).
>
> I'm attaching the minimal example with the logs.
>
> Adam
>
> PS: I've changed the line 191 and regenerated the formats.

line 157:

                 local current = tonumber(found.entries and
found.entries.text) -- tonumber needed

i wonder why this surfaces now

-----------------------------------------------------------------
                                           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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16 21:51   ` Reviczky, Adam
@ 2011-04-17 14:57     ` Hans Hagen
  2011-04-17 18:27       ` Reviczky, Adam
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2011-04-17 14:57 UTC (permalink / raw)
  To: Reviczky, Adam; +Cc: mailing list for ConTeXt users

On 16-4-2011 11:51, Reviczky, Adam wrote:
> Sadly that didn't help at all (neither on my thesis file nor on the minimal example).
>
> I'm attaching the minimal example with the logs.
>
> Adam
>
> PS: I've changed the line 191 and regenerated the formats.

line 157:

                 local current = tonumber(found.entries and 
found.entries.text) -- tonumber needed

i wonder why this surfaces now

-----------------------------------------------------------------
                                           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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16 21:29 ` Hans Hagen
@ 2011-04-16 21:51   ` Reviczky, Adam
  2011-04-17 14:57     ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Reviczky, Adam @ 2011-04-16 21:51 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1923 bytes --]

Sadly that didn't help at all (neither on my thesis file nor on the minimal example).

I'm attaching the minimal example with the logs.

Adam

PS: I've changed the line 191 and regenerated the formats.

________________________________________
From: Hans Hagen [pragma@wxs.nl]
Sent: 16 April 2011 22:29
To: mailing list for ConTeXt users
Cc: Reviczky, Adam
Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13)

On 16-4-2011 8:53, Reviczky, Adam 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:
>
> % sample.bib: http://wiki.contextgarden.net/sample_bib
> %%%
> \setupbibtex[database={sample},sort=author]
> % apa works, but I don't want apa
> % \setuppublications[alternative=apa]
> % neither num or default doesn't work
> \setuppublications[alternative=num]
>
> \starttext
> % \cite[][Eijkhout1991] works, but produces not a numbered output
> \cite[Eijkhout1991]
> \placepublications[criterium=all]
> \stoptext
> %%%
>
> The error I get is:
> ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
> stack traceback:
>       /usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve'
>       <main ctx instance>:1: in main chunk.

Does changing the line before it helps?

191:        if first and last then -- also test on last

must be some weird border case.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sample.bib --]
[-- Type: text/x-bibtex; name="sample.bib", Size: 729 bytes --]

@STRING{hh = {Hans Hagen}}

@ELECTRONIC{hh2010,
  author = hh,
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}

@ARTICLE{hh2010a,
  author = hh,
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}

@ARTICLE{hh2010b,
  author = hh,
  title = {Grouping in Hybrid Environments},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {67-71},
  keywords = {context},
}

@BOOK{Eijkhout1991,
  title = {\TeX\ by Topic. A \TeX nician's Reference},
  publisher = {Addison-Wesley},
  year = {1991},
  author = {Victor Eijkhout},
  address = {London},
  keywords = {general},
}

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: test.tex --]
[-- Type: text/x-tex; name="test.tex", Size: 158 bytes --]

\setupbibtex[database={sample},sort=author]
% \setuppublications[alternative=num]

\starttext
\cite[Eijkhout1991]
\placepublications[criterium=all]
\stoptext

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: test.log --]
[-- Type: text/x-log; name="test.log", Size: 5730 bytes --]

(test.tex

ConTeXt  ver: 2011.04.13 09:23 MKIV  fmt: 2011.4.16  int: english/english

system          > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > test.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options > }
system          > options > document.files={
system          > options >  "test.tex",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=test.tex]
system          > options > \setupsystem[\c!n=1,\c!m=1]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(test.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
publications    > wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
system          > begin file test.tex at line 4
! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
stack traceback:
	/usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve'
	<main ctx instance>:1: in main chunk.

system          > tex > error on line 5 in file test.tex: LuaTeX error  ...

1     \setupbibtex[database={sample},sort=author]
2     % \setuppublications[alternative=num]
3     
4     \starttext
5 >>  \cite[Eijkhout1991]
6     \placepublications[criterium=all]
7     \stoptext
8     


\bibnumref ...ve("","\number \bibtexblock ","#1")}
                                                  \bibalternative \v!right \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
                                                  \fi \endgroup 
<to be read again> 
                    
l.5 \cite[Eijkhout1991]
                       
? q
OK, entering \batchmode...

publications    > loading database from test.bbl
(test.bbl)
publications    > placing all entries, use 'text' to be more selective
backend         > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
system          > end file test.tex at line 7
 )</usr/share/texmf/fonts/opentype/public/lm/lmroman12-italic.otf></usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats  > used config file          - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats  > input load time           - 0.152 seconds
mkiv lua stats  > stored bytecode data      - 283 modules, 58 tables, 341 chunks
mkiv lua stats  > cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats  > node memory usage         - 19 glue_spec
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2410 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > language load time        - 0.063 seconds , nofpatterns: 1
mkiv lua stats  > callbacks                 - 2579 direct, 3017 indirect, 5596 total
mkiv lua stats  > randomizer                - initialized with value 0.073862066061172
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > interactive elements      - 0 references, 4 destinations
mkiv lua stats  > result saved in file      - test.pdf
mkiv lua stats  > loaded fonts              - 34 files: stmary10.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-italic.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.610 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.66.0-2011041620 (rev 4159)
mkiv lua stats  > control sequences         - 30362 of 165536
mkiv lua stats  > current memory usage      - 32 MB (ctx: 33 MB)
mkiv lua stats  > runtime                   - 4.083 seconds, 1 processed pages, 1 shipped pages, 0.245 pages/second


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: thesis.log --]
[-- Type: text/x-log; name="thesis.log", Size: 3500 bytes --]

(/home/reviczky/Desktop/thesis/src/prd_finalreport.tex

ConTeXt  ver: 2011.04.13 09:23 MKIV  fmt: 2011.4.16  int: english/english

(/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top
){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_acknowledgements.tex
Missing character: There is no • (U+2022) in font euler!
Missing character: There is no • (U+2022) in font euler!
Missing character: There is no • (U+2022) in font euler!
) (c_tableofcontents.tex) (c_introduction.tex (/usr/share/texmf/tex/context/sample/knuth.tex)
! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
stack traceback:
	/usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve'
	<main ctx instance>:1: in main chunk.

 7       [subtitle={Final Report}]
 8     
 9     % - product structure
10     \component c_titlepage
11     \component c_legal
12     \component c_abstract
13     \component c_acknowledgements
14     \component c_tableofcontents
15     
16     % double-space
17 >>  \setupinterlinespace
18       [big]
19     \component c_introduction
20     \component c_background
21     \component c_body
22     \component c_evaluation
23     \component c_conclusions
24     \setupinterlinespace
25       [reset]
26     
27     \component c_bibliography


\bibnumref ...ve("","\number \bibtexblock ","#1")}
                                                  \bibalternative \v!right \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
                                                  \fi \endgroup 
<to be read again> 
                    
l.17 \input knuth \cite[knuth:texbook:1988] 
                                            \par
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

) (c_background.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_body.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_evaluation.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_conclusions.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex) (c_userguide.tex (/usr/share/texmf/tex/context/sample/knuth.tex) </home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/9cd7cb93375dcf361e4c60217fb54c64 (PNG copy)>) (c_programlistings.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) )</usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-regular.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-bold.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-regular.otf></usr/share/texmf/fonts/opentype/public/euler/euler.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-italic.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-italic.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-bold.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf>


[-- Attachment #6: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16  6:53 Reviczky, Adam
  2011-04-16  8:37 ` Thomas Schmitz
@ 2011-04-16 21:29 ` Hans Hagen
  2011-04-16 21:51   ` Reviczky, Adam
  1 sibling, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2011-04-16 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Reviczky, Adam

On 16-4-2011 8:53, Reviczky, Adam 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:
>
> % sample.bib: http://wiki.contextgarden.net/sample_bib
> %%%
> \setupbibtex[database={sample},sort=author]
> % apa works, but I don't want apa
> % \setuppublications[alternative=apa]
> % neither num or default doesn't work
> \setuppublications[alternative=num]
>
> \starttext
> % \cite[][Eijkhout1991] works, but produces not a numbered output
> \cite[Eijkhout1991]
> \placepublications[criterium=all]
> \stoptext
> %%%
>
> The error I get is:
> ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
> stack traceback:
> 	/usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve'
> 	<main ctx instance>:1: in main chunk.

Does changing the line before it helps?

191:        if first and last then -- also test on last

must be some weird border case.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
  2011-04-16  6:53 Reviczky, Adam
@ 2011-04-16  8:37 ` Thomas Schmitz
  2011-04-16 21:29 ` Hans Hagen
  1 sibling, 0 replies; 12+ messages in thread
From: Thomas Schmitz @ 2011-04-16  8:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 16 Apr 2011 07:53:20 +0100
  "Reviczky, Adam" <adam.reviczky@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: bug with \cite in latest beta (2011.04.13)
@ 2011-04-16  6:53 Reviczky, Adam
  2011-04-16  8:37 ` Thomas Schmitz
  2011-04-16 21:29 ` Hans Hagen
  0 siblings, 2 replies; 12+ messages in thread
From: Reviczky, Adam @ 2011-04-16  6:53 UTC (permalink / raw)
  To: ntg-context

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:

% sample.bib: http://wiki.contextgarden.net/sample_bib
%%%
\setupbibtex[database={sample},sort=author]
% apa works, but I don't want apa
% \setuppublications[alternative=apa]
% neither num or default doesn't work
\setuppublications[alternative=num]

\starttext
% \cite[][Eijkhout1991] works, but produces not a numbered output
\cite[Eijkhout1991]
\placepublications[criterium=all]
\stoptext
%%%

The error I get is:
! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
stack traceback:
	/usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve'
	<main ctx instance>:1: in main chunk.

Adam
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug with \cite in latest beta (2011.04.13)
@ 2011-04-14  9:31 Bernhard Rosensteiner
  0 siblings, 0 replies; 12+ messages in thread
From: Bernhard Rosensteiner @ 2011-04-14  9:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 494 bytes --]

Hello all,

there are some problems with the citecommand in the latest beta. I always get a LuaTeX error...
Actually i was in the middle of narrowing down a bug where a \cite command in a caption produced a entry in the publication list of the caption text (and also made that sometimes interaction did not work with some references in the text), so i tried to update to the latest beta and now the document does not compile any more. Please see attached files.

best regards
Bernhard


[-- Attachment #1.2: Type: text/html, Size: 714 bytes --]

[-- Attachment #2: temp.tex --]
[-- Type: application/octet-stream, Size: 645 bytes --]


\setupinteraction[state=start]



\startpublication[k=Zelditch:2004te,t=book,
a={{Zelditch},{}},y=2004,
n=2,s=ZSSF04]
\author[]{Miriam~L}[M.~L.]{}{Zelditch}
\author[]{Donald~L}[D.~L.]{}{Swiderski}
\author[]{David~H}[D.~H.]{}{Sheets}
\author[]{William~L}[W.~L.]{}{Fink}
\pubyear{2004}
\title{{Geometric morphometrics for biologists}}
\isbn{978-0-12-778460-1}
\city{Amsterdam}
\pubname{Elsevier Academic Press}
\stoppublication


\starttext

\input tufte
\cite{Zelditch:2004te}

\placefigure[middle][]{Testcaption \cite[alternative=authoryear][Zelditch:2004te]}{
{\externalfigure[cow][width=.6\textwidth]}
}


\page

\placepublications

\stoptext

[-- Attachment #3: temp.log --]
[-- Type: application/octet-stream, Size: 7223 bytes --]

(/Users/brosensteiner/Documents/ConTeXt_Experimente/Temp/temp.tex

ConTeXt  ver: 2011.04.13 09:23 MKIV  fmt: 2011.4.14  int: english/english

system          > cont-new.mkiv loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > temp.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options > }
system          > options > document.files={
system          > options >  "/Users/brosensteiner/Documents/ConTeXt_Experimente/Temp/temp.tex",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=/Users/brosensteiner/Documents/ConTeXt_Experimente/Temp/temp.tex]
system          > options > \setupsystem[\c!n=1,\c!m=1]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(temp.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
{/Applications/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > defining > forced type afm of stmary10 not found
fonts           > defining > font with asked name 'stmary10' is not found using lookup 'file'
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > defining > forced type afm of stmary10 not found
fonts           > defining > font with asked name 'stmary10' is not found using lookup 'file'
fonts           > defining > forced type afm of stmary10 not found
fonts           > defining > font with asked name 'stmary10' is not found using lookup 'file'
fonts           > fallback modern rm 12pt is loaded
system          > begin file /Users/brosensteiner/Documents/ConTeXt_Experimente/Temp/temp.tex at line 21
(/Applications/ConTeXt/tex/texmf-context/tex/context/sample/tufte.tex)
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
stack traceback:
	...TeXt/tex/texmf-context/tex/context/base/bibl-tra.lua:192: in function 'resolve'
	<main ctx instance>:1: in main chunk.

system          > tex > error on line 24 in file /Users/brosensteiner/Documents/ConTeXt_Experimente/Temp/temp.tex: LuaTeX error  ...

14     \title{{Geometric morphometrics for biologists}}
15     \isbn{978-0-12-778460-1}
16     \city{Amsterdam}
17     \pubname{Elsevier Academic Press}
18     \stoppublication
19     
20     
21     \starttext
22     
23     \input tufte
24 >>  \cite{Zelditch:2004te}
25     
26     \placefigure[middle][]{Testcaption \cite[alternative=authoryear][Zelditch:2004te]}{
27     {\externalfigure[cow][width=.6\textwidth]}
28     }
29     
30     
31     \page
32     
33     \placepublications
34     


\bibnumref ...ve("","\number \bibtexblock ","#1")}
                                                  \bibalternative \v!right \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
                                                  \fi \endgroup 
l.24 \cite{Zelditch:2004te}
                           
? 
publications    > loading database from temp.bbl
(temp.bbl)
floatblocks     > 1 placed
backend         > xmp > using file '/Applications/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
 </Applications/ConTeXt/tex/texmf-context/tex/context/sample/cow.pdf>
pages           > flushing realpage 1, userpage 1, subpage 1
pages           > flushing realpage 2, userpage 2
system          > end file /Users/brosensteiner/Documents/ConTeXt_Experimente/Temp/temp.tex at line 35
 )</Applications/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-italic.otf></Applications/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf></Applications/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats  > used config file          - selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - /Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > input load time           - 0.007 seconds
mkiv lua stats  > stored bytecode data      - 283 modules, 58 tables, 341 chunks
mkiv lua stats  > cleaned up reserved nodes - 36 nodes, 9 lists of 423
mkiv lua stats  > node memory usage         - 19 glue_spec
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2489 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > callbacks                 - 2732 direct, 3714 indirect, 6446 total
mkiv lua stats  > randomizer                - resumed with value 0.22899183455342
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 18 lpath calls, 3 cached calls
mkiv lua stats  > interactive elements      - 1 references, 2 destinations
mkiv lua stats  > result saved in file      - temp.pdf
mkiv lua stats  > loaded fonts              - 33 files: lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-italic.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.207 seconds 
mkiv lua stats  > graphics processing time  - 0.004 seconds including tex, 1 processed images
mkiv lua stats  > pdf annotations           - 1 embedded, 1 unique
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.66.0-2011041318 (rev 4144)
mkiv lua stats  > control sequences         - 30414 of 165536
mkiv lua stats  > current memory usage      - 42 MB (ctx: 43 MB)
mkiv lua stats  > runtime                   - 3.786 seconds, 1 processed pages, 2 shipped pages, 0.528 pages/second


[-- Attachment #4: temp.pdf --]
[-- Type: application/pdf, Size: 21594 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-04-17 18:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-16  4:47 bug with \cite in latest beta (2011.04.13) Reviczky, Adam
2011-04-16  5:55 ` Bernhard Rosensteiner
2011-04-16  6:38   ` Thomas Schmitz
2011-04-16 16:03     ` Bernhard Rosensteiner
2011-04-16  6:39   ` Pontus Lurcock
  -- strict thread matches above, loose matches on Subject: below --
2011-04-16  6:53 Reviczky, Adam
2011-04-16  8:37 ` Thomas Schmitz
2011-04-16 21:29 ` Hans Hagen
2011-04-16 21:51   ` Reviczky, Adam
2011-04-17 14:57     ` Hans Hagen
2011-04-17 18:27       ` Reviczky, Adam
2011-04-14  9:31 Bernhard Rosensteiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).