[NTG-context] On the topic of fonts

2016-03-02 Thread Brian Ballsun-Stanton
Hi Wolfgang, Pablo. I'm having a great deal of difficulties deploying custom user fonts using the luatex loading sequence with either the new or old simplefonts setups. Is there a wiki page which is most correct on how to go from "no user font loaded" to "define font family, \input knuth" with

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Alan BRASLAU
On Wed, 2 Mar 2016 11:45:54 +0100 Nicola wrote: > > You don't need scite installed so it's quite efficient as it's the > > method that is used, not the binary (and the context related lexers > > ship with the context distribution). > > That's clear now, thanks! Hans

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 07:12 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 2. März 2016 um 17:17 >> [...] >> If another "key=value" pair is specified, "tf=file:newg8-regular" >> doesn’t seem to work. >> >> What am I doing wrong? > > Don’t write just some garbage as third argument for the >

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-02 20:11:56 +, Aditya Mahajan said: You can change the space before and after display environments using spacebefore and spaceafter keys (see the documentation of filter module[1], which is used by the vim module) Thanks, it works! Nicola

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-02 19:34:00 +, Aditya Mahajan said: On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL variant).

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: > I'm using the latest beta, and I need syntax coloring for SQL > (PostgreSQL variant). According to the wiki, there is no SQL > syntax coloring available for MKIV yet,

Re: [NTG-context] issue with font loading

2016-03-02 Thread Thomas A. Schmitz
On 03/02/2016 07:12 PM, Wolfgang Schuster wrote: Don’t write just some garbage as third argument for the \definefontfamily or \definefallbackfamily commands. In the attached picture you can see the fonforge information for the font names, needed for the \definefontfamily command is the "family

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL variant). According to the wiki, there is no SQL syntax coloring available for MKIV yet, but I'd be happy to be wrong :) You can use

Re: [NTG-context] issue with font loading

2016-03-02 Thread Wolfgang Schuster
Pablo Rodriguez 2. März 2016 um 17:17 Wolfgang, I’m afraid that even with that, I’m afraid it doesn’t work well: \definefallbackfamily[mainface][rm][Latin Modern Math] [tf=file:newg8-regular, scale=0.88, range=0x22C0] \definefallbackfamily[mainface][rm][Latin Greek Math]

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 04:56 PM, Pablo Rodriguez wrote: > On 03/02/2016 03:59 PM, Wolfgang Schuster wrote: >> >> The \definefontfamily can only use font which are indexed by context >> (mtxrun --script font --reload) which doesn’t seem to be the case here. Wolfgang, I’m afraid that even with that, I’m

Re: [NTG-context] Tables vs tables (deprecation paranoia again)

2016-03-02 Thread Hans Hagen
On 3/2/2016 4:52 PM, Nicola wrote: I read in the wiki that my beloved \starttable...\stoptable is deprecated. Tabulate seems their next of kin, but... does it support cells spanning more than one row? \starttable will always stay around (after all, it had been partially mkiv'd); it's just

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 03:59 PM, Wolfgang Schuster wrote: > > The \definefontfamily can only use font which are indexed by context > (mtxrun --script font --reload) which doesn’t seem to be the case here. Even if the font is on the same directory as the ConTeXt source file? I invoke it by its file name.

[NTG-context] Tables vs tables (deprecation paranoia again)

2016-03-02 Thread Nicola
I read in the wiki that my beloved \starttable...\stoptable is deprecated. Tabulate seems their next of kin, but... does it support cells spanning more than one row? Nicola ___ If your question is of interest to

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-02 14:45:54 +, Aditya Mahajan said: On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-02 02:14:33 +, Aditya Mahajan said: I do not load the default vimrc, because that drastically slows down the module. That makes sense. So, Vim is run with something like `vim -u NONE`, I

Re: [NTG-context] issue with font loading

2016-03-02 Thread Wolfgang Schuster
Pablo Rodriguez 2. März 2016 um 15:43 Wolfgang, I’m afraid it doesn’t work. Just in case it helps, directly generated from http://github.com/rbrito/urw-garamond/, you have the font itsef at http://ousia.tk/newg8-regular.otf. Many thanks for your help, Pablo Wolfgang

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Aditya Mahajan
On Wed, 2 Mar 2016, Nicola wrote: On 2016-03-02 02:14:33 +, Aditya Mahajan said: I do not load the default vimrc, because that drastically slows down the module. That makes sense. So, Vim is run with something like `vim -u NONE`, I guess. Yes. And if the vimrc option is used, then it

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 02:54 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 2. März 2016 um 12:11 >> [...] >> \definefontfamily[mainface][rm][Latin Modern Roman] >> \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}] > > Does this work? > >

Re: [NTG-context] issue with font loading

2016-03-02 Thread Wolfgang Schuster
Pablo Rodriguez 2. März 2016 um 12:11 Dear list, I have the following sample: \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}] Does this work?

Re: [NTG-context] footnotes and links

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 01:54 PM, Hans Hagen wrote: > On 3/2/2016 1:32 PM, Pablo Rodriguez wrote: > >> My (ignorant) guess is that updating luatex from 0.89.0 to 0.89.2 >> contained the fix. > > no, it doesn't relate to the engine as context doesn't use the engine > for links and so .. just macro magic

Re: [NTG-context] footnotes and links

2016-03-02 Thread Hans Hagen
On 3/2/2016 1:32 PM, Pablo Rodriguez wrote: > My (ignorant guess) is that updating luatex from 0.89.0 to 0.89.2 contained the fix. no, it doesn't relate to the engine as context doesn't use the engine for links and so .. just macro magic mixed with lua code Hans

Re: [NTG-context] issue with font loading

2016-03-02 Thread Hans Hagen
On 3/2/2016 1:07 PM, Pablo Rodriguez wrote: On 03/02/2016 12:28 PM, Hans Hagen wrote: On 3/2/2016 12:11 PM, Pablo Rodriguez wrote: [...] I don’t get a sans typeface different from Latin Modern Roman. If the font is on the same directory as the ConTeXt source file, what is wrong in my code?

Re: [NTG-context] footnotes and links

2016-03-02 Thread Pablo Rodriguez
On 02/27/2016 11:28 PM, Pablo Rodriguez wrote: > On 02/27/2016 02:40 PM, Hans Hagen wrote: > [...] >> I can't check much (as I don't know what to expect, but there is no real >> definition of qualitative behaviour there anyway) but this is what can >> be done. I have no clue to what extent

Re: [NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
On 03/02/2016 12:28 PM, Hans Hagen wrote: > On 3/2/2016 12:11 PM, Pablo Rodriguez wrote: >> [...] >> I don’t get a sans typeface different from Latin Modern Roman. >> >> If the font is on the same directory as the ConTeXt source file, what is >> wrong in my code? > > doesn't the log tell you

Re: [NTG-context] issue with font loading

2016-03-02 Thread Hans Hagen
On 3/2/2016 12:11 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}] \setupbodyfont[mainface] \starttext a{\ss a}b{\ss b}c{\ss

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-02 11:06:34 +, Nicola said: On 2016-03-02 02:14:33 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL

[NTG-context] issue with font loading

2016-03-02 Thread Pablo Rodriguez
Dear list, I have the following sample: \definefontfamily[mainface][rm][Latin Modern Roman] \definefontfamily[mainface][ss][GaraMath][file={newg8-regular.otf}] \setupbodyfont[mainface] \starttext a{\ss a}b{\ss b}c{\ss c}g{\ss g} \stoptext I don’t get a sans typeface

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-02 02:14:33 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: On 2016-03-01 15:35:07 +, Aditya Mahajan said: On Tue, 1 Mar 2016, Nicola wrote: I'm using the latest beta, and I need syntax coloring for SQL (PostgreSQL variant). According to the wiki, there is no

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-02 09:13:07 +, Hans Hagen said: On 3/2/2016 9:56 AM, Nicola wrote: On 2016-03-01 21:53:10 +, Hans Hagen said: - a relative new mechanism based on the scite lexers that i use (for not it is loaded by \usemodule[scite] ...which does require Scite? (I've tried your example

[NTG-context] References on the same page

2016-03-02 Thread Aidan Nichol
Is there a way to detect if two references are on the same page? I looking for a way to determine if I should print a single page number or a range of numbers. ___ If your question is of interest to others as well,

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Hans Hagen
On 3/2/2016 9:56 AM, Nicola wrote: On 2016-03-01 21:53:10 +, Hans Hagen said: just fyi (as aditya already provided you a solution) there are three highlighters - the build-in one, for which one can define additional variants (there are few defined, some assume proper syntax, some are line

Re: [NTG-context] Vertically centered text in each page

2016-03-02 Thread Andreas Schneider
Am 2016-02-19 12:23, schrieb Marco Patzer: On Fri, 19 Feb 2016 11:54:12 +0100 Nicola wrote: How do I setup the slide command to do that by default? I have tried putting {before,after,beforesection,aftersection}=\vfill in various combinations in \setuphead, but I cannot

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-01 21:53:10 +, Hans Hagen said: just fyi (as aditya already provided you a solution) there are three highlighters - the build-in one, for which one can define additional variants (there are few defined, some assume proper syntax, some are line based) Just to clarify, this is

Re: [NTG-context] Custom syntax highlighting

2016-03-02 Thread Nicola
On 2016-03-02 02:14:33 +, Aditya Mahajan said: I do not load the default vimrc, because that drastically slows down the module. That makes sense. So, Vim is run with something like `vim -u NONE`, I guess. Instead, there is an option to create a specific vimrc using: