Re: [NTG-context] wrong handling of hash char in \useURL

2016-10-11 Thread Yi Qingliang
the root cause is the macro, I don't think any macro language can
solve it gently.
what we can do is hack, maybe not only one.

On Tue, Oct 11, 2016 at 12:12 PM, Piotr Kopszak  wrote:
> Hello list,
>
> When I try to use hash in a URL like this
>
> \useURL[protr][http://wiki.contextgarden.net/Protrusion\#MkIV]
>
> I'm getting correct address on the screen but wrong link
> (http://wiki.contextgarden.net/Protrusion/#MkIV).
>
> When I use
>
> \startasciimode
> \useURL[protr][http://wiki.contextgarden.net/Protrusion#MkIV]
> \stopasciimode
>
> I'm getting correct link but wrong url on the screen
> (http://wiki.contextgarden.net/Protrusion##MkIV)
>
> Any ideas?
>
> Best
>
> Piotr
> --
> http://okle.pl
> ___
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Parsing ConTeXt errors

2016-10-11 Thread Hans Hagen

On 10/11/2016 9:37 PM, Nicola wrote:

On 2016-10-11 18:52:32 +, Alan Braslau said:


Of course, I *never* make MetaPost errors... ;-)

However, you can search the log file for
metapost> error:


Sure. But there is no line number. Compare with a typical TeX error:


because there are no lines ... the library gets strings

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-11 Thread Jonas Baggett

Le 10. 10. 16 à 09:35, Hans Hagen a écrit :

Don't worry, no one feels offended. FYI, Pragma is not that large a 
company so we cannot allocate more resources than we do now (and did 
the last couple of decades). We just provide the manuals we write in 
the process and happily leave the rest to others.

(...)
Not all old manuals will be updates. There are already a lot in the 
distribution and another 6 on my disk waiting for an mkiv update. 
These are often covering a specific aspect. I happily leave writing 
additional manuals to others.


Good approach, I believe. It is always better to have a community that 
participate to the work instead of doing all the work.
Each year at the context meeting this topic pops op and there are many 
plans but a lack of time interferes.


Btw, Alan is writing a larger story for beginners.


Having a good tutorial for beginners will be a good advertisement for 
ConTeXt, I guess.
The interface is actually rather stable otherwise we could not use it 
ourselves. However the move to luatex made it possible to kick out 
code related to input and font encoding as well as update to new 
technologies so there have been changes. So, the trick is to point new 
users to the right examples and documentation.


The letter generator was located there in my system : 
/usr/share/texmf/doc/context/base/examplap/gui/letter.pdf. You have 
written previously that the examplap code and examples where mkii. In 
this case, if this would be located there 
/usr/share/texmf/doc/context/base/mkii/examplap/gui/letter.pdf instead, 
in a mkii folder, I would have known at first glance that it is outdated 
documentation. So a quick first improvement could be to put mkii related 
documentation in a mkii folder.


Cheers,
Jonas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Resume module with moderncv interface

2016-10-11 Thread Jonas Baggett

Le 10. 10. 16 à 22:29, Wolfgang Schuster a écrit :

Yes, the moderncv interface is gone (together with the alternative 
interfaces for the letter module) but you can see a different method 
below. If you really want a copy of the moderncv package for ConTeXt 
you should convert the LaTeX code to ConTeXt and make a separate 
module for it.


I have finally used latex with the moderncv package for my CV and I am 
using ConTeXt with the letter module for my cover letters and I am happy 
with this solution. I have made my cover letter template look a lot like 
the cover letter generated by the moderncv latex package.


I saw that you are the creator of the letter module, so I want to thank 
you for the work !


Greetings,
Jonas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-11 Thread Jonas Baggett

Le 10. 10. 16 à 09:24, Hans Hagen a écrit :
What context installation do you use? The reference is the one on the 
context garden. Each year tex lives has a snapshot of that one. So, 
first make sure you run the latest version.


I am using version 2016.05.17 19:20. I saw that context live is using 
version 2016.05.19 13:43, so I have fast the latest version.


Concerning old manuals: they often refer to mkii but with mkiv we have 
different (often better) solutions. The examplap code and examples are 
mkii and also relate to pdf trickery and as pdf evolved it became more 
clear what was bound to acrobat i.e. not picked up (ignored) by open 
source alternatives and therefore less relevant.


Ok, I didn't know that about the pdf format. Thanks for the information.

An important source are the setup-*.pdf files as these describe the 
interface which is described in the interface definition files (in xml 
format). These have recently be updated by Wolfgang and are very accurate.


Yes, that was one of the thinks I was looking for, thanks !

You mentioned that keys (functionality) that disappears should be 
somehow documented but normally no functionality disappears. What 
happened was that mkiv has some more (because it's possible) and less 
(because it was no longer needed) than mkii and has been made more 
consistent.


I was more thinking about commands or commands option becoming 
deprecated and replaced by another way of making thinks. But it is also 
true that I tried to make the moderncv interface work from the letter 
module but its interface is now gone. I didn't notice at first that the 
letter module is still under development which means its interfaces 
aren't stable. So it seems now that what I was saying doesn't really 
apply to ConTeXt's core.



The wiki has a page for examples and you’re free to update the
existing examples or add new ones.


Do you mean http://wiki.contextgarden.net/Sample_documents ? Yes, that's
a good idea, since I believe that it is a way to improve documentation
with little efforts. Then I plan to add the cover letter style I made
since I am happy with the results, although 1 or 2 things could have
some improvement. There are also some letter styles there, then I will
have a look on them too. I don't know if people are intimidated about
writing contents in the wiki because it is the official wiki and feel
that only programmers are supposed to update it, but it will be really
helpfull if the users have more the habit of posting there the document
styles they made.


Indeed.


My cover letter template is now maturing, since it is only the beginning 
I am using it, but I believe it will be ready soon to be posted in the 
wiki :-).



Sounds interesting and the best thing you can do is to start with it.


Thanks for your encouragement ! Yes that looks like an interesting
challenge for me, but it is not something I am wanting to do alone
because of my lack of experience, at least I would need someone to coach
me. Actually I don't have really experience with web developpment and I
would at least need help for the technological choices. Having someone
that tells me that if I use technology X, there are module Y and Z that
will be a good fit is a good start.


This will only work when someone takes the lead. If you do that you 
then others will help you. If you need something special on the wiki, 
just discuss it with Taco and Mojca who deal with the technicalities.


OK, it is still an idea that needs maturation. I know I tend to be 
quickly enthusiastic about an idea and overly optimistic about my 
abilities to implement it which means that I eventually end giving up. 
So now I need some thinking about the idea, about if I am ready to 
invest the needed time. Maybe the task is to big for me but there could 
be a less time consuming solution that can be OK although not as great. 
Or I could still go for the original idea with being clear about what I 
can do and how much time I can invest to and how much help I need to 
complete what I couldn't reasonably do.


Cheers,
Jonas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathsf / mathversions in context

2016-10-11 Thread Wolfgang Schuster

Csikos Bela 
11. Oktober 2016 um 21:52
Dear list members:

I would like to set up Tex Gyre Adventor sans serif font as my math 
font (even if it doesn't have

math symbols). I have two questions related to this problem.

1. In latex I can specify math font versions, define a specific font 
as math serif / normal, another as math
sans serif etc. 
(http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). 
Is this possible

in context, and if yes, how?

ConTeXt doesn’t use the same style switches as LaTeX.
2. If I specify Tex Gyre Adventor as default math font in context, I 
get compile error.

Here is a MWE, file name is mathfont.tex:


\definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
\definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
\setupbodyfont[mathfont,10pt]

\starttext

Normal text.

\math{Inline math expression.}

Normal text.

\stoptext


1. sf is not a valid argument for the second argument of \definefontfamily

2. You need a real math font for mathematics, a text font doesn’t work 
because it lacks many parameter for math mode.


3. You can use the font fallback mechanism to replace certain character 
in the math font with characters from a text font.


\definefontfamily [mathfont] [rm] [Tex Gyre Bonum]
\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]
\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] 
[tf=style:italic,range=0x068,offset=0x0210E]% Planck constant

\definefontfamily [mathfont] [mm] [Tex Gyre Pagella Math]

\setupbodyfont[mathfont,10pt]

\starttext

Normal text.

\math{a + b = c}

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-11 Thread Henning Hraban Ramm
Am 2016-10-11 um 22:26 schrieb Jonas Baggett :

>> http://meta.stackoverflow.com/questions/328667/new-tags-and-documentation-beta
> 
> And a ConTeXt tag must already exist on Stack Overflow, which I didn't find. 
> So it seems we can wait a while before there would be examples in ConTeXt.

There are ConTeXt threads on tex.stackexchange.com

> I find stackoverflow too elitist, once I was reading a question and I wanted 
> to help with an answer but it wasn't possible to do because it was the first 
> time I wanted to contribute in stackoverflow and of course I was lacking the 
> needed reputation. I am interested to help when I see an occasion to and when 
> I am in the mood for that ;-). So I found that frustrating and it didn't make 
> me interested to contribute there.
> 
> On the other hand, I understand their will to have good quality questions and 
> answer and I appreciate that. I am just feeling it must be a better way to do 
> that.

Hm, in my experience you get the necessary basic permissions really soon.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
GPG Key ID 1C9B22FD

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-11 Thread Jonas Baggett

Le 10.10.16 à 07:43, Aditya Mahajan a écrit :


Recently, stackexchange started a similar project:
https://blog.stackoverflow.com/2016/07/introducing-stack-overflow-documentation-beta/ 



You can create a context tag and create example documents. The 
difficulty with such projects, as usual, is to have a critical mass 
for others to browse and contribute. One could start by "porting" 
existing examples from the wiki, mailing list, tex.stackexchange, etc.


Scratch that. It seems that documentation tags can only be created for 
topics that are popular on stackoverflow (not stackexchange).


http://meta.stackoverflow.com/questions/328667/new-tags-and-documentation-beta


And a ConTeXt tag must already exist on Stack Overflow, which I didn't 
find. So it seems we can wait a while before there would be examples in 
ConTeXt.


I find stackoverflow too elitist, once I was reading a question and I 
wanted to help with an answer but it wasn't possible to do because it 
was the first time I wanted to contribute in stackoverflow and of course 
I was lacking the needed reputation. I am interested to help when I see 
an occasion to and when I am in the mood for that ;-). So I found that 
frustrating and it didn't make me interested to contribute there.


On the other hand, I understand their will to have good quality 
questions and answer and I appreciate that. I am just feeling it must be 
a better way to do that.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] mathsf / mathversions in context

2016-10-11 Thread Csikos Bela
Dear list members:

I would like to set up Tex Gyre Adventor sans serif font as my math font (even 
if it doesn't have
math symbols). I have two questions related to this problem.

1. In latex I can specify math font versions, define a specific font as math 
serif / normal, another as math
sans serif etc. 
(http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml). Is 
this possible
in context, and if yes, how?

2. If I specify Tex Gyre Adventor as default math font in context, I get 
compile error.
Here is a MWE, file name is mathfont.tex:


\definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
\definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
\setupbodyfont[mathfont,10pt]

\starttext

Normal text.

\math{Inline math expression.}

Normal text.

\stoptext


Running context mathfont.tex gives:

This is LuaTeX, Version 0.98.3 (TeX Live 2017/dev)
 system commands enabled.

tex error   > tex error on line 9 in file /mathfont.tex: ! Math error: 
parameter \Umathquad\textstyle is not set


\m_syst_action_nop ...artimath #1\normalstopimath
  \fi
l.9 \math{Inline math expression.}


 1 \definefontfamily [mathfont] [sf] [Tex Gyre Bonum]
 2 \definefontfamily [mathfont] [mm] [Tex Gyre Adventor]
 3 \setupbodyfont[mathfont,10pt]
 4
 5 \starttext
 6
 7 Normal text.
 8
 9 >>  \math{Inline math expression.}
10
11 Normal text.
12
13 \stoptext


?   

I would appreciate any help or explanations on the topic, or naming a document 
that explains it.

Thanks in advance,

bcsikos

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Parsing ConTeXt errors

2016-10-11 Thread Nicola

On 2016-10-11 18:52:32 +, Alan Braslau said:


Of course, I *never* make MetaPost errors... ;-)

However, you can search the log file for
metapost> error:


Sure. But there is no line number. Compare with a typical TeX error:

tex error   > tex error on line 210 in file /path/to/main.tex: ! 
Undefined control sequence


l.210 \sdkjdkjhkdkkjk

In the same line you see:

1) the type of error (tex error);
2) the line number;
3) the file in which the error occurs;
4) the error message.

For MetaPost errors, only 1) and 4) are given with the error; 3) may be 
inferred

(by tracking `open source`/`close source` lines). But I see no trace of 2).

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Parsing ConTeXt errors

2016-10-11 Thread Alan Braslau
Of course, I *never* make MetaPost errors... ;-)

However, you can search the log file for
metapost> error: 


Alan


> On Oct 11, 2016, at 07:27, Nicola  wrote:
> 
> Hello,
> 
> I'm trying to parse ConTeXt errors. TeX and Lua errors seem easy to parse
> (search for 'tex error' and 'lua error', respectively), but I have a couple of
> problems with MetaPost messages.
> 
> First, when there are MetaPost errors, context/mtxrun exits with a zero exit
> code. Is that intentional?
> 
> Second, as far as I see, there is no way to locate the error in the source
> from the log. I can only retrieve the file causing the error (by searching for
> an 'open source' line - very useful, btw), but no line number.
> 
> Am I missing something? I think it would be very useful to have at least an
> approximate indication of the position of a MetaPost error.
> 
> Nicola
> 
> 
> 
> ___
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] cannot update to latest beta

2016-10-11 Thread Mohammad Hossein Bateni
Phillip,

The bitbucket mirror has not gotten updated since September 24.  Is there a
misconfiguration?

—MHB

On Thu, Sep 22, 2016 at 4:01 PM, Taco Hoekwater  wrote:

> Hi Pablo,
>
> > Op 22 sep. 2016 om 20:53 heeft Pablo Rodriguez  het
> volgende geschreven:
> >
> >> On 09/21/2016 11:26 PM, Philipp Gesang wrote:
> >> ·
> >>
> >>> Dear list,
> >>>
> >>> although latest beta seems to be from 2016.09.20 21:12, I get updated
> to
> >>> beta from 2016.09.12 18:27 when I run:
> >>
> >> The official download still has the 2016.09.12 timestamp:
> >> http://pragma-ade.nl/download-2.htm How did you get that other
> >> date? I hope the git mirror isn’t scraping the wrong page ;)
> >
> > Philipp,
> >
> > I know that there is a new beta reading the metadata from
> > http://www.pragma-ade.com/general/qrcs/setup-en.pdf.
> >
> > Here is the revealing field:
> >
> >Creator:ConTeXt - 2016.09.22 10:48
>
> True, this means there exists a new version of context somewhere. But what
> you do not know is that there is a third context release state. Besides
> 'current' and 'beta' there is also 'latest'.
>
> 'Latest' contains experimental and/or in development code that needs to be
> shared for further testing or development. The easiest way for Hans to do
> that is to upload a new version to the website, and whenever any version of
> context is uploaded, the qrcs are uploaded as well.
>
> An easier and safer way to check for a new context release is to browse
> through the 'download' section of the Pragma website, which is always
> auto-updated in the release process. Or just run first-setup whenever you
> feel like it ;)
>
> Best wishes,
> Taco
>
>
> >
> > When a new beta is realeased, this is the easiest way for me to know.
> >
> > But probably Hans is busy with the ConTeXt Meeting next week and he
> > didn’t upload the beta.
> >
> > Many thanks for your help,
> >
> > Pablo
> > --
> > http://www.ousia.tk
> > 
> ___
> > 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://tex.aanhet.net
> > archive  : http://foundry.supelec.fr/projects/contextrev/
> > 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Communative diagrams with TikZ & ConTeXt

2016-10-11 Thread Alan Braslau
Hello,

I wrote some very simple MetaPost helpers to create commutative diagrams:




natural.pdf
Description: Adobe PDF document



Alan


> On Oct 6, 2016, at 15:45, Hans Åberg  wrote:
> 
> 
>> On 6 Oct 2016, at 15:52, Mojca Miklavec  
>> wrote:
>> 
>> I don't have the file tikzlibrarycommute.code.tex on my machine
>> either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
>> That file was only posted to the mailing list by Idris and apparently
>> nobody ever looked at it or added it anywhere.
> 
> There is a tikz-cd package at CTAN:
>  https://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-cd?lang=en
> 
> One makes sure to have the file tikzlibrarycd.code.tex, and follows the 
> translation rules in the manual for ConTeXt. In addition to that, one seems 
> to have to replace the apostrophe with "below".
> 
> The first few examples in the manual, which compiled with latest ConTeXt:
> 
> \usemodule[tikz]
> \usetikzlibrary[cd]
> 
> 
> \starttext
> 
> \starttikzcd
>  A \arrow{rd} \arrow{r}{휑} \NC B \NR
> \NC C
> \stoptikzcd
> 
> \starttikzcd
>  A \arrow[r, "\phi"] \arrow[d, red]
>\NC B \arrow[d, "\psi" red] \NR
>  C \arrow[r, red, "\eta" blue]
>  \NC D
> \stoptikzcd
> 
> \starttikzcd
>  A \arrow[r, "\phi" near start, "\psi" below, "\eta" near end] \NC B
> \stoptikzcd
> 
> \starttikzcd
>  T
>  \arrow[drr, bend left, "x"]
>  \arrow[ddr, bend right, "y"]
>  \arrow[dr, dotted, "{(x,y)}" description] \NC \NC \NR
>\NC X \times_Z Y \arrow[r, "p"] \arrow[d, "q"]
>\NC X \arrow[d, "f"] \NR
>  \NC Y \arrow[r, "g"] \NC Z
> \stoptikzcd
> 
> \starttikzcd[column sep=tiny]
>  \NC \pi_1(U_1) \ar[dr] \ar[drr, "j_1", bend left=20]
>\NC
>  \NC[1.5em] \NR
>  \pi_1(U_1\cap U_2) \ar[ur, "i_1"] \ar[dr, "i_2" below]
>\NC
>  \NC \pi_1(U_1) \ast_{ \pi_1(U_1\cap U_2)} \pi_1(U_2) \ar[r, dashed, 
> "\simeq"]
>\NC \pi_1(X) \NR
>  \NC \pi_1(U_2) \ar[ur]\ar[urr, "j_2" below, bend right=20]
>\NC
>  \NC
> \stoptikzcd
> 
> \stoptext
> 
> 
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread luigi scarso
On Tue, Oct 11, 2016 at 3:58 PM, Henri Menke  wrote:
> I have to correct myself, it just looked like it worked.  It didn't generate 
> the PDF due to
>
> Fatal Error > Your format does not match the base files!
>
> The search continues.

To be sure, just give
context --make ; contextjit --make ;mtxrun --script plain --make ;
mtxrunjit --script plain --make
every time you change something (ie new version of luatex , luajittex
, context and so on)

-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Henri Menke
On 10/11/2016 03:45 PM, Mojca Miklavec wrote:
> On 11 October 2016 at 15:33, Henri Menke wrote:
>> On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
>>> On 10 October 2016 at 15:31, Henri Menke wrote:
 I have found another thread reporting the same problem

 https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html

 However, Hans only replied with »has been fixed already«.

 Does anyone know how to find the fix?
>>>
>>> Unless Hans remembers what he fixed exactly, my only idea is doing a
>>> bisection over
>>> https://bitbucket.org/phg/context-mirror/commits/all
>>
>> Okay.  This does not make *any* sense!  I started merging files until the 
>> bug disappeared and it happened when I merged cont-new.mkiv.  The diff is
>>
>> -\newcontextversion{2016.05.17 10:06}
>> +\newcontextversion{2016.07.01 16:28}
>>
>> So this is basically the version number.  Can someone enlighten me what is 
>> going on?
> 
> I would suspect that changing the version number triggers regenerating
> the formats. Most likely one of the other files fixed the problem, but
> the problem only disappeared once you regenerated the format. That's
> pure guesswork though.

I have to correct myself, it just looked like it worked.  It didn't generate 
the PDF due to

Fatal Error > Your format does not match the base files!

The search continues.

> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Arthur Reutenauer
> Okay.  This does not make *any* sense!  I started merging files until the bug 
> disappeared and it happened when I merged cont-new.mkiv.  The diff is
> 
> -\newcontextversion{2016.05.17 10:06}
> +\newcontextversion{2016.07.01 16:28}
> 
> So this is basically the version number.  Can someone enlighten me what is 
> going on?

  You missed the actual change and your dichotomy resulted in a
meaningless diff.  This often happens when trying to detect “offending”
changes in a large code base.

  I can’t be sure, of course, but that seems more likely than a version
bump introducing the bug you reported.  Have you actually observed that
precisely this change caused the bug?

Best,

Arthur
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Mojca Miklavec
On 11 October 2016 at 15:33, Henri Menke wrote:
> On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
>> On 10 October 2016 at 15:31, Henri Menke wrote:
>>> I have found another thread reporting the same problem
>>>
>>> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>>>
>>> However, Hans only replied with »has been fixed already«.
>>>
>>> Does anyone know how to find the fix?
>>
>> Unless Hans remembers what he fixed exactly, my only idea is doing a
>> bisection over
>> https://bitbucket.org/phg/context-mirror/commits/all
>
> Okay.  This does not make *any* sense!  I started merging files until the bug 
> disappeared and it happened when I merged cont-new.mkiv.  The diff is
>
> -\newcontextversion{2016.05.17 10:06}
> +\newcontextversion{2016.07.01 16:28}
>
> So this is basically the version number.  Can someone enlighten me what is 
> going on?

I would suspect that changing the version number triggers regenerating
the formats. Most likely one of the other files fixed the problem, but
the problem only disappeared once you regenerated the format. That's
pure guesswork though.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Henri Menke
On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
> On 10 October 2016 at 15:31, Henri Menke wrote:
>> I have found another thread reporting the same problem
>>
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>>
>> However, Hans only replied with »has been fixed already«.
>>
>> Does anyone know how to find the fix?
> 
> Unless Hans remembers what he fixed exactly, my only idea is doing a
> bisection over
> https://bitbucket.org/phg/context-mirror/commits/all

Okay.  This does not make *any* sense!  I started merging files until the bug 
disappeared and it happened when I merged cont-new.mkiv.  The diff is

-\newcontextversion{2016.05.17 10:06}
+\newcontextversion{2016.07.01 16:28}

So this is basically the version number.  Can someone enlighten me what is 
going on?

> 
> In case you find the fix, I can "backport" it to TL's repository and
> users doing regular upgrades with tlmgr will get it at least.
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Parsing ConTeXt errors

2016-10-11 Thread Nicola

Hello,

I'm trying to parse ConTeXt errors. TeX and Lua errors seem easy to parse
(search for 'tex error' and 'lua error', respectively), but I have a couple of
problems with MetaPost messages.

First, when there are MetaPost errors, context/mtxrun exits with a zero exit
code. Is that intentional?

Second, as far as I see, there is no way to locate the error in the source
from the log. I can only retrieve the file causing the error (by searching for
an 'open source' line - very useful, btw), but no line number.

Am I missing something? I think it would be very useful to have at least an
approximate indication of the position of a MetaPost error.

Nicola



___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] buffering inside xmlsetups

2016-10-11 Thread Wolfgang Schuster

Meer, Hans van der 
11. Oktober 2016 um 14:43
A problem I am obviously not able to solve.
It can be described as follows.

I have an xmlsetup .. that typesets texcode embedded in an 
xml document. Now it is needed to embed initializing a buffer and 
typesetting lateron with \getbuffer. Alas, doing the following does 
not woek:


\startbuffer[name]
bufferdata
\stopbuffer

because the TeX input hangs. My guess being that the \stopbuffer fails 
to terminate the data intake.


I then tried to split off the buffer filling with a separate xmlsetup. 
But here too, the TeX input halts:


% Usage: 
\startxmlsetups xmlcommon:buffer
\startbuffer[name=\xmlatt{#1}{name}]
\xmlflush{#1}
\stopbuffer
\stopxmlsetups
% Usage: 
\startxmlsetups xmlcommon:getbuffer
\xmlflushcontext{\getbuffer[name=\xmlatt{#1}{name}]}
\stopxmlsetups

and as input: inputdata followed by .
The getbuffer setup is not even reached, as is obvious.

I tried \xmltofile to put the data into an intermediate file, but to 
no avail because it produces the following, leading at best to 
recursion when processed by \xmlprocessfile.





bufferdata


Is there a solution to this?

\setbuffer[]...\endbuffer

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] buffering inside xmlsetups

2016-10-11 Thread Meer, Hans van der
A problem I am obviously not able to solve.
It can be described as follows.

I have an xmlsetup .. that typesets texcode embedded in an xml 
document. Now it is needed to embed initializing a buffer and typesetting 
lateron with \getbuffer. Alas, doing the following does not woek:

\startbuffer[name]
bufferdata
\stopbuffer

because the TeX input hangs. My guess being that the \stopbuffer fails to 
terminate the data intake.

I then tried to split off the buffer filling with a separate xmlsetup. But here 
too, the TeX input halts:

% Usage: 
\startxmlsetups xmlcommon:buffer
\startbuffer[name=\xmlatt{#1}{name}]
\xmlflush{#1}
\stopbuffer
\stopxmlsetups
% Usage: 
\startxmlsetups xmlcommon:getbuffer
\xmlflushcontext{\getbuffer[name=\xmlatt{#1}{name}]}
\stopxmlsetups

and as input: inputdata followed by .
The getbuffer setup is not even reached, as is obvious.

I tried \xmltofile to put the data into an intermediate file, but to no avail 
because it produces the following, leading at best to recursion when processed 
by \xmlprocessfile.




bufferdata


Is there a solution to this?

Hans van der Meer




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] wrong handling of hash char in \useURL

2016-10-11 Thread Piotr Kopszak
Hello list,

When I try to use hash in a URL like this

\useURL[protr][http://wiki.contextgarden.net/Protrusion\#MkIV]

I'm getting correct address on the screen but wrong link
(http://wiki.contextgarden.net/Protrusion/#MkIV).

When I use

\startasciimode
\useURL[protr][http://wiki.contextgarden.net/Protrusion#MkIV]
\stopasciimode

I'm getting correct link but wrong url on the screen
(http://wiki.contextgarden.net/Protrusion##MkIV)

Any ideas?

Best

Piotr
-- 
http://okle.pl
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-11 Thread Mohammad Hossein Bateni
This seems to not belong in the ConTeXt mailing list.  You'd be better off
asking it on Stack Exchange or on luatex mailing list.  The short answer is
it depends on the "format file" (and perhaps the LaTeX packages) you're
using.  Most probably, you either use "plain" or "latex", and then you
should see how they generate the page numbers and define a macro that
provides the Persian numbers, etc.  See how XePersian package handles it.
 (Search for \pagenumbering.)

On Mon, Oct 10, 2016 at 11:44 PM, Mingranina Gingranina <
mingran...@gmail.com> wrote:

> Dear Wolfgang
>  Hello,
>
> First of all, let me thank you very much for your informative answer.
>
> On 10/10/16, Wolfgang Schuster  wrote:
> >> Mingranina Gingranina 
> >> 7. Oktober 2016 um 17:41
> >> Dear Mohammad,
> >> Hi,
> >>
> >> Thank you very much for your reply. I forgot to mention that I had
> >> modified the fontsampler codes so that I can use it in ConTeXt with
> >> Dabeer module.
> > 1. What is Dabeer?
>
> It is a module for Persian typesetting in ConTeXt. Please see:
> https://github.com/bateni/dabeer
>
> >
> > 2. You can access the list of known fonts with the "fonts.names.list"
> > function:
> >
> > \setuppapersize[A4,landscape]
> >
> > \starttext
> >
> > \startluacode
> >
> > local fontlist = fonts.names.list("",true,true)
> >
> > context.starttabulate({"|l|l|"})
> > for fontname, fontentry in next, fontlist do
> >  context.NC()
> >  context(fontentry["rawname"])
> >  context.NC()
> >  context(fontentry["filename"])
> >  context.NC()
> >  context.NR()
> > end
> > context.stoptabulate()
> >
> > \stopluacode
> >
> > \stoptext
> >> However, inspired by your reply I could get it to work in LuaTeX but
> >> not in ConTeXt with Dabeer module.
> >>
> >> Are there any other set of features that I can test?
> > ConTeXt inludes a few modules which can be used to show font information
> > (search for s-fonts-*.mkiv|mkvi and s-math-*.mkiv|mkvi), below is a
> > example from s-fonts-tables.mkiv:
> >
> > \usemodule[fonts-tables]
> >
> > \setupbodyfont[pagella]
> >
> > \starttext
> > \showfonttables[title={TeX Gyre Pagella}]
> > \stoptext
>
> I am a novice in LuaTeX and ConTeXt and to learn these I tried to
> modify FontSampler code (http://wiki.luatex.org/index.php/Fontsampler)
> to get a sample of Persian fonts in a directory hierarchy too.
>
> BTW, at the moment my problem with LuaTeX is that the page numbering
> is in english. Do you know how to change the page numbering to Persian
> in LuaTeX?
>
>  Thanks,
>  Mingranina
> 
> ___
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Mikael P. Sundqvist
On Tue, Oct 11, 2016 at 11:37 AM, Wolfgang Schuster
 wrote:
> Mikael P. Sundqvist
> 11. Oktober 2016 um 11:21
>
> Thank you, the notjoinedup works well, but I cannot see any difference
> using any of the keys unpacked or notpacked.
>
> Is there any chance to have the before, after and inbetween keys to
> set the space manually?
>
> The before should be usable when you add the "notjoinedup" but inbetween
> will never be supported
> for horizontal items because all entries are in a single paragraph.
>
>
> To increase the distance between the lines you can change the
> interlinespace, e.g.
>
> \starttext
>
> \startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
>
> \stoptext
>
>
> or add a invisible symbol with increased height/depth at the begin of each
> item, e.g.
>
> \define\HorizontalItem
>   {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]}
>
> \starttext
>
> \startitemize[a,horizontal][command=\HorizontalItem]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
>
> \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  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Many thanks Wolfgang!

Now I know that the inbetween will never work, but that is not a
problem, since your inner= solution worked very well in my document!

The setup I ended up using (and that seems to work all over the ~160
pages document) is

\defineitemgroup[abc]
\setupitemgroup[abc][each][a,horizontal,three,intro,notjoinedup][
stopper=,
right=),
margin=,
before={\blank[medium,samepage]},
inner={\setupinterlinespace[line=3.5ex]},
]

Best regards, Mikael
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Henri Menke
On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
> On 10 October 2016 at 15:31, Henri Menke wrote:
>> I have found another thread reporting the same problem
>>
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>>
>> However, Hans only replied with »has been fixed already«.
>>
>> Does anyone know how to find the fix?
> 
> Unless Hans remembers what he fixed exactly, my only idea is doing a
> bisection over
> https://bitbucket.org/phg/context-mirror/commits/all

Okay, I have identified the relevant commit to be da91490 [1].  Unfortunately, 
the diff to the TL 2016 version which is something like af172a8 [2] is huge.  I 
was not yet able to identify the change which fixed the bug.  Also I have no 
idea what to look out for.  So far I have just been looking for occurrences of 
setattr and the like.

[1] 
https://bitbucket.org/phg/context-mirror/commits/da9149010f4d34eef23a504682d82cdcf4fac8f5?at=beta
[2] 
https://bitbucket.org/phg/context-mirror/commits/af172a8db5f7583d0117635edde17eba5619d883?at=beta

> 
> In case you find the fix, I can "backport" it to TL's repository and
> users doing regular upgrades with tlmgr will get it at least.
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-11 Thread Nicola

On 2016-10-11 09:33:36 +, Henning Hraban Ramm said:


Am 2016-10-11 um 09:26 schrieb Nicola :


No, everything just works(tm) :) See :help ftplugin-overrule for the details.


No, unfortunately not everything:

Error detected while processing /Users/hraban/.vim/syntax/context.vim:
line   22:
E121: Undefined variable: v:t_list
E15: Invalid expression: type(s:context_include) ==# v:t_list
Error detected while processing /Users/hraban/.vim/ftplugin/context.vim:
line   18:
E539: Illegal character : formatoptions+=tjcroql2


Maybe my vim is too old?
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 23 2016 20:20:57)


Yes, the scripts are meant to be used with Vim 8. You should be able to
work around those errors by replacing v:t_list with 3 and removing 'j'
from formatoptions, but other things, like asynchronous typesetting,
won't work anyway.

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Wolfgang Schuster

Mikael P. Sundqvist 
11. Oktober 2016 um 11:21

Thank you, the notjoinedup works well, but I cannot see any difference
using any of the keys unpacked or notpacked.

Is there any chance to have the before, after and inbetween keys to
set the space manually?
The before should be usable when you add the "notjoinedup" but inbetween 
will never be supported

for horizontal items because all entries are in a single paragraph.


To increase the distance between the lines you can change the 
interlinespace, e.g.


\starttext

\startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize

\stoptext


or add a invisible symbol with increased height/depth at the begin of 
each item, e.g.


\define\HorizontalItem
  {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]}

\starttext

\startitemize[a,horizontal][command=\HorizontalItem]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-11 Thread Henning Hraban Ramm
Am 2016-10-11 um 09:26 schrieb Nicola :

> No, everything just works(tm) :) See :help ftplugin-overrule for the details.

No, unfortunately not everything:

Error detected while processing /Users/hraban/.vim/syntax/context.vim:
line   22:
E121: Undefined variable: v:t_list
E15: Invalid expression: type(s:context_include) ==# v:t_list
Error detected while processing /Users/hraban/.vim/ftplugin/context.vim:
line   18:
E539: Illegal character : formatoptions+=tjcroql2


Maybe my vim is too old?
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 23 2016 20:20:57)


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
GPG Key ID 1C9B22FD

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Mikael P. Sundqvist
On Mon, Oct 10, 2016 at 10:28 AM, Hans Hagen  wrote:
> On 10/10/2016 10:24 AM, Hans Hagen wrote:
>
>> \setvalue{\??itemgroupkeyword\v!notpacked}%
>
>
> we already have unpacked
>
>
> -
>   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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Thank you, the notjoinedup works well, but I cannot see any difference
using any of the keys unpacked or notpacked.

Is there any chance to have the before, after and inbetween keys to
set the space manually?

/Mikael
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Henri Menke
On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
> On 10 October 2016 at 15:31, Henri Menke wrote:
>> I have found another thread reporting the same problem
>>
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>>
>> However, Hans only replied with »has been fixed already«.
>>
>> Does anyone know how to find the fix?
> 
> Unless Hans remembers what he fixed exactly, my only idea is doing a
> bisection over
> https://bitbucket.org/phg/context-mirror/commits/all

I'm willing to bisect it but I don't know how to integrate the git repo into 
the standalone distribution.  Are there instructions somewhere?

> 
> In case you find the fix, I can "backport" it to TL's repository and
> users doing regular upgrades with tlmgr will get it at least.
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-11 Thread Nicola

On 2016-10-11 07:26:20 +, Nicola said:


No, everything just works(tm) :)


Ehm, nearly. There was an error in setting the compiler. Please use
the files attached below.

You should be able to typeset the current document synchronously with

 :make

or asynchronously with:

 :ConTeXt

This latter command also accepts an optional path, in case you want
to typeset a document different from the current buffer.

In either case, 'mtxrun' must be in your $PATH. If necessary, you may
set the path explicitly with

 let g:context_mtxrun = '/path/to/mtxrun'

Something like

 let g:context_mtxrun = 
'$PATH=$HOME/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'


should also work.

Finally, you may check the status of the background jobs with

 :ConTeXtJobStatus

and possibly kill all running jobs with

 :ConTeXtStopJobs

Nicola


context.tgz
Description: Binary data
 ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-11 Thread Nicola

On 2016-10-11 06:39:16 +, Jan Willem Flamma said:


Hi Nicola,

I’m relatively new to Vim and currently run it as installed (MacVIm 8.0 
latest).


Where do I have to place these files in order to use them? (~/.vim 
folder or do I have to copy the individual files into the respective 
Vim application subfolders?)


The files must be copied into ~/.vim. The structure should be:

~/.vim/
 autoload/
   context.vim
 compiler/
   context.vim
 ftplugin/
   context.vim
 indent/
   context.vim
 syntax/
   context.vim

By doing so, Vim will pick up your files instead of its own.

After placing the files, is there anything else that needs to be done 
to ensure Vim picks up these files?


No, everything just works(tm) :) See :help ftplugin-overrule for the details.

Nicola


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-11 Thread Jan Willem Flamma
Hi Nicola,

I’m relatively new to Vim and currently run it as installed (MacVIm 8.0 latest).

Where do I have to place these files in order to use them? (~/.vim folder or do 
I have to copy the individual files into the respective Vim application 
subfolders?)
After placing the files, is there anything else that needs to be done to ensure 
Vim picks up these files?

Appreciate any help you can provide.

Kind regards,
Jan Willem Flamma


> On 10 okt. 2016, at 12:49, Nicola  wrote:
> 
> Hello,
> attached you find an update of the Vim scripts for ConTeXt.
> A few highlights:
> 
> - jump commands ([[, ]], [{, ]}, ...);
> 
> - jump to file included with \project, \component, etc... by typing
> gf when the cursor is above the filename;
> 
> - tp (TeX paragraph) text object (e.g., use gqap to reflow a paragraph);
> 
> - i$ and a$ text objects;
> 
> - better integration with MetaPost (indentation and autocompletion
> inside \startMP...\stopMP... works automatically);
> 
> - syntax highglighting can be enabled for any nested filetype (MetaPost
> and Lua are enabled by default);
> 
> - compiler plugin, supporting mtxrun and Makefiles;
> 
> - Asynchronous typesetting with :ConTeXt command.
> 
> I plan to submit these changes for inclusion in Vim, but I'd like to
> get some feedback, especially re background typesetting and especially
> from Windows users.
> 
> I recommend to test with Vim 8.0 patch 22 or later.
> 
> Nicola
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___