[NTG-context] Quotations...

2011-11-15 Thread Willi Egger
Hi,

it looks like there is something wrong with \quote, \quotation and the 
respective setupcommands.

\setupquote[style=slanted] results in no quotation marks and yes, slanted text.
\setupquote[left=(,right=)] results in text between parentheses.
\setupquote[style=slanted,left=(,right=)] results in slanted text, but no 
parentheses.

\setupquotation[style=bold] results in having the texts in \quote{} becoming 
bold instead of the texts that are in \quotation{}.

\setupdelimitedtext [quotation][1][style=bold] does not result in bold text.
\setupdelimitedtext [quotation][1][style=bold,left{[},right={]}] does result in 
text between brackets in \quotation{}, but no bold text.

Please refer to the attached example file.

Kind regards

Willi



test-quotation.tex
Description: Binary data
 



___
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
___

[NTG-context] Quotations

2006-03-31 Thread Gerben Wierda
I use \startquotation and \stopquotation a lot. I would like to  
visually strengthen the quotations because some are pretty lengthy  
and a reader might forget that it is not me that is writing here. I  
have been thinking about applying a light grey background or a border  
of sorts (which should then be open at the top of bottom if the  
quotation flows over a page boundary. Can someone tell me how to do  
this?

Thanks,

G 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Quotations

2006-03-31 Thread Hans Hagen
Gerben Wierda wrote:
 I use \startquotation and \stopquotation a lot. I would like to  
 visually strengthen the quotations because some are pretty lengthy  
 and a reader might forget that it is not me that is writing here. I  
 have been thinking about applying a light grey background or a border  
 of sorts (which should then be open at the top of bottom if the  
 quotation flows over a page boundary. Can someone tell me how to do  
 this?
   
the following example (maybe one of the happy gwtex users can wikify it for 
you) shows the principles 

- cross page backgrounds
- dedicated background graphics that adapt 
- a bit of tuning of margins 

\starttext

\setupcolors[state=start]

\defineblank[myquotation][3*medium]

\definetextbackground
  [myquotation]
  [state=start,
   location=paragraph,
%before={\blank[myquotation]\startnarrower},
%after={\stopnarrower\blank[myquotation]},
   before={\blank[myquotation]},
   after={\blank[myquotation]},
   mp=mpos:par:poem]

\startuseMPgraphic{mpos:par:poem}
  for i = 1 upto nofmultipars :
multipars[i] := multipars[i]
enlarged .5ExHeight
rightenlarged -.5ExHeight;
drawoptions (
dashed evenly
withpen pencircle scaled 1.5pt
) ;
fill multipars[i] withcolor .8white ;
if multilocs[i] = 1 :
draw
llcorner multipars[i] --
ulcorner multipars[i] --
urcorner multipars[i] --
lrcorner multipars[i]
withcolor .5red ;
elseif multilocs[i] = 3 :
draw
ulcorner multipars[i] --
llcorner multipars[i] --
lrcorner multipars[i] --
urcorner multipars[i]
withcolor .5red ;
else :
draw leftboundary  multipars[i] withcolor .5red ;
draw rightboundary multipars[i] withcolor .5red ;
fi ;
  endfor ;
\stopuseMPgraphic

\setupdelimitedtext
  [quotation]
  [leftmargin=.5em,
   rightmargin=.5em,
   before={\starttextbackground[myquotation]},
   after=\stoptextbackground]

\starttext

\input tufte

\startquotation
\dorecurse{10}{\input zapf }
\stopquotation

\input davis

\stoptext

\unprotect

\def\geneq
  {\begingroup
   \setbox\scratchbox\hbox{$=$}%
   \hbox to \wd\scratchbox
 {\copy\scratchbox
  \hskip-\wd\scratchbox
  \hss\incolortrue\localcolortrue\color[white]{\vrule height 
.6\ht\scratchbox depth 0pt width .1ex}\hss}%
   \endgroup}

\geneq

\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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context