[NTG-context] \defineframedtext take precedence over \defineframed and add extra padding
In the following example \defineframedtext take precedence over \defineframed, and also I don't know how I can get rid of the extra padding (looks like a good \baselineskip before the text). (What I want is the first output, but with the readability of \startXY \stopXY) As for the take precedence, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. (By the way, the construction \blueframed{\startformula hello\stopformula \input knuth} behave badly.) % \starttext \setupcolor[x11] \defineframed [blueframed] [width=local,frame=off,rulethickness=2mm,backgroundoffset=1mm,% align=yes,background=color,backgroundcolor=lightblue,% corner=round,radius=1.5mm] \blueframed{\input{knuth}} \defineframedtext [blueframed] [width=local,frame=on,%rulethickness=2mm,backgroundoffset=1mm,% margin=no, align=yes,background=color,backgroundcolor=lightblue,% corner=round,radius=1.5mm] \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \stoptext % Regards, Chris ___ 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 ___
Re: [NTG-context] \defineframedtext take precedence over \defineframed and add extra padding
Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy elspethmcgullicu...@gmail.com: In the following example \defineframedtext take precedence over \defineframed, and also I don't know how I can get rid of the extra padding (looks like a good \baselineskip before the text). (What I want is the first output, but with the readability of \startXY \stopXY) As for the take precedence, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. \usemodule[annotation] \defineannotation [blueframed] [alternative=command, command=\BlueFramedCommand] \define[2]\BlueFramedCommand {\BlueFramed{#2}} \defineframed [BlueFramed] [width=local, frame=off, rulethickness=2mm, backgroundoffset=1mm, align=yes, background=color, backgroundcolor=lightblue, corner=round, radius=1.5mm] \setupcolor[x11] \starttext \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \stoptext 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 ___
Re: [NTG-context] \defineframedtext take precedence over \defineframed and add extra padding
On Mon, Jan 13, 2014 at 8:39 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy elspethmcgullicu...@gmail.com: In the following example \defineframedtext take precedence over \defineframed, and also I don't know how I can get rid of the extra padding (looks like a good \baselineskip before the text). (What I want is the first output, but with the readability of \startXY \stopXY) As for the take precedence, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. \usemodule[annotation] \defineannotation [blueframed] [alternative=command, command=\BlueFramedCommand] \define[2]\BlueFramedCommand {\BlueFramed{#2}} \defineframed [BlueFramed] [width=local, frame=off, rulethickness=2mm, backgroundoffset=1mm, align=yes, background=color, backgroundcolor=lightblue, corner=round, radius=1.5mm] \setupcolor[x11] \starttext \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \stoptext Thanks, it works. Chris 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 ___ ___ 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 ___