From: Guy Worthington <guyw@multiline.com.au>
Subject: Why isn't my space a space?
Date: 23 Apr 2003 17:08:42 +0800 [thread overview]
Message-ID: <u7k9lvaw5.fsf_-_@multiline.com.au> (raw)
Hello,
I'm trying use pretty printing Java inline. To get my keywords in a
slanted typeface, I've found out that I need a space before and after
the statement I'm typesetting.
I'm trying to automate the space in a macro \Java[], but am having no
success. I believe I'm typesetting a space before and after my
statement, but the space isn't acceptable to the \type macro:
-----
\definetype [typeJV] [option=JV,palet=graypretty,style=\ttx,icommand=\sl]
\def\Java[#1]{\typeJV{ #1 }}
\setupcolors[state=start]
\starttext
This statement should have inserted spaces, in order to trigger the
slanted behaviour in the `import' keyword:
\blank[medium]
The ``\Java[import java.io.File;]'' statement
\blank[big]
This is the type of typesetting I would like to automate:
\blank[medium]
The ``\hskip-0.5em\typeJV{ import java.io.File; }\nospace{}'' statement.
\stoptext
-----
reply other threads:[~2003-04-23 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=u7k9lvaw5.fsf_-_@multiline.com.au \
--to=guyw@multiline.com.au \
--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).