ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* yscale not working
@ 2021-06-05 15:59 Hans van der Meer
  2021-06-05 16:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2021-06-05 15:59 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 654 bytes --]

Why is there no effect of the yscale parameter in \externalfigure when the width-parameter is given? In the MWE it is the intention to stretch the height of the figure by a factor of two. But nothing happens. Leaving out the width does stretch the height, but then it becomes too wide.

\starttext
Test \tex{externalfigure} scaling - \ConTeXt\ \contextversion
\blank
\type{\externalfigure[test][width=0.50\textwidth]}\crlf
\externalfigure[test][width=0.50\textwidth]
\blank
\type{\externalfigure[test][width=0.50\textwidth,yscale=2000]}\crlf
\externalfigure[test][width=0.50\textwidth,yscale=2000]
\stoptext




dr. Hans van der Meer



[-- Attachment #1.2.1: Type: text/html, Size: 2031 bytes --]

[-- Attachment #1.2.2: scaling.pdf --]
[-- Type: application/pdf, Size: 40800 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 1188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: yscale not working
  2021-06-05 15:59 yscale not working Hans van der Meer
@ 2021-06-05 16:56 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2021-06-05 16:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 574 bytes --]

Hans van der Meer schrieb am 05.06.2021 um 17:59:
> Why is there no effect of the yscale parameter in \externalfigure when 
> the width-parameter is given? In the MWE it is the intention to 
> stretch the height of the figure by a factor of two. But nothing 
> happens. Leaving out the width does stretch the height, but then it 
> becomes too wide.

Not all scaling and sizing combinations can be used at the same time.

To get both effects you can use \scale to stretch the figure to the 
desired height.

\scale[sy=2]{\externalfigure[...][width=.5\textwidth]}

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1057 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-05 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 15:59 yscale not working Hans van der Meer
2021-06-05 16:56 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).