ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setuptyping
@ 2018-09-10  9:22 Hans van der Meer
  2018-09-10  9:32 ` setuptyping Taco Hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: Hans van der Meer @ 2018-09-10  9:22 UTC (permalink / raw)
  To: NTG ConTeXt


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread
* setuptyping
@ 2006-01-27 15:35 Hans van der Meer
  2006-01-28 10:08 ` setuptyping VnPenguin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Hans van der Meer @ 2006-01-27 15:35 UTC (permalink / raw)


I get some unexpected results with setuptyping.
According to the manual the style-parameter has options normal, bold,  
small, etc.
But if I use them I get the option back.
The only thing that seems to work is style=command.

Example:
\setuptyping[style=bold]
\starttext
\starttyping
abcd
\stoptyping
\stoptext

Results in typeset text "boldabcd"

yours sincerely,
dr. H. van der Meer

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-09-11 15:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10  9:22 setuptyping Hans van der Meer
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

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).