Difference between revisions of "Command/setupscale"

From Wiki
Jump to navigation Jump to search
(new)
 
 
Line 14: Line 14:
 
     <cd:parameter name="scale">
 
     <cd:parameter name="scale">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">this is expressed in permille units, so 1000 = natural size</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="xscale">
 
     <cd:parameter name="xscale">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">this is expressed in permille units, so 1000 = natural size</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="yscale">
 
     <cd:parameter name="yscale">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">this is expressed in permille units, so 1000 = natural size</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="width">
 
     <cd:parameter name="width">
Line 42: Line 42:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="factor">
 
     <cd:parameter name="factor">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>the factor settings take the enclosing environment into account, in some way (?)</cd:paramdoc>
 
       <cd:constant type="fit"></cd:constant>
 
       <cd:constant type="fit"></cd:constant>
 
       <cd:constant type="broad"></cd:constant>
 
       <cd:constant type="broad"></cd:constant>
Line 78: Line 78:
 
     <cd:parameter name="s">
 
     <cd:parameter name="s">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">This is the scale as a simple multiplier, so 1 = natural size</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="sx">
 
     <cd:parameter name="sx">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">This is the scale as a simple multiplier, so 1 = natural size</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="sy">
 
     <cd:parameter name="sy">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">This is the scale as a simple multiplier, so 1 = natural size</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="equalwidth">
 
     <cd:parameter name="equalwidth">
Line 108: Line 108:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<cd:description>
 
</cd:description>
 
</cd:description>
 
<cd:examples></cd:examples>
 
<cd:examples></cd:examples>

Latest revision as of 13:36, 5 November 2021


\setupscale

Summary

The command \setupscale is used to define the general behaviour of \scale.

Settings

\setupscale[...,...][...=...,...]
[...,...]name
scalenumber
xscalenumber
yscalenumber
widthdimension
heightdimension
depthyes no
linesnumber
factorfit broad max min auto default
hfactorfit broad max min auto default
wfactorfit broad max min auto default
maxwidthdimension
maxheightdimension
snumber
sxnumber
synumber
equalwidthdimension
equalheightdimension
gridyes fit height depth halfline

OptionExplanation
scale
number this is expressed in permille units, so 1000 = natural size
xscale
number this is expressed in permille units, so 1000 = natural size
yscale
number this is expressed in permille units, so 1000 = natural size
factor
the factor settings take the enclosing environment into account, in some way (?)
s
number This is the scale as a simple multiplier, so 1 = natural size
sx
number This is the scale as a simple multiplier, so 1 = natural size
sy
number This is the scale as a simple multiplier, so 1 = natural size

Description

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: