* Help with t-vim module and math
@ 2016-04-13 9:19 Nicola
2016-04-13 11:53 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Nicola @ 2016-04-13 9:19 UTC (permalink / raw)
To: ntg-context
Hi,
I am using the Vim module to typeset code, and I've found a situation
where I'd like to use some math symbols, but not in comments. I am not sure
whether it can be done. This is what I have tried:
\usemodule[vim]
\definefontfamily [slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][Xits][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\starttext
\startpascal
X := Y ∪ Z;
\stoppascal
\stoptext
The ∪ symbol does not appear in the output. Am I completely off-track?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help with t-vim module and math
2016-04-13 9:19 Help with t-vim module and math Nicola
@ 2016-04-13 11:53 ` Hans Hagen
2016-04-13 12:17 ` Nicola
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2016-04-13 11:53 UTC (permalink / raw)
To: ntg-context
On 4/13/2016 11:19 AM, Nicola wrote:
> Hi,
> I am using the Vim module to typeset code, and I've found a situation
> where I'd like to use some math symbols, but not in comments. I am not sure
> whether it can be done. This is what I have tried:
>
> \usemodule[vim]
> \definefontfamily [slidesfont][mono][Latin Modern Mono Light]
> \definefallbackfamily[slidesfont][mono][Xits][range={"0222A}]
> \definevimtyping[pascal][syntax=pascal]
> \starttext
> \startpascal
> X := Y ∪ Z;
> \stoppascal
> \stoptext
>
> The ∪ symbol does not appear in the output. Am I completely off-track?
use dejavu mono instead of lm mono
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help with t-vim module and math
2016-04-13 11:53 ` Hans Hagen
@ 2016-04-13 12:17 ` Nicola
2016-04-13 12:47 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Nicola @ 2016-04-13 12:17 UTC (permalink / raw)
To: ntg-context
On 2016-04-13 11:53:51 +0000, Hans Hagen said:
> On 4/13/2016 11:19 AM, Nicola wrote:
>> Hi,
>> I am using the Vim module to typeset code, and I've found a situation
>> where I'd like to use some math symbols, but not in comments. I am not sure
>> whether it can be done. This is what I have tried:
>>
>> \usemodule[vim]
>> \definefontfamily [slidesfont][mono][Latin Modern Mono Light]
>> \definefallbackfamily[slidesfont][mono][Xits][range={"0222A}]
>> \definevimtyping[pascal][syntax=pascal]
>> \starttext
>> \startpascal
>> X := Y ∪ Z;
>> \stoppascal
>> \stoptext
>>
>> The ∪ symbol does not appear in the output. Am I completely off-track?
>
> use dejavu mono instead of lm mono
Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in
my document:
is there a light variant?
Also, can't the fallback mechanism be used?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help with t-vim module and math
2016-04-13 12:17 ` Nicola
@ 2016-04-13 12:47 ` Wolfgang Schuster
2016-04-13 13:28 ` Nicola
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2016-04-13 12:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 423 bytes --]
> Nicola <mailto:nvitacolonna@gmail.com>
> 13. April 2016 um 14:17
> On 2016-04-13 11:53:51 +0000, Hans Hagen said:
>
>
> Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in
> my document:
> is there a light variant?
>
> Also, can't the fallback mechanism be used?
Yes it can but you have to enable your custom typeface with
\setupbodyfont which
wasn’t done in your example.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1415 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help with t-vim module and math
2016-04-13 12:47 ` Wolfgang Schuster
@ 2016-04-13 13:28 ` Nicola
2016-04-13 13:33 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Nicola @ 2016-04-13 13:28 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 866 bytes --]
On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said:
> Nicola 13. April 2016 um 14:17
> On 2016-04-13 11:53:51 +0000, Hans Hagen said:
>
>
> Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in
> my document:
> is there a light variant?
>
> Also, can't the fallback mechanism be used?
> Yes it can but you have to enable your custom typeface with
> \setupbodyfont which
> wasn’t done in your example.
You're right, but I have done it in my original document.
Even with that, the fallback symbol does not show up:
\usemodule[vim]
\definefontfamily [slidesfont][mono][Latin Modern Mono Light]
\definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range={"0222A}]
\definevimtyping[pascal][syntax=pascal]
\setupbodyfont[slidesfont]
\starttext
\startpascal
X := Y ∪ Z;
\stoppascal
\stoptext
Nicola
[-- Attachment #1.2: Type: text/html, Size: 3335 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help with t-vim module and math
2016-04-13 13:28 ` Nicola
@ 2016-04-13 13:33 ` Wolfgang Schuster
2016-04-13 13:46 ` Nicola
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2016-04-13 13:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1246 bytes --]
> Nicola <mailto:nvitacolonna@gmail.com>
> 13. April 2016 um 15:28
>
> On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said:
>
>
> Nicola <mailto:nvitacolonna@gmail.com>13. April 2016 um 14:17
>
> On 2016-04-13 11:53:51 +0000, Hans Hagen said:
>
>
>
> Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in
> my document:
>
> is there a light variant?
>
>
> Also, can't the fallback mechanism be used?
>
> Yes it can but you have to enable your custom typeface with
> \setupbodyfont which
>
> wasn’t done in your example.
>
>
> You're right, but I have done it in my original document.
>
> Even with that, the fallback symbol does not show up:
>
>
> \usemodule[vim]
>
> \definefontfamily[slidesfont][mono][Latin Modern Mono Light]
>
> \definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range={"0222A}]
>
> \definevimtyping[pascal][syntax=pascal]
>
> \setupbodyfont[slidesfont]
>
> \starttext
>
> \startpascal
>
> X := Y ∪ Z;
>
> \stoppascal
>
> \stoptext
>
>
You have to move the fallback setting before the font where you want to
apply the fallback, i.e.
\definefallbackfamily […] […] […]
\definefontfamily […] […] […]
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 4459 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help with t-vim module and math
2016-04-13 13:33 ` Wolfgang Schuster
@ 2016-04-13 13:46 ` Nicola
0 siblings, 0 replies; 7+ messages in thread
From: Nicola @ 2016-04-13 13:46 UTC (permalink / raw)
To: ntg-context
On 2016-04-13 13:33:27 +0000, Wolfgang Schuster said:
> Nicola 13. April 2016 um 15:28
> On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said:
>
>
>> Nicola 13. April 2016 um 14:17
>> On 2016-04-13 11:53:51 +0000, Hans Hagen said:
>>
>>
>>
>>
>> Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in
>> my document:
>> is there a light variant?
>>
>>
>> Also, can't the fallback mechanism be used?
>> Yes it can but you have to enable your custom typeface with
>> \setupbodyfont which
>> wasn’t done in your example.
>
>
> You're right, but I have done it in my original document.
> Even with that, the fallback symbol does not show up:
>
>
> \usemodule[vim]
> \definefontfamily [slidesfont][mono][Latin Modern Mono Light]
> \definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range={"0222A}]
> \definevimtyping[pascal][syntax=pascal]
> \setupbodyfont[slidesfont]
> \starttext
> \startpascal
> X := Y ∪ Z;
> \stoppascal
> \stoptext
>
> You have to move the fallback setting before the font where you want to
> apply the fallback, i.e.
>
> \definefallbackfamily […] […] […]
> \definefontfamily […] […] […]
Great, it works!
Thanks to ConTeXt and this mailing list, I've cut down the time to
prepare a presentation dramatically, while improving its quality and
avoiding frustration (compared to LaTeX Beamer+listings).
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-04-13 13:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 9:19 Help with t-vim module and math Nicola
2016-04-13 11:53 ` Hans Hagen
2016-04-13 12:17 ` Nicola
2016-04-13 12:47 ` Wolfgang Schuster
2016-04-13 13:28 ` Nicola
2016-04-13 13:33 ` Wolfgang Schuster
2016-04-13 13:46 ` Nicola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).