ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Yves Cloutier <yves.cloutier@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ntg-context Digest, Vol 189, Issue 28
Date: Sun, 15 Mar 2020 11:09:34 -0400	[thread overview]
Message-ID: <CAGW=J5e5BTjOrdcOVMuFhqMDOfXjS7-y8QXyjc-HojSFfvx4PQ@mail.gmail.com> (raw)
In-Reply-To: <mailman.1385.1584267748.1332.ntg-context@ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 7675 bytes --]

Hello Wolfgang, after a few attempts that didn't work I copy-pasted the
example from the wiki:

\definetyping[C][option=commands]\startC
#include <stdio.h>
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 <ntg-context-request@ntg.nl> 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-request@ntg.nl
>
> You can reach the person managing the list at
>         ntg-context-owner@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 <yves.cloutier@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Source Code with Bolded Keywords
> Message-ID:
>         <CAGW=
> J5f28-8QV3yKrP+ev+UkRf0Q+SP3MAbskaPxbkvn956GZw@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 <wolfgang.schuster.lists@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>, Yves Cloutier
>         <yves.cloutier@gmail.com>
> Subject: Re: [NTG-context] Source Code with Bolded Keywords
> Message-ID: <c1c6f324-476c-49e5-da9b-2b2dcecdde3f@gmail.com>
> 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 <!--\bf formatted--> text.
> \stoptyping
>
> \stoptext
>
> Wolfgang
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 15 Mar 2020 10:34:43 +0100
> From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Quizz
> Message-ID:
>         <CACyK-eqU1Yk+bdw2Z0J=
> sMFmjKe3Lc_-PTxwhW09g+uLTk1Z3A@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 <texml@fiee.net>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Quizz
> Message-ID: <3afc49c6-f279-49a7-2ef4-f13dacf295cf@fiee.net>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 15.03.20 um 10:34 schrieb Fabrice Couvreur:
> > 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?
>
> You can create forms that work in Adobe Reader, but Radiobuttons are
> broken in ConTeXt, and if you want to add validation, then good luck
> getting JavaScript functions to work.
>
> See https://wiki.contextgarden.net/Widgets
>
> It much easier to use web technology (HTML forms).
>
> Best, Hraban
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 15 Mar 2020 11:22:25 +0100
> From: Gerben Wierda <gerben.wierda@rna.nl>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] METAPOST vardef returning multiple and
>         non-numeric types as a single answer?
> Message-ID: <1AFD4799-65FF-4574-A9B5-40BA3C532955@rna.nl>
> Content-Type: text/plain; charset="utf-8"
>
> I would like a vardef macro to return the pair of a picture and a bounding
> box. I don't want to use the setbound operator, because as soon as I do
> that, I cannot access the components of the picture anymore with pathpart.
>
> I found metapost vardef returning multiple values <
> https://tex.stackexchange.com/questions/448740/metapost-vardef-returning-multiple-values>
> on StackExchange but that is about returning multiple values of the same
> numeric type. Is it possible to have vardef return a set of (picture, path)
> or (picture, picture) in some way? If not, I need to make two vardef macros
> for each result type.
>
> I tried many things, amongst which:
>
> vardef Foo( expr w, h)
> % define pic
> pic
> end group,begingroup
> % define pic
> pic
> endif
>
> picture foo[]; foo = Foo( 2, 4);
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/3c8000db/attachment.htm
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
>
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
> ------------------------------
>
> End of ntg-context Digest, Vol 189, Issue 28
> ********************************************
>

[-- Attachment #1.2: Type: text/html, Size: 12746 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

       reply	other threads:[~2020-03-15 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1385.1584267748.1332.ntg-context@ntg.nl>
2020-03-15 15:09 ` Yves Cloutier [this message]
2020-03-15 16:40   ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGW=J5e5BTjOrdcOVMuFhqMDOfXjS7-y8QXyjc-HojSFfvx4PQ@mail.gmail.com' \
    --to=yves.cloutier@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).