Difference between revisions of "Command/scale"

From ConTeXt wiki
(move a few keywords into the syntax description)
 
(18 intermediate revisions by 7 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>scale</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">[[Reference/en/keyword:sx|sx]]</td>
+
     <td class="cmd">[[Command/keyword:sx|sx]]</td>
     <td>[[Reference/en/value:number|number]] </td>
+
     <td>[[Command/value:number|number]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sy|sy]]</td>
+
     <td class="cmd">[[Command/keyword:sy|sy]]</td>
     <td>[[Reference/en/value:number|number]] </td>
+
     <td>[[Command/value:number|number]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:scale|scale]]</td>
+
     <td class="cmd">[[Command/keyword:scale|scale]]</td>
     <td>[[Reference/en/value:number|number]] </td>
+
     <td>[[Command/value:number|number]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:width|width]]</td>
+
     <td class="cmd">[[Command/keyword:width|width]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:height|height]]</td>
+
     <td class="cmd">[[Command/keyword:height|height]]</td>
     <td>[[Reference/en/value:height|height]] </td>
+
     <td>[[Command/value:dimension|dimension]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
Line 36: Line 38:
  
  
== Description ==  
+
== Description ==
 +
Scale <tt>text</tt> using different methods.
  
 
== Comment ==
 
== Comment ==
Also next parameters exist:
 
<pre>
 
lines
 
factor
 
hfactor
 
wfactor
 
grid
 
</pre>
 
  
 +
The amount of scaling is configured by the following parameters:
 +
 +
{|
 +
|'''<tt>lines</tt>'''
 +
|scales to match a number of lines
 +
|-
 +
|'''<tt>factor</tt>'''
 +
|scales by <tt>factor</tt>
 +
|-
 +
|'''<tt>wfactor</tt>''' <!-- How does this factor compare to <tt>scale</tt>? -->
 +
|<!-- width-related? --> appears to scale at a lesser ratio than <tt>factor</tt>
 +
|-
 +
|'''<tt>hfactor</tt>'''
 +
|<!-- height-related? --> appears to scale like <tt>factor</tt>
 +
|-
 +
|'''<tt>grid</tt>'''
 +
|<!-- grid-related? no apparent effect --> ?
 +
|}
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
 
 +
<texcode>
 +
Spam.
 +
\scale[factor=15 ]{Spam.}
 +
\scale[wfactor=15]{Spam.}
 +
\scale[hfactor=15]{Spam.}
 +
\scale[scale=1500]{Spam.}
 +
\scale[lines=2  ]{Egg.}
 +
\scale[grid=6    ]{Sausage.}
 +
Spam.
 +
</texcode>
 +
 
 +
<context>
 +
\setuppapersize[A5]
 +
Spam.
 +
\scale[factor=15 ]{Spam.}
 +
\scale[wfactor=15]{Spam.}
 +
\scale[hfactor=15]{Spam.}
 +
\scale[scale=1500]{Spam.}
 +
\scale[lines=2  ]{Egg.}
 +
\scale[grid=6    ]{Sausage.}
 +
Spam.
 +
</context>
  
 
== See also ==
 
== See also ==
[[cmd:clip|\clip]]
+
* {{cmd|setupscale}}
 +
* {{cmd|setuprotate}}
 +
* {{cmd|clip}}
 +
* {{cmd|rotate}}
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|scale]]
+
[[Category:Command/FiguresImages|scale]]

Latest revision as of 14:42, 15 October 2019

\scale

Syntax (autogenerated)

\scale[...][...=...,...]{...}
[...]name
...=...,...inherits from \setupscale
{...}CONTENT


Syntax

\scale[...,...=...,...]{...}
sx number
sy number
scale number
width dimension
height dimension
{...} text


Description

Scale text using different methods.

Comment

The amount of scaling is configured by the following parameters:

lines scales to match a number of lines
factor scales by factor
wfactor appears to scale at a lesser ratio than factor
hfactor appears to scale like factor
grid ?

Example

Spam.
\scale[factor=15 ]{Spam.}
\scale[wfactor=15]{Spam.}
\scale[hfactor=15]{Spam.}
\scale[scale=1500]{Spam.}
\scale[lines=2   ]{Egg.}
\scale[grid=6    ]{Sausage.}
Spam.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: