Re: [NTG-context] Text Colour

2011-08-30 Thread Kip Warner
On Wed, 2011-08-31 at 05:24 +0200, Wolfgang Schuster wrote:
> \setupcolors[textcolor=...]
> 
> Wolfgang

Thanks Wolfgang, that did it.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Text Colour

2011-08-30 Thread Alasdair McAndrew
This brings up a question I have - how do I obtain, say, all {\tt  } text in
blue and all {\em } text in red?  I seem to be using MkII, and I don't have
access to the \definehighlight command.

Thanks,
Alasdair

On Wed, Aug 31, 2011 at 2:19 PM, Aditya Mahajan  wrote:

> On Tue, 30 Aug 2011, Kip Warner wrote:
>
>  Hey folks,
>>
>> How do I set the body text foreground colour? I tried the following, but
>> it just ignored it:
>>
>> \definecolor[colour_text][r=0.**754,g=0.516,b=0.324]
>>
>> \setupbodyfontenvironment
>>  [default]
>>  [em=italic,
>>  color=colour_text]
>>
>> I don't want to have to use \startcolor and \stopcolor every time I wish
>> this default to be applied.
>>
>
> \definehighlight[emph][style=**em,color=red]
>
> \emph{...}
>
> Aditya
>
> __**__**
> ___
> 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
> __**__**
> ___
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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
___

Re: [NTG-context] Text Colour

2011-08-30 Thread Aditya Mahajan

On Tue, 30 Aug 2011, Kip Warner wrote:


Hey folks,

How do I set the body text foreground colour? I tried the following, but
it just ignored it:

\definecolor[colour_text][r=0.754,g=0.516,b=0.324]

\setupbodyfontenvironment
 [default]
 [em=italic,
  color=colour_text]

I don't want to have to use \startcolor and \stopcolor every time I wish
this default to be applied.


\definehighlight[emph][style=em,color=red]

\emph{...}

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


Re: [NTG-context] Text Colour

2011-08-30 Thread Kip Warner
On Wed, 2011-08-31 at 12:16 +1000, Alasdair McAndrew wrote:
> Have you included
> 
> \setupcolors[state=start]
> 
> somewhere?
> 
> -Alasdair

Hey Alasdair. Sorry, I should have mentioned that I already have that
too.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Text Colour

2011-08-30 Thread Wolfgang Schuster

Am 31.08.2011 um 03:57 schrieb Kip Warner:

> Hey folks,
> 
> How do I set the body text foreground colour? I tried the following, but
> it just ignored it:
> 
> \definecolor[colour_text][r=0.754,g=0.516,b=0.324]
> 
> \setupbodyfontenvironment
>  [default]
>  [em=italic,
>   color=colour_text]
> 
> I don't want to have to use \startcolor and \stopcolor every time I wish
> this default to be applied.

\setupcolors[textcolor=...]

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


Re: [NTG-context] Text Colour

2011-08-30 Thread Alasdair McAndrew
Have you included

\setupcolors[state=start]

somewhere?

-Alasdair

On Wed, Aug 31, 2011 at 11:57 AM, Kip Warner  wrote:

> Hey folks,
>
> How do I set the body text foreground colour? I tried the following, but
> it just ignored it:
>
> \definecolor[colour_text][r=0.754,g=0.516,b=0.324]
>
> \setupbodyfontenvironment
>  [default]
>  [em=italic,
>   color=colour_text]
>
> I don't want to have to use \startcolor and \stopcolor every time I wish
> this default to be applied.
>
> --
> Kip Warner -- Software Engineer
> OpenPGP encrypted/signed mail preferred
> http://www.thevertigo.com
>
>
> ___
> 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
>
> ___
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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
___

[NTG-context] Text Colour

2011-08-30 Thread Kip Warner
Hey folks,

How do I set the body text foreground colour? I tried the following, but
it just ignored it:

\definecolor[colour_text][r=0.754,g=0.516,b=0.324]

\setupbodyfontenvironment
  [default]
  [em=italic,
   color=colour_text]

I don't want to have to use \startcolor and \stopcolor every time I wish
this default to be applied.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Custom parameters/options for t-vim

2011-08-30 Thread Aditya Mahajan

On Tue, 30 Aug 2011, Andreas Schneider wrote:

I worked with t-vim a bit more and encountered a small problem with the way 
vim handles syntax definitions. Some of them have several modes that get 
activated by setting a variable first. For example the syntax "sh" (shell 
scripts) can be enhanced for bash, ksh, etc.


Example:
let g:is_bash=1
set syntax=sh

Now a line like "export foo=bar" is highlighted differently than when I would 
omit the "let g:is_bash=1".


Therefore I would propose another options to \setupvimtyping to specify 
custom options to be passed to vim. Preferably they should be passed at least 
before the "set syntax=..." line to make sure that this particular case -- 
i.e. switching syntax modes -- works well (which may be the only necessary 
case).


That is certainly possible, but the exact solution depends on how robust 
you want it to be. I can easily add an option so that


\definevimtyping
   []
   [extras={let g:is_bash=1}]

will pass the argument to vim. However, string arguments like

\definevimtyping
   []
   [extras={let g:name="Whatever"}]

will not work. The reason is that, t-vim first creates a command line 
argument that is passed to mtxrun. mtxrun parses the entire expression, 
including all the options, When mtxrun figures out that all the arguments 
were meant for an external program, it recreates the list of arguments (to 
the best of its abilities), and passes the arguments to the shell. Then 
the shell tries to interpret the quotes. I haven't been able to find a 
solution that will work correctly though these three transformations.


Another option is to write everything to an external file and source it as 
a vimrc file. So, you could do:


\definevimtyping
  [...]
  [vimrc=shell]

\startvimrc[shell]
  let g:is_bash = 1
\stopvimrc

This requires more coding, but is much more flexible than the first 
option.


Do all syntax highlighting options work with 0/1 parameters? If so, then 
the first alternative is easiest.


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


[NTG-context] \type{} in bold mode

2011-08-30 Thread Peter Münster
Hello,

When the current font-switch is bold, I would like the verbatim text
inside \type{} to respect the bold mode. What is the right way to teach
\type{} to automatically use bold or not?

Example:

\starttext
\section{Problem:}
{not bold, \type{not bold, ok} // \bf bold, \type{should be bold too}}
\section{Workaround:}
{not bold, \type{not bold, ok} // \bf bold, {\tt is bold too}}
\stoptext

TIA for any help!

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


[NTG-context] Custom parameters/options for t-vim

2011-08-30 Thread Andreas Schneider

Hi,

I worked with t-vim a bit more and encountered a small problem with the 
way vim handles syntax definitions. Some of them have several modes that 
get activated by setting a variable first. For example the syntax "sh" 
(shell scripts) can be enhanced for bash, ksh, etc.


Example:
let g:is_bash=1
set syntax=sh

Now a line like "export foo=bar" is highlighted differently than when I 
would omit the "let g:is_bash=1".


Therefore I would propose another options to \setupvimtyping to specify 
custom options to be passed to vim. Preferably they should be passed at 
least before the "set syntax=..." line to make sure that this particular 
case -- i.e. switching syntax modes -- works well (which may be the only 
necessary case).


--
Best Regards,
Andreas
___
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
___


[NTG-context] problem \vec and gentium font

2011-08-30 Thread Alan Braslau
There seems to be problems with horizontal spacing in math mode
using the gentium font. For example:

\setupbodyfont[gentium]
\starttext
$\vec{r}$
\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
___


[NTG-context] wiki

2011-08-30 Thread Patrick Gundlach
Hi,

the wiki is down, it seems to be an ISP problem. I have contacted them.

Patrick



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