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
On 1/27/06, Hans van der Meer
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
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
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
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
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
participants (5)
-
Hans Hagen
-
Hans van der Meer
-
Radhelorn
-
Taco Hoekwater
-
VnPenguin