Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have high resolution images that would be much more effectively executed in landscape format. Is there a way to tell ConTeXt to automatically place images in landscape format to suit their dimensions when fitting them to a page?

share|improve this question
    
Are you talking about inline figures or about floating figures? –  Aditya Mar 26 '12 at 16:10
    
Floating, I believe. I'm using the "externalfigure" command and they are large enough to not reflow. \placefigure[] [fig:i2] {The SDFN Diagram for Interview 2} {\externalfigure[Chapter4/graphs/i2_rot.png][factor=fit,frame=on]} –  Brian Ballsun-Stanton Mar 26 '12 at 19:08

1 Answer 1

up vote 3 down vote accepted

I don't know of any automatic method, but what you can do is to define a custom style for the images that have to be rotated and use it for big images. Example:

\defineexternalfigure [BigImage] [orientation=90]

\starttext

\externalfigure [cow]
\externalfigure [cow] [BigImage]

\stoptext

Whenever you want to include a big image that should be rotated, you add another pair of brackets with the identifier (here [rot] for rotated).

share|improve this answer
    
I would change the name of the identifier to rotated or landscape. Using abbreviated names like rot does not fit in with ConTeXt naming scheme. –  Aditya Apr 11 '12 at 19:00
1  
@Aditya The idea was to emphasize that it's an arbitrary identifier and not a keyword. I changed it to BigImage; that's what describes the nature of the image, rotated would describe how it is displayed. –  Marco Apr 11 '12 at 19:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.