[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
[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

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-24 Thread jbf via ntg-context
, 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

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-24 Thread Henning Hraban Ramm via ntg-context
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

[NTG-context] Is the Society of Biblical Literature (SBL) style files for ConTeXt incompatible with \setupinteraction[state=start]?

2023-01-15 Thread Joel via ntg-context
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

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
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

[NTG-context] error with sbl bibliography on latest LMTX

2022-07-08 Thread Henning Hraban Ramm via ntg-context
\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 {

[NTG-context] Tagging corrupts URLs in bibliographies

2022-06-30 Thread Max Chernoff via ntg-context
+++ 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

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-26 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
}} \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) %

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Displaying names in Chicago-Turabian "note" style

2021-12-21 Thread Joey McCollum via ntg-context
\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!

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Rik Kabel via ntg-context
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

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Denis Maier via ntg-context
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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-11 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
. 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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Hans Hagen via ntg-context
    \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

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
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}

Re: [NTG-context] Changing the style of author’s surname in a custom bibliographical style

2021-09-15 Thread Tomáš V via ntg-context
% 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

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-08-22 Thread Joey McCollum via ntg-context
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

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-24 Thread Stanislav Sokolenko
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

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen
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

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-01 Thread Hans Hagen
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

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-07-31 Thread Gerion Entrup
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!

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Hans Hagen
sed an error: 8<-- ! Undefined control sequence \strc_synonyms_insert_meaning ...urrentsynonymtag {#2}\fastsetup {\??simplel... \math_left ...ame \??mathleft

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
sed an error: 8<-- ! Undefined control sequence \strc_synonyms_insert_meaning ...urrentsynonymtag {#2}\fastsetup {\??simplel... \math_left ...ame \??mathleft

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Hans Hagen
an error: 8<-- ! Undefined control sequence \strc_synonyms_insert_meaning ...urrentsynonymtag {#2}\fastsetup {\??simplel... \math_left ...ame \??mathleft \meaning \nextto

[NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
like \startformula x = \left 1 + 2 \right \stopformula which caused an error: 8<-- ! Undefined control sequence \strc_synonyms_insert_meaning ...urrentsynonymtag {#2}\fastse

[NTG-context] Outputting custom types in MKiv bibliography

2016-05-05 Thread Mike O'Connor
) 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

Re: [NTG-context] Synonyms’ \infull doesn’t work anymore

2015-05-01 Thread Wolfgang Schuster
}% + \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

Re: [NTG-context] Synonyms’ \infull doesn’t work anymore

2015-05-01 Thread Thomas Floeren
% 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