[ref.buffer]
\usebtxdefinitions[apa]
\definebtx
[apa:cite:theorem]
[apa:cite]
\startsetups btx:apa:cite:theorem
\btxflushauthorname{author}
\btxcomma
\btxflush{year}
\fastsetup{btx:cite:righttext}
\stopsetups
\setupenumeration[
before={\blank[medium]},
after={\blank
, have never
been sure about what \directsetup does, but there's no doubt it works
in this case! So the following has done what I needed:
I’m sorry, I didn’t test my suggestion.
In MkIV, \directsetup or \fastsetup are a bit faster than \setup. They
can load only one setup and catch less errors
actually understand why, have never been sure
about what \directsetup does, but there's no doubt it works in this
case! So the following has done what I needed:
I’m sorry, I didn’t test my suggestion.
In MkIV, \directsetup or \fastsetup are a bit faster than \setup. They
can load only one setup
When I am using the SBL ConTeXt files for citations, if I add a line
`\setupinteraction[state=start` my code starts complaining:
Undefined control sequence \currentbtxloctext
\16>:btx:sbl:cite:inline
#1->\fastsetup {\s!btx :\s!cite :concat}\fastsetup
{btx:sbl:cite:lefttext}\begi
t}}
\startfootnote
\Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
the footnote (needed to render "Ibid." and "Idem" correctly)
% Add a closing period if there is no righttext
\doif{\btxparameter{righttext}}{\empty} {
\btxperiod
}
\stopfo
\currentbtxloctext
\22>:btx:sbl:cite:inline
#1->\fastsetup {\s!btx :\s!cite :concat}\fastsetup
{btx:sbl:cite:lefttext}\begingroup \letbtxparameter {punct}\empty \def
\currentbtxcitealternative {inline}\def \currentbtxcategory {\btxfield
{category}}\def \currentbtxloctext
{
+++ texmf-context/tex/context/base/mkxl/publ-ini.mkxl 2022-06-30
15:06:22.220074900 -0600
@@ -399,6 +399,7 @@
\aliased\let\btxsetup\fastsetup
\permanent\def\btxrawfield #1{\clf_btxfield {\currentbtxdataset}{\currentbtxtag}{#1}}
+\permanent\def\btxrawflush #1{\clf_btxflush
{\currentbtxdataset
This actually seems to be rooted in a more general problem with the
publications support module. Why does invoking the fastsetup for citations
work within the default footnote setup, but not within endnotes flushed via
\placenotes[footnote]? If I modify the original MWE to use ConTeXt's
default
}}
\begingroup
\letbtxparameter{punct}\empty % don't pass the trailing punctuation down
to the inline setup
\startfootnote
\Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
the footnote (needed to render "Ibid." and "Idem" correctly)
%
is not
recognized within the footnote environment...
\startfootnote
\Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
the footnote (needed to render "Ibid." and "Idem" correctly)
% Add a closing period, unless the righttext ends with punctuation
\doifendswithpun
\ifnum\currentbtxauthorindex>\plusone
\fastsetup{\s!btx:\s!list:\s!author:normal}
\else
\fastsetup{\s!btx:\s!list:\s!author:inverted}
\fi
\stopsetups
\startsetups \s!btx:\s!cite:\s!author:invertedfirst
\ifnum\currentbtxauthorindex>\plusone
\fastsetup{\s!
is not true.
If that is the case, can you provide an example that demonstrates the
difference in expansion between \setup and \directsetup?
Also, as far as expansion, is \fastsetup like \setup or like \directsetup?
\setup and \directsetup are similar. \fastsetup is like the name implies
a faster
Rik Kabel via ntg-context schrieb am 15.11.2021 um 19:06:
So, some follow-up questions:
1. What do you mean by "only one setup" in the description of
directsetup and fastsetup? I have examples of using two different
directsetup in one after key, so it does not se
and the documents and found
nothing. (That may indicate my level of search foo, but nonetheless I
am in need of help with this.)
\setup : takes a list ({...} or [...])
\directsetup: supports gridsnapping, only one setup
\fastsetup : the fastest, only one setup
concerning performance, i
my level of search foo, but nonetheless I am in need of help
with this.)
\setup : takes a list ({...} or [...])
\directsetup: supports gridsnapping, only one setup
\fastsetup : the fastest, only one setup
concerning performance, i wonder if you'll notice it
\starttext
\startsetups test
Oh yeah, I'd like to know more about this as well. Also, what about \fastsetup?
Denis
> -Ursprüngliche Nachricht-
> Von: ntg-context Im Auftrag von Rik Kabel
> via ntg-context
> Gesendet: Montag, 15. November 2021 06:24
> An: mailing list for ConTeXt users
> Cc: Ri
If it helps with troubleshooting, I've also tried to do this with
\fastsetup instead of \texdefinition:
```
\expanded{\abbreviation[\currentbtxtag]{\fastsetup{btx:sbl:cite:shorthand}}{
\fastsetup{btx:sbl:cite:listsubcite}}}
```
This also doesn't work, but I at least get a "Missing co
. The problem is that
>>>> in this case, I have to use a macro even in the first input
>>>> to \abbreviation (in brackets), because I don't know what it is in advance.
>>>> In addition, if the second and third inputs to \abbreviation (in curly
>>>> braces) a
d at
>>> the time when they are needed.
>>>
>>> I'm not as familiar with how to deal with expansion problems, so I could
>>> use someone's expertise here. Is there a simple way to define an
>>> abbreviation using the expanded values of macros a
on?
>> (Something like \inshort[\currentbtxtag]?)
>>
>> Thanks!
>>
>> Joey
>>
>> On Sun, Aug 22, 2021 at 6:11 PM Joey McCollum <
>> jmccollum20140...@gmail.com> wrote:
>>
>>> Just continuing to talk my way through the inner workings of the Co
gt;
> Joey
>
> On Sun, Aug 22, 2021 at 6:11 PM Joey McCollum
> wrote:
>
>> Just continuing to talk my way through the inner workings of the ConTeXt
>> Publication modules. It looks like three "long" citation forms are defined
>> in publ-imp-cite.mkv
n, Aug 22, 2021 at 6:11 PM Joey McCollum
wrote:
> Just continuing to talk my way through the inner workings of the ConTeXt
> Publication modules. It looks like three "long" citation forms are defined
> in publ-imp-cite.mkvi:
>
> \startsetups btx:cite:listelement
> \fasts
\ifnum\currentbtxauthorindex>\plusone
\fastsetup{\s!btx:\s!cite:\s!author:normal}
\else
\fastsetup{\s!btx:\s!cite:\s!author:inverted}
\fi
\stopsetups
...
\startsetups \s!btx:\s!list:\s!author:invertedfirst
\ifnum\currentbtxauthorindex>\plusone
\fastse
one
\fastsetup{\s!btx:\s!cite:\s!author:normal}
\else
\fastsetup{\s!btx:\s!cite:\s!author:inverted}
\fi
\stopsetups
...
\startsetups \s!btx:\s!list:\s!author:invertedfirst
\ifnum\currentbtxauthorindex>\plusone
\fastsetup{\s!btx:\s!list:\s!author:normal}
% surname to small caps in list
\startsetups \s!btx:\s!list:\s!author:inverted
\fastsetup{\s!btx:\s!list:\s!author:concat}
\ifx\currentbtxvons\empty \else
\texdefinition{\s!btx:\s!cite:\s!author:\s!de}
\doifnotmode {\s!btx:\s!de} {
\currentbtxvons
My changes are detailed
> > below:
>
> did you try to stay at the tex end? like:
>
> % \startsetups \s!btx:\s!cite:\s!author:invertedfirst
> % \ifnum\currentbtxauthorindex>\plusone
> %\btxsetauthorvariant{inverted}
> % \else
> %\btx
riant{normal}
% \fi
% \fastsetup{\s!btx:\s!cite:\s!author:\btxauthorvariant}
% \stopsetups
\startsetups \s!btx:\s!cite:\s!author:invertedfirst
\ifnum\currentbtxauthorindex>\plusone
\fastsetup{\s!btx:\s!cite:\s!author:inverted}
\else
\fastsetup{\s!btx:\s!cite:\s!author:n
Just continuing to talk my way through the inner workings of the ConTeXt
Publication modules. It looks like three "long" citation forms are defined
in publ-imp-cite.mkvi:
\startsetups btx:cite:listelement
\fastsetup{\s!btx:\s!cite:concat}
\fastsetup{\s!btx:\s!cite:lefttext
That's perfect, thank you!
On 2018-07-23 06:32 PM, Hans Hagen wrote:
\startsetups btx:list:author:normalshort
\fastsetup{btx:list:author:concat}
\begingroup
\ctxluacode{document.CheckMeB("\currentbtxdataset","\currentbtxtag",\number\currentbtxautho
B(set,tag,aut)
local c = publications.getcasted(set,tag,"author")
if c[aut].surnames[1] == "Foo" then
context("\\bf")
end
end
\stopluacode
\startsetups btx:list:author:normalshort
\fastsetup{btx:list:author:concat}
\begingroup
\ctxlu
vi 2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
\definebtx
[aps:\s!list]
[aps]
- [\c!authorconversion=normalshort]
+ [\c!authorconversion=normal]
\definebtx
[aps:\s!list:author]
@@ -1117,6 +1117,12 @@
\startsetups btx:aps:list:misc
\fastsetup{btx:aps:li
o achive this thing, but I don't know a better one.
Here is the patch, if someone is interested.
Gerion
--- publ-imp-aps.mkvi.original 2017-07-31 21:23:14.736856430 +0200
+++ publ-imp-aps.mkvi 2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
\definebtx
[aps:\s!list]
[aps]
- [\c!
sed an error:
8<--
! Undefined control sequence
\strc_synonyms_insert_meaning ...urrentsynonymtag
{#2}\fastsetup
{\??simplel...
\math_left ...ame \??mathleft
sed an error:
8<--
! Undefined control sequence
\strc_synonyms_insert_meaning ...urrentsynonymtag
{#2}\fastsetup
{\??simplel...
\math_left ...ame \??mathleft
an error:
8<--
! Undefined control sequence
\strc_synonyms_insert_meaning ...urrentsynonymtag
{#2}\fastsetup
{\??simplel...
\math_left ...ame \??mathleft \meaning \nextto
like
\startformula
x = \left 1 + 2 \right
\stopformula
which caused an error:
8<--
! Undefined control sequence
\strc_synonyms_insert_meaning ...urrentsynonymtag
{#2}\fastse
) as custom types
(eg. ‘newspaper’, ‘archivalItem’), create setups for how they are output and
which fields I output.
I found a ’newspaper’ type (and other non-BibTeX types) defined in
publ-imp-apa.mkiv as:
\startsetups btx:apa:list:newspaper
\fastsetup{btx:apa:list:article}
\stopsetups
I
}%
+ \fastsetup{\??simplelistrenderings::\v!text}%
- \fastsetup{\??simplelistrenderings:\v!text}%
\endgroup}
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
% name tag
{\begingroup
\def\currentsimplelist{#1}%
+ \def\currentsynonymtag{#2}%
+ \fastsetup{\??simplelistrenderings::\v!text}%
- \fastsetup{\??simplelistrenderings:\v!text}%
\endgroup}
Ah, thank you!
I was close … more or less ;-)
--
Tom
39 matches
Mail list logo