Difference between revisions of "Command/scale"

From ConTeXt wiki
m (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ")
 
(6 intermediate revisions by 4 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 73: Line 76:
  
 
<context>
 
<context>
\starttext
+
\setuppapersize[A5]
 
Spam.
 
Spam.
 
\scale[factor=15 ]{Spam.}
 
\scale[factor=15 ]{Spam.}
Line 82: Line 85:
 
\scale[grid=6    ]{Sausage.}
 
\scale[grid=6    ]{Sausage.}
 
Spam.
 
Spam.
\stoptext
 
 
</context>
 
</context>
  
<!-- test -->
 
 
== See also ==
 
== See also ==
[[cmd:clip|\clip]]
+
* {{cmd|setupscale}}
 +
* {{cmd|setuprotate}}
 +
* {{cmd|clip}}
 +
* {{cmd|rotate}}
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|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: