* Printing partly bolded verbatim
@ 2009-10-25 21:22 Gerben Wierda
2009-10-26 6:29 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda @ 2009-10-25 21:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
I tried putting
/BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX
in a source that is prettyprinted with mkii (took that idea form the
wiki)
but this does not work (no bold in the pretty printed result). Can
this be done?
I use:
\definetyping[IfSQ][option=color,numbering=line,bodyfont=9pt]
\setuppapersize[A4,landscape][a4,landscape]
\setuptyping[IfSQ][palet=colorpretty]
\setuplayout
[leftmargin=20mm,
leftmargindistance=5mm,
footer=0mm,
header=0mm,
rightmargin=0mm]
\definelayer[header][width=\paperwidth,height=\paperheight]
\defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}]
\setupbackgrounds[page]
[setups={header:margin},background={header,ifsqoverlay}]
\def\typeIfSQfile#1{%
\pagebreak
\startsetups header:margin
\setlayerframed
[header]
[hoffset=\dimexpr\backspace-\leftmarginwidth-\leftmargindistance
\relax,
voffset=\dimexpr\topspace+\headerheight+\headerdistance\relax]
[frame=off,
orientation=90,
width=\leftmarginwidth,
height=\textheight,
align={top,middle}]
{\detokenize{#1}\hfil\pagenumber\hfil \IfSQprojectname, \date}
\stopsetups
\expanded{\typefile{\detokenize{#1}}}}
\typeIfSQfile{Library-procedures/aanroep_kgcpros20.pls.src}
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Printing partly bolded verbatim
2009-10-25 21:22 Printing partly bolded verbatim Gerben Wierda
@ 2009-10-26 6:29 ` Taco Hoekwater
2009-10-26 11:38 ` Gerben Wierda
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2009-10-26 6:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Gerben Wierda wrote:
> I tried putting
>
> /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX
>
> in a source that is prettyprinted with mkii (took that idea form the wiki)
>
> but this does not work (no bold in the pretty printed result). Can this
> be done?
First, if you want to run the options of IfSQ, you need to pass
that as an option to \typefile:
\expanded{\typefile[IfSQ][]{\detokenize{#1}}}}
(I fear this is only document in texshow-web at the moment)
Second, for commands, you need:
\definetyping[IfSQ][option=commands,numbering=line,bodyfont=9pt]
and this conflicts with option=color: it is one or the other.
Third, option=commands does not work for \typefile, you need
to have an explicit \startIfSQ ... \stopIfSQ
Best wishes,
Taco
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Printing partly bolded verbatim
2009-10-26 6:29 ` Taco Hoekwater
@ 2009-10-26 11:38 ` Gerben Wierda
2009-10-26 17:02 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda @ 2009-10-26 11:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 26 Oct 2009, at 07:29, Taco Hoekwater wrote:
> Gerben Wierda wrote:
>> I tried putting
>> /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX
>> in a source that is prettyprinted with mkii (took that idea form
>> the wiki)
>> but this does not work (no bold in the pretty printed result). Can
>> this be done?
>
> First, if you want to run the options of IfSQ, you need to pass
> that as an option to \typefile:
>
> \expanded{\typefile[IfSQ][]{\detokenize{#1}}}}
>
> (I fear this is only document in texshow-web at the moment)
>
> Second, for commands, you need:
>
> \definetyping[IfSQ][option=commands,numbering=line,bodyfont=9pt]
>
> and this conflicts with option=color: it is one or the other.
>
> Third, option=commands does not work for \typefile, you need
> to have an explicit \startIfSQ ... \stopIfSQ
Thanks Taco,
I do not completely understand this, though. You tell me to change
\typefile as well as not to use \typefile. That confuses me.
G
>
> Best wishes,
> Taco
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Printing partly bolded verbatim
2009-10-26 11:38 ` Gerben Wierda
@ 2009-10-26 17:02 ` Taco Hoekwater
0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2009-10-26 17:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
Gerben Wierda wrote:
> On 26 Oct 2009, at 07:29, Taco Hoekwater wrote:
>
>> Gerben Wierda wrote:
>>> I tried putting
>>> /BTEX{\bf IfSQ Fragment selection (minimum length = 60)}/ETEX
>>> in a source that is prettyprinted with mkii (took that idea form the
>>> wiki)
>>> but this does not work (no bold in the pretty printed result). Can
>>> this be done?
>>
>> First, if you want to run the options of IfSQ, you need to pass
>> that as an option to \typefile:
>>
>> \expanded{\typefile[IfSQ][]{\detokenize{#1}}}}
>>
>> (I fear this is only document in texshow-web at the moment)
>>
>> Second, for commands, you need:
>>
>> \definetyping[IfSQ][option=commands,numbering=line,bodyfont=9pt]
>>
>> and this conflicts with option=color: it is one or the other.
>>
>> Third, option=commands does not work for \typefile, you need
>> to have an explicit \startIfSQ ... \stopIfSQ
>
> Thanks Taco,
>
> I do not completely understand this, though. You tell me to change
> \typefile as well as not to use \typefile. That confuses me.
Depends on what you want most: if you want commands, no \typefile,
but inlined verbatim. If you want color, you can use \typefile,
but with extra options.
Best wishes,
Taco
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-26 17:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-25 21:22 Printing partly bolded verbatim Gerben Wierda
2009-10-26 6:29 ` Taco Hoekwater
2009-10-26 11:38 ` Gerben Wierda
2009-10-26 17:02 ` Taco Hoekwater
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).