ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: alternative setting of comments
Date: Fri, 21 Mar 2003 16:42:33 +0000	[thread overview]
Message-ID: <20030321164233.29427@news.comp.lancs.ac.uk> (raw)
In-Reply-To: <5.1.0.14.1.20030321114856.031f9bc8@server-1>

Hans Hagen said this at Fri, 21 Mar 2003 11:56:35 +0100:

>At 09:35 AM 3/21/2003 +0000, you wrote:
>>I was wondering if anyone who works with the verbatim environments has
>>tried to set comments in a different style. It would be ideal to be able
>>to set comments in \tf text font or some variant. I'm not really
>>interested in colors at the moment.
>
>\starttext
>
>\setuptyping[option=TEX]
>
>\starttyping
>test test %%\ N {\sl test}
>\stoptyping
>
>\stoptext
>
>So, %%\ triggers some kind of mode (see verb-ini.tex for details and
examples)

Thanks, Hans,

I was starting to look at that, and I thought that the mode that it
triggered meant that all I had to do was \naturaltextexttrue (but I still
don't understand your \newif mechanism really.) That turned out to be wrong.

All I needed to do the initial bit of what I wanted was to do this:
\setuptyping[text=yes,ccommand=\rm]

...which was a lot simpler than I expected from the manual ["icommand
(for identifiers),
vcommand (for variables) and ccommand parameters (for the rest)."] 

I *think* I've learned enough from core-ver, verb-ini, verb-pl, and verb-
js that I think I can fake my own mode. The above may well be enough.

>Another way is:
>
>\setuptyping[option=slanted]
>
>\starttyping
>test test <<test>> test
>\stoptyping

I looked at that earlier, and my problem was getting it to trigger in
included \typefile's.

Thanks,
adam



-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl@comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

      reply	other threads:[~2003-03-21 16:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-21  9:35 Adam Lindsay
2003-03-21 10:56 ` Hans Hagen
2003-03-21 16:42   ` Adam Lindsay [this message]

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=20030321164233.29427@news.comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).