Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Yves Cloutier
Hello Wolfgang, after a few attempts that didn't work I copy-pasted the
example from the wiki:

\definetyping[C][option=commands]\startC
#include 
int main(){
return 0;
/BTEX{\em unreachedCode;}/ETEX}\stopC


This did not work.

However following the example you provided this works perfectly! Many thanks.


On Sun, Mar 15, 2020 at 6:26 AM  wrote:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Source Code with Bolded Keywords (Yves Cloutier)
>2. Re: Source Code with Bolded Keywords (Wolfgang Schuster)
>3. Quizz (Fabrice Couvreur)
>4. Re: Quizz (Henning Hraban Ramm)
>5. METAPOST vardef returning multiple and non-numeric types as a
>   single answer? (Gerben Wierda)
>
>
> ------
>
> Message: 1
> Date: Sat, 14 Mar 2020 11:54:31 -0400
> From: Yves Cloutier 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Source Code with Bolded Keywords
> Message-ID:
>  j5f28-8qv3ykrp+ev+ukrf0q+sp3mabskapxbkvn956...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I am trying to typeset source code for a custom programming language and
> would like to have the keywords in bold text.
>
> I tried following the example found here regarding verbatim displays:
>
> https://www.contextgarden.net/Verbatim_text#Displayed_text
>
> Specifically the C example, however this does not seem to work. No
> formatting is applied to my keywords.
>
> Just wondering if the way to do it has changed or if there are other
> examples I could look at to compare with what I'm doing.
>
> Regards,
>
> yc
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200314/d14dd25f/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Sat, 14 Mar 2020 20:03:34 +0100
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , Yves Cloutier
> 
> Subject: Re: [NTG-context] Source Code with Bolded Keywords
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Yves Cloutier schrieb am 14.03.2020 um 16:54:
> > Hello,
> >
> > I am trying to typeset source code for a custom programming language and
> > would like to have the keywords in bold text.
> >
> > I tried following the example found here regarding verbatim displays:
> >
> > https://www.contextgarden.net/Verbatim_text#Displayed_text
> >
> > Specifically the C example, however this does not seem to work. No
> > formatting is applied to my keywords.
>
> Can you provide a minimal example what you have tried.
>
> > Just wondering if the way to do it has changed or if there are other
> > examples I could look at to compare with what I'm doing.
>
> \starttext
>
> \starttyping[escape=yes]
> This is /BTEX\bf formatted/ETEX text.
> \stoptyping
>
> \starttyping[escape={<<,>>}]
> This is <<\bf formatted>> text.
> \stoptyping
>
> \starttyping[escape={}]
> This is  text.
> \stoptyping
>
> \stoptext
>
> Wolfgang
>
>
> --
>
> Message: 3
> Date: Sun, 15 Mar 2020 10:34:43 +0100
> From: Fabrice Couvreur 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Quizz
> Message-ID:
>  smfmjke3lc_-ptxwhw09g+ultk1...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> With the Coronavirus pandemic, my school will close like all the others. We
> chose to work with Microsoft Teams. I know how to file Math exercises
> written with ConteXt and export to pdf format. Is it possible with ConteXt
> to create interactive Quizz?
> Thank you
> Fabrice
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/17fa9887/attachment-0001.htm
> >
>
> --
>
> Message: 4
> Date: Sun, 15 Mar 2020 10:46:17 +0100
> From: Henning Hraban Ramm 
> To: ntg-context@ntg.nl
>

[NTG-context] Source Code with Bolded Keywords

2020-03-14 Thread Yves Cloutier
Hello,

I am trying to typeset source code for a custom programming language and
would like to have the keywords in bold text.

I tried following the example found here regarding verbatim displays:

https://www.contextgarden.net/Verbatim_text#Displayed_text

Specifically the C example, however this does not seem to work. No
formatting is applied to my keywords.

Just wondering if the way to do it has changed or if there are other
examples I could look at to compare with what I'm doing.

Regards,

yc
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Indenting lists

2020-02-29 Thread Yves Cloutier
Hello,

How does one indent lists to have the same indentation as paragraphs (ex:
\small).

It should apply to all lists, and so I assume I would need to use

\setup
>

The documentation is a bit thin on how I would do this. Any pointers would
be appreciated!

Regards,

yc
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplefonts directory

2020-02-18 Thread Yves Cloutier
Thanks for the quick reply.

I added the line to my .bashrc file then from the command did source
~/.bashrc

I will try with quotes when i get home.

On Tue, Feb 18, 2020, 9:08 AM Vladimir Lomov,  wrote:

> Hello,
> ** Yves Cloutier  [2020-02-18 08:49:37 -0500]:
>
> > Hello,
>
> > I'm on linux and trying to add my fonts directories using
>
> > export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts
>
> > however when I do, I get the following message:
>
> > bash: /home/drifter/.fonts: Is a directory
>
> > I'm not what I'm doing wrong or why it's not liking this. Any pointers
> > would be appreciated.
>
> Use double quotes:
> export OSFONTDIR="/usr/share/fonts/;$HOME/.fonts"
>
> P.S. You may be interested to read bash scripting guide, but in short the
> semicolon is used in shell (bash, zsh) to separate two or more commands in
> a
> row, so your line was interpreted by a shell (I assume that it is bash)
> like
> 1 command: export OSFONTDIR=/usr/share/fonts
> 2 command: $HOME/.fonts
> so indeed the $HOME/.fonts is a directory.
>
> ---
> WBR, Vladimir Lomov
>
> --
> If all else fails, lower your standards.
>
> ___
> 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  : https://bitbucket.org/phg/context-mirror/commits/
> 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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] simplefonts directory

2020-02-18 Thread Yves Cloutier
Hello,

I'm on linux and trying to add my fonts directories using

export OSFONTDIR=/usr/share/fonts/;$HOME/.fonts
>

however when I do, I get the following message:

bash: /home/drifter/.fonts: Is a directory
>

I'm not what I'm doing wrong or why it's not liking this. Any pointers
would be appreciated.
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___