Difference between revisions of "Command/setupquote"

From Wiki
Jump to navigation Jump to search
m (Add a hairline. And a bit more of the quotation.)
(insert \nobreak to prenvent unwanted linebreaks after quotationmarks)
Line 17: Line 17:
 
== Description ==  
 
== Description ==  
 
Setup the {{cmd|quote}} and {{cmd|startquote}} environments. See {{cmd|setupdelimitedtext}} for all the parameters that may be adjusted.
 
Setup the {{cmd|quote}} and {{cmd|startquote}} environments. See {{cmd|setupdelimitedtext}} for all the parameters that may be adjusted.
 +
 +
Use {{cmd|nobreak}} at the end of the string defining the left quotationmark in order to prevent linebreaks between word and quotationmark.
  
 
== Example ==
 
== Example ==
Line 25: Line 27:
  
 
\hairline
 
\hairline
\setupquote[left=«, right=», color=red]
+
\setupquote[left=«\nobreak, right=\nobreak», color=red]
 
\startquote Good evening, El-ahrairah, \stopquote\ said Prince Rainbow.
 
\startquote Good evening, El-ahrairah, \stopquote\ said Prince Rainbow.
  

Revision as of 13:18, 3 July 2012

\setupquote

Syntax

\setupquote[...,...=...,...]
[...=...] see \setupdelimitedtext

Description

Setup the \quote and \startquote environments. See \setupdelimitedtext for all the parameters that may be adjusted.

Use \nobreak at the end of the string defining the left quotationmark in order to prevent linebreaks between word and quotationmark.

Example

\enableregime[utf]

\startquote Good evening, El-ahrairah, \stopquote\ said Prince Rainbow.

\hairline
\setupquote[left=«\nobreak, right=\nobreak», color=red]
\startquote Good evening, El-ahrairah, \stopquote\ said Prince Rainbow.

\hairline
\setupquote[location=paragraph]
\startquote Good evening, El-ahrairah, \stopquote\ said Prince Rainbow.

\hairline
\quote{Good evening, El-ahrairah,} said Prince Rainbow. \quote{This is a
great improvement on the marshes of Kelfazin. I see all your does are busy 
digging holes along the bank. Have they dug a hole for you?}

\quote{Yes,} said El-ahrairah. \quote{This hole here belongs to Rabscuttle and
myself. We liked the look of this bank as soon as we saw it.}

\rightaligned{---Richard Adams, {\it Watership Down}}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: