[NTG-context] \ref not working in current Ctx?
Hello, the wiki example doesn't work on my computer, although the wiki result seems OK: \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{MyRef1} This is the first reference. \page \reference[myref 2]{MyRef2} This is the second one. \stoptext The result is: See page and ., i.e. missing numbers of referred pages. Maybe versions of Ctx on wiki and on my computer differ. The mine: ConTeXt ver: 2012.04.07 14:42 MKIV fmt: 2012.4.9 int: english/english A patch needed? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t-Ref.log Description: Binary data t-Ref.mkiv Description: Binary data t-Ref.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \ref not working in current Ctx?
Am 12.04.2012 um 08:48 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, the wiki example doesn't work on my computer, although the wiki result seems OK: \starttext See page \ref[p][myref 1] and \ref[p][myref 2]. \page \reference[myref 1]{MyRef1} This is the first reference. \page \reference[myref 2]{MyRef2} This is the second one. \stoptext The result is: See page and ., i.e. missing numbers of referred pages. Maybe versions of Ctx on wiki and on my computer differ. The mine: ConTeXt ver: 2012.04.07 14:42 MKIV fmt: 2012.4.9 int: english/english A patch needed? In MkIV you can use the \getreference command for this, see this mail for the arguments. http://news.gmane.org/gmane.comp.tex.context The \ref command is now only a synonym for \getreference and needs the same arguments. 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] \ref not working in current Ctx?
... OK, thank you. I also found your piece of code at http://www.mail-archive.com/ntg-context@ntg.nl/msg62816.html where usage is shown. But I still have a question: Is it possible to create a point (or anchor) which would know about the current section, so to retrieve this information later? See the code: \setupinteraction[state=start] \starttext See: \at[MyRef1] \about[MyRef1] \getreference[page][MyRef1] \getreference[title][MyRef1] \getreference[text][MyRef1] \getreference[number][MyRef1] \page \section{Sec1} \subsection{SSec1} \reference[MyRef1]{MyRef1} This is the first reference. \stoptext Gives: See: 2 “” 2 MyRef1 And I'm looking for a way to obtain: See: ... SSec1 ... - the current deepest (current) section name, or See: ... SSec1 ... - quoted current deepest (current) section name, like \about does, and See: ... 1.1 ... - the current section number. How to achieve this? Best regards, Lukas On Thu, 12 Apr 2012 13:53:05 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: In MkIV you can use the \getreference command for this, see this mail for the arguments. The \ref command is now only a synonym for \getreference and needs the same arguments. Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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 ___