ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
*  Error with \inline[…]
@ 2009-10-29 23:05 Andreas Harder
  2009-11-07 16:26 ` \getMyCite or adapt Wolfgangs solution Andreas Harder
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Harder @ 2009-10-29 23:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Hans.

With the current beta referencing lines is broken again. It used to  
work yesterday.

Here is a test file and the error message:

\starttext
\startlinenumbering
   \input tufte \someline[lin:b]
   \startline[lin:a]
     \input tufte
   \stopline[lin:a]
\stoplinenumbering
\inline[lin:b]
\stoptext

! LuaTeX error no string to print
stack traceback:
	[C]: in function 'texsprint'
	...text/tex/texmf-context/tex/context/base/strc-ref.lua:840: in  
function 'get_current_prefixspec'
	<main ctx instance>:1: in main chunk.
\currentreferencecontent ...ixspec("\v!default ")}
                                                   )}
<argument> ...freference \currentreferencecontent
                                                   \the  
\rightreferencetoks \...
\doifelsenothing #1->\edef \!!stringa {#1
                                          }\ifx \!!stringa \empty  
\expandafte...
<argument> ...ghtreferencetoks \rightofreference }
                                                   \dosymbolreference  
\dowant...
\firstoftwoarguments #1#2->#1

\dodoinatreferenceindeed ...eference {#1}{#2}[#4]}
                                                   \endgroup
...
l.9 \inline[lin:b]


Thanks in advance!

	Andreas
___________________________________________________________________________________
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] 2+ messages in thread

* \getMyCite or adapt Wolfgangs solution
  2009-10-29 23:05 Error with \inline[…] Andreas Harder
@ 2009-11-07 16:26 ` Andreas Harder
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Harder @ 2009-11-07 16:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello Wolfgang, all!

In http://archive.contextgarden.net/message/20091018.225050.34ab40ad.en.html 
  you provided me a solution for a convenient way of referencing from  
an appendix-text. I make heavy use of this macro, but there are some  
situations (attachment) where it leads to duplicate identifier  
warnings. I'm sure you know a corrective ;)



Thanking you in anticipation

	Andreas



[-- Attachment #1.2.1: Type: text/html, Size: 613 bytes --]

[-- Attachment #1.2.2: test-getMyCite2.tex --]
[-- Type: application/octet-stream, Size: 1303 bytes --]


\def\startMyCite[#1]%
 {\def\stopMyCite % [#1] 
   {\startline[#1]\getbuffer[#1]\stopline[#1]\savebuffer[#1]}%
   \dostartbuffer[#1][startMyCite][stopMyCite]}

\def\getMyCite[#1]{\doifmode{draft}{\inothermargin{{\darkred Zitat\blank #1}}}
  \readfile{\jobname-#1.tmp}{}{} 
  (\at{S.}[lr:b:#1],~\inline{Z.}[#1])}

\starttext

\startlinenumbering
\startMyCite[ac]
We thrive in information--thick worlds because of our marvelous
and everyday ca-pacity to select, edit, single out, structure,
\startMyCite[ad]
highlight, group, pair, merge, harmo-nize, synthesize, focus,
organize, condense, reduce, boil down, choose,
\startMyCite[ae]
categorize,catalog, classify, list, abstract, scan, look into,
idealize, isolate,
\stopMyCite %[ad]
discriminate, dis-tinguish, screen, pigeonhole, pick over, sort,
integrate, blend, inspect, filter, lump,skip, smooth, chunk,
average, approximate, cluster, aggregate, outMyCite,
\stopMyCite %[ac]
summarize,itemize, review, dip into, flip through, browse, glance
into, leaf through, skim, re-fine, enumerate, glean, synopsize,
winnow the wheat from the chaff and separate thesheep from the
\stopMyCite %[ae]
goats.
\stoplinenumbering

\blank

\getMyCite[ac]

\getMyCite[ad]

\getMyCite[ae]

\stoptext

%%% Local Variables: 
%%% mode: context
%%% TeX-master: t
%%% End: 

[-- Attachment #1.2.3: Type: text/html, Size: 316 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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] 2+ messages in thread

end of thread, other threads:[~2009-11-07 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-29 23:05 Error with \inline[…] Andreas Harder
2009-11-07 16:26 ` \getMyCite or adapt Wolfgangs solution Andreas Harder

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