[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
eference[xyz]{} > \starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|] > \NC    \reference[xyz]{} \NC \NC\NR \NC \doifnotmode{*trialtypesetting}{\pagereference[xyz]} \NC \NC\NR > \stoptabulate > > > \pagebreak > > \at{page}[xyz] > > \stoptext > > The code does work

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Wolfgang Schuster
}{\pagereference[xyz]} \NC \NC\NR \stoptabulate \pagebreak \at{page}[xyz] \stoptext The code does work when I uncomment line #2, revealing the cross-references work find when outside of a table. I also tried using a TABLE environment instead and the result was similar, it wouldn't show

[NTG-context] Re: Links

2024-01-09 Thread Ursula Hermann
o link to, e.g. \startchapter[title={My chapter},reference=chap:first] or \chapter[chap:first]{My chapter} This works the same for other structure levels. I’m not sure about bibliography, but I think you must use the bib entry code. You can also set anchors manually using \textreference and

[NTG-context] Re: Links

2024-01-08 Thread Henning Hraban Ramm
manually using \textreference and \pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban

Re: [NTG-context] How to print the section number of a reference in ConTeXt?

2023-03-04 Thread Joel via ntg-context
To explain more simply, I've put \pagereference[sample] somewhere in a document. Intead of just printing the page number that appeared with \at{page}[sample], I'd like to print the section or subsection title of where that appeared. --Joel On Saturday, March 4, 2023 at 09:18:19 AM MST

[NTG-context] How to print the section number of a reference in ConTeXt?

2023-03-04 Thread Joel via ntg-context
I've set a \pagereference in a chapter, and want to print its chapter title and page number, ex. "You can find more information in "Fish" on p. 1" (where "Fish" is the title of the chapter or section). I've tried looking all through the wiki, thinking this was a ba

[NTG-context] How to place a page reference multiple times?

2023-03-01 Thread Joel via ntg-context
I need to report every chapter that a particular macro appeared. I would do this by placing `\pagereference[sample]` inside the macro definition, so whenever it is called, it marks the reference info. But I can't seem to get references to work with multiple reference locations marked, example

[NTG-context] working on page refs with MP

2021-03-18 Thread Werner Hennrich
] \pagebreak[yes] \pagereference[\dummyparameter{ref}] \doassign[header][first=\dummyparameter{ref}] \doassign[header][next=\dummyparameter{next}] {\tfc\bf{#2}}\par \vskip3mm } \def\fillWithText[#1]{ \dorecurse{#1}{ \input tufte \input knuth } } \setupheadertexts

[NTG-context] Fwd: Re: LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Richard Mahoney
Wolfgang [and Hans ], I'm attaching a minimal(ish) example of a project structure with a call to \pagereference. One can see from the output of master000.tex that the cross references to an external file all work, *apart* from the call to \pagereference. (This is the same issue that I am having

Re: [NTG-context] LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Richard Mahoney
Thanks Wolfgang, Hans kindly sent me a simple minimal. I've adjusted it to include a call to \pagereference and it works. I'm currently trying to test my project to see why my own calls to \pagereference do not result in any output, despite the fact that all the calls to the reference ids

Re: [NTG-context] LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Wolfgang Schuster
as the reference is to the details associated with, say, a chapter, using \about, \in, and \at. Its doesn't seem to work though with \pagereference: no page number appears in the PDF whatsoever. I have  been following the material here: https://wiki.contextgarden.net/References

[NTG-context] LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Richard Mahoney
, a chapter, using \about, \in, and \at. Its doesn't seem to work though with \pagereference: no page number appears in the PDF whatsoever. I have been following the material here: https://wiki.contextgarden.net/References#References_to_an_external_file I'm wondering then ... do cross references

[NTG-context] unknown references

2020-03-30 Thread Hans Hagen
We've added a tracker: \enabletrackers [structures.referencing.show] \starttext Take a look at \at{page}[unknown:1]. This line has a reference.\pagereference[unknown:2] Take a look at \at{page}[unknown:2]. \stoptext Experimental till documented in the interface files. Hans

Re: [NTG-context] conditional for undefined references

2020-03-29 Thread Wolfgang Schuster
{\at{page}[unknown:1]} {\dummyreference\inright[style=\ttxx]{Missing reference}}. This line ha a reference.\pagereference[unknown:2] Take a look at \doifelsereferencefound{unknown:2} {\at{page}[unknown:2]} {\dummyreference\inright[styl

Re: [NTG-context] reference a paragraph

2020-03-25 Thread Wolfgang Schuster
*, for example? Parallel syntax might suggest \startparagraph [reference=p:myparagraph] but this is not implemented. Perhaps there is another referencing command that I am not aware of? xxx\pagereference[p:myparagraph] xxx \dontleavehmode\pagereference[p:myparagraph]xxx xxx Wolfgang

Re: [NTG-context] Cross references to column numbers

2019-11-15 Thread Taco Hoekwater
wo column >>>>> layout? >>> >>> yes and no: >>> >>> no : there is not something buil tin >>> yes: one can write some hack in a few lines >>> >>> but instead of posting such a hack (which then will a live of its own)

Re: [NTG-context] Cross references to column numbers

2019-11-15 Thread Oliver von Criegern
to a column in a two column layout? yes and no: no : there is not something buil tin yes: one can write some hack in a few lines but instead of posting such a hack (which then will a live of its own) i'll add a feature: \pagereference[column:#1] \doifelsereferencefound{column:#1}{\number

Re: [NTG-context] Cross references to column numbers

2019-11-12 Thread Oliver von Criegern
can write some hack in a few lines but instead of posting such a hack (which then will a live of its own) i'll add a feature: \pagereference[column:#1] \doifelsereferencefound{column:#1}{\number\referencecolumnnumber}{} in the next beta, Hans Thanks for implementing this, but I am afraid

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Henning Hraban Ramm
column in a two column >>> layout? > > yes and no: > > no : there is not something buil tin > yes: one can write some hack in a few lines > > but instead of posting such a hack (which then will a live of its own) i'll > add a feature: > > \pagereference[column:#1] > > \doife

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Oliver von Criegern
can write some hack in a few lines but instead of posting such a hack (which then will a live of its own) i'll add a feature: \pagereference[column:#1] \doifelsereferencefound{column:#1}{\number\referencecolumnnumber}{} in the next beta, Hans This would be great, thanks! Best regards

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Hans Hagen
but instead of posting such a hack (which then will a live of its own) i'll add a feature: \pagereference[column:#1] \doifelsereferencefound{column:#1}{\number\referencecolumnnumber}{} in the next beta, Hans At least, I would need to get some value that tells me whether the target is in the left

Re: [NTG-context] Cross references to column numbers

2019-09-09 Thread Henri Menke
column numbers? >> >> I have a two column layout with column numbers in the header instead of page >> numbers (actually, these column numbers are calculated from the page >> numbers). Now I want to create a cross reference that returns the column >> number of the targ

Re: [NTG-context] Cross references to column numbers

2019-09-02 Thread Oliver von Criegern
from the page numbers). Now I want to create a cross reference that returns the column number of the target. How can I achieve this? Of course, I can get the page number with \pagereference (for the target) and \at (for the reference), but for calculating the column number (according to what

[NTG-context] Cross references to column numbers

2019-08-12 Thread Oliver von Criegern
number of the target. How can I achieve this? Of course, I can get the page number with \pagereference (for the target) and \at (for the reference), but for calculating the column number (according to what I did in the header), I would also need to know whether the target is in the left

Re: [NTG-context] Referencing the page on which an endnote was generated

2019-04-10 Thread Huseyin Özoguz
Hi, you can always set *\pagereference[bla] *into the text and reference to the pagenumber of the reference with *\at[bla]*. Is that what you wanted? Huseyin Özoguz -- Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de

[NTG-context] Fwd: Question and Answer Iteration

2019-03-13 Thread Jeroen
distributing it over a number of chapters, the question and answer numbering seems to be an issue. Would the define require a change? % QUESTION AND ANSWER \define[1]\QuestionTextCommand {\doglobal\increment\QuestionCounter \pagereference[question:\QuestionCounter]% \doifreferencefoundelse

Re: [NTG-context] Question and Answer Iteration

2019-03-12 Thread Wolfgang Schuster
easy way to achieve this? Regards, Jeroen \setupinteraction[state=start] \define[1]\QuestionTextCommand {\doglobal\increment\QuestionCounter \pagereference[question:\QuestionCounter]% \doifreferencefoundelse{answer:\QuestionCounter} {\goto{#1}[answer:\QuestionCounter]}   {#1}} \define[1]\AnswerTe

[NTG-context] Question and Answer Iteration

2019-03-12 Thread Jeroen
tupinteraction[state=start] \define[1]\QuestionTextCommand {\doglobal\increment\QuestionCounter \pagereference[question:\QuestionCounter]% \doifreferencefoundelse{answer:\QuestionCounter} {\goto{#1}[answer:\QuestionCounter]} {#1}} \define[1]\AnswerTextCommand {\doglobal\inc

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-02-01 Thread Otared Kavian
for trial typestting % \doifnotmode{*trialtypesetting} % is necessary in order to avoid unwanted incrementation \define[1]\QuestionTextCommand {\doifnotmode{*trialtypesetting} {\doglobal\increment\QuestionCounter \pagereference[question:\QuestionCounter]}% \doifreferencefoundelse{hint

[NTG-context] Paasing two arguments from Lua to Context

2018-02-13 Thread Otared Kavian
quot; -- context("\\goto{s}[t]") -- this does not work -- context.goto({"Index"},{"ref:index"}) -- this does not work context("\\goto{Index}[ref:index]") \stopluacode \input ward.tex \stopchapter \starttitle[title={Index}] % one could

Re: [NTG-context] Registers and getparameters

2018-01-23 Thread Hans Hagen
eakers{\getvariable{talk}{speakername}}}% \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}}%   \starttabulate[|f{\bi}l|p|]   \NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR   \NC Title   \EQ \getvariable{talk}{title}   \NC\NR   \NC Time    \EQ \getvariable{talk}{time}   

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
example all three talks are >> given the pagenumber 4 in the register. Is there something I am doing wrong? > I moved the link for the page number to the next paragraph because putting > the reference command into the tabulate environment hasn’t worked but in your > example t

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
gister. Is there something I am doing wrong? I moved the link for the page number to the next paragraph because putting the reference command into the tabulate environment hasn’t worked but in your example the first paragraph starts on the last page. This was necessary because the \pagereference starts a new par

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
K. %%% begin register-talks.tex \setupinteraction[state=start] \defineregister[speakers] \setupregister [speakers] [style=sansbold, n=2] \startbuffer[pagetalk] \doflushatpar {\expanded{\speakers{\getvariable{talk}{speakername}}}% \expanded{\pagereference[talk:\getvariable{talk

Re: [NTG-context] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster
gister[speakers] \setupregister [speakers] [style=sansbold, n=2] \startbuffer[pagetalk] \doflushatpar {\expanded{\speakers{\getvariable{talk}{speakername}}}% \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}}% \starttabulate[|f{\bi}l|p|] \NC Speaker \EQ \getvariabl

Re: [NTG-context] Clickable question/answer numbers (Otared Kavian)

2016-11-07 Thread Willi Egger
e > % enumeration environments > % Note that the check for trial typestting > % \doifnotmode{*trialtypesetting} > % is necessary in order to avoid unwanted incrementation > \define[1]\QuestionTextCommand > {\doifnotmode{*trialtypesetting} > {\doglobal\increment\Questi

Re: [NTG-context] Clickable question/answer numbers (Otared Kavian)

2016-11-06 Thread Otared Kavian
\QuestionCounter \pagereference[question:\QuestionCounter]}% \doifreferencefoundelse{answer:\QuestionCounter} {\goto{#1}[answer:\QuestionCounter]} {#1}} \define[1]\AnswerTextCommand {\doifnotmode{*trialtypesetting} {\doglobal\increment\AnswerCounter \pagereference[answer

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Otared Kavian
unwanted incrementation \define[1]\QuestionTextCommand {\doifnotmode{*trialtypesetting} {\doglobal\increment\QuestionCounter \pagereference[question:\QuestionCounter]}% \doifreferencefoundelse{answer:\QuestionCounter} {\goto{#1}[answer:\QuestionCounter]} {#1}} \define[1

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Wolfgang Schuster
rement\QuestionCounter \pagereference[question:\QuestionCounter]% \doifreferencefoundelse{answer:\QuestionCounter} {\goto{#1}[answer:\QuestionCounter]} {#1}} \define[1]\AnswerTextCommand {\doglobal\increment\AnswerCounter \pagereference[answer:\AnswerCounter]% \doifreferencefou

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Otared Kavian
the problem (please see the fifth Question in the source below). Best regards: OK begin example-ws.tex \setupinteraction[state=start] \newcounter\QuestionCounter \newcounter\AnswerCounter \define[1]\QuestionTextCommand {\doglobal\increment\QuestionCounter \pagereference[question

Re: [NTG-context] Clickable question/answer numbers

2016-11-05 Thread Wolfgang Schuster
reate a page reference which contains the value of the counter. Below is a modified version of my previous example for this method. begin example \setupinteraction[state=start] \define[1]\QuestionTextCommand {\doglobal\increment\QuestionCounter \pagereference[question:\Que

Re: [NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
{\ctxlua{userdata.printpagerange("#1")}} \starttext Tufte quote at \printpagerange{tufte}. % start of quote reference \pagereference[tufte:start] \input{tufte} %\page  % comment/uncomment this to toggle from page range to single page \input{tufte} % end of quote reference \pagereference[tuf

[NTG-context] page range reference (how to compare references)

2016-09-23 Thread MF
not working snippet: \starttext Tufte quote at p. \at[tufte:start]\doifelse{\ref[realpage][tufte:start]}{\ref[realpage][t ufte:stop]} {} {-\at[tufte:stop]} % start of quote reference \pagereference[tufte:start] \input{tufte} %\page  % comment/uncomment this to toggle from range to single page

Re: [NTG-context] Trace references

2016-09-08 Thread Wolfgang Schuster
ser set references, sections or floats are mentioned in the log. \starttext \chapter[sec:first] {First chapter} \chapter[sec:second]{Second chapter} \chapter[sec:first] {Third chapter} \pagereference[ref:page] \pagereference[ref:page] \stoptext shows only refe

Re: [NTG-context] pagereferences

2016-01-17 Thread Meer, Hans van der
Hans van der<mailto:h.vanderm...@uva.nl> 17. Januar 2016 um 16:58 Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] I get as reference "at a previous page" (perhaps not exactly, the typesetting is done in dutch). The english text is “on a preceding pa

[NTG-context] pagereferences

2016-01-17 Thread Meer, Hans van der
Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] I get as reference "at a previous page" (perhaps not exactly, the typesetting is done in dutch). This an unwanted result, that previous page is 7 pages before. How can I restrict this to either &qu

Re: [NTG-context] pagereferences

2016-01-17 Thread Wolfgang Schuster
Meer, Hans van der <mailto:h.vanderm...@uva.nl> 17. Januar 2016 um 16:58 Defining \pagereference[xyz] en calling this some pages later with \atpage[xyz] I get as reference "at a previous page" (perhaps not exactly, the typesetting is done in dutch). The english text is “on

Re: [NTG-context] \textreference

2014-07-26 Thread Hans Hagen
) The distinction between \pagereference, \textreference and \reference is sort of historical and relates to efficiency (in mkii): \pagereference : only stores the pagenumber \textreference : only stores the text \reference : stores pagenumber and text In mkiv the last two are the same now

Re: [NTG-context] hyperlinks within a PDF

2014-06-16 Thread Wolfgang Schuster
references in the text can be set with the \reference, \textreference or \pagereference commands. \setupexternalfigures[location=default] \setupinteraction[state=start] \starttext \startchapter[referemce=sec:sectionlabel,title=Dummy chapter] \input knuth \startplacefigure[reference=fig:figurelabel

[NTG-context] page reference to figure fails when figure location is none

2014-04-06 Thread Sanjoy Mahajan
Using a recent MkIV beta (2014.03.27), it seems that a page reference to a figure fails if the figure location is none. Here is a minimal example: \starttext \input knuth \placefigure[none][regularref]{}{\pagereference[workaroundref] \externalfigure[cow.pdf]} \input knuth See

Re: [NTG-context] page reference to figure fails when figure location is none

2014-04-06 Thread Hans Hagen
On 4/6/2014 12:14 PM, Sanjoy Mahajan wrote: Using a recent MkIV beta (2014.03.27), it seems that a page reference to a figure fails if the figure location is none. Here is a minimal example: \starttext \input knuth \placefigure[none][regularref]{}{\pagereference[workaroundref

Re: [NTG-context] hyperlinks in latest beta?

2014-03-22 Thread Alan Bowen
. The links are not working for me either in ConTeXt ver: 2014.03.19 23:11 MKIV beta. simple example ... \setupinteraction[state=start] \starttext Text\pagereference[test] \page \at{Page}[test] \stoptext what binary do you use? luatex 0.79? what viewer? - This is LuaTeX

Re: [NTG-context] hyperlinks in latest beta?

2014-03-20 Thread Wolfgang Schuster
\pagereference[test] \page \at{Page}[test] \stoptext what binary do you use? luatex 0.79? what viewer? - This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) - Adobe Reader 11 - The preview app for Macs

Re: [NTG-context] hyperlinks in latest beta?

2014-03-20 Thread Hans Hagen
example … \setupinteraction[state=start] \starttext Text\pagereference[test] \page \at{Page}[test] \stoptext what binary do you use? luatex 0.79? what viewer? - This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) - Adobe Reader 11 - The preview app for Macs can you send me

Re: [NTG-context] hyperlinks in latest beta?

2014-03-20 Thread Alan Bowen
AM, Alan Bowen wrote: Pablo, Hans-- Just checked. The links are not working for me either in ConTeXt ver: 2014.03.19 23:11 MKIV beta. simple example ... \setupinteraction[state=start] \starttext Text\pagereference[test] \page \at{Page}[test] \stoptext what binary do you use

Re: [NTG-context] weird interaction in linenotes command (again)

2013-07-17 Thread Wolfgang Schuster
below. \setuppapersize[A6] \starttext \dorecurse{10}{not original } \dorecurse{10}{not \pagereference[test:#1]original } \stoptext The problem is the following code in the reference macros (str-ref.mkvi), when the box code is commented the hyphenation works. \unexpanded\def

Re: [NTG-context] error: terminal: NOfTextColumns-1, ! Improper final value has been replaced by 0

2013-04-26 Thread Hans Hagen
20 21 22 \input ./macros/E16pagenohead.tex 23 \ifodd \pageno \else \noheaderandfooterlines \null \page[yes]\fi \noheade randfooterlines 24 25 \startptp{ 26 \pagereference[Languages]\pnum{Part II}\ptitle{Language Listings} 27 }\stopptp This error is very odd because: a) The only place I can find

[NTG-context] error: terminal: NOfTextColumns-1, ! Improper final value has been replaced by 0

2013-04-24 Thread Lars Huttar
\ifodd \pageno \else \noheaderandfooterlines \null \page[yes]\fi \noheade randfooterlines 24 25 \startptp{ 26 \pagereference[Languages]\pnum{Part II}\ptitle{Language Listings} 27 }\stopptp This error is very odd because: a) The only place I can find code mentioning NOfTextColumns-1 is in mp

[NTG-context] link to component

2013-01-11 Thread Daniel Schopper
a bug to me. Thanks in advance! Daniel Working minimal example: --- My product.tex looks like this: \setupinteraction[state=start] \startproduct product \startbodymatter %\at and \inline - \pagereference[knuth] don't work cf. Knuth at \at{p.}[knuthpage

Re: [NTG-context] link to component

2013-01-11 Thread Daniel Schopper
%\at and \inline - \pagereference[knuth] don't work cf. Knuth at \at{p.}[knuthpage] \inline{line}[knuth] % \in - \chapter[knuthchap] works in \in{Chapter}[knuthchap]. \stopbodymatter \startappendices \component appendix \stopappendices \stopproduct -- And my

Re: [NTG-context] Marking a textfragment for later reference

2012-08-05 Thread Wolfgang Schuster
}[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

Re: [NTG-context] Marking a textfragment for later reference

2012-08-05 Thread Robert Blackstone
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

[NTG-context] Pagereference not working!?

2012-04-07 Thread Verhaag, G.C.H.M.
Dear ConTeXt user's, Today I upgraded to the latest MkIV release 2012.04.06! I noticed that the \pagereference command is not working any more. Page referencing between external documents isn't working either! Please run the included example file! Regards, Gerard Verhaag % Pagereference

Re: [NTG-context] Pagereference not working!?

2012-04-07 Thread Wolfgang Schuster
Am 07.04.2012 um 12:17 schrieb Verhaag, G.C.H.M.: Dear ConTeXt user's, Today I upgraded to the latest MkIV release 2012.04.06! I noticed that the \pagereference command is not working any more. Page referencing between external documents isn't working either! There are indeed problems

Re: [NTG-context] Pagereference not working!?

2012-04-07 Thread Hans Hagen
On 7-4-2012 12:42, Wolfgang Schuster wrote: Am 07.04.2012 um 12:17 schrieb Verhaag, G.C.H.M.: Dear ConTeXt user's, Today I upgraded to the latest MkIV release 2012.04.06! I noticed that the \pagereference command is not working any more. Page referencing between external documents isn't

Re: [NTG-context] Pagereference not working!?

2012-04-07 Thread Wolfgang Schuster
Am 07.04.2012 um 15:16 schrieb Hans Hagen: On 7-4-2012 12:42, Wolfgang Schuster wrote: Am 07.04.2012 um 12:17 schrieb Verhaag, G.C.H.M.: Dear ConTeXt user's, Today I upgraded to the latest MkIV release 2012.04.06! I noticed that the \pagereference command is not working any more

Re: [NTG-context] Pagereference not working!?

2012-04-07 Thread Verhaag, G.C.H.M.
On 04/07/2012 03:16 PM, Hans Hagen wrote: On 7-4-2012 12:42, Wolfgang Schuster wrote: Am 07.04.2012 um 12:17 schrieb Verhaag, G.C.H.M.: Dear ConTeXt user's, Today I upgraded to the latest MkIV release 2012.04.06! I noticed that the \pagereference command is not working any more. Page

[NTG-context] Cross-document referencing problem!

2012-04-05 Thread Verhaag, G.C.H.M.
Hi ConTeXt User's, Again I'm struggling with cross-document referencing! The page of the \pagereference[def] command is shown correctly in the pdf result of the attached test.tex file using \at{page}[def]! However when I refer to this reference using \at{page}[tst::def] from the external

[NTG-context] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-03-28 Thread Jan Heinen
Hello, in the wiki I have built links for every command to the archiv of the ConTeXt-Mailinglist: e.G. http://wiki.contextgarden.net/Command/pagereference See at the bottom. It's not perfekt jet - but it helps to get more information to each command and to integrate the wiki

Re: [NTG-context] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-03-28 Thread Jörg Hagmann
Excellent! This is really helpful. Thanks, Jörg On Mar 28, 2012, at 2:33 PM, Jan Heinen wrote: Hello, in the wiki I have built links for every command to the archiv of the ConTeXt-Mailinglist: e.G. http://wiki.contextgarden.net/Command/pagereference See at the bottom. It's not perfekt

Re: [NTG-context] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-03-28 Thread Jaroslav Hajtmar
/pagereference See at the bottom. It's not perfekt jet - but it helps to get more information to each command and to integrate the wiki and the mailinglist. What do you think about this and could it be improved? Maybe we should give ConTeXt-beginners this hint when they ask questions in the mailinglist

Re: [NTG-context] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-03-28 Thread Philipp Gesang
On 2012-03-28 14:33, Jan Heinen wrote: Hello, in the wiki I have built links for every command to the archiv of the ConTeXt-Mailinglist: e.G. http://wiki.contextgarden.net/Command/pagereference See at the bottom. It's not perfekt jet - but it helps to get more information to each

Re: [NTG-context] interactive pdf with rotated buttons don't work

2012-03-18 Thread Jan Heinen
] {S. 6} [SeiteSechs] } } }% \starttext \dorecurse{5}{\navmenue \input tufte \page} \pagereference[SeiteSechs] \dorecurse{5}{\navmenue \input tufte \page} \stoptext Regards Jannis -- Better organization and integration of all ConTeXT-information: http://wiki.contextgarden.net

Re: [NTG-context] interactive pdf with rotated buttons don't work

2012-03-18 Thread Jan Heinen
] \par \button {\rotate[rotation=90]{\strut Ende}} [LastPage] \par \button {\rotate[rotation=90]{\strut S. 6}} [SeiteSechs] \par } }% \starttext \dorecurse{5}{\navmenue \input tufte \page} \pagereference[SeiteSechs] \dorecurse{5}{\navmenue \input tufte \page

[NTG-context] interactive pdf with rotated buttons don't work

2012-03-17 Thread Jan Heinen
. 6} [SeiteSechs] } } }% \starttext \dorecurse{5}{\navmenue \input tufte \page} \pagereference[SeiteSechs] \dorecurse{5}{\navmenue \input tufte \page} \stoptext Regards Jannis -- Better organization and integration of all ConTeXT-information: http://wiki.contextgarden.net

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
trick is possible: just mark the object with \pagereference[unique id]. The data is stored into the *tuc file, which can be read from the second pass. Many thanks for the code, Luigi. My question was to basic, but I wondered why this didn't worked. Of course, it's possible doesn't mean it's

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
with \pagereference[unique id]. The data is stored into the *tuc file, which can be read from the second pass. Luigi, I'm afraid it doesn't work as expected in the real file Lines are numbered there with [step=5]. So I get in headers only actually numbered lines, although it header should contain the real line

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread luigi scarso
is possible: just mark the object with \pagereference[unique id]. The data is stored into the *tuc file, which can be read from the second pass. Luigi, I'm afraid it doesn't work as expected in the real file I'm not surprised Lines are numbered there with [step=5]. So I get in headers only

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
}}\pagereference[LIN:\linenumber:\currentpage]} \setuplinenumbering[command=\LinenumberCommand,step=5] \startsetups linenumber \startluacode local l=0; if document.my_name_space == nil then return end; if document.my_name_space.pages == nil then return end; local pages

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-05 Thread luigi scarso
/LuaTeX? Absolutely no. As Hans said, a quick/dirty trick is possible: just mark the object with \pagereference[unique id]. The data is stored into the *tuc file, which can be read from the second pass. Then always run with $context --purgeall ; context yourfile.mkiv Of course, it's possible

Re: [NTG-context] pagereference broken in project

2012-02-29 Thread luigi scarso
On Wed, Feb 29, 2012 at 7:01 AM, Steffen Wolfrum cont...@st.estfiles.dewrote: Am 28.02.2012 um 16:28 schrieb Steffen Wolfrum: Hi, when I run (vers. 20120116) this minimal product with MyProduct.tex, I get ?? instead of the pagenumber for \at[abb:n] to \pagereference[abb:n

Re: [NTG-context] pagereference broken in project

2012-02-28 Thread Steffen Wolfrum
Am 28.02.2012 um 16:28 schrieb Steffen Wolfrum: Hi, when I run (vers. 20120116) this minimal product with MyProduct.tex, I get ?? instead of the pagenumber for \at[abb:n] to \pagereference[abb:n]. Is there a fix, or did I do a mistake? Just to be sure, I tested pagereference over

Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread Jan Heinen
\pagereference[red]Here is a red car. \page \pagereference[green]Here is a green car. \page \pagereference[red]Here is a red bus. \page \pagereference[green]Here is a green car. \page \stoptext ___ If your question

Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread Hans Hagen
page 2 is wrong) \page \pagereference[red]Here is a red car. \page \pagereference[green]Here is a green car. \page \pagereference[red]Here is a red bus. \page \pagereference[green]Here is a green car. \page that won't work as references need to be unique [green-1] [green-2] etc

Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread luigi scarso
am the only one and first who wants to reference to more than one page. I'm working on this but the idea of reference is that there is exactly one label for an object (which can be the same) so that \pagereference[red]foo \pagereference[red]boo is wrong because the label red has more than one

Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread luigi scarso
that \pagereference[red]foo \pagereference[red]boo is wrong because the label red has more than one reference, while \pagereference[red:1]foo \pagereference[red:2]foo is ok (as hans said). Using this idea, and the two pass way, we can wrap \pagereference and \at with \PageReference and \At, wheret

[NTG-context] Pagereferences to more than one page

2012-01-01 Thread Jan Heinen
Happy New Year! I want to reference to more than one page. In the exampe above only page 2 is referenced - how to get 2,4 ? \starttext You can find red vehicles on \at{page:}[red] Here I want to see: You can find red vehicles on page 2,4 (only page 2 is wrong) \page \pagereference[red

Re: [NTG-context] inactive hyperlink?

2011-11-23 Thread Hans Hagen
On 21-11-2011 20:36, Hans van der Meer wrote: There is something with creating hyperlinks I do not understand. Did \setupinteraction[state=start] Situation-1: \placefigure[][reftofigure].. gives me with \in.. a clickable link. Situation-2: \pagereference[reftoplace] (or \textreference

[NTG-context] inactive hyperlink?

2011-11-21 Thread Hans van der Meer
There is something with creating hyperlinks I do not understand. Did \setupinteraction[state=start] Situation-1: \placefigure[][reftofigure].. gives me with \in.. a clickable link. Situation-2: \pagereference[reftoplace] (or \textreference, \reference} do give me a link-colored text with \in{txt

[NTG-context] equation refs broken?

2011-11-20 Thread Hans van der Meer
, it is very serious for me, because the I cannot prepare the upcoming texts for my students! Furthermore: \pagereference now introduces spurious white. For the bad vertical spacing on the left I have submitted a tentative bugfix to Hans Hagen. Hans van der Meer \setuppapersize[A6][A6] \setupformulae

Re: [NTG-context] equation refs broken?

2011-11-20 Thread Paul Menzel
`\placetable` where Wolfgang proposed a quick fix if you are not using sub formulas and Re: [NTG-context] Edid of reference in Wiki where Hans responded he wanted to take a look this weekend. Furthermore: \pagereference now introduces spurious white. Please open a now thread

[NTG-context] another referencing question

2011-11-20 Thread Hans van der Meer
I see that a \pagereference[ref:a] gets a link to it with \at{see}[ref:a]. But when I click on it, the jump to that page is not made. Not in Adobe Reader, nor in Apple's Preview. Is that the intended behaviour? Is it something I am doing wrong? Or what? Hans van der Meer

Re: [NTG-context] referencing

2011-11-20 Thread Wolfgang Schuster
]% \fi} {\donothing}} \starttext \pagereference[one] \pagereference[two] One: \SamePage[one] \page Two: \SamePage[one] \stoptext Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] referencing

2011-11-20 Thread Meer, H. van der
\at[#1]% \fi} {\donothing}} \starttext \pagereference[one] \pagereference[two] One: \SamePage[one] \page Two: \SamePage[one] \stoptext Wolfgang ___ If your question is of interest

Re: [NTG-context] lua and brackets

2011-11-03 Thread Hans Hagen
{\currentreferencerealpage}}{\def\PageTwoA{0}} \doifreferencefoundelse{two-b}{\edef\PageTwoB{\currentreferencerealpage}}{\def\PageTwoB{0}} (\PageOne) (\PageTwo ) (\PageTwoA) (\PageTwoB) one \pagereference[one] \page two \pagereference[two-a] two \pagereference[two-b] \page \stoptext And if you want pure lua, you

[NTG-context] Retrieve the content of comments

2011-09-06 Thread Alexandre Leray
; Fusce pretium orci lectus, a egestas sapien. Maecenas ante tellus, cursus sed feugiat non, lacinia sit amet dui. Nam vel tortor sed leo pulvinar ornare. \pagereference[mycomment] This is my comment... I'd like to get something like this: Vestibulum ante _ipsum primis_^1 in faucibus orci

Re: [NTG-context] Retrieve the content of comments

2011-09-06 Thread Hans Hagen
et ultrices posuere cubilia Curae; Fusce pretium orci lectus, a egestas sapien. Maecenas ante tellus, cursus sed feugiat non, lacinia sit amet dui. Nam vel tortor sed leo pulvinar ornare. \pagereference[mycomment] This is my comment... I'd like to get something like this: Vestibulum ante _ipsum

Re: [NTG-context] styling \at

2011-08-15 Thread Wolfgang Schuster
}} \stopsetups \definereferenceformat[refa][type=page] \definereferenceformat[refb][type=page,style=italic] \definereferenceformat[refc][setups=reference:c,color=red] \starttext \pagereference[test] \startlines A:\refa[test] B:\refb[test] C:\refc[test] \stoplines \stoptext Wolfgang

Re: [NTG-context] styling \at

2011-08-15 Thread stdin
\pagereference[test] \startlines A:\refa[test] B:\refb[test] C:\refc[test] \stoplines \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] endnotes/critical apparatus

2011-05-20 Thread Daniel Schopper
\else \doglobal\newcounter\ApparatusCounter \fi \pagereference[apparatus:startpage:\ApparatusCounter]% \startline[apparatus:line:\ApparatusCounter]{#1}\stopline[apparatus:line:\ApparatusCounter]% \pagereference[apparatus:stoppage:\ApparatusCounter] \expanded

  1   2   >