Re: [NTG-context] About testing rest of space on a page
Hello Taco and Wolfgang! Thank you both for the reply and input. — I am going to play :-) Kind regards Willi > On 30 Jul 2020, at 21:25, Wolfgang Schuster > wrote: > > Taco Hoekwater schrieb am 30.07.2020 um 09:05: >>> On 29 Jul 2020, at 23:08, Willi Egger wrote: >>> >>> Good evening! >>> >>> I have a bookproject in which sections are ended with a small graphical >>> element. Now as usual this graphic might be moved to a new page which is of >>> course unwanted. >>> >>> At this moment I have: >>> >>> \startsetups endsection >>> \vfil >>> \placefigure[middle,none][]{}{\externalfigure[ornament2][height=2\lineheight]} >>> \stopsection >>> \stopsetups >>> >>> \def\stopmysection{\setups{endsection}} >>> >>> I use then instead of \stopsection the \stopmysection. This works except >>> that the ornament is in some cases placed on the next page. — My question >>> is whether it is possible to do a \testpage and evaluate the result hereof >>> and then using either the placement of the ornament and stop the section or >>> just end the section without ornament? >> You can put your setups *inside* the test: >> >> \definepagechecker >>[willi] >>[method=1,before=,after=,inbetween={\setups{endsection}}] >> >> \def\stopmysection >>{\checkpage[willi][lines=4]} >> >> The before=/after= pair is used when a page break is forced by the test, >> inbetween= is used if there is no forced break. >> >> (\testpage is a wrapper around \checkpage: >> https://source.contextgarden.net/page-brk.mkiv?search=testpage#l564 ) > > No need for a new \stop command. > > \setuphead > [section] > [aftersection={\checkpage[willi][lines=4]}] > > 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] ntg-context Digest, Vol 193, Issue 65
Help request will be handled off-list. Best wishes, Taco > On 30 Jul 2020, at 22:01, Jan Hansen wrote: > > Help ___ 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] ntg-context Digest, Vol 193, Issue 65
Help > On 31 Jul 2020, at 5:26 am, ntg-context-requ...@ntg.nl wrote: > > Send ntg-context mailing list submissions to >ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit >https://mailman.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to >ntg-context-requ...@ntg.nl > > You can reach the person managing the list at >ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Re: Installing VSCode extension? (Henning Hraban Ramm) > 2. Re: Installing VSCode extension? (Henning Hraban Ramm) > 3. Unknown script 'fonts.lua' or 'mtx-fonts.lua' > (Marcus Vinicius Mesquita) > 4. Re: Unknown script 'fonts.lua' or 'mtx-fonts.lua' (Hans Hagen) > 5. Re: Unknown script 'fonts.lua' or 'mtx-fonts.lua' > (Marcus Vinicius Mesquita) > 6. Re: Unknown script 'fonts.lua' or 'mtx-fonts.lua' (Aditya Mahajan) > 7. Re: About testing rest of space on a page (Wolfgang Schuster) > > > -- > > Message: 1 > Date: Thu, 30 Jul 2020 12:25:34 +0200 > From: Henning Hraban Ramm > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Installing VSCode extension? > Message-ID: <4ece59fd-6c48-4b38-bea3-68ee3d044...@fiee.net> > Content-Type: text/plain;charset=utf-8 > > >> Am 30.07.2020 um 07:52 schrieb Jeong Dal : >> >> Dear Alasdair McAndrew, >> >> I am using vscode in iMac, so my setting may not work for you. >> >> >> >> 1. First, find files for vscode in your TeX folder. >> >> In my case, >> >> /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.* >> >> 2. In a homefolder, there is a hidden folder “.vacode”. >> >> Copy context/*.* to ./vscode/extensions/context/*.* >> >> 3. Open vscode and enable context-extension. >> >> Since it was long time ago, my memory may not be correct. >> However, I hope that it may give you an idea. > > It might make sense to not copy the files but symlink the folder (then it > automatically receives updates). > i.e. > ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context > ~/.vscode/extensions/ > > Don’t know how symlinking in Windows works, though. > > HR > > -- > > Message: 2 > Date: Thu, 30 Jul 2020 12:33:29 +0200 > From: Henning Hraban Ramm > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Installing VSCode extension? > Message-ID: > Content-Type: text/plain;charset=utf-8 > > > >> Am 30.07.2020 um 03:57 schrieb Alasdair McAndrew : >> >> Thanks again, I've fiddled with SciTE, but when I attempted to compile a >> context file, I was told that "texexec" wasn't in my path, so somehow, >> somewhere, I must have picked up an old version of the compile command. >> Also, there doesn't seem to be an easy way of getting SciTE to use a >> monospaced font. > > Did you read > $TEXROOT/texmf-context/context/data/scite/context/documents/scite-context-readme.pdf > ? > > I don’t know if that answers your questions and if it’s still current. > > HR > > -- > > Message: 3 > Date: Thu, 30 Jul 2020 12:03:48 -0300 > From: Marcus Vinicius Mesquita > To: mailing list for ConTeXt users > Subject: [NTG-context] Unknown script 'fonts.lua' or 'mtx-fonts.lua' > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > Dear List, > > After updating ConTeXt to the last version, the command: > > mtxrun --script fonts > > replies: > mtxrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' > > mtxrun --version gives: > > mtxrun | ConTeXt TDS Runner Tool 1.32 > > Greetings > > Marcus Vinicius > -- > Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo > nem seus membros, por ser descanso da alma, primavera do coração, distração > do aflito, entretenimento do solitário, e viático do viajante. > > Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) > -- next part -- > An HTML attachment was scrubbed... > URL: > <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200730/e209c020/attachment-0001.htm> > > -- > > Message: 4 > Date: Thu, 30 Jul 2020 17:12:44 +0200 > From: Hans Hagen > To: mailing list for ConT
Re: [NTG-context] About testing rest of space on a page
Taco Hoekwater schrieb am 30.07.2020 um 09:05: On 29 Jul 2020, at 23:08, Willi Egger wrote: Good evening! I have a bookproject in which sections are ended with a small graphical element. Now as usual this graphic might be moved to a new page which is of course unwanted. At this moment I have: \startsetups endsection \vfil \placefigure[middle,none][]{}{\externalfigure[ornament2][height=2\lineheight]} \stopsection \stopsetups \def\stopmysection{\setups{endsection}} I use then instead of \stopsection the \stopmysection. This works except that the ornament is in some cases placed on the next page. — My question is whether it is possible to do a \testpage and evaluate the result hereof and then using either the placement of the ornament and stop the section or just end the section without ornament? You can put your setups *inside* the test: \definepagechecker [willi] [method=1,before=,after=,inbetween={\setups{endsection}}] \def\stopmysection {\checkpage[willi][lines=4]} The before=/after= pair is used when a page break is forced by the test, inbetween= is used if there is no forced break. (\testpage is a wrapper around \checkpage: https://source.contextgarden.net/page-brk.mkiv?search=testpage#l564 ) No need for a new \stop command. \setuphead [section] [aftersection={\checkpage[willi][lines=4]}] 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] Unknown script 'fonts.lua' or 'mtx-fonts.lua'
On Thu, 30 Jul 2020, Marcus Vinicius Mesquita wrote: Hi, Hans I'm on a linux64 machine, and there is indeed a mtx-fonts.lua file: ~/context/tex/texmf-context/scripts/context/lua/mtx-fonts.lua Am I missing something? Refresh the database: luatools --generate Aditya ___ 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] Unknown script 'fonts.lua' or 'mtx-fonts.lua'
Hi, Hans I'm on a linux64 machine, and there is indeed a mtx-fonts.lua file: ~/context/tex/texmf-context/scripts/context/lua/mtx-fonts.lua Am I missing something? Marcus Vinicius -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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] Unknown script 'fonts.lua' or 'mtx-fonts.lua'
On 7/30/2020 5:03 PM, Marcus Vinicius Mesquita wrote: Dear List, After updating ConTeXt to the last version, the command: mtxrun --script fonts replies: mtxrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' mtxrun --version gives: mtxrun | ConTeXt TDS Runner Tool 1.32 Greetings Marcus Vinicius Directory of t:\texmf\scripts\context\lua 07/30/2020 04:54 PM21,051 mtx-fonts.lua should be there 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 ___
[NTG-context] Unknown script 'fonts.lua' or 'mtx-fonts.lua'
Dear List, After updating ConTeXt to the last version, the command: mtxrun --script fonts replies: mtxrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' mtxrun --version gives: mtxrun | ConTeXt TDS Runner Tool 1.32 Greetings Marcus Vinicius -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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] Installing VSCode extension?
> Am 30.07.2020 um 03:57 schrieb Alasdair McAndrew : > > Thanks again, I've fiddled with SciTE, but when I attempted to compile a > context file, I was told that "texexec" wasn't in my path, so somehow, > somewhere, I must have picked up an old version of the compile command. > Also, there doesn't seem to be an easy way of getting SciTE to use a > monospaced font. Did you read $TEXROOT/texmf-context/context/data/scite/context/documents/scite-context-readme.pdf ? I don’t know if that answers your questions and if it’s still current. HR ___ 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] Installing VSCode extension?
> Am 30.07.2020 um 07:52 schrieb Jeong Dal : > > Dear Alasdair McAndrew, > > I am using vscode in iMac, so my setting may not work for you. > > > > 1. First, find files for vscode in your TeX folder. > > In my case, > > /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.* > > 2. In a homefolder, there is a hidden folder “.vacode”. > > Copy context/*.* to ./vscode/extensions/context/*.* > > 3. Open vscode and enable context-extension. > > Since it was long time ago, my memory may not be correct. > However, I hope that it may give you an idea. It might make sense to not copy the files but symlink the folder (then it automatically receives updates). i.e. ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context ~/.vscode/extensions/ Don’t know how symlinking in Windows works, though. HR ___ 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] Installing VSCode extension?
Dear Alasdair McAndrew, I am using vscode in iMac, so my setting may not work for you. 1. First, find files for vscode in your TeX folder. In my case, /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.* 2. In a homefolder, there is a hidden folder “.vacode”. Copy context/*.* to ./vscode/extensions/context/*.* 3. Open vscode and enable context-extension. Since it was long time ago, my memory may not be correct. However, I hope that it may give you an idea. Best wishes, Dalyoung___ 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] About testing rest of space on a page
> On 29 Jul 2020, at 23:08, Willi Egger wrote: > > Good evening! > > I have a bookproject in which sections are ended with a small graphical > element. Now as usual this graphic might be moved to a new page which is of > course unwanted. > > At this moment I have: > > \startsetups endsection > \vfil > > \placefigure[middle,none][]{}{\externalfigure[ornament2][height=2\lineheight]} > \stopsection > \stopsetups > > \def\stopmysection{\setups{endsection}} > > I use then instead of \stopsection the \stopmysection. This works except that > the ornament is in some cases placed on the next page. — My question is > whether it is possible to do a \testpage and evaluate the result hereof and > then using either the placement of the ornament and stop the section or just > end the section without ornament? You can put your setups *inside* the test: \definepagechecker [willi] [method=1,before=,after=,inbetween={\setups{endsection}}] \def\stopmysection {\checkpage[willi][lines=4]} The before=/after= pair is used when a page break is forced by the test, inbetween= is used if there is no forced break. (\testpage is a wrapper around \checkpage: https://source.contextgarden.net/page-brk.mkiv?search=testpage#l564 ) Best wishes, Taco ___ 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] Installing VSCode extension?
Hi Alasdair, i fiddled with SciTE some years ago and ended with a file myproperties.properties in the programdata\scite directory. In this file i set the fonts and my context command as follows: # Codepages # UTF-8 code.page=65001 output.code.page=65001 # Byte # code.page=0 position.left=25 position.top=25 position.width=1870 position.height=1000 font.base=font:Consolas,size:15 font.monospace=$(font.base) font.errorfont=$(font.base) font.comment=$(font.base) font.text=$(font.base) font.text.comment=$(font.base) font.embedded.base=$(font.base) font.embedded.comment=$(font.base) font.vbs=$(font.base) command.1.$(file.patterns.context)=cmd /c context $(FileNameExt) && start sumatraPDF $(FileName).pdf -reuse-instance The last line of SciTEGlobal.properties is import myproperties This works ok for me. Greetings Lutz Am 30. Juli 2020 03:57:26 MESZ schrieb Alasdair McAndrew : >Thanks again, I've fiddled with SciTE, but when I attempted to compile >a >context file, I was told that "texexec" wasn't in my path, so somehow, >somewhere, I must have picked up an old version of the compile command. >Also, there doesn't seem to be an easy way of getting SciTE to use a >monospaced font. I've fiddled with the customization files to no avail >whatsoever. I think I have Atom already, but surely there should be >some >easy way of getting other text editors working? > >On Thu, Jul 30, 2020 at 1:13 AM Henning Hraban Ramm >wrote: > >> >> > Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew >: >> > >> > Thank you very much, but in fact that script file >"vscode-context.cmd" >> really just contains the same command for installing extensions as I >quoted >> above - and so produces the same errors. Maybe I'll go back to >trying >> SciTe - I gave it a bit of a go, but wasn't successful. Of all the >> information on the context-wiki, and the Pragma webpage - where would >I go >> to find the most up-to-date information about configuring an editor >to work >> with ConTeXt in Windows? >> >> You could try Atom and install the ConTeXt module from >> github.com/massifrg/language-context. >> Original language-context is outdated, but upstream didn’t react to >mails >> from Massi and me. >> This version also isn’t perfect, but I’m using and occasionally >updating >> it. (I should re-base it on the current work done for the wiki.) >There’s >> also still no run command. >> >> Additionally you should install >> - language-latex (contains plain TeX commands) >> - language-lua >> - atom-ide-terminal (for running ConTeXt in place) >> - file-icons (only icon package that contains TeX icons) >> - pdf-view (not very good, but good enough for simple cases) >> >> Best, 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 >> >> >___ >> > > >-- >https://numbersandshapes.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 ___