Re: [NTG-context] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Hans Hagen

On 9/2/2019 11:18 PM, Julian G wrote:


If it's possible to create a fully fledged ConTeXt extension for vscode with 
these files, I would try to create it. I'm not that experienced with 
javascript, but I think I should be able to get some stuff done. You could also 
utlize some code from the existing LaTeX workshop extension ( 
https://github.com/James-Yu/LaTeX-Workshop ), since it features a pdf preview 
with working synctex.

that looks horribly complex and over the top (hard to maintain too)

i prefer just calling the tools (mtxrun etc) as they do most of the work 
already (running, checking, helpinfo) but what is currently lacking from 
vscode is filetype bound runners (last time i checked) ... i just wait 
till that support shows up (i might have missed something recent)


the main reason for me to look into vscode is that it is 'the fashion' 
and works ok and is able to support the kind of lexing (syntax 
highlighting) that i need (which in turn also determines how my files 
look and)


Hans

(who actually uses very little features of editors as he can't remember 
all these features anyway so i stick to mastering those that help me most)


-
  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] ntg-context Digest, Vol 183, Issue 4

2019-09-02 Thread Hans Hagen

On 9/2/2019 8:48 PM, Jeong Dal wrote:

Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",


in that case, just entering the path to the binary is also an option

> "~/ConTeXtLMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
context --autopdf '${file}'",



"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

Thank you.
Best regards,

Dalyoung




--

-
  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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Julian G
On Monday, 2 September 2019 20:47, Hans Hagen  wrote:

> On 9/2/2019 7:35 PM, Jeong Dal wrote:
>
> > Dear Hans,
> >
> > > > But I cannot see any syntax coloring and don’t know how to compile a
> > > > TeX file.
> > > > Would you please help me more?
> > > > I think you also need to choose the context color scheme
> >
> > Yes, syntax coloring works after choosing the context color scheme.
> > I find a following task file to compile a file from vscode, but it
> > doesn’t work.
> > Here is the error message:
> > /bin/bash: context: command not found
> > The terminal process terminated with exit code: 127
> > %
> > {
> > // See https://go.microsoft.com/fwlink/?LinkId=
> > http://go.microsoft.com/fwlink/?LinkId=733558
> > // for the documentation about the tasks.json format
> > "version": "2.0.0",
> > "tasks": [
> > {
> > "label": "ConTeXt build",
> > "type": "shell",
> > // Keep in mind that the file path here has to be changed
> > "command": "context myfile.tex",
> > "group": {
> > "kind": "build",
> > "isDefault": true
> > // Since we set this task to the default build task, you can
> > // run it with a keyboard shortcut (Ctrl+Shift+B by default)
> > }
> > }
> > ]
> > }
> > %%%
> > i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.
>
> you probably need to set the path before you start the editor
>
> 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

Hello,

I tried searching for that file but didn't find it, there's also no "vscode" 
script listed when running "mtxrun --script"

I installed using texlive on windows, is the script only shipped on the 
standalone installation?


If it's possible to create a fully fledged ConTeXt extension for vscode with 
these files, I would try to create it. I'm not that experienced with 
javascript, but I think I should be able to get some stuff done. You could also 
utlize some code from the existing LaTeX workshop extension ( 
https://github.com/James-Yu/LaTeX-Workshop ), since it features a pdf preview 
with working synctex.

Best regards,
Julian
___
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 183, Issue 4

2019-09-02 Thread Jeong Dal
Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",
"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

Thank you.
Best regards,

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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Hans Hagen

On 9/2/2019 7:35 PM, Jeong Dal wrote:

Dear Hans,

But I cannot see any syntax coloring and don’t know how to compile a 
TeX file.

Would you please help me more?

I think you also need to choose the context color scheme



Yes, syntax coloring works after choosing the context color scheme.

I find a following task file to compile a file from vscode, but it 
doesn’t work.


Here is the error message:

/bin/bash: context: command not found
The terminal process terminated with exit code: 127

%
{
	// See https://go.microsoft.com/fwlink/?LinkId= 
733558

// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ConTeXt build",
"type": "shell",
// Keep in mind that the file path here has to be changed
"command": "context myfile.tex",
"group": {
"kind": "build",
"isDefault": true
// Since we set this task to the default build task, you can
// run it with a keyboard shortcut (Ctrl+Shift+B by default)
}
}
]
}

%%%
i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.

you probably need to set the path before you start the editor

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] Border in xtable

2019-09-02 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 01.09.2019 um 12:34:

Hello,
In the table below, why the border of the first line is not drawn ?
There is a border around the first row but you can't see it because the 
color of the frame is white.


The reason for this is the "foregroundstyle=white" setting you have for 
the first row which should be "foregroundcolor=white". You mixed the 
keys for the style and color setting for the text in the cell.


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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Jeong Dal
Dear Hans,

>> But I cannot see any syntax coloring and don’t know how to compile a TeX 
>> file.
>> Would you please help me more?
> I think you also need to choose the context color scheme
> 

Yes, syntax coloring works after choosing the context color scheme.

I find a following task file to compile a file from vscode, but it doesn’t work.

Here is the error message:

/bin/bash: context: command not found
The terminal process terminated with exit code: 127

%
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ConTeXt build",
"type": "shell",
// Keep in mind that the file path here has to be 
changed
"command": "context myfile.tex", 
"group": {
"kind": "build",
"isDefault": true
// Since we set this task to the default build 
task, you can 
// run it with a keyboard shortcut 
(Ctrl+Shift+B by default)
}
}
]
}
%%%
i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.

Thank you.
Best regards,

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] Cross references to column numbers

2019-09-02 Thread Oliver von Criegern

Dear list members,

is there any way to get a cross reference to a column in a two column 
layout?


At least, I would need to get some value that tells me whether the 
target is in the left or in the right column. How to achieve this?


This is the more simplified version of the my previous question cited below.

Best regards,
Oliver.


Am 12.08.19 um 15:26 schrieb Oliver von Criegern:

Dear list members,

how can I create cross references to column numbers?

I have a two column layout with column numbers in the header instead 
of page numbers (actually, these column numbers are calculated from 
the page numbers). Now I want to create a cross reference that returns 
the column number of the target. How can I achieve this?


Of course, I can get the page number with \pagereference (for the 
target) and \at (for the reference), but for calculating the column 
number (according to what I did in the header), I would also need to 
know whether the target is in the left or in the right column, and I 
can't see how I can get this information.


For an example, see the question posted by me at stackexchange:
https://tex.stackexchange.com/questions/502944/context-cross-references-to-column-numbers 



Besides, I am wondering, regarding the generally very regular and 
consistent naming of commands in ConTeXt, why this is not so in the 
case of references. For example, to refer to a page, I need 
\pagereference (for the target) and \at (for the reference); to refer 
to a line, I need \someline (for the target) and \inline (for the 
reference), but only if I want it to automatically add the word "line" 
or something else before the number, otherwise I have to use 
\inlinerange. It took me some time to find that out. Wouldn't it be 
easier to have just one command for the target and another one for the 
reference, and everything else, as counters and headers to be 
returned, text to be added etc. to be configured by options?


Best regards,
Oliver.



___
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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Hans Hagen

On 9/2/2019 3:24 PM, Jeong Dal wrote:

Dear Hans,

Thank you for a quick reply.



tex/texmf-context/context/data/vscode



I copied all the file …/vscode/extensions/context to ~/.vscode/extexsions/

When I open vacode, there is “ConTeXt 1.0.0, ConTeXt Syntax Highlignting…” in 
the extensions tab.
It is installed and enabled.
But I cannot see any syntax coloring and don’t know how to compile a TeX file.

Would you please help me more?

I think you also need to choose the context color scheme

-
  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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Jeong Dal
Dear Hans,

Thank you for a quick reply.

> 
> tex/texmf-context/context/data/vscode
> 

I copied all the file …/vscode/extensions/context to ~/.vscode/extexsions/

When I open vacode, there is “ConTeXt 1.0.0, ConTeXt Syntax Highlignting…” in 
the extensions tab.
It is installed and enabled.
But I cannot see any syntax coloring and don’t know how to compile a TeX file.

Would you please help me more?

Thank you again.

Best regards,

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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Hans Hagen

On 9/2/2019 7:33 AM, Jeong Dal wrote:

Dear Hans,

2019. 8. 19. 오후 4:21, ntg-context-requ...@ntg.nl 
 작성:


there is an vscode-context.cmd file



Where can I find a vscode-context.cmd file?
I couldn’t locate it using google search.


tex/texmf-context/context/data/vscode


this could also work:


mtxrun --script vscode --start




Thank you.

Best regards,

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
___




--

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