Re: [NTG-context] Textadept with ConTeXt

2018-08-20 Thread Lars
Hi there, thanks for your interest in Textadept. It's a great editor and 
I am sure that you won't regret testing it and using it in the future. 
Just have some patience.


I suggest you take a look at my User talk at the wiki, there I explain a 
lot about TA and how to use it with ConTeXt. It's more detailed than the 
Textadept site on the wiki.


http://wiki.contextgarden.net/User_talk:Koenich

I have to say though that I wrote it with Windows in mind. But TA's 
config files are all written in Lua so the OS should not be a problem.



Am 21/08/2018 um 00:55 schrieb Fabrice Couvreur:

Hello,
In order to use another editor than Emacs and after testing Scite, I 
installed Textadept and modified the init.lua file as follows :


textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script 
context --autopdf --purge --synctex = -1 "% f"'


First, only edit the init.lua in your USER folder, on Win it's 
C:\Users\NAME\.textadept\init.lua. Don't edit the init.lua within TA's 
main folder. In fact, there is no reason to enter TA's main folder after 
extraction unless you want to read other config files like the ConTeXt 
lexer (see below).


Second, I am using Win10x64 with SumatraPDF as viewer, it's fast and you 
don't need to close documents to recompile. The biggest disadvantage is, 
that you can't use scripts with SumatraPDF (for forms etc.).

Furthermore the following line I wrote into my init.lua:

textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script 
context --autopdf --purge "%f"'


When I compile the PDF like this, Sumatra opens up as expected. On 
recompile it reloads the PDF. Maybe the spaces within your command are 
the reason:

synctex = -1          -> synctex=-1

Third, is your ConTeXt folder within Search Path (I better ask)?

*Fourth, did you bind extensions to the context.lua lexer?* In the 
init.lua it should look like this:


textadept.file_types.extensions.tex = 'context'
% If you're using LaTeX too, you should choose another extension.
textadept.file_types.extensions.mkii = 'context'
textadept.file_types.extensions.mkiv = 'context'

*Fifth, is your context lexer loaded when you compile the file?* Check 
the status bar in the lower right corner. If it doesn't say "context" 
but "latex" or "text" or anything like that, then choose the context 
lexer via "Buffer" -> "Select lexer...".


Sixth, make sure that you really have compilable content. Try with code 
which is as minimal as possible. A simple


\starttext Hello World \stoptext

should do.



The compilation works but no automatic output in pdf at the end of the 
process (as with Scite !)


What to do with files in /home /aragorn/context/tex 
/texmf-context/context/data /textadept/ context/ ?




You put them to your user folder, where your personal init.lua is 
stored. On Win it's

C:\Users\NAME\.textadept\
Copy everything from context/ folder to there. Those files come with a 
init.lua so save yours if you made changes there.
Also, and this is important: the TA config files that come with ConTeXt 
are for TA v9 only (at least until one week ago). They won't work with 
TA v10 until you update them. And even with TA v9 they change TA's 
behaviour significantly as they are for SciTE originally. I wrote 
something about them in my talk as well. I suggest you check it out.


I hope that I could help you a little there.

Cheers, L.



Thank you.
Fabrice



___
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] Latest beta

2018-08-20 Thread Fabrice Couvreur
Hello,
Compile error after context standalone update
Thanks
Fabrice

Running `ConTeXt' on `Test' with ``context --once --texutil --purgeall
--nonstop Test.tex''
resolvers   | trees | analyzing 'home:texmf'
mtx-context | run 1: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--interaction="nonstopmode" --jobname="Test"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./Test.tex"
--c:input="./Test.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode
--c:once --c:purgeall --c:texutil "cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers   > trees > analyzing 'home:texmf'
open source > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
job > passes > version mismatch: 1.3 <> 1.31
system  >
system  > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20
int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system  > files > jobname 'Test', input './Test', result 'Test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/aragorn/Test.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
structure   > sectioning > title @ level 2 : 0.0 -> Sommaire
backend > xmp > using file
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
structure   > sectioning > chapter @ level 2 : 0.1 -> Espaces
probabilisés
metapost> initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost> loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost> initializing number mode 'scaled'

lua error   > lua error on line 10 in file /home/aragorn/Test.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
call a nil value (global 'getid')
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
upvalue 'getexpansion'
...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
local 'boxtomp'
...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
(...tail calls...)

 1 %macro=mkiv
 2
 3 \setuppagenumbering[location=footer]
 4
 5 \startusableMPgraphic{NumberHead}
 6  draw outlinetext.f
 7  ("\bf\namedheadnumber{chapter}")
 8  (withcolor "lightgray")
 9  ysized 50pt ;
10 >>  \stopusableMPgraphic
11
12 \unexpanded\def\processMPheadnumber#1%
13   {\useMPgraphic{NumberHead}}
14
15 \setuphead
16[chapter]
17[command=\HeadTitle,
18 headstyle=\ss,
19 numbercommand=\processMPheadnumber,
20]


structure   > sectioning > subsection @ level 4 : 0.1.0.1 -> Expérience
aléatoire et univers
structure   > sectioning > subsection @ level 4 : 0.1.0.2 -> Événements

lua error   > lua error on line 10 in file /home/aragorn/Test.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
call a nil value (global 'getid')
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
upvalue 'getexpansion'
...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
local 'boxtomp'
...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
(...tail calls...)

 1 %macro=mkiv
 2
 3 \setuppagenumbering[location=footer]
 4
 5 \startusableMPgraphic{NumberHead}
 6  draw outlinetext.f
 7  ("\bf\namedheadnumber{chapter}")
 8  (withcolor "lightgray")
 9  ysized 50pt ;
10 >>  \stopusableMPgraphic
11
12 \unexpanded\def\processMPheadnumber#1%
13   {\useMPgraphic{NumberHead}}
14
15 \setuphead
16

[NTG-context] Textadept with ConTeXt

2018-08-20 Thread Fabrice Couvreur
Hello,
In order to use another editor than Emacs and after testing Scite, I
installed Textadept and modified the init.lua file as follows :

textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script
context --autopdf --purge --synctex = -1 "% f"'

The compilation works but no automatic output in pdf at the end of the
process (as with Scite !)

What to do with files in /home /aragorn/context/tex
/texmf-context/context/data /textadept/ context/ ?

Thank you.
Fabrice
___
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] Guitar chords

2018-08-20 Thread Lizardo Reyna
Thanks for the example, it works!

On 19/08/18 14:29, Wolfgang Schuster wrote:
> \defineruby[song][style=\ss\it,align=flushleft]
> 
> \setupinterlinespace[line=5ex]
> 
> \starttext
> 
> \ruby[song]{Praise}{G} God, \ruby[song]{from}{D} \ruby[song]{Whom}{Em}
> \ruby[song]{all}{Bm} \ruby[song]{bless}{Em}\ruby[song]{ings}{D}
> \ruby[song]{flow}{G};
> 
> \start
> 
> \setupruby[style=\ss\it,align=flushleft]
> 
> \ruby{Praise}{G} Him, all \ruby{crea}{D}\ruby{tures}{Em} \ruby{here}{C}
> \ruby{be}{G}\ruby{low}{D};
> 
> \stop
> 
> \stoptext
> 
> 
> Wolfgang
> 
> 
> Lizardo M. Reyna Bowen schrieb am 19.08.18 um 19:34:
>> Hi,
>> There is a way to put the guitar chords above of a syllable? I have
>> tried with \high{G} command, but it is not the correct form.
>>
>> The result must be similar to this.
>>
>> https://tex.stackexchange.com/questions/104222/songs-package-chord-size
>>
>>
>> Thanks for you help
>>
> 

-- 
Dr. Lizardo M. Reyna Bowen
Profesor
Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí
[Dirección]  Lodana, Santa Ana, Manabí, Ecuador
[Móvil]  +593  982924637
PGP Key: 0xa35a15b90ee64e8d

___
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] Change PDF viewer with Scite

2018-08-20 Thread Hans Hagen

On 8/20/2018 11:50 AM, Fabrice Couvreur wrote:

Hi Hans,
I made the following change but unfortunately without success :

if PLAT_GTK
     name.context.console=rxvt
     name.context.gsview=gv
     name.context.acrobat=acroread
     name.flag.pdfopen=--autopdf
name.flag.pdfopen=--autopdf=evince

because it's not defined in l-pdfview.lua

what happens if you say

name.flag.pdfopen=--autopdf=auto


-
  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] Change PDF viewer with Scite

2018-08-20 Thread Fabrice Couvreur
Hi Hans,
I made the following change but unfortunately without success :

if PLAT_GTK
name.context.console=rxvt
name.context.gsview=gv
name.context.acrobat=acroread
name.flag.pdfopen=--autopdf
name.flag.pdfopen=--autopdf=evince

Fabrice


Le lun. 20 août 2018 à 08:26, Hans Hagen  a écrit :

> On 8/20/2018 12:11 AM, Fabrice Couvreur wrote:
> > Hello,
> > The default viewer is GhostView. I would like to replace it with Evince.
> > In user mode, I edited the /usr/share/scite/scite-context.properties
> > file to replace the command.2 line. $ (File.patterns.context) = $
> > (name.context.gsview) $ (FileDir ) / $ (FileName) .pdf by command.2. $
> > (File.patterns.context) = $ (name.context.evince) $ (FileDir) / $
> > (FileName) .pdf
> search for "name.flag.pdfopen"
>
> -
>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] Change PDF viewer with Scite

2018-08-20 Thread Hans Hagen

On 8/20/2018 12:11 AM, Fabrice Couvreur wrote:

Hello,
The default viewer is GhostView. I would like to replace it with Evince.
In user mode, I edited the /usr/share/scite/scite-context.properties 
file to replace the command.2 line. $ (File.patterns.context) = $ 
(name.context.gsview) $ (FileDir ) / $ (FileName) .pdf by command.2. $ 
(File.patterns.context) = $ (name.context.evince) $ (FileDir) / $ 
(FileName) .pdf

search for "name.flag.pdfopen"

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