Difference between revisions of "Command/scale"

From ConTeXt wiki
m (Better See Also, narrower example, categorize)
 
(2 intermediate revisions by 2 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 37: Line 39:
  
 
== Description ==
 
== Description ==
Handles scaling of <tt>text</tt> by various methods.
+
Scale <tt>text</tt> using different methods.
  
 
== Comment ==
 
== Comment ==
Additionally, you can set the following parameters.
+
 
 +
The amount of scaling is configured by the following parameters:
  
 
{|
 
{|
|<tt>lines</tt>
+
|'''<tt>lines</tt>'''
 
|scales to match a number of lines
 
|scales to match a number of lines
 
|-
 
|-
|<tt>factor</tt>
+
|'''<tt>factor</tt>'''
 
|scales by <tt>factor</tt>
 
|scales by <tt>factor</tt>
 
|-
 
|-
|<tt>wfactor</tt> <!-- How does this factor compare to <tt>scale</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>
 
|<!-- width-related? --> appears to scale at a lesser ratio than <tt>factor</tt>
 
|-
 
|-
|<tt>hfactor</tt>
+
|'''<tt>hfactor</tt>'''
 
|<!-- height-related? --> appears to scale like <tt>factor</tt>
 
|<!-- height-related? --> appears to scale like <tt>factor</tt>
 
|-
 
|-
|<tt>grid</tt>
+
|'''<tt>grid</tt>'''
 
|<!-- grid-related? no apparent effect --> ?
 
|<!-- grid-related? no apparent effect --> ?
 
|}
 
|}
Line 85: Line 88:
  
 
== See also ==
 
== See also ==
 +
* {{cmd|setupscale}}
 
* {{cmd|setuprotate}}
 
* {{cmd|setuprotate}}
 
* {{cmd|clip}}
 
* {{cmd|clip}}

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: