* Re: Verbatim text: intext & colors (mkiv)
@ 2011-03-12 20:01 Reviczky, Adam
0 siblings, 0 replies; 5+ messages in thread
From: Reviczky, Adam @ 2011-03-12 20:01 UTC (permalink / raw)
To: ntg-context
>> I’m Sorry, I missed the intext part. For MkIV you need “location=text” to move the numbers in the text.
Yeah, I just figured it out, though there's still a "% todo: text" in page-lin.mkiv, but it works.
>> Wolfgang
Thanks again.
Adam
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Verbatim text: intext & colors (mkiv)
2011-03-11 19:46 Reviczky, Adam
@ 2011-03-12 18:58 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2011-03-12 18:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 11.03.2011 um 20:46 schrieb Reviczky, Adam:
>>> "Line numbers in the text" as well as
>> Works here with the last beta.
> I'm using the latest beta too. Attached is my PDF, do you get something different?
> I want to have intext numbers (inside the frame), not outside. As I said, works with mkii though.
I’m Sorry, I missed the intext part. For MkIV you need “location=text” to move the numbers in the text.
Wolfgang
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Verbatim text: intext & colors (mkiv)
@ 2011-03-11 19:46 Reviczky, Adam
2011-03-12 18:58 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Reviczky, Adam @ 2011-03-11 19:46 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
>> "Line numbers in the text" as well as
> Works here with the last beta.
I'm using the latest beta too. Attached is my PDF, do you get something different?
I want to have intext numbers (inside the frame), not outside. As I said, works with mkii though.
> /BTEX … /ETEX (for colors) don't work.
> “option=commands” is now “escape=yes”
Thanks, I've tried that too, but had another typo in there.
So that's working now, thanks.
Adam
[-- Attachment #2: intext.pdf --]
[-- Type: application/pdf, Size: 9097 bytes --]
[-- Attachment #3: Type: text/plain, Size: 486 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Verbatim text: intext & colors (mkiv)
2011-03-11 0:33 Reviczky, Adam
@ 2011-03-11 18:00 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2011-03-11 18:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 11.03.2011 um 01:33 schrieb Reviczky, Adam:
> Hi,
>
> When using verbatim text (for source code) in mkiv:
>
> "Line numbers in the text" as well as
Works here with the last beta.
> /BTEX … /ETEX (for colors) don't work.
“option=commands” is now “escape=yes”
Wolfgang
___________________________________________________________________________________
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] 5+ messages in thread
* Verbatim text: intext & colors (mkiv)
@ 2011-03-11 0:33 Reviczky, Adam
2011-03-11 18:00 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Reviczky, Adam @ 2011-03-11 0:33 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
Hi,
When using verbatim text (for source code) in mkiv:
"Line numbers in the text" as well as
/BTEX … /ETEX (for colors) don't work.
It is fine using mkii.
Attached the two minimal examples.
Adam
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: colors.tex --]
[-- Type: text/x-tex; name="colors.tex", Size: 907 bytes --]
\setupcolors[state=start]
\starttext
%% SC colors %%
\definecolor [SCwhite] [r=1.0, g=1.0, b=1.0]
\definecolor [SCblack] [r=0.0, g=0.0, b=0.0]
\definecolor [SCblue] [r=0.0, g=0.0, b=0.75]
\definecolor [SCred] [r=0.75, g=0.0, b=0.0]
\definecolor [SCgrey] [r=0.376, g=0.376, b=0.376]
\definecolor [SCgreen] [r=0.0, g=0.45, b=0.0]
\definecolor[cirmaBlue] [r=.0,g=.2,b=.6]
\defineframedtext
[framedSC]
[framecolor=cirmaBlue,
strut=yes,
offset=2mm,
width=local,
align=right]
\definetyping[SC][option=commands,
tab=2,numbering=line,
before={\startframedSC},
after={\stopframedSC}]
\startSC
/BTEX{\color[SCred] //// an example starting with a comment}/ETEX
/BTEX{\color[SCgrey] ``this is a string''}/ETEX .postln ;
/BTEX{\color[SCgreen] \letterbackslash aSymbol}/ETEX ;
/BTEX{\color[SCblue] ThisClassDoesNotExists}/ETEX ;
\stopSC
\stoptext
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: intext.tex --]
[-- Type: text/x-tex; name="intext.tex", Size: 487 bytes --]
\starttext
\defineframedtext
[framedcode]
[strut=yes,
offset=2mm,
width=7cm,
align=right]
\definetyping[code][numbering=line,
bodyfont=small,
before={\startframedcode},
after={\stopframedcode}]
\setuplinenumbering[location=intext]
\startcode
This is the first line
This is a rather long line that is wrapped, so look how the line numbering is done
Another line
Last line after an empty line
\stopcode
\stoptext
[-- Attachment #4: Type: text/plain, Size: 486 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-12 20:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12 20:01 Verbatim text: intext & colors (mkiv) Reviczky, Adam
-- strict thread matches above, loose matches on Subject: below --
2011-03-11 19:46 Reviczky, Adam
2011-03-12 18:58 ` Wolfgang Schuster
2011-03-11 0:33 Reviczky, Adam
2011-03-11 18:00 ` Wolfgang Schuster
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).