Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Hans Hagen
On 12/6/2018 10:26 AM, Marco Patzer wrote: On Thu, 6 Dec 2018 09:34:57 +0100 Hans Hagen wrote: Also, how about: \at{\labeltext{atpage}}[#1] indeed, that is the command to use Don't get too hung up on that command. That was just a quick way to demonstrate the point and create an MWE

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Marco Patzer
On Thu, 6 Dec 2018 09:34:57 +0100 Hans Hagen wrote: > > Also, how about: > > > > \at{\labeltext{atpage}}[#1] > > indeed, that is the command to use Don't get too hung up on that command. That was just a quick way to demonstrate the point and create an MW

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Hans Hagen
is that many strings in lang-txt.lua end in a space, rather than a non-break space: ["atpage"]={ ["labels"]={ … ["en"]="at page ", … I fixed this by defining \setuplabeltext [en] [atpage=at page\nbsp] So I wonder: Does it

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-05 Thread Alan Braslau
t many strings in lang-txt.lua end in a space, > rather than a non-break space: > > ["atpage"]={ >["labels"]={ > … > ["en"]="at page ", > … > > I fixed this by defining > > \setuplabeltext > [en]

[NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-05 Thread Marco Patzer
Hi! I've got a few unfortunate line breaks in my documents. In particular, breaks are introduced in between the string “page” and the number: See figure 1 at page 2. The reason is that many strings in lang-txt.lua end in a space, rather than a non-break space: ["atpage"]={

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] Leave out reference to page if on the same page?

2014-08-01 Thread Gerben Wierda
}[label] % old: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure [here] [fig:#1] {} {\externalfigure[dummy]} \dorecurse {20} { ##1: \atpage[fig

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-26 Thread Hans Hagen
[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following}[label] % old: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure

Re: [NTG-context] \textreference

2014-07-26 Thread Hans Hagen
On 7/13/2014 7:59 PM, Herbert Voss wrote: I thought that \textreference will print its text (Foo) in difference to \reference. With current minimal I can see no difference between both. \starttext \textreference[foo]{Foo} \reference[bar]{Bar} \about[foo] and \about[bar] \atpage[bar] \stoptext

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Hans Hagen
/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following}[label] % old: \atpage[#label] % new

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Gerben Wierda
}[label] % old: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure [here] [fig:#1] {} {\externalfigure[dummy]} \dorecurse {20} { ##1: \atpage[fig

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Rik Kabel
: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure [here] [fig:#1] {} {\externalfigure[dummy]} \dorecurse {20} { ##1: \atpage[fig:##1

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-25 Thread Hans Hagen
}{foreward}{following}[label] % old: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure [here] [fig:#1] {} {\externalfigure[dummy]} \dorecurse {20} { ##1

Re: [NTG-context] Leave out reference to page if on the same page?

2014-07-23 Thread Otared Kavian
a \atpage and a \somewhere command but none of them %can be used to omit the reference when the float and the reference %are on the same page but it’s not impossible. % %As you can see from this example: \starttext 1. \doifreferencefoundelse{test}{\analyzecurrentreference\ifcase\referencepagestate

[NTG-context] \textreference

2014-07-13 Thread Herbert Voss
I thought that \textreference will print its text (Foo) in difference to \reference. With current minimal I can see no difference between both. \starttext \textreference[foo]{Foo} \reference[bar]{Bar} \about[foo] and \about[bar] \atpage[bar] \stoptext Herbert

Re: [NTG-context] Conditional float references

2013-10-08 Thread Marco Patzer
On 2013–09–22 Marco Patzer wrote: a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed on the same

Re: [NTG-context] Conditional float references

2013-09-25 Thread Otared Kavian
after your answer. Also after applying your patch everything works as expected. I tested your file with some maths formulas and changed even the language to French with: \unprotect \setuplabeltext [\s!fr] [\v!atpage=page\nobreakspace, %% “at page” sounds weird \v!previouspage=à la page

Re: [NTG-context] Conditional float references

2013-09-24 Thread Otared Kavian
your module. Best regards: OK On 22 sept. 2013, at 23:02, Marco Patzer li...@homerow.info wrote: Hi, a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks

Re: [NTG-context] Conditional float references

2013-09-23 Thread Hans Hagen
On 9/22/2013 11:02 PM, Marco Patzer wrote: Hi, a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed

Re: [NTG-context] Conditional float references

2013-09-23 Thread Marco Patzer
On 2013–09–23 Hans Hagen wrote: a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed on the same

[NTG-context] Conditional float references

2013-09-22 Thread Marco Patzer
Hi, a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed on the same double page. In fact, no text

Re: [NTG-context] ConTeXt Manual Errata

2013-09-21 Thread Marco Patzer
mechanism for automatically placing the “on page…” string if the reference is not on the current page. \atpage comes close, though. Document processing is best done by TeXexec -- is this still true? Well, your manual is from 2000. I thought the context program supercedes TeXexec? yes Describe

[NTG-context] atpage || number comparing

2012-05-15 Thread Peter Schorsch
Hi, it tried to do a \atpage command that results a) some page = nothing b) different page = pagenumber with some text (e.g. auf Seite XY) \def\atPage[#1]% {\doifnot{\at[#1]}{\currentpage}% {\at[#1]}% } My problem with this is, that the \doifnot always results

Re: [NTG-context] atpage || number comparing

2012-05-15 Thread Rogers, Michael K
Hi, I'm a neophyte using last year's TeXLive context. An expert can probably improve my answer. Does this work for you?: \def\atPage[#1]% {\doifnot{\doifreferencefoundelse{#1}{\currentreferencepage}{?}}{\currentpage}% {\at[#1]}% } I adapted it from code in strc

Re: [NTG-context] atpage || number comparing

2012-05-15 Thread Hans Hagen
On 15-5-2012 14:28, Peter Schorsch wrote: Hi, it tried to do a \atpage command that results a) some page = nothing b) different page = pagenumber with some text (e.g. auf Seite XY) \def\atPage[#1]% {\doifnot{\at[#1]}{\currentpage}% {\at[#1]}% } My problem

Re: [NTG-context] References to floats

2012-05-09 Thread Robert Blackstone
at the same page as the text discussing it. Is there any trick to adapt the reference to this situation, so that, instead of saying, for instance, ex. 3.4 on page 12, it just says ex. 3.4, or ex. 3.4 below or even ex. 3.4 on this page? you can try \atpage[ref] The best way is to define

Re: [NTG-context] References to floats.

2012-05-07 Thread Hans Hagen
page, but I have no clue how I could use this knowledge.) Thanks in advance for any help. you can try \atpage[ref] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] References to floats

2012-05-07 Thread Robert Blackstone
, for instance, ex. 3.4 on page 12, it just says ex. 3.4, or ex. 3.4 below or even ex. 3.4 on this page? you can try \atpage[ref] Thank you, Hans, for your quick reply. Unfortunately it does not help me. The result is basically the same as when I write on \at{page}[ref], except that, instead

Re: [NTG-context] References to floats

2012-05-07 Thread Wolfgang Schuster
to this situation, so that, instead of saying, for instance, ex. 3.4 on page 12, it just says ex. 3.4, or ex. 3.4 below or even ex. 3.4 on this page? you can try \atpage[ref] Thank you, Hans, for your quick reply. Unfortunately it does not help me. The result is basically the same

[NTG-context] lua and brackets

2011-11-03 Thread Martin Fechner
Hi all, I try to call a lua-function, but it seems that it doesn't work if the parameter contains squared brackets. Here is a short example: \starttext sometext \reference[myref]{} is \ctxlua{tex.print(\atpage[myref])} \stoptext Is there a way to mask

Re: [NTG-context] lua and brackets

2011-11-03 Thread Hans Hagen
On 3-11-2011 10:15, Martin Fechner wrote: Hi all, I try to call a lua-function, but it seems that it doesn't work if the parameter contains squared brackets. Here is a short example: \starttext sometext \reference[myref]{} is \ctxlua{tex.print(\atpage[myref])} \stoptext Is there a way to mask

Re: [NTG-context] lua and brackets

2011-11-03 Thread Martin Fechner
(\atpage[myref])} \stoptext Is there a way to mask the brackets? \atpage[myref] My lua function doesn't just print the parameter. I have a function like this: \startluacode function pagesetup(page1,page2) if page1==page2 then tex.print(page1) elseif page1+1==page2

Re: [NTG-context] lua and brackets

2011-11-03 Thread Hans Hagen
sometext \reference[myref]{} is \ctxlua{tex.print(\atpage[myref])} \stoptext Is there a way to mask the brackets? \atpage[myref] My lua function doesn't just print the parameter. I have a function like this: \startluacode function pagesetup(page1,page2) if page1==page2

[NTG-context] References to annotations

2011-10-05 Thread Michael Green
I'm getting two unexpected results from references to annotations: 1. The numbering is different: \placeannotationnumber starts at 1, \in[ref] starts at 0 2. \atpage sometimes gives the page number and sometimes yields something surprising: as we show below (or above). That's nifty

Re: [NTG-context] References to annotations

2011-10-05 Thread Wolfgang Schuster
Am 05.10.2011 um 19:50 schrieb Michael Green: I'm getting two unexpected results from references to annotations: 1. The numbering is different: \placeannotationnumber starts at 1, \in[ref] starts at 0 Fixed. 2. \atpage sometimes gives the page number and sometimes yields something

Re: [NTG-context] I think I found a bug in \at

2011-03-05 Thread Wolfgang Schuster
\definereferenceformat. \mainlanguage[nl] \definereferenceformat [AtPage] [label=page, %autocase=no, ] \starttext \reference[test]{\pagenumber} \at{page}[test] \AtPage[test] \stoptext @Hans: What happend with “command=\at” for \definereferenceformat? Wolfgang

Re: [NTG-context] Conditional cross references to floats

2011-01-18 Thread Robert Blackstone
page? ConTeXt has a \atpage and a \somewhere command but none of them can be used to omit the reference when the float and the reference are on the same page but it?s not impossible. As you can see from this example: . Wolfgang Thank you, Wolfgang. The code you gave, while not a fool

Re: [NTG-context] Conditional cross references to floats

2011-01-17 Thread Wolfgang Schuster
a sort of conditional reference that only mentions the page if it is not the present page? ConTeXt has a \atpage and a \somewhere command but none of them can be used to omit the reference when the float and the reference are on the same page but it’s not impossible. As you can see from

Re: [NTG-context] Relative references to floats

2010-06-09 Thread Wolfgang Schuster
:-) strc-ref.mkiv: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping Wolfgang

Re: [NTG-context] Relative references to floats

2010-06-09 Thread Andreas Schneider
the current paragraph or ... as you can see below. if it is below. strc-ref.mkiv: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-09 Thread Alan BRASLAU
] \setuplabeltext [\s!it][\v!atpage=a pagina ] \setuplabeltext [\s!it] [\v!hencefore=come mostrato sopra] \setuplabeltext [\s!it] [\v!hereafter=come mostrato sotto] \setuplabeltext [\s!it] [\v!see=cf. ] \setuplabeltext [\s!fr] [\v!page=page ] \setuplabeltext [\s!fr][\v!atpage=à la page

[NTG-context] Updating lang-ita.tex (was [Fwd: Undelivered Mail Returned to Sender])

2009-02-25 Thread Xan
\setuplabeltext [\s!it][\v!page=pagina ] \setuplabeltext [\s!it] [\v!atpage=a pagina ] \setuplabeltext [\s!it] [\v!hencefore=come mostrato sopra] \setuplabeltext [\s!it] [\v!hereafter=come mostrato sotto] \setuplabeltext [\s!it] [\v!see=cf. ] %D Ordinal converters: \def\frordinaldaynumber

[NTG-context] Updating lang-ita.tex

2009-02-22 Thread Xan
[\s!ro] [\v!wednesday=miercuri] \setuplabeltext [\s!ro] [\v!thursday=joi] \setuplabeltext [\s!ro] [\v!friday=vineri] \setuplabeltext [\s!ro] [\v!saturday=s\^{a}mb\u{a}t\u{a}] %D Rather new \unknown \setuplabeltext [\s!it][\v!page=pagina ] \setuplabeltext [\s!it] [\v!atpage=a pagina

[NTG-context] Update catalan + spanish translation (was Re: Bibtex doubt (was Re: Forward of moderated message))

2009-02-16 Thread Xan
{a}] %D Rather new \unknown \setuplabeltext [\s!it][\v!page=pagina ] \setuplabeltext [\s!it] [\v!atpage=a pagina ] \setuplabeltext [\s!it] [\v!hencefore=come mostrato sopra] \setuplabeltext [\s!it] [\v!hereafter=come mostrato sotto] \setuplabeltext [\s!it] [\v!see=cf. ] %D Ordinal converters

Re: [NTG-context] Sample farsi file

2009-01-09 Thread Mehdi Omidali
=شنبه] %D Rather new ... \setuplabeltext [page=صفحه] \setuplabeltext [atpage=در صفحهٔ ] %\setuplabeltext [hencefore=كما وضحنا سابقا] %\setuplabeltext [hereafter=كما نوضح لاحقا] \setuplabeltext [see=نگاه کنيد به] %D ... and to be completed! \protect \endinput %-end

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
=پنج‌شنبه] \setuplabeltext [friday=جمعه] \setuplabeltext [saturday=شنبه] %D Rather new ... \setuplabeltext [page=صفحه] \setuplabeltext [atpage=در صفحهٔ ] %\setuplabeltext [hencefore=كما وضحنا سابقا] %\setuplabeltext [hereafter=كما نوضح لاحقا] \setuplabeltext [see=نگاه کنيد به] %D

Re: [NTG-context] Translaing ConTeXt interface to Arabic

2008-06-20 Thread Khaled Hosny
] \setuplabeltext [\s!en] [\v!thursday=الخميس] \setuplabeltext [\s!en][\v!friday=الجمعة] \setuplabeltext [\s!en] [\v!saturday=السبت] %D Rather new ... \setuplabeltext [\s!en][\v!page=صفحة ] \setuplabeltext [\s!en] [\v!atpage=في صفحة ] \setuplabeltext [\s!en] [\v!hencefore=كما وضحنا سابقا

Re: [NTG-context] Some questions about the taspresent module

2008-05-18 Thread Hans Hagen
mayeb use 'ofpage' instead (and atpage) \beginLUATEX \definefontsynonym [BigBoss] [name:NimbusSanL-Bold] \definefont[Emblem] [BigBoss at 30pt] \endLUATEX However, there is a problem with this font; I get this error: /usr/local/texlive/2007/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
: todo \about{text}[reference] \adaptlayout[number][dimensions] \adding[size] # \aftersplitstring # \and \appendix[references]{text} # \appendtoks # \AR \arg{text} \at{text}{text}[reference] \atpage[reference] \background # \bbox # \beforesplitstring # \begstrut \blackrule[settings] \blackrules

[NTG-context] Defining references points

2005-04-13 Thread Nikolai Weibull
[name], \atpage[name]. with the obvious semantics. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97

Re: [NTG-context] Defining references points

2005-04-13 Thread Matthias Weber
in a document, but haven't been able to come to a solution, so...how do I do it? What I'd really like to do would be to write: \placerefpoint[name][description] and then be able to write see \about[name], \atpage[name]. with the obvious semantics. Thanks, nikolai -- Nikolai