From: Hans van der Meer <havdmeer@ziggo.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: setuptyping
Date: Mon, 10 Sep 2018 11:22:48 +0200 [thread overview]
Message-ID: <2770F2DB-9876-42FC-88F2-70ACCB8DB6BF@ziggo.nl> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 307 bytes --]
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping.
That doesn’t work as I expect or I misinterpret something.
The minimal example shows that in the following code there is no difference between using \startXML or \starttyping.
dr. Hans van der Meer
[-- Attachment #1.2.1: Type: text/html, Size: 524 bytes --]
[-- Attachment #1.2.2: typingsetup.pdf --]
[-- Type: application/pdf, Size: 20026 bytes --]
[-- Attachment #1.2.3: Type: text/html, Size: 208 bytes --]
[-- Attachment #1.2.4: typingsetup.tex --]
[-- Type: application/octet-stream, Size: 863 bytes --]
% Test \setuptyping
\setuptyping[style=\ttxx]
\setuptyping[option=XML,style=italic]
\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
Testing \ConTeXt macro\ \tex{setuptyping}
\blank
(1) \tex{setuptyping[style=\ttxx]}\crlf
(2) \tex{setuptyping[option=XML,style=italic]}
\blank
Typing with default style:
\starttyping
<notes>
<note> ... </note>
<note> ... </note>
</notes>
\stoptyping
\blank
Typing with XML style:
\startXML
<notes>
<note> ... </note>
<note> ... </note>
</notes>
\stopXML
\blank
Switching \tex{setuptyping}'s
\blank
\setuptyping[option=XML,style=italic]
\setuptyping[style=\ttxx]
Typing with default style:
\starttyping
<notes>
<note> ... </note>
<note> ... </note>
</notes>
\stoptyping
\blank
Typing with XML style:
\startXML
<notes>
<note> ... </note>
<note> ... </note>
</notes>
\stopXML
\stoptext
[-- Attachment #1.2.5: Type: text/html, Size: 1168 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________
next reply other threads:[~2018-09-10 9:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 9:22 Hans van der Meer [this message]
2018-09-10 9:32 ` setuptyping Taco Hoekwater
2018-09-10 20:16 ` setuptyping Wolfgang Schuster
[not found] ` <20180911081351.031b2c81@comcast.net>
2018-09-11 15:15 ` setuptyping Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2006-01-27 15:35 setuptyping Hans van der Meer
2006-01-28 10:08 ` setuptyping VnPenguin
2006-01-28 10:57 ` setuptyping Radhelorn
2006-01-28 11:23 ` setuptyping Taco Hoekwater
2006-01-28 16:02 ` setuptyping Hans van der Meer
2006-01-30 11:27 ` setuptyping Hans Hagen
2006-01-30 11:39 ` setuptyping 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=2770F2DB-9876-42FC-88F2-70ACCB8DB6BF@ziggo.nl \
--to=havdmeer@ziggo.nl \
--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).