Difference between revisions of "Command/setupquote"

From Wiki
Jump to navigation Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
 
(8 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupquote</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 10: Line 12:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Command/keyword:before|before]]</td>
+
     <td class="cmd">[...=...]</td>
    <td>[[Command/value:command|command]] </td>
+
     <td>see {{cmd|setupdelimitedtext}}</td>
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[[Command/keyword:after|after]]</td>
 
    <td>[[Command/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[[Command/keyword:style|style]]</td>
 
    <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
     <td class="cmd">[[Command/keyword:color|color]]</td>
 
    <td>[[Command/value:name|name]] </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[[Command/keyword:location|location]]</td>
 
    <td>[[Command/value:text|text]] [[Command/value:margin|margin]] </td>
 
 
   </tr>
 
   </tr>
 
</table>
 
</table>
  
 +
== Description ==
 +
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 ==
 +
<context source=yes>
 +
\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.
  
== Description ==
+
\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.}
  
== Example ==
+
\rightaligned{---Richard Adams, {\it Watership Down}}
<!-- Please fill in an example if you can -->
+
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setupdelimitedtext}}
 +
* {{cmd|quote}}
 +
* {{cmd|startquote}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 46: Line 56:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|setupquote]]
+
[[Category:Command/Delimited text|setupquote]]

Latest revision as of 20:02, 13 October 2019

\setupquote

Syntax (autogenerated)

\setupquote[...=...,...]
...=...,...inherits from \setupdelimitedtext


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: