Re: [NTG-context] Unable to install lmtx

2021-09-16 Thread Henning Hraban Ramm via ntg-context

> Am 16.09.2021 um 19:45 schrieb Alain Delmotte via ntg-context 
> :
> 
> I changef my antivirus and now I could install lmtx.

Besides that, most antivirus solutions for Windows since 7 aren’t better than 
the builtins and often even open additional security holes.

Hraban
___
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] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Hans Hagen via ntg-context

On 9/16/2021 8:45 PM, Joey McCollum via ntg-context wrote:

Hi,

It's taken a couple weeks, but I nearly have a working bibliographic 
rendering for SBL style ready. I'm hosting the .lua and .mkvi files I 
have so far, as well as a test .bib and .tex file, on GitHub at 
https://github.com/jjmccollum/context-sbl 
. The look of the rendering 
seems to be correct for all of the examples, so the last remaining tasks 
mostly concern some lower-level technical issues.


Because of the way that SBL style renders entries that are contained in 
other works (e.g., a chapter in a book that is part of a multivolume 
collection), it seemed natural to accommodate this by allowing entries 
to have cross-references to other entries. The rendering process can 
then be handled through recursive subcitations with different 
alternatives. In general, I handle these subcitations with the \textcite 
command, so that "higher-level" entries are not added to the list when 
they are only subcited.


An important guideline that I still have to implement works in the 
opposite direction: it says that entries in certain categories should 
not be added to the list, but the books or collections containing them 
should be. I think I could make this work for the subcitation using the 
\listcite or \cite command recursively. But is there a way to 
conditionally handle whether or not to add the entry to the list after I 
invoke the \cite command, or is this built into the \cite command at a 
low level? If I had to, I could define an \autocite command that does 
all of these checks first, but if it's possible to keep the common \cite 
command instead of forcing users to use a different command, that would 
be preferable.

a few quick remarks (i'll look better into it later)

  % Various Lua macros for parsing and conversion
  \startluacode
sblhelpers = sblhelpers or {}

i think we should havea namespace for these kind of things in order not 
to polute the global namespace


something publications.btx and then publications.btx.slb = { }

this is tricky and will clash:

\def\ordinal#1{\ctxlua{sblhelpers.ordinal([==[#1]==])}}%
\def\convertdate#1{\ctxlua{sblhelpers.convertdate([==[#1]==])}}%
\def\serializelocationpublisher#1#2{\ctxlua{sblhelpers.serializelocationpublisher([==[#1]==],[==[#2]==])}}%
\def\serializevolumenumberdatepage#1#2#3#4{\ctxlua{sblhelpers.serializevolumenumberdatepage([==[#1]==],[==[#2]==],[==[#3]==],[==[#4]==])}}%

% Define some helper functions for subcitations
\let\btxparenttag\empty% the tag of the entry subciting the current one
\def\btxprintpubl{yes}% yes/no indicating whether publication 
information should be specified for the current citation or subcitation

\let\btxcurrentsubcitetype\empty% the type of subcitation we're invoking

here

   \def\btxsblordinal

is better, but as you're using protection, even better is

  \def\btx_sbl_ordinal

i also wonder about the

  \clf_btxdirect

we need a \btxdirect... (have to think about a name) because one never 
knows how a lowlevel command evolves (or at least i shoudl somehow make 
a not that it can't evolve (or make a keyword driven variant) ... idem 
for \clf_author (btw, no need for these end-of-line % in texdefinitions


I'll add string.wordsplitter so that

local andsplitter = string.wordsplitter("and")

local a = andsplitter("a and b and c")
local a = andsplitter("a and b  and c")
local a = andsplitter("aand band c")

all work as expected

i'll add an extended publ-imp-author.mkvi to the distribution, the other 
ones can come later (including the manual).


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
___


Re: [NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Denis Maier via ntg-context
Joey, I’ve only had a quick look on this, but, seriously, this looks awesome 
and impressive. Looks like I can soon start to teach ConTeXt courses instead of 
LaTeX at my department :-)

All the best,
Denis

Von: ntg-context  Im Auftrag von Joey McCollum via 
ntg-context
Gesendet: Donnerstag, 16. September 2021 20:46
An: mailing list for ConTeXt users 
Cc: Joey McCollum 
Betreff: [NTG-context] Exclude bibliographic entries from list even when cited 
with \cite

Hi,

It's taken a couple weeks, but I nearly have a working bibliographic rendering 
for SBL style ready. I'm hosting the .lua and .mkvi files I have so far, as 
well as a test .bib and .tex file, on GitHub at 
https://github.com/jjmccollum/context-sbl. The look of the rendering seems to 
be correct for all of the examples, so the last remaining tasks mostly concern 
some lower-level technical issues.

Because of the way that SBL style renders entries that are contained in other 
works (e.g., a chapter in a book that is part of a multivolume collection), it 
seemed natural to accommodate this by allowing entries to have cross-references 
to other entries. The rendering process can then be handled through recursive 
subcitations with different alternatives. In general, I handle these 
subcitations with the \textcite command, so that "higher-level" entries are not 
added to the list when they are only subcited.

An important guideline that I still have to implement works in the opposite 
direction: it says that entries in certain categories should not be added to 
the list, but the books or collections containing them should be. I think I 
could make this work for the subcitation using the \listcite or \cite command 
recursively. But is there a way to conditionally handle whether or not to add 
the entry to the list after I invoke the \cite command, or is this built into 
the \cite command at a low level? If I had to, I could define an \autocite 
command that does all of these checks first, but if it's possible to keep the 
common \cite command instead of forcing users to use a different command, that 
would be preferable.

Thanks!

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
___


[NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Joey McCollum via ntg-context
Hi,

It's taken a couple weeks, but I nearly have a working bibliographic
rendering for SBL style ready. I'm hosting the .lua and .mkvi files I have
so far, as well as a test .bib and .tex file, on GitHub at
https://github.com/jjmccollum/context-sbl. The look of the rendering seems
to be correct for all of the examples, so the last remaining tasks mostly
concern some lower-level technical issues.

Because of the way that SBL style renders entries that are contained in
other works (e.g., a chapter in a book that is part of a multivolume
collection), it seemed natural to accommodate this by allowing entries to
have cross-references to other entries. The rendering process can then be
handled through recursive subcitations with different alternatives. In
general, I handle these subcitations with the \textcite command, so that
"higher-level" entries are not added to the list when they are only
subcited.

An important guideline that I still have to implement works in the opposite
direction: it says that entries in certain categories should not be added
to the list, but the books or collections containing them should be. I
think I could make this work for the subcitation using the \listcite or
\cite command recursively. But is there a way to conditionally handle
whether or not to add the entry to the list after I invoke the \cite
command, or is this built into the \cite command at a low level? If I had
to, I could define an \autocite command that does all of these checks
first, but if it's possible to keep the common \cite command instead of
forcing users to use a different command, that would be preferable.

Thanks!

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] Unable to install lmtx

2021-09-16 Thread Alain Delmotte via ntg-context

  
  
Hi!

Le 16/09/2021 à 09:54, Hans Hagen via
  ntg-context a écrit :

On
  9/15/2021 10:04 PM, Alain Delmotte via ntg-context wrote:
  
  Hi!


I can't anymore install ConTeXt lmtx and wanted to use PPCHTeX
and I always got an error message.


So I wanted to run mtxrun --generate, but the access was denied.


I then wanted to run the last install.bat (I am on Windows 10)
but I always get a message from my antivirus (Panda Dome) which
says that context.exe and mtxrun.ex have  a virus and neutralise
them (that means erase them from the bin folder). I get the same
if I erase everything and install from fresh!


So when I run TeXworks for compiling I get a message saying that
ConTeXt is not well installed.


I am stuck!


Should I use ConTeXt standalone in the mean time?

  
  you could try standalone, then unzip the regular context archive
  over it, and put the bins from the installer in the bin path
  
  
  or just disable the virus scanner when installing
  
  
  (the bin is generated on windows so that implies that the mingw
  cross compiler on linux is adding a virus or that the native
  compiler does so)
  
  
  (maybe we should also add a native variant as alternative)
  
  
  Hans
  

I changef my antivirus and now I could install lmtx.
Thanks,
Alain

  


___
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] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote:
> Dear all,
> 
> I have a simple btx definition 'mylist' for which I have written a simple
> publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have
> 
> ⋮
> \definebtx
>   [mylist]
>   [default=default,specification=mylist]
> \definebtxrendering
>[mylist]
>[specification=mylist]
> \setupbtxlist
>   [mylist]
>   [numberconversion=myconv]
> ⋮
> 
> I have define the required setups for every category entry as well. I have
> verified that this btxrendering works. I have also verified that my
> conversion set 'myconv' is functional (I am using it for page numbers and
> section headings).
> 
> However, the numbers used in the citation are not converted. That is,
> 'numberconversion=myconv' seems to have no effect. What am I doing wrong?
> 
> Please advise.
> 
> Thanks,
> kauśika

Dear all,

After looking through publ-imp-cite.mkvi I was able to piece together the 
following setup for my cite command

\definecounter
  [mycitecntr]
  [counter=mycitecntr]

\startsetups btx:mylist:cite:num
  \goto{\getnumber[mycitecntr]}[\s!internal(\currentbtxinternal)]
  \incrementnumber[mycitecntr]
\stopsetups

along with

\setupbtxlist
  [mylist]
  [counter=mycitecounter]

With this the citations numbers are converted properly, they do not start at 1 
but instead are offset from 1 by the total number of citations. Moreover, the 
list placed by \placelistofpublications still uses the regular numbers (i.e 
conversion does not occur).

Clearly I am doing something wrong. I am very grateful for any guidance.

Thanks,
kauśika


___
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] Unable to install lmtx

2021-09-16 Thread Alain Delmotte via ntg-context

  
  
Hi!

Le 16/09/2021 à 09:54, Hans Hagen via
  ntg-context a écrit :

On
  9/15/2021 10:04 PM, Alain Delmotte via ntg-context wrote:
  
  Hi!


I can't anymore install ConTeXt lmtx and wanted to use PPCHTeX
and I always got an error message.


So I wanted to run mtxrun --generate, but the access was denied.


I then wanted to run the last install.bat (I am on Windows 10)
but I always get a message from my antivirus (Panda Dome) which
says that context.exe and mtxrun.ex have  a virus and neutralise
them (that means erase them from the bin folder). I get the same
if I erase everything and install from fresh!


So when I run TeXworks for compiling I get a message saying that
ConTeXt is not well installed.


I am stuck!


Should I use ConTeXt standalone in the mean time?

  
  you could try standalone, then unzip the regular context archive
  over it, and put the bins from the installer in the bin path
  
  
  or just disable the virus scanner when installing
  
  
  (the bin is generated on windows so that implies that the mingw
  cross compiler on linux is adding a virus or that the native
  compiler does so)
  
  
  (maybe we should also add a native variant as alternative)
  
  
  Hans
  

Thanks Hans.
As I am the only one who reported this problem, it should be a
  local problem (not one coming from the cross compiler nor the
  native compiler -- unless you mean that part of the installation
  is compiled on my computer?). It could also be a false alert of
  the antivirus.
I'll test.
Alain



  
  

  


___
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] improve bad habits deduplicate redundant defined values

2021-09-16 Thread Denis Maier via ntg-context
Hi Jan Ulrich,

I have not much to contribute, but I'd be very happy to learn more about your 
setup. 

Best,
Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von juh via ntg-
> context
> Gesendet: Mittwoch, 15. September 2021 08:40
> An: mailing list for ConTeXt users 
> Cc: juh 
> Betreff: [NTG-context] improve bad habits deduplicate redundant defined
> values
> 
> Dear all,
> 
> these are quite general questions but here they come.
> 
> I defined modular styles for an organisation so that we can use different 
> layouts
> with the same look and feel but still have many options to change things in a
> special document. I have styles for colors, fonts which are used everywhere 
> but
> also styles for heads that are only used in legal context and other 
> heads-styles
> used in other contexts.  This works brilliant. I can even overwrite styles 
> for one
> document only.  I'd like to name this a cascading approach.
> 
> While doing this I learned a lot and changed the way the style files are
> organised from time to time.
> 
> Currently I start with colors and fonts. Then comes the page dimension
> definitions, makeups, headers and footers, headlines, the toc styles, lists 
> and
> tables.
> 
> Does anyone has a similar approach with a strong opinion how to organise the
> cascade?
> 
> While working on this I often found that I defined something twice, because I
> forgot to delete a setup-command in a newly structured file.
> 
> Is there a way to test this? Can I grep for a warning in the log files to 
> find these
> duplicates?
> 
> Mit freundlichen Grüßen
> Jan Ulrich Hasecke
> 
> 
> --
> Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: 
> .
> http://www.sudelbuch.de Privater Blog:  http://www.hasecke.eu
> Netzliteratur-Projekt:  http://www.generationenprojekt.de
> 

___
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] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote:
> Dear all,
> 
> I have a simple btx definition 'mylist' for which I have written a simple
> publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have
> 
> ⋮
> \definebtx
>   [mylist]
>   [default=default,specification=mylist]
> \definebtxrendering
>[mylist]
>[specification=mylist]
> \setupbtxlist
>   [mylist]
>   [numberconversion=myconv]
> ⋮
> 
> I have define the required setups for every category entry as well. I have
> verified that this btxrendering works. I have also verified that my
> conversion set 'myconv' is functional (I am using it for page numbers and
> section headings).
> 
> However, the numbers used in the citation are not converted. That is,
> 'numberconversion=myconv' seems to have no effect. What am I doing wrong?
> 
> Please advise.
> 
> Thanks,
> kauśika

Dear all,

I have also tried this with the available 'words' conversion set. Even in that 
case, the conversion is not performed.

Please help. I would gladly share more information if required. I am using the 
latest LMTX.

Thank you,
kauśika



___
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] Unable to install lmtx

2021-09-16 Thread Hans Hagen via ntg-context

On 9/15/2021 10:04 PM, Alain Delmotte via ntg-context wrote:

Hi!

I can't anymore install ConTeXt lmtx and wanted to use PPCHTeX and I 
always got an error message.


So I wanted to run mtxrun --generate, but the access was denied.

I then wanted to run the last install.bat (I am on Windows 10) but I 
always get a message from my antivirus (Panda Dome) which says that 
context.exe and mtxrun.ex have  a virus and neutralise them (that means 
erase them from the bin folder). I get the same if I erase everything 
and install from fresh!


So when I run TeXworks for compiling I get a message saying that ConTeXt 
is not well installed.


I am stuck!

Should I use ConTeXt standalone in the mean time?
you could try standalone, then unzip the regular context archive over 
it, and put the bins from the installer in the bin path


or just disable the virus scanner when installing

(the bin is generated on windows so that implies that the mingw cross 
compiler on linux is adding a virus or that the native compiler does so)


(maybe we should also add a native variant as alternative)

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
___