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

* Re: setuptyping
  2018-09-10  9:22 setuptyping Hans van der Meer
@ 2018-09-10  9:32 ` Taco Hoekwater
  2018-09-10 20:16   ` setuptyping Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2018-09-10  9:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,
Replace your two setuptyping lines with:

  \setuptyping[style=\ttxx]
  \definetyping[XML]
  \setuptyping[XML][option=XML,style=italic]

nothing else needs to change

Best wishes,
Taco


> On 10 Sep 2018, at 11:22, Hans van der Meer <havdmeer@ziggo.nl> wrote:
> 
> <typingsetup.tex>

Taco Hoekwater
Elvenkind BV




___________________________________________________________________________________
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

* Re: setuptyping
  2018-09-10  9:32 ` setuptyping Taco Hoekwater
@ 2018-09-10 20:16   ` Wolfgang Schuster
       [not found]     ` <20180911081351.031b2c81@comcast.net>
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2018-09-10 20:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

To limit the smaller font to \starttyping it should be

     \setuptyping [typing] [style=\ttxx]

or

     \setuptyping [typing] [style=smalltype]

because \starttyping is a generated command like \startXML.

Wolfgang


Taco Hoekwater schrieb am 10.09.18 um 11:32:
> Hi Hans,
> Replace your two setuptyping lines with:
>
>    \setuptyping[style=\ttxx]
>    \definetyping[XML]
>    \setuptyping[XML][option=XML,style=italic]
>
> nothing else needs to change
>
> Best wishes,
> Taco
>
>
>> On 10 Sep 2018, at 11:22, Hans van der Meer <havdmeer@ziggo.nl> wrote:
>>
>> <typingsetup.tex>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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

* Re: setuptyping
       [not found]     ` <20180911081351.031b2c81@comcast.net>
@ 2018-09-11 15:15       ` Wolfgang Schuster
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2018-09-11 15:15 UTC (permalink / raw)
  To: mailing users

Hi Alan,

the difference between both is that smalltype switches to the monospace 
font while small uses the default style (in most cases a serif font).

Wolfgang

Alan Braslau schrieb am 11.09.18 um 16:13:
> Wolfgang,
>
> There is also [style=small]. Is it preferable to use style=smalltype?
>
> Also, there is [style=bigger], which is a bit inconsistent (with [style=small] rather than "smaller"). I would have expected "style=big", especially as the value "big" is already used in other contexts.
>
> Alan
>
> On Mon, 10 Sep 2018 22:16:04 +0200
> Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
>> To limit the smaller font to \starttyping it should be
>>
>>       \setuptyping [typing] [style=\ttxx]
>>
>> or
>>
>>       \setuptyping [typing] [style=smalltype]
>>
>> because \starttyping is a generated command like \startXML.
>>
>> Wolfgang
>>
>>
>> Taco Hoekwater schrieb am 10.09.18 um 11:32:
>>> Hi Hans,
>>> Replace your two setuptyping lines with:
>>>
>>>     \setuptyping[style=\ttxx]
>>>     \definetyping[XML]
>>>     \setuptyping[XML][option=XML,style=italic]
>>>
>>> nothing else needs to change
>>>
>>> Best wishes,
>>> Taco
>>>
>>>   
>>>> On 10 Sep 2018, at 11:22, Hans van der Meer <havdmeer@ziggo.nl> wrote:
>>>>
>>>> <typingsetup.tex>
>>> Taco Hoekwater
>>> Elvenkind BV
>>>
>>>
>>>
>>>
>>> ___________________________________________________________________________________
>>> 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
>>> ___________________________________________________________________________________
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________

___________________________________________________________________________________
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

* Re: setuptyping
  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   ` Hans Hagen
  2 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-01-30 11:39 UTC (permalink / raw)


Taco Hoekwater wrote:
> Hans van der Meer wrote:
>> I get some unexpected results with setuptyping.
>> According to the manual the style-parameter has options normal, 
>> bold,  small, etc.
>
> AFAICS, this has not worked in a very very long time, and it may
> even be a bug in the documentation. But it was easy to fix the code,
> so see attached file with a small change to the \setupcommonverbatim
> routine.
>
> for HansH: I did not want to call \startattributes, so I invented
> a new macro called '\getstylevalue'.
   \def\verbatimfont{\dosetfontattribute{#1}\c!style\normalnoligatures\font}%

so, there is a macro that kind of does what your's does: \dosetfontattribute

i'll apply your patch 

(i need to move the attr code from core-spa to font-att or so) 

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.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: setuptyping
  2006-01-28 11:23 ` setuptyping Taco Hoekwater
  2006-01-28 16:02   ` setuptyping Hans van der Meer
@ 2006-01-30 11:27   ` Hans Hagen
  2006-01-30 11:39   ` setuptyping Hans Hagen
  2 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-01-30 11:27 UTC (permalink / raw)


Taco Hoekwater wrote:
> Hans van der Meer wrote:
>> I get some unexpected results with setuptyping.
>> According to the manual the style-parameter has options normal, 
>> bold,  small, etc.
>
> AFAICS, this has not worked in a very very long time, and it may
> even be a bug in the documentation. But it was easy to fix the code,
> so see attached file with a small change to the \setupcommonverbatim
> routine.
it's indeed a bug in the documentation, and maybe a font parameter is 
better; the reason is that verbatim is one of the trickiest part of 
(any) tex macro package, if only because tex needs to be able to typeset 
tex
>
> for HansH: I did not want to call \startattributes, so I invented
> a new macro called '\getstylevalue'.
i'll have a look at it 

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.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: setuptyping
  2006-01-28 11:23 ` setuptyping Taco Hoekwater
@ 2006-01-28 16:02   ` Hans van der Meer
  2006-01-30 11:27   ` setuptyping Hans Hagen
  2006-01-30 11:39   ` setuptyping Hans Hagen
  2 siblings, 0 replies; 11+ messages in thread
From: Hans van der Meer @ 2006-01-28 16:02 UTC (permalink / raw)


Thanks.

It is of course a minor annoyance, because one can always give the  
font commands themselves.
However, I think it is confusing for newcomers when these things are  
shown in the manual but will not work. One cannot expect from  
newcomers to delve into the code. As a result they might turn away  
from context, which would be a pity. So if you don't mind, I will  
continue to signal such things. Keeps you busy :-)

yours sincerely,
dr. H. van der Meer



On Jan 28, 2006, at 12:23, Taco Hoekwater wrote:

> Hans van der Meer wrote:
>> I get some unexpected results with setuptyping.
>> According to the manual the style-parameter has options normal,  
>> bold,  small, etc.
>
> AFAICS, this has not worked in a very very long time, and it may
> even be a bug in the documentation. But it was easy to fix the code,
> so see attached file with a small change to the \setupcommonverbatim
> routine.
>
> for HansH: I did not want to call \startattributes, so I invented
> a new macro called '\getstylevalue'.
>
> Cheers, taco
> <ma.tex>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: setuptyping
  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 ` Taco Hoekwater
  2006-01-28 16:02   ` setuptyping Hans van der Meer
                     ` (2 more replies)
  2 siblings, 3 replies; 11+ messages in thread
From: Taco Hoekwater @ 2006-01-28 11:23 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

Hans van der Meer wrote:
> I get some unexpected results with setuptyping.
> According to the manual the style-parameter has options normal, bold,  
> small, etc.

AFAICS, this has not worked in a very very long time, and it may
even be a bug in the documentation. But it was easy to fix the code,
so see attached file with a small change to the \setupcommonverbatim
routine.

for HansH: I did not want to call \startattributes, so I invented
a new macro called '\getstylevalue'.

Cheers, taco

[-- Attachment #2: ma.tex --]
[-- Type: application/x-tex, Size: 2278 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: setuptyping
  2006-01-27 15:35 setuptyping Hans van der Meer
  2006-01-28 10:08 ` setuptyping VnPenguin
@ 2006-01-28 10:57 ` Radhelorn
  2006-01-28 11:23 ` setuptyping Taco Hoekwater
  2 siblings, 0 replies; 11+ messages in thread
From: Radhelorn @ 2006-01-28 10:57 UTC (permalink / raw)


Hans van der Meer wrote:
> 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
> 
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

Try \setuptyping[style=\bf] -- always works.


-- 
Radhelorn <radhelorn@mail.ru>

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

* Re: setuptyping
  2006-01-27 15:35 setuptyping Hans van der Meer
@ 2006-01-28 10:08 ` VnPenguin
  2006-01-28 10:57 ` setuptyping Radhelorn
  2006-01-28 11:23 ` setuptyping Taco Hoekwater
  2 siblings, 0 replies; 11+ messages in thread
From: VnPenguin @ 2006-01-28 10:08 UTC (permalink / raw)


On 1/27/06, Hans van der Meer <hansm@science.uva.nl> wrote:
> 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"

Yes, I got the same error here with:

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

               texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
               texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
                   tex : pdfeTeX, 3.141592-1.30.5-2.2 (Web2C 7.5.5)
               context : ver: 2006.01.28 10:09
               cont-en : ver: 2006.01.28 10:09  fmt: 2006.1.28  mes: english

But if you change to

\setuptyping[style={\bf}]

it works fine :-)


--
http://vnoss.org
Vietnamese Open Source Software Community

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