[NTG-context] Include 'urldate' in *.bst (Url citations with last checked date)

2015-09-11 Thread Jens Bertram

Hi,

for a document I'm currently writing I need to cite some online 
resources including their last accessed date. Adding
\insertbiburl[..] to a citation style does work fine to get the urls 
printed.
However, the *.bst styles only check for 'lastchecked' tag for a last 
accessed date. I don't know if there's any standard way for specifying 
the date but 'lastchecked' and 'urldate' seem to be two commonly used 
variants (as far as a quick web search tells - I'm on Zotero which also 
uses the last mentioned type).


To get this temporary working for me I replaced the plain 'lastcheck' 
output in *.bst with:

 ..
 lastchecked empty$
   {"" "\lastchecked" urldate do.out}
   {"" "\lastchecked" lastchecked do.out} if$
 ..
and added urldate to the list of known tags.

Are there any chances to get this changed in the 'official' version (if 
there are no other points against this I don't see right now :))?


Best regards,
Jens

___
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] cross-references between documents in a project (using \useexternaldocument)

2015-09-09 Thread Jens Bertram

On 09.09.2015 01:43, Hans Hagen wrote:

On 9/8/2015 9:04 PM, Wolfgang Schuster wrote:

Hans Hagen 
11. August 2015 11:48


i have no clue what you're talking about

There is a bug in the reference mechanism between documents.


not so much a bug but the current mechanism assumes a project/component
struture



Hi,
I'm also struggeling with cross-referencing in a project/component 
layout. I attached a minimal example that resembles the layout I use.

If you compile xr-prod1 and xr-prod2 all cross-references are simply empty.

I looked at the lua code to see if I'm able to fix it myself and 
stumbled over the 'identify_inner(set,var,prefix,collected,derived)' 
function in strc-ref.lua (at around line 1396 in MKVI from 2015.09.04 
11:00). It look like identify_inner gets sometimes called with 'prefix' 
set to nil while 'derived' is also undefined (at 1493 and 1514). If I 
get the program flow right this looks suspicious, as it always retuns 
'false' from 'identify_inner'. If I add 'prefix = prefix or ""' to 
'identify_inner' I actually get references printed in the test case. 
However the links are not working and for the figure the section number 
is wrong.


Finally looking at the uncompressed PDF I can see that references are 
set not prefixed in xr-prod2.pdf (i.e. link to 'plain'), but are 
prefixed in xr-prod1.pdf (anchor is 'xr-comp1-1:plain').


Maybe these informations can help in resolving the issue. :)


i'll see if i can catch the non structured variant


When you produce a PDF from the attached documents you can use the
hyperlinks to jump to the chapter page in the other document but no
information is printed because the information with the section number,
page number or title isn’t loaded (can be seen in the tracker
information in the log).

Wolfgang



\enabletrackers[
	system.jobfiles,
	structures.referencing,
	structures.referencing.importing,
	structures.referencing.identifying]
\setupinteraction[state=start]
\useexternaldocument[xr1][xr-prod1][XR Product One]
\useexternaldocument[xr2][xr-prod2][XR Product Two]
\nopdfcompression

\startproject xr-proj
	\product xr-prod1
	\product xr-prod2
\stopproject

\startcomponent xr-comp2-1
	\starttext
		plain\\
		ABOUT: \about[xr1::plain]\\
		IN: \in[xr1::plain]\\
		AT: \at[xr1::plain]
		
		page2\\
		ABOUT: \about[xr1::pagetwo]\\
		IN: \in[xr1::pagetwo]\\
		AT: \at[xr1::pagetwo]
		
		figone\\
		ABOUT: \about[xr1::figone]\\
		IN: \in[xr1::figone]\\
		AT: \at[xr1::figone]
		
		figtwo\\
		ABOUT: \about[xr1::figtwo]\\
		IN: \in[xr1::figtwo]\\
		AT: \at[xr1::figtwo]
	\stoptext
\stopcomponent

\setupinteraction[state=start]
\startcomponent xr-comp1-1
	\startchapter[reference=plain, title={Plain chapter}]
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
	\stopchapter
	\page
	\startchapter[reference=pagetwo, title={Plain chapter page two}]
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
		\startsection[reference=secwithpic, title={Section with image}]
			\startplacefigure[reference=figone, title={Figure 1}]
\externalfigure[cow.pdf]
			\stopplacefigure
		\stopsection
	\stopchapter

	\startchapter[reference=chaptwo, title={Plain chapter two}]
		Lorem ipsum dolor sit amet, consectetur adipiscing elit.
		\startsection[reference=sectwowithpic, title={Section chap2 with image}]
			\startplacefigure[reference=figtwo, title={Figure 2}]
\externalfigure[cow.pdf]
			\stopplacefigure
		\stopsection
	\stopchapter
\stopcomponent

\project xr-proj
\startproduct xr-prod1
	\component xr-comp1-1
\stopproduct

\project xr-proj
\startproduct xr-prod2
	\component xr-comp2-1
\stopproduct

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