[NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-08-27 Thread Joey McCollum via ntg-context
I dealt with this issue at length in a separate thread (“Different author rendering in entry citation vs. list”) a couple months after you asked about this, so for the benefit of anyone who has been following this thread specifically, I’ll describe the solution I found here. There are (at least) a few commands defined in publ-imp-ini.mkiv that can help conditionally render author fields according to cite parameters rather than list parameters. The first, \btxflushauthornormal{author} (where author can be replaced by another name-type field, if I understand correctly), will flush the specified field according to the “normal” authorconversion. There are similar commands for \btxflushauthorname, \btxflushauthornormalshort, \btxflushauthorinverted, and \btxflushauthorinvertedshort, if you need a different conversion.If you also want to use other cite-specific name-rendering parameters, like etallimit, etaldisplay, and etaloption, then the \currentbtxciteauthorbyfield (which does not accept an argument and will only render the author field or any field in the author set) will do this. To handle citation alternative-dependent formatting, you can use the \currentbtxcitealternative as follows:```\doifelse {\currentbtxcitealternative} {entry} {    % Normal short conversion for entry citations    \btxflushauthornormalshort{author}} {    % Normal conversion for list citations    \btxflushauthornormal{author}}```Joey
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting path and filename from url

2021-08-27 Thread Hans Hagen via ntg-context

On 8/27/2021 8:53 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following sample:

   \starttext
   \startluacode
   url = "../a/b/cb/ce.b/ca.b/c/dabc.pdf"

   context(url)

   context("0 ok. " .. url:match "^(.*).pdf$") -- name and path

   context("1. " .. url:match "^(.*).+$") -- path

   context("2. " .. url:match"[^/]+[.$]") -- name

   context("3 ok. " .. url:match "[^.]+$") -- extension
   \stopluacode
   \stoptext

How can I get that match for #1 ends in the last slash (including it
"../a/b/cb/ce.b/ca.b/c/") and match for #2 ends in the last period
(excluding it, "dabc")?
it really helps to read the cld manual (or look into l-* files) as there 
are plenty of efficient helpers for these things


local s = "./a/b/cb/ce.b/ca.b/c/dabc.pdf"

print(file.pathpart(s))
print(file.nameonly(s))
print(file.basename(s))
print(file.suffix(s))
print(file.replacesuffix(s,"tmp"))


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Joey McCollum via ntg-context
Happy I could help! The \btxflushauthornormal command should handle the
authorconversion switch that you want. Just remember that if you need to
use different et al. settings in citations as well, you should use
\currentbtxciteauthorbyfield!

Joey

On Fri, Aug 27, 2021, 7:22 AM Ágoston Volcz via ntg-context <
ntg-context@ntg.nl> wrote:

> After I have seen your code snippet, the command \btxflushauthornormal
> grabbed my attention. This command and its variations are indeed what
> I was looking for. As I think the documentation doesn't mention these
> advanced commands, I didn't even know they exist.
> Thanks for sharing your discovery!
>
> Agoston
>
> Am Fr., 27. Aug. 2021 um 05:09 Uhr schrieb Joey McCollum via
> ntg-context :
> >
> > Nevermind, it looks like there's an even more deliberate and succinct
> way to handle this! In publ-ini.mkiv, the \currentbtxciteauthorbyfield
> command shows how to print the author field mapped according to the cite
> style:
> >
> > ```
> > \unexpanded\def\currentbtxciteauthorbyfield
> >   {\begingroup
> >%\setbtxparameterset\s!cite\s!author
> >% the alternatives inherit from cite:author
> >% and APA distinguishes authoryears from authoryear ("and" vs. "&")
> >\setbtxparameterset\s!cite\currentbtxcitealternative
> >\clf_btxauthor
> > {\currentbtxdataset}%
> > {\currentbtxtag}%
> > {\currentbtxauthorfield}%
> > {%
> > combiner{\btxparameter\c!authorconversion}%
> > kind{cite}%
> > etallimit   {\btxparameter\c!etallimit}%
> > etaldisplay {\btxparameter\c!etaldisplay}%
> > etaloption  {\btxparameter\c!etaloption}%
> > symbol  {\btxparameter{\c!stopper:initials}}%
> > }%
> >   \relax
> >   \endgroup}
> > ```
> >
> > The snippet above might offer some guidance on how to handle this
> problem more generally, but for my specific use case, it suffices to invoke
> the \currentbtxciteauthorbyfield command:
> >
> > ```
> > \doifelse {\currentbtxcitealternative} {entry} {
> > % Normal order for in-text citations
> >  \currentbtxciteauthorbyfield
> > } {
> > % Inverted order for list citations
> > % TODO: need to print the first name inverted, with all subsequent
> names in normal order
> > \btxflush{author}
> > }
> > ```
> >
> > I get the feeling that there are more relevant commands in publ-ini.mkiv
> that are intended to help with this kind of thing, but I've just been
> unaware of most of them. The existing bibliography documentation only
> covers the tip of the iceberg!
> >
> > Anyway, I realized that a couple months ago, Ágoston Volcz raised a
> similar issue in another thread. I think this approach should solve that
> problem, so when I get a chance, I can send an e-mail about that.
> >
> > Joey
> >
> > On Thu, Aug 26, 2021 at 3:38 PM Joey McCollum <
> jmccollum20140...@gmail.com> wrote:
> >>
> >> Okay, I've made some progress! Thankfully, the authorconversion rules
> can be overridden using some of the methods defined in publ-ini.mkiv. I now
> have something like this in my rendering's .mkvi file:
> >>
> >> ```
> >> \doifelse {\currentbtxcitealternative} {entry} {
> >> % Normal order for in-text citations
> >> \btxflushauthornormal{author}
> >> } {
> >> % Inverted order for list citations
> >> % TODO: need to print the first name inverted, with all subsequent
> names in normal order
> >> \btxflushauthorinverted{author}
> >> }
> >> ```
> >>
> >> This fixes the citation alternative-dependent authorconversion, but I
> still have to do the same for the etallimit and etaldisplay settings, and
> unfortunately, it doesn't look like there are similar commands for
> overriding this locally.
> >>
> >> Digging a bit more in publ-imp-chicago.lua and publ-imp-chicago.mkvi, I
> notice that it deals with a similar problem for the "editor" field: if the
> editor occurs in the "author" position (i.e., at the start of the citation,
> which happens when a book has an editor but no author), then the
> authorconversion should be inverted, but if the editor occurs after the
> author position (which happens when a book also has an author), then its
> authorconversion should be normalshort. The publ-imp-chicago.lua file
> addresses this by specifying an "ineditor" set containing only the "editor"
> field (essentially making it an alias to be used later), and then
> publ-imp-chicago.mkvi defines a style specifically for this field. I could
> solve the authorconversion, etallimit, and etaldisplay problems using an
> "entryauthor" field, but is this actually the recommended way to do this?
> Using this approach, I would have to have duplicate sets for nearly all
> "author"-type fields to ensure that they have different formatting in entry
> citations than they do in the list.
> >>
> >> Joey
> >>
> >> On Wed, Aug 25, 2021 at 5:45 PM Joey McCollum <
> jmccollum20140...@gmail.com> wrote:
> >>>
> >>> Hi,
> >>>
> >>> I'm 

Re: [NTG-context] getting path and filename from url

2021-08-27 Thread Tomas Hala via ntg-context
Hi Pablo,

is the following what you need?

context("1. " .. url:match ".+/")
context("2a. " .. url:match "[^/]+/.+[.]") -- path and name with period
--context("2b. " .. url:match "[^/]+[^.]+$") -- name with period and 
extension
context("2c. " .. (url:match "[^/]+[^.]+$") :match ".+[.]")  -- name with 
period

Best wishes,

Tomáš

Fri, Aug 27, 2021 ve 08:53:52PM +0200 Pablo Rodriguez via ntg-context napsal(a):
# Dear list,
# 
# I have the following sample:
# 
#   \starttext
#   \startluacode
#   url = "../a/b/cb/ce.b/ca.b/c/dabc.pdf"
# 
#   context(url)
# 
#   context("0 ok. " .. url:match "^(.*).pdf$") -- name and path
# 
#   context("1. " .. url:match "^(.*).+$") -- path
# 
#   context("2. " .. url:match"[^/]+[.$]") -- name
# 
#   context("3 ok. " .. url:match "[^.]+$") -- extension
#   \stopluacode
#   \stoptext
# 
# How can I get that match for #1 ends in the last slash (including it
# "../a/b/cb/ce.b/ca.b/c/") and match for #2 ends in the last period
# (excluding it, "dabc")?
# 
# Many thanks for your help,
# 
# Pablo
# --
# http://www.ousia.tk
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] getting path and filename from url

2021-08-27 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \starttext
  \startluacode
  url = "../a/b/cb/ce.b/ca.b/c/dabc.pdf"

  context(url)

  context("0 ok. " .. url:match "^(.*).pdf$") -- name and path

  context("1. " .. url:match "^(.*).+$") -- path

  context("2. " .. url:match"[^/]+[.$]") -- name

  context("3 ok. " .. url:match "[^.]+$") -- extension
  \stopluacode
  \stoptext

How can I get that match for #1 ends in the last slash (including it
"../a/b/cb/ce.b/ca.b/c/") and match for #2 ends in the last period
(excluding it, "dabc")?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-27 Thread Wolfgang Schuster via ntg-context



Fabrice Couvreur schrieb am 27.08.2021 um 10:04:

Hi Wolfgang,
This may not be nicest but seems to work
Fabrice

%%

\definelayout
[1]
  [header=10mm]

\setuplayout
  [header=0pt,
 height=middle]

\setuppagenumbering
[alternative=doublesided,location=]

\setupbackgrounds
[header]
  [text]
  [frame=off,bottomframe=on,
 framecolor=lightgray,rulethickness=1pt]

\startsetups[header]
\doifelse{\totalnumberofpages}{1}
    {\setuplayout[1]}
{\setuplayout[reset]}
\stopsetups


\starttext
\input knuth
%\dorecurse{10}{\input knuth\par}
\stoptext


I have no idea what you try to achieve but the check for the number of 
pages in your document is never used. The layout on the first page is 
different from the following pages but this is just how \definelayout 
work when you use a number as first argument.



What you have to understand is that a setups-environment is just a macro 
definition where you provide the names as argument to the start command. 
This means


    \startsetups [header]
    ...
    \stopsetups

works the same way as

    \def\internalname_header
      {...}

but you have to use

    \setups [header]

rather than

    \internalname_header

to get the content of the environment.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-27 Thread luigi scarso via ntg-context
On Fri, Aug 27, 2021 at 10:35 AM Rainer J.H. Brandt via ntg-context <
ntg-context@ntg.nl> wrote:

> Dear experts,
>
> I want to use ConTeXt MkIV as supplied by TeXlive 2021.
> After installation, I ran "mtxrun --generate".
> I also tried "context --generate".
> Both create output in the wrong place.
>
> The TeXlive documentation says that ConTeXt uses TEXMFCACHE,
> which uses the default $TEXMFSYSVAR;$TEXMFVAR in my texmf.cnf.
> My TEXMFSYSVAR is /var/opt/texlive, but ConTeXt doesn't use it.
> Instead, it creates /opt/texmf-var and creates its output there.
> I don't understand why it used that path; I've never used or configured
> it.
>
> How can I convice ConTeXt to use TEXMFSYSVAR?
>
> Or is this a question for the TeXlive folks?
>
> Thanks for looking at this.
>


What does
$> tlmgr conf
say ?

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Rudolf Bahr via ntg-context
On Fri, Aug 27, 2021 at 11:26:47AM +0200, Vincent Hennebert via ntg-context 
wrote:
> On Wed, 2021-08-11 at 10:23 +0200, Hans Hagen via ntg-context wrote:
> > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote:
> > > 
> > > 
> > > > On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context  > > > cont...@ntg.nl> wrote:
> > > > (…)
> > > > core-con.lua (line 1155):
> > > > 
> > > > local ordinals = {
> > > >  [...]
> > > >  french = function(n)
> > > >  if n == 1 then
> > > >  return "er"
> > > > +   else
> > > > +   return "e"
> > > >  end
> > > >  end,
> > > > }
> > > 
> > > Hi Wolfgang,
> > > 
> > > Thanks for the example and the fix, but I would rather think that the
> > > « french » part of ordinals should be
> > > 
> > > french = function(n)
> > > if n == 1 then
> > > return « er"
> > > else
> > >  return « ème"
> > > end
> > > end,
> > > 
> > > Now if this were not accepted as a fix in core-con.lua, is there a
> > > way for a user to change the default to the above choice in his
> > > document ?
> > 
> > it is no problem to fix if you all can agree on what/how to fix ...
> 
> The purpose of abbreviations is, well, to abbreviate. Even though ‘ème’
> is seen a lot, it’s wrong because it’s too long. Source (pretty
> official):
> https://www.academie-francaise.fr/abreviations-des-adjectifs-numeraux
> 
> So for numbers starting from 3 the proper abbreviation is ‘e’.
> 
> For 1 and 2 it’s more complicated, however, as it depends on the
> gender. For 1:
> * masculine: 1er
> * feminine: 1re
> 
> In addition for 2, and when the enumeration contains only 2 elements,
> there is the option to use the older word ‘second(e)’:
> * masculine: 2d
> * feminine: 2de
> 
> For 3 elements and above, we always use the newer word ‘deuxième’,
> which is abbreviated in the form of the generic ‘e’.
> 
> While that rule is optional, people who use tools like ConTeXt are
> likely to pay attention to that kind of details and will probably want
> to use it.
> 
> Finally, we have to add an ‘s’ to all the abbreviations if the plural
> is needed (the 1st (1ers) elements, the 2nd (2ds or 2es) elements,
> etc., vs the 1st (1er) element, 2nd (2d or 2e) element…).
> 
> Now, can all those subtleties be coded in a function? :)
> 
> Vincent

Bravo! Comme un professeur!

Best wishes, Rudolf

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Ágoston Volcz via ntg-context
After I have seen your code snippet, the command \btxflushauthornormal
grabbed my attention. This command and its variations are indeed what
I was looking for. As I think the documentation doesn't mention these
advanced commands, I didn't even know they exist.
Thanks for sharing your discovery!

Agoston

Am Fr., 27. Aug. 2021 um 05:09 Uhr schrieb Joey McCollum via
ntg-context :
>
> Nevermind, it looks like there's an even more deliberate and succinct way to 
> handle this! In publ-ini.mkiv, the \currentbtxciteauthorbyfield command shows 
> how to print the author field mapped according to the cite style:
>
> ```
> \unexpanded\def\currentbtxciteauthorbyfield
>   {\begingroup
>%\setbtxparameterset\s!cite\s!author
>% the alternatives inherit from cite:author
>% and APA distinguishes authoryears from authoryear ("and" vs. "&")
>\setbtxparameterset\s!cite\currentbtxcitealternative
>\clf_btxauthor
> {\currentbtxdataset}%
> {\currentbtxtag}%
> {\currentbtxauthorfield}%
> {%
> combiner{\btxparameter\c!authorconversion}%
> kind{cite}%
> etallimit   {\btxparameter\c!etallimit}%
> etaldisplay {\btxparameter\c!etaldisplay}%
> etaloption  {\btxparameter\c!etaloption}%
> symbol  {\btxparameter{\c!stopper:initials}}%
> }%
>   \relax
>   \endgroup}
> ```
>
> The snippet above might offer some guidance on how to handle this problem 
> more generally, but for my specific use case, it suffices to invoke the 
> \currentbtxciteauthorbyfield command:
>
> ```
> \doifelse {\currentbtxcitealternative} {entry} {
> % Normal order for in-text citations
>  \currentbtxciteauthorbyfield
> } {
> % Inverted order for list citations
> % TODO: need to print the first name inverted, with all subsequent names 
> in normal order
> \btxflush{author}
> }
> ```
>
> I get the feeling that there are more relevant commands in publ-ini.mkiv that 
> are intended to help with this kind of thing, but I've just been unaware of 
> most of them. The existing bibliography documentation only covers the tip of 
> the iceberg!
>
> Anyway, I realized that a couple months ago, Ágoston Volcz raised a similar 
> issue in another thread. I think this approach should solve that problem, so 
> when I get a chance, I can send an e-mail about that.
>
> Joey
>
> On Thu, Aug 26, 2021 at 3:38 PM Joey McCollum  
> wrote:
>>
>> Okay, I've made some progress! Thankfully, the authorconversion rules can be 
>> overridden using some of the methods defined in publ-ini.mkiv. I now have 
>> something like this in my rendering's .mkvi file:
>>
>> ```
>> \doifelse {\currentbtxcitealternative} {entry} {
>> % Normal order for in-text citations
>> \btxflushauthornormal{author}
>> } {
>> % Inverted order for list citations
>> % TODO: need to print the first name inverted, with all subsequent names 
>> in normal order
>> \btxflushauthorinverted{author}
>> }
>> ```
>>
>> This fixes the citation alternative-dependent authorconversion, but I still 
>> have to do the same for the etallimit and etaldisplay settings, and 
>> unfortunately, it doesn't look like there are similar commands for 
>> overriding this locally.
>>
>> Digging a bit more in publ-imp-chicago.lua and publ-imp-chicago.mkvi, I 
>> notice that it deals with a similar problem for the "editor" field: if the 
>> editor occurs in the "author" position (i.e., at the start of the citation, 
>> which happens when a book has an editor but no author), then the 
>> authorconversion should be inverted, but if the editor occurs after the 
>> author position (which happens when a book also has an author), then its 
>> authorconversion should be normalshort. The publ-imp-chicago.lua file 
>> addresses this by specifying an "ineditor" set containing only the "editor" 
>> field (essentially making it an alias to be used later), and then 
>> publ-imp-chicago.mkvi defines a style specifically for this field. I could 
>> solve the authorconversion, etallimit, and etaldisplay problems using an 
>> "entryauthor" field, but is this actually the recommended way to do this? 
>> Using this approach, I would have to have duplicate sets for nearly all 
>> "author"-type fields to ensure that they have different formatting in entry 
>> citations than they do in the list.
>>
>> Joey
>>
>> On Wed, Aug 25, 2021 at 5:45 PM Joey McCollum  
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to implement a custom bibliography rendering where in-text 
>>> citations (specifically, citations with alternative=entry) are not 
>>> identical to the entries in the bibliography list. Following a pattern I've 
>>> seen in publ-imp-chicago.mkvi, I've been able to implement most of the 
>>> features I'm interested in by using conditional formatting with a mode that 
>>> is specifically set for citations with the "entry" alternative. I'd also 
>>> like for author names in entry citations to be 

Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Vincent Hennebert via ntg-context
On Wed, 2021-08-11 at 10:23 +0200, Hans Hagen via ntg-context wrote:
> On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote:
> > 
> > 
> > > On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context  > > cont...@ntg.nl> wrote:
> > > (…)
> > > core-con.lua (line 1155):
> > > 
> > > local ordinals = {
> > >  [...]
> > >  french = function(n)
> > >  if n == 1 then
> > >  return "er"
> > > +   else
> > > +   return "e"
> > >  end
> > >  end,
> > > }
> > 
> > Hi Wolfgang,
> > 
> > Thanks for the example and the fix, but I would rather think that the
> > « french » part of ordinals should be
> > 
> > french = function(n)
> > if n == 1 then
> > return « er"
> > else
> >  return « ème"
> > end
> > end,
> > 
> > Now if this were not accepted as a fix in core-con.lua, is there a
> > way for a user to change the default to the above choice in his
> > document ?
> 
> it is no problem to fix if you all can agree on what/how to fix ...

The purpose of abbreviations is, well, to abbreviate. Even though ‘ème’
is seen a lot, it’s wrong because it’s too long. Source (pretty
official):
https://www.academie-francaise.fr/abreviations-des-adjectifs-numeraux

So for numbers starting from 3 the proper abbreviation is ‘e’.

For 1 and 2 it’s more complicated, however, as it depends on the
gender. For 1:
* masculine: 1er
* feminine: 1re

In addition for 2, and when the enumeration contains only 2 elements,
there is the option to use the older word ‘second(e)’:
* masculine: 2d
* feminine: 2de

For 3 elements and above, we always use the newer word ‘deuxième’,
which is abbreviated in the form of the generic ‘e’.

While that rule is optional, people who use tools like ConTeXt are
likely to pay attention to that kind of details and will probably want
to use it.

Finally, we have to add an ‘s’ to all the abbreviations if the plural
is needed (the 1st (1ers) elements, the 2nd (2ds or 2es) elements,
etc., vs the 1st (1er) element, 2nd (2d or 2e) element…).

Now, can all those subtleties be coded in a function? :)

Vincent


> Hans
> 
> 
> -
>    Hans Hagen | PRAGMA ADE
>    Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 
> If your question is of interest to others as well, please add an entry
> to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
> context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-27 Thread Rainer J.H. Brandt via ntg-context
Dear experts,

I want to use ConTeXt MkIV as supplied by TeXlive 2021.
After installation, I ran "mtxrun --generate".
I also tried "context --generate".
Both create output in the wrong place.

The TeXlive documentation says that ConTeXt uses TEXMFCACHE,
which uses the default $TEXMFSYSVAR;$TEXMFVAR in my texmf.cnf.
My TEXMFSYSVAR is /var/opt/texlive, but ConTeXt doesn't use it.
Instead, it creates /opt/texmf-var and creates its output there.
I don't understand why it used that path; I've never used or configured it. 

How can I convice ConTeXt to use TEXMFSYSVAR?

Or is this a question for the TeXlive folks?

Thanks for looking at this.
Regards, Rainer
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] layer disappears when showframe is set

2021-08-27 Thread juh via ntg-context
Hi Wolfgang,

thanks a lot for your help.

Am Thu, Aug 26, 2021 at 05:52:11PM +0200 schrieb Wolfgang Schuster:
> To keep the layer setting you have to move \showframe above your own
> \setupbackgrounds command because the reset of the background-key happens
> then before you pass your own value.

I wikified this hint here:
https://wiki.contextgarden.net/Command/showframe#See_also

juh



-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___