# Changes

,  8 June
m
no edit summary
< [[Visuals]]

==Basic commands==
Here is how to get indented quotations set in small type:
<texcodecontext source="yes">%\setupdelimitedtext[blockquote][style={\setupbodyfont[9ptsmall]}]\setupdelimitedtext[blockquote][style=\slx,before={\setupinterlinespace[line=2.4ex]}]
Hello
\startblockquote
\input knuth
%\par
\stopblockquote
Hello
</context>

The {{cmd|par}} inside the block quotation keeps TeX's paragraph builder happy. Otherwise the last paragraph in the block quotation gets the wider linespacing of the outside environment rather than the narrower linespacing appropriate to the smaller text; Alternately, one can add <code>before={\setupinterlinespace}</code>, as shown above.

Using {{code|1=style=small}} does not work as well as <code>style={\setupbodyfont[small]}</code> or <code>style={\setupbodyfont[9pt]}</code>, because {{code|small}} shrinks only the font size but not the linespacing. Alternately, by using <code>before={\setupinterlinespace}</code>, one can then use commands such as <code>style=\tfx</code>, setting the size relatively rather than absolutely, advantageous for nestling and for inclusion in footnotes, for example.

== Pull quotes ==

Pull quotes can be implemented by floating a framed text. For example, the following definitions set up pull quotes with no border:

<texcode>

\definefloat[pullquote][pullquotes] % Define a new type of float
\setupcaption[pullquote][location=none] % Set it to have no captions
\defineframedtext[pullquote][frame=off] % Define a new type of framed text with no visible frame

</texcode>

You can then drop a pull quote in your main text like this:

<texcode>

\placepullquote[right]{}{
\startpullquote[width=4cm]
\tfc “All work and no play makes Jack a dull boy.”
\stoppullquote}

</texcode>

== Quotes symbols ==

=== Single quote ===

For short quotes you can switch the language (and depending setups like quotation marks) with the [[Languages#Language_tags|language tag]] like <tt>{</tt>{{cmd|de}} <tt>das ist Deutsch}</tt>.
If you switch between longer sections or if the two-letter language code has some other meaning (like {{cmd|sl}} stands for <i>slanted</i> and can't be used to start Slovenian) you should use {{cmd|language}}<tt>[sl]</tt>.

=== Quotesingle ===

‘quotesingle’ (Unicode character 0x0027) is the unsexed single quotation mark (or quote, or apostrophe) character '. Putting this character in a ConTeXt (or other TeX) source file will usually result in the the ’ (quoteright) character in the output. Usually, this is what you want: it lets you use the more easily typed ' as an apostrophe in the source file, and have it typeset as the more aesthetically pleasing ’.

However, this causes problems if you actually want the ' character itself in the output. In MkIV, for OpenType fonts, the substitution is controlled by a non-standard OTF feature called trep (short for ‘TeX replacements’). So we can get the ' character throughout the document by ensuring that this feature is switched off in the defaults:

<texcode>
\definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=no,mode=node]
\starttext
A straight quotation mark: '
\stoptext
</texcode>
The But perhaps you want TeX replacement on by default so you can keep getting pretty apostrophes, and you just need the quotesingle character occasionally. In this case you can define a special feature set and activate it only when necessary. <texcode>\definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=yes,mode=node]\definefontfeature[notrep][trep=no]\def\realquotesingle{{cmd|par\addfs{notrep}'}} inside the block \starttextA straight quotation mark: \realquotesingle .A normal quotation keeps TeXmark: 's paragraph builder happy. Otherwise the last paragraph in the block quotation gets the wider linespacing of the outside environment rather than the narrower linespacing appropriate \stoptext</texcode> Note that ‘mode=node’ is necessary for this to work. Also, as stated, this technique applies only to nineOTF fonts under MkIV.See also [http://www.ntg.nl/pipermail/ntg-point textcontext/2011/thread.html#57834 this mailing list discussion]
Using {{code|1clean up between wiki pages =style=small}} does not work as well as <code>style={\setupbodyfont[9pt]}</code> or <code>style={\setupbodyfont[10pt]}</code>merge with Quotes, because {{code|small}} shrinks only the font size but not the linespacing.in symbol part
{{Getting started navbox}}[[Category:Basics]]