ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: templates
Date: Sun, 25 Apr 1999 21:05:36 +0200	[thread overview]
Message-ID: <37236780.E03F58BC@wxs.nl> (raw)

Hi All,

Sometimes keying in macros can be annoying. For this reason, sometimes
macro packages use | to shorten things, like |word| for verbatim in
macros related to programming source code or manuals. In itself such
macros are not that expressive, but they at least save typing keys. 

Currently in ConTeXt the || is used for compound words and other things
that concern hyphenation (like in this|(|one) where the '(' is to be
taken into account in the break).

The next release will introduce templates, that also use the |. Think
of: 

\definetemplate [b] [style=bold]
\definetemplate [t] [style=type]
\definetemplate [w] [command=\Word]
\definetemplate [c] [style=cap]
\definetemplate [u] [style=type,command=\hyphenatedurl]

something |t:monospaced| and something |b:bold| and
something |w:capitalized| or really |c:cap| but, you||see
the compound words and whatever goes|:|between
and|::|between or|*|between and should hyphenated still
works ok and even colons |t:like here:| come out ok, just
like the next rather fuzzy |u:http://www.pragma-ade.nl|

Maybe it makes sense to predefine some templates, like t (type), e
(emphasys) and b (bold). Maybe even m (math) makes sense. Any ideas are
welcome.  

Furthermore, in a few weeks I will upload context up-to-date 1999-003,
which shows how to do flow charts. (Maybe 1999-004 will  concern math).  
Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


             reply	other threads:[~1999-04-25 19:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-25 19:05 Hans Hagen [this message]
1999-04-26  9:58 ` templates Taco Hoekwater
1999-04-26  9:11   ` templates Hans Hagen

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=37236780.E03F58BC@wxs.nl \
    --to=pragma@wxs.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).