Re: [NTG-context] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
On 1 Dec 2020, at 16:37, Henning Hraban Ramm  wrote:
> 
>> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks :
>> 
>> I have \placebookmarks[chapter] in my doc and all is fine except that I'd 
>> like to force an extra bookmark at the top of the list that jumps to the 
>> cover page. However there is no chapter title, or other built in style on 
>> the cover.
>> 
>> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no 
>> error, no bookmark.
>> 
>> Any suggestions please? There's no need to bookmark to a specific point - 
>> just going to page 1 would be enough.
> 
> Did you enable interactions? \setupinteractions[state=start]
> 
> But when I recently tried to manually set some bookmarks instead of visible 
> chapter titles, I also didn’t get any; didn’t investigate further yet.

Thanks for the suggestion, but I already had \setupinteraction[state=start] 
set. (Note 'interaction' - no 's')

I eventually found a previous thread on the mailing list archive.


From that I was able to add the following to my document setup:

  \definehead [Bookmark] [title] 
[ placehead=empty,
  before={},
  after={},
]
  \setupinteraction[state=start]
  \setupinteractionscreen[option=bookmark] 
  \placebookmarks[chapter,heading,Bookmark][chapter][force=yes]

And then in the text where I want each extra bookmark to appear I use:

  \Bookmark[title={The text of the bookmark}]
  
This works but is a bit of a kludge because it assumes that you aren't using 
'title' sections in your document already. If you are then they will all appear 
in the PDF bookmarks.

Also note that the bookmark is inserted at the chapter/title level. If you want 
a sub-bookmark then you need to add another custom heading, viz:

  \definehead [SubBookmark] [subject] 
[ placehead=empty,
  before={},
  after={},
]

and add it into the \placebookmarks list:

  \placebookmarks[chapter,heading,Bookmark,SubBookmark][chapter][force=yes]

and invoke it using:

  \SubBookmark[title={A sub-bookmark}]

In the PDF, this will be nested under the previous higher-level bookmark.

Given that this is a kludge, and that the \bookmark command doesn't seem to 
work at all, perhaps it can be resurrected into a new form, something like:

  \bookmark[n][focus]{Text}

  - n is the level 1, 2, 3 etc
  - (optional) focus overrides \setupinteraction (assuming PDF allows it)
  - text is the text to show 

and have this insert a bookmark at that point, regardless of whatever the 
heading mechanism is doing?

Regards,
--
Bruce Horrocks
Hampshire, UK

___
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] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Keith McKay

Hi Otared,

Thank you for your kind offer but Hans has modified the install script 
such that it downloads the intel binaries which work under Rosetta on my 
mac mini. I've ran context  through the Terminal app and it went like a 
dream. Just to setup TeXShop and or TeXWorks and that is me sorted.


Thanks again and Best Wishes

Keith McKay

Scotland, UK

On 01/12/2020 17:17, Otared Kavian wrote:

Hi Keith,

You may try to copy to your new machine the whole folder where you have 
installed LMTX on your old machine, and then run
context --make
there. Indeed if this works for your current LMTX folder you'll need someone to 
prepare a whole working folder of updated LMTX. As long as I have a PowerBook 
with the old chip (and running MacOS 14), I may do this for you and then put a 
zip file on Dropbox. However I may be too pushed to get a new M1 PowerBook in 
the future.

Best regards: Otared K.


On 1 Dec 2020, at 13:01, Keith McKay  wrote:

Hi,

I have recently retired my 2012 mac mini in favour of a new Apple silicon M1 mac mini on 
which I would like to install ConTeXt. I know that their are no ARM binaries yet for 
ConTeXt but Apple say that intel binaries can be run on an ARM using the Rosetta 
emmulation software. I tried to download the intel binaries using the install.sh that 
comes with the context-osx-64.zip file but of course it does not recognise the ARM chip 
and suggests contacting the mailing list. In some previous emails to the list, in which I 
was a participent, (see the post "new upload" of 26/11/2020) their was some 
discussion on how Context could be set up to work on these machines by building binaries 
using Xcode. I am afraid this is well above my skillset so I was wondering how I could 
get the Intel binaries and then set up ConTeXt running with the Rosetta emulation 
software. I should be able to do that. If this is possible, I would be very happy to do 
some testing and report back my experiences to the list.

Best Wishes

Keith McKay

Scotland, UK

___
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
___


___
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 the filename which is being typeset

2020-12-01 Thread Hans Hagen

On 12/1/2020 6:55 PM, Otared Kavian wrote:

Hi Wolfgang,

Thank you for your explanations: I am wondering whether this kind of 
information could go into the wiki, and if yes what would be an appropriate 
title for that page (of course I'll do it).

However the two commands

\inputfilesuffix
\jobfilesuffix

put inside the file « myfile.tex » do not give the suffix « tex »: shoul dthey 
give « tex » or am I misintrepreting these commands?

tex is the default suffix in engines

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] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Hi Wolfgang,

Thank you for your explanations: I am wondering whether this kind of 
information could go into the wiki, and if yes what would be an appropriate 
title for that page (of course I'll do it).

However the two commands 

\inputfilesuffix
\jobfilesuffix

put inside the file « myfile.tex » do not give the suffix « tex »: shoul dthey 
give « tex » or am I misintrepreting these commands?

Best regards: Otared



> On 1 Dec 2020, at 18:23, Wolfgang Schuster 
>  wrote:
> 
> Otared Kavian schrieb am 01.12.2020 um 18:10:
>> Thanks Hraban, this might be also useful and I'll keep it somewhere on my 
>> mind, but for the project I was asking my question \jobname is enough.
>> 
>> Best regards: Otared
>>> On 1 Dec 2020, at 17:33, Henning Hraban Ramm  wrote:
 Am 01.12.2020 um 16:20 schrieb Otared Kavian :
 
 Thanks Tomás! Indeed \jobname does the job :-)
>>> In case you need the current component file in a project environment: 
>>> \currentcomponent
> 
> In some case \inputfilename is the better choice, e.g. when you process xml 
> files with a environment file for the style and processing settings.
> 
> context --environment=myxmlstyle myfile.xml
> 
> The following example shows the output of all commands:
> 
> \starttext
> \starttabulate [|T|T|]
> \NC \type{\jobname}   \NC \jobname   \NC\NR
> \NC \type{\jobfilename}   \NC \jobfilename   \NC\NR
> \NC \type{\jobfilesuffix} \NC \jobfilesuffix \NC\NR
> \NC \type{\inputfilename} \NC \inputfilename \NC\NR
> \NC \type{\inputfilebarename} \NC \inputfilebarename \NC\NR
> \NC \type{\inputfilesuffix}   \NC \inputfilesuffix   \NC\NR
> \NC \type{\outputfilename}\NC \outputfilename\NC\NR
> \NC \type{\operatingsystem}   \NC \operatingsystem   \NC\NR
> \stoptabulate
> \stoptext
> 
> 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
> ___

___
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] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Hans Hagen

On 12/1/2020 6:17 PM, Otared Kavian wrote:

Hi Keith,

You may try to copy to your new machine the whole folder where you have 
installed LMTX on your old machine, and then run
context --make
there. Indeed if this works for your current LMTX folder you'll need someone to 
prepare a whole working folder of updated LMTX. As long as I have a PowerBook 
with the old chip (and running MacOS 14), I may do this for you and then put a 
zip file on Dropbox. However I may be too pushed to get a new M1 PowerBook in 
the future.
the trick is in the install script: we've added apple arm recognition 
there so assuming an updated install.sh one should be okay


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] Getting the filename which is being typeset

2020-12-01 Thread Wolfgang Schuster

Otared Kavian schrieb am 01.12.2020 um 18:10:

Thanks Hraban, this might be also useful and I'll keep it somewhere on my mind, 
but for the project I was asking my question \jobname is enough.

Best regards: Otared

On 1 Dec 2020, at 17:33, Henning Hraban Ramm  wrote:

Am 01.12.2020 um 16:20 schrieb Otared Kavian :

Thanks Tomás! Indeed \jobname does the job :-)

In case you need the current component file in a project environment: 
\currentcomponent


In some case \inputfilename is the better choice, e.g. when you process 
xml files with a environment file for the style and processing settings.


    context --environment=myxmlstyle myfile.xml

The following example shows the output of all commands:

\starttext
\starttabulate [|T|T|]
\NC \type{\jobname}   \NC \jobname   \NC\NR
\NC \type{\jobfilename}   \NC \jobfilename   \NC\NR
\NC \type{\jobfilesuffix} \NC \jobfilesuffix \NC\NR
\NC \type{\inputfilename} \NC \inputfilename \NC\NR
\NC \type{\inputfilebarename} \NC \inputfilebarename \NC\NR
\NC \type{\inputfilesuffix}   \NC \inputfilesuffix   \NC\NR
\NC \type{\outputfilename}    \NC \outputfilename    \NC\NR
\NC \type{\operatingsystem}   \NC \operatingsystem   \NC\NR
\stoptabulate
\stoptext

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] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Otared Kavian
Hi Keith,

You may try to copy to your new machine the whole folder where you have 
installed LMTX on your old machine, and then run 
context --make
there. Indeed if this works for your current LMTX folder you'll need someone to 
prepare a whole working folder of updated LMTX. As long as I have a PowerBook 
with the old chip (and running MacOS 14), I may do this for you and then put a 
zip file on Dropbox. However I may be too pushed to get a new M1 PowerBook in 
the future.

Best regards: Otared K.

> On 1 Dec 2020, at 13:01, Keith McKay  wrote:
> 
> Hi,
> 
> I have recently retired my 2012 mac mini in favour of a new Apple silicon M1 
> mac mini on which I would like to install ConTeXt. I know that their are no 
> ARM binaries yet for ConTeXt but Apple say that intel binaries can be run on 
> an ARM using the Rosetta emmulation software. I tried to download the intel 
> binaries using the install.sh that comes with the context-osx-64.zip file but 
> of course it does not recognise the ARM chip and suggests contacting the 
> mailing list. In some previous emails to the list, in which I was a 
> participent, (see the post "new upload" of 26/11/2020) their was some 
> discussion on how Context could be set up to work on these machines by 
> building binaries using Xcode. I am afraid this is well above my skillset so 
> I was wondering how I could get the Intel binaries and then set up ConTeXt 
> running with the Rosetta emulation software. I should be able to do that. If 
> this is possible, I would be very happy to do some testing and report back my 
> experiences to the list.
> 
> Best Wishes
> 
> Keith McKay
> 
> Scotland, UK
> 
> ___
> 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] new upload

2020-12-01 Thread Hans Hagen

Hi,

I uploaded a new version. This time some cleanup of the backend, so 
let's see where I messed up this time.


The installer has been adapted so that an apple m1 machine is 
recognized. No native arm bins, that has to wait till we have some 
hardware available.


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] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Thanks Hraban, this might be also useful and I'll keep it somewhere on my mind, 
but for the project I was asking my question \jobname is enough.

Best regards: Otared

> On 1 Dec 2020, at 17:33, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 01.12.2020 um 16:20 schrieb Otared Kavian :
>> 
>> Thanks Tomás! Indeed \jobname does the job :-)
> 
> In case you need the current component file in a project environment: 
> \currentcomponent
> 
> 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
> ___

___
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] Placing extra bookmarks?

2020-12-01 Thread Henning Hraban Ramm


> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks :
> 
> I have \placebookmarks[chapter] in my doc and all is fine except that I'd 
> like to force an extra bookmark at the top of the list that jumps to the 
> cover page. However there is no chapter title, or other built in style on the 
> cover.
> 
> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no 
> error, no bookmark.
> 
> Any suggestions please? There's no need to bookmark to a specific point - 
> just going to page 1 would be enough.

Did you enable interactions? \setupinteractions[state=start]

But when I recently tried to manually set some bookmarks instead of visible 
chapter titles, I also didn’t get any; didn’t investigate further yet.

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] Getting the filename which is being typeset

2020-12-01 Thread Henning Hraban Ramm


> Am 01.12.2020 um 16:20 schrieb Otared Kavian :
> 
> Thanks Tomás! Indeed \jobname does the job :-)

In case you need the current component file in a project environment: 
\currentcomponent

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] Install Problems with 64 bit ARM Linux

2020-12-01 Thread Christian Prim
Hi Mojca

thanks a lot! Because glibc is backward compatible one can only deliver the
2.28 binaries (they work on a 2.29-system) ... so not several versions
needed.

Christian

Am Di., 1. Dez. 2020 um 16:20 Uhr schrieb Hans Hagen :

> On 12/1/2020 4:05 PM, Mojca Miklavec wrote:
> > Dear Christian,
> >
> > I remembered that I have an old Pine64 with Armbian 10 collecting dust
> > somewhere in a drawer.
> > I powered it up and it still works :) I guess we could build the
> binaries there.
> So then we have, like with bsd, several versions? Bah, happy me that
> windows doesn't have that problem.
>
> 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
___


Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Thanks Tomás! Indeed \jobname does the job :-)

Best regards: Otared

> On 1 Dec 2020, at 15:25, Tomas Hala  wrote:
> 
> Hi Otared,
> 
> try \jobname.
> 
> Best wishes,
> 
> Tomáš 
> 
> 
> Tue, Dec 01, 2020 ve 02:45:18PM +0100 Otared Kavian napsal(a):
> # Hi everyone,
> # 
> # I have to typeset a few files which get each an input file named in a 
> certain way. For instance, a file named « myfile.tex » in which another file 
> named « myfile-buffer.tex » is used as an \input file, as in
> # 
> # % content of myfile.tex
> # %
> # \starttext
> # This is a test.
> # 
> # \input myfile-buffer.tex
> # \stoptext
> # %
> # 
> #  When typesetting « myfile.tex » I wonder whether it is possible to get the 
> name of the file without its suffix, that is to get « myfile », with a 
> command such as
> # \getNameOfCurrentFile
> # and then be able to replace the above snippet by:
> # 
> # % desired content of myfile.tex
> #  %
> # \starttext
> # This is a test.
> # 
> # \input \getNameOfCurrentFile-buffer.tex
> # \stoptext
> # %
> # 
> # Best regards and thanks for any hint: Otared K.
> # 
> ___
> # 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
> ___

___
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] Install Problems with 64 bit ARM Linux

2020-12-01 Thread Hans Hagen

On 12/1/2020 4:05 PM, Mojca Miklavec wrote:

Dear Christian,

I remembered that I have an old Pine64 with Armbian 10 collecting dust
somewhere in a drawer.
I powered it up and it still works :) I guess we could build the binaries there.
So then we have, like with bsd, several versions? Bah, happy me that 
windows doesn't have that problem.


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] Install Problems with 64 bit ARM Linux

2020-12-01 Thread Mojca Miklavec
Dear Christian,

I remembered that I have an old Pine64 with Armbian 10 collecting dust
somewhere in a drawer.
I powered it up and it still works :) I guess we could build the binaries there.

Mojca
___
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] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
I have \placebookmarks[chapter] in my doc and all is fine except that I'd like 
to force an extra bookmark at the top of the list that jumps to the cover page. 
However there is no chapter title, or other built in style on the cover.

I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no 
error, no bookmark.

Any suggestions please? There's no need to bookmark to a specific point - just 
going to page 1 would be enough.

(I have looked through the mailing list archives but can't find quite the same 
scenario.)

--
Bruce Horrocks
Hampshire, UK

___
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 the filename which is being typeset

2020-12-01 Thread Tomas Hala
Hi Otared,

try \jobname.

Best wishes,

Tomáš 


Tue, Dec 01, 2020 ve 02:45:18PM +0100 Otared Kavian napsal(a):
# Hi everyone,
# 
# I have to typeset a few files which get each an input file named in a certain 
way. For instance, a file named « myfile.tex » in which another file named « 
myfile-buffer.tex » is used as an \input file, as in
# 
# % content of myfile.tex
# %
# \starttext
# This is a test.
# 
# \input myfile-buffer.tex
# \stoptext
# %
# 
#  When typesetting « myfile.tex » I wonder whether it is possible to get the 
name of the file without its suffix, that is to get « myfile », with a command 
such as
# \getNameOfCurrentFile
# and then be able to replace the above snippet by:
# 
# % desired content of myfile.tex
#  %
# \starttext
# This is a test.
# 
# \input \getNameOfCurrentFile-buffer.tex
# \stoptext
# %
# 
# Best regards and thanks for any hint: Otared K.
# 
___
# 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
___


Re: [NTG-context] install.sh not working on Linux (Ubuntu 20.04)?

2020-12-01 Thread Floris van Manen



On 06/11/2020 18:55, Pablo Rodriguez wrote:

I reported a similar issue some days ago.

I think I have solved it (no extensive checking yet) by deleting the
three texmf*.tma files on the tex/ directory.

If you still have a copy of your older installation, you may try this
(but please make a backup of the older installation first).

Just in case it might help,


The deleting of those tma files is part of my update script already.
But at that moment starting with a fresh empty context folder seemed to 
work only.

No issues as yet.

.F
___
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 the filename which is being typeset

2020-12-01 Thread Otared Kavian
Hi everyone,

I have to typeset a few files which get each an input file named in a certain 
way. For instance, a file named « myfile.tex » in which another file named « 
myfile-buffer.tex » is used as an \input file, as in

% content of myfile.tex
%
\starttext
This is a test.

\input myfile-buffer.tex
\stoptext
%

 When typesetting « myfile.tex » I wonder whether it is possible to get the 
name of the file without its suffix, that is to get « myfile », with a command 
such as
\getNameOfCurrentFile
and then be able to replace the above snippet by:

% desired content of myfile.tex
 %
\starttext
This is a test.

\input \getNameOfCurrentFile-buffer.tex
\stoptext
%

Best regards and thanks for any hint: Otared K.
___
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] Bug in lmtx bibliography (numerals in entry?)

2020-12-01 Thread Damien Thiriet
Hello,


My bibliography files compiles fine in mkiv, but hangs in lmtx
Here is the error message:

tex error   > tex error on line 30 in file ./Nation_rev_empire.mkiv:
Use of \btxshowentryinline doesn't match its definition




 \btxflushlisttext ...tyleandcolor \c!style \c!color
\ignorespaces \publ_fast_setup \plusfour \s!list \currentbtxcategory
\removeunwantedspaces
\endgroup
 \btxflushlisttext
\ifx \currentbtxcombis \empty \else \btxrenderingparameter
\c!separator \btxflushlistcombis \fi
 \btx:list:inject:text ...al \btxinteractivetext \ifx
\currentbtxinternal \empty #1\else \goto {#1} [\s!internal
(\currentbtxinternal )]\fi \else #1
\fi

 \btx_entry_inject ...onal \c_btx_list_texts
\dostarttagged \t!listtext \s!left \currentbtxbefore
\dostoptagged \fi \btx_entry_inject_list_text
\ifconditional \c_btx_list_pages \dostarttagged
\t!listpage \empty \btx_entry_inject_pages \dostoptagged
\fi \ifconditiona...

 \currentlistentrytitle \dostarttagged
\t!listcontent \empty \btx_list_reference_inject
\btx_entry_inject
\dostoptagged

 \22>:139>:paragraph ...\relax \fi \fi \fi
\begingroup \useliststyleandcolor \c!textstyle
\c!textcolor \setstrut \begstrut
\currentlistentrytitle
\endstrut \endgroup \ifconditional
\c_lists_has_page \ifconditional
\c_lists_show_page \nobreak \currentlistfiller
\beging...

[…]

If you say, e.g., '\def\a1{...}', then you must always put '1' after
'\a',
since control sequence names are made up of letters only. The macro here
has not
been followed by the required stuff, so I'm ignoring it.

I am using a custom biblio style, but the command \btxshowentryinline is
not directly called inside.
My ConTeXt version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.11.19 11:28
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.11.19 11:28



AFAIU, it  means my entry shouldn’t have numbers, right? If so, this may
be a bug, since entry biblio files often have a number inside

Best regards,

Damien Thiriet 

___
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] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Keith McKay

Hi,

I have recently retired my 2012 mac mini in favour of a new Apple 
silicon M1 mac mini on which I would like to install ConTeXt. I know 
that their are no ARM binaries yet for ConTeXt but Apple say that intel 
binaries can be run on an ARM using the Rosetta emmulation software. I 
tried to download the intel binaries using the install.sh that comes 
with the context-osx-64.zip file but of course it does not recognise the 
ARM chip and suggests contacting the mailing list. In some previous 
emails to the list, in which I was a participent, (see the post "new 
upload" of 26/11/2020) their was some discussion on how Context could be 
set up to work on these machines by building binaries using Xcode. I am 
afraid this is well above my skillset so I was wondering how I could get 
the Intel binaries and then set up ConTeXt running with the Rosetta 
emulation software. I should be able to do that. If this is possible, I 
would be very happy to do some testing and report back my experiences to 
the list.


Best Wishes

Keith McKay

Scotland, UK

___
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] Adding syntax highlighting when typesetting from xml (asciidoc/docbook)

2020-12-01 Thread Hans Hagen

On 11/30/2020 9:08 PM, Mojca Miklavec wrote:

Hi,

A while ago Hans provided an example of typesetting a document from a
docbook source.

I'm attaching an over-simplified version of the initial module (a
somewhat more complete version exists, but it still needs lots of
work) and a minimum working example with XML.

I'm not sure how to extend the xml parser to support typesetting from
something like this:


Hello World in C and ConTeXt
#include
stdio.h

int main()
{
 printf("Hello, World!\n");
 return 0;
}
\starttext
Hello world!
\stoptext


Maybe using the vim module would be the right approach here (since the
built-in parser only has support for a limited set of languages), but
I'm not exactly sure about the implementation to achieve that goal.

I started with

\startxmlsetups xml:programlisting
 \dontleavehmode
 \startframedtext[background=color,backgroundcolor=lightgray]
 \obeylines
 \tt
 \xmlflush{#1}
 \stopframedtext
\stopxmlsetups

but something more is needed to properly handle new lines and to
properly pass the text to vim, for example.

Any hints welcome.

\startbuffer[demo]


\def\whatever#1{[whatever #1]}

\ctxlua{print("okay")}



bold



\stopbuffer

\usemodule[scite]

\startxmlsetups xml:initialize
\xmlsetsetup{#1}{doc|pre}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:pre
\blank
\xmlprettyprint{#1}{\xmlattdef{#1}{type}{txt}}
\blank
\stopxmlsetups

\starttext
\xmlprocessbuffer{main}{demo}{}
\stoptext


-
  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] Bug in lmtx bibliography (numerals in entry?)

2020-12-01 Thread Hans Hagen

On 12/1/2020 10:02 AM, Damien Thiriet wrote:

Hello,


My bibliography files compiles fine in mkiv, but hangs in lmtx
Here is the error message:

tex error   > tex error on line 30 in file ./Nation_rev_empire.mkiv:
Use of \btxshowentryinline doesn't match its definition

I forgot the \tolerant prefix in:

\permanent\tolerant\protected\def\btxshowentryinline[#1]#*[#2]%

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] Combinations not working as expected

2020-12-01 Thread Hans Hagen

On 12/1/2020 9:02 AM, Christoph Reller wrote:

Dear list,

In the latest version 2020.11.28 13:18 of ConTeXt LMTX, combinations 
don't seem to work as expected. Example:


\starttext
\startcombination[2*1]
   {first}{a}
   {second}{b}
\stopcombination
\blank[big]
\startcombination[1*2]
   {first}{a}
   {second}{b}
\stopcombination
\stoptext

The output is
image.png
The layout argument [2*1] or [1*2] does not seem to have an effect and 
the caption placement for "b" is strange.

Am I doing something wrong?

fixed in next upload


-
  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
___


[NTG-context] Combinations not working as expected

2020-12-01 Thread Christoph Reller
Dear list,

In the latest version 2020.11.28 13:18 of ConTeXt LMTX, combinations don't
seem to work as expected. Example:

\starttext
\startcombination[2*1]
  {first}{a}
  {second}{b}
\stopcombination
\blank[big]
\startcombination[1*2]
  {first}{a}
  {second}{b}
\stopcombination
\stoptext

The output is
[image: image.png]
The layout argument [2*1] or [1*2] does not seem to have an effect and the
caption placement for "b" is strange.
Am I doing something wrong?

Cheers,
Christoph
___
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
___