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
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
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
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]
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"]={
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
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
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
}[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
[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
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
/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
}[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
: \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
}{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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
(\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
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
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
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
\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
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
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
:-)
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
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
]
\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
\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
[\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
{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
=شنبه]
%D Rather new ...
\setuplabeltext [page=صفحه]
\setuplabeltext [atpage=در صفحهٔ ]
%\setuplabeltext [hencefore=كما وضحنا سابقا]
%\setuplabeltext [hereafter=كما نوضح لاحقا]
\setuplabeltext [see=نگاه کنيد به]
%D ... and to be completed!
\protect
\endinput
%-end
=پنجشنبه]
\setuplabeltext [friday=جمعه]
\setuplabeltext [saturday=شنبه]
%D Rather new ...
\setuplabeltext [page=صفحه]
\setuplabeltext [atpage=در صفحهٔ ]
%\setuplabeltext [hencefore=كما وضحنا سابقا]
%\setuplabeltext [hereafter=كما نوضح لاحقا]
\setuplabeltext [see=نگاه کنيد به]
%D
]
\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=كما وضحنا سابقا
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
: 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
[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
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
53 matches
Mail list logo