ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [BUG] \type<<...>> not working
@ 2004-12-09 12:03 Nikolai Weibull
  2004-12-13 23:47 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Weibull @ 2004-12-09 12:03 UTC (permalink / raw)


\starttext
\type<<...>>
\stoptext

It doesn't seem to see the end delimiter,
	nikolai

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

* Re: [BUG] \type<<...>> not working
  2004-12-09 12:03 [BUG] \type<<...>> not working Nikolai Weibull
@ 2004-12-13 23:47 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2004-12-13 23:47 UTC (permalink / raw)


Nikolai Weibull wrote:
> \starttext
> \type<<...>>
> \stoptext
> 
> It doesn't seem to see the end delimiter,
> 	nikolai

patch for core-ver

\starttext

\unprotect

\def\dodotypeC<#1% normal/slanted <<... <<...>> ...>>
   {\initializetype
    \verbatimcolor
    \if#1<%
      \@EA\setupalternativetypegrouping
    \else
      \@EA#1%
    \fi}

\bgroup
\catcode`\<=\@@active
\catcode`\>=\@@active
\gdef\setupalternativetypegrouping
   {\catcode`\<=\@@active
    \catcode`\>=\@@active
    \def\doless
      {\ifx<\next
         \def\next
           {\bgroup\switchslantedtype
            \let\next=}%
       \else
         \let\next\lesscharacter
       \fi
       \next}%
    \def\domore
      {\ifx>\next
         \def\next
           {\egroup
            \let\next=}%
       \else
         \let\next\morecharacter
       \fi
       \next}%
    \def<{\futurelet\next\doless}%
    \def>{\futurelet\next\domore}}
\egroup

\protect

\startTEXpage
normal: \par \type{xx<<..xx..<<xx <<xx>> >>..>>xx} \par \type<<....>> \par 
\type<<..<<xx>>..>> \par
normal: \par \type{xx<..xx..<xx <slanted> >..>xx} \par \type{<....>} \par 
\type{<..<xx>..>}
\setuptype[option=slanted]
slanted: \par \type{xx<<..sl..<<xx <<sl>> xx>>..sl..>>xx} \par \type<<..xx..>> 
\par \type<<..<<sl>>..>> \par
slanted: \par \type{xx<<..sl..<xx <sl> xx>..sl..>>xx} \par \type<<..xx..>> \par 
\type<<..<sl>..>> \par
\setuptype[option=none]
none: \par \type{xx<<..xx..<<xx <<xx>> >>..>>xx} \par \type<<....>> \par 
\type<<..<<xx>>..>> \par
\stopTEXpage

\stoptext


-----------------------------------------------------------------
                                           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] 2+ messages in thread

end of thread, other threads:[~2004-12-13 23:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-09 12:03 [BUG] \type<<...>> not working Nikolai Weibull
2004-12-13 23:47 ` 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).