Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
On Wed, 2 Nov 2016, Nicola wrote: The syntax scripts in Vim already cover all of MetaFun. MetaFun keywords are highlighted by default inside ConTeXt documents; for MetaPost files ('mp' filetype), you must put let g:mp_metafun_macros = 1 into your vimrc. Ah, great! > The indent file is

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
Dear Otared, thank you again. This is somehow a proof that it should work. In my real document I use the title to name some exercises (after old exams), and I don't see how that can be combined with your solution. If someone else reads this: I think the question boils down to the following:

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
Hi Mikael, A partial solution to the feature we are discussing is contained in the example below, but somone more aware of ConTeXtish coding might improve it. It is not satisfactory in that one has to define twice \startquestion and \StartQuestion, \beginanswer and \BeginAnswer, and more

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Nicola
On 02/11/2016 19:39, Aditya Mahajan wrote: > On Tue, 1 Nov 2016, Nicola wrote: > >> I have updated the Vim page at ConTeXt Garden: >> >> http://wiki.contextgarden.net/Vim >> >> It may be considered as the official documentation of the ConTeXt >> scripts in Vim, as the only other documentation

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Aditya Mahajan
On Tue, 1 Nov 2016, Nicola wrote: I have updated the Vim page at ConTeXt Garden: http://wiki.contextgarden.net/Vim It may be considered as the official documentation of the ConTeXt scripts in Vim, as the only other documentation is the source code :) Hi Nicola, I wonder if you have

[NTG-context] interline space for \setuplist[alternative=d]

2016-11-02 Thread Pablo Rodriguez
Hans, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[lsect] \setupinterlinespace[line=28ex] \stopsetups \setuplist[section][style=\tfxx,

Re: [NTG-context] \definefallbackfamily for math fonts, again

2016-11-02 Thread Csikos Bela
Wolfgang Schuster írta: >\definefontfamily [doc] [rm] [TeX Gyre Bonum] >\definefontfamily [doc] [ss] [Tex Gyre Adventor] > >\definefallbackfamily [doc] [mm] [Tex Gyre Adventor] >[range=lowercasenormal,offset=lowercasesansserifnormal] >\definefallbackfamily [doc] [mm] [Tex Gyre Adventor]

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
Dear Otared (and list), thank you for your reply and support. The links from the answers to the questions work as wanted with my solution, it is the links from the questions to the answers that do not. I guess I need something like headcommand={\in{Question}[A:###]}, where ### is the

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
Hi Mikael, I had a similar question some time ago, but I wanted to add a sort of automatic referencing of questions and answers (and interaction going from questions to answers and back). If you accept the hurdle of adding manual references, in your case you can add (for instance…)

[NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
Dear list, I have a pretty large text with a lot of questions and answers, and want the user(students) to be able to click in the pdf to go from a certain exercise to its answer, and back. I have a solution (see below) to go from answers to questions, but not the other way around. I simply have

[NTG-context] grid, interlinespace

2016-11-02 Thread Michael Eidenbenz
Hello I want my text on a grid and there should be no gap between the top and the capital letters of the first line. I managed to get this by changing the height parameter of \setupinterlinespace with a factor I calculated for the font with this formula: CapHeight/exheight / line = height

Re: [NTG-context] Use \unit for value and uncertainty

2016-11-02 Thread Henri Menke
On 10/31/2016 05:30 PM, Florian Leupold wrote: > Hello! > > There does not seem to be a simple solution to using \unit with > uncertainties, see below. > > Could someone maybe point me to the relevant source code for the parser for > \unit in MKIV? Then I would try to modify/improve the code

Re: [NTG-context] Vim wiki page updated

2016-11-02 Thread Jan Willem Flamma
Excellent piece of work. Many thanks! > On 1 Nov 2016, at 14:13, Nicola wrote: > > I have updated the Vim page at ConTeXt Garden: > >http://wiki.contextgarden.net/Vim > > It may be considered as the official documentation of the ConTeXt scripts in > Vim, as the