Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -translate- options and SJ .eps figures


From   "Jeff S. Pitblado" <[email protected]>
To   [email protected]
Subject   Re: st: -translate- options and SJ .eps figures
Date   Fri, 16 Aug 2002 12:34:03 -0500

On Fri, Aug 16, 2002 at 01:13:50PM +0100, Roger Newson wrote:
> Two minor queries re -translate-. As I understand it, SJ is made using SJ 
> LaTeX with figures made mostly from Encapsulated PostScript (.eps) files. 
> The size of these figures, plus the fact that SJ like to have the .gph 
> files, suggests that SJ control the size of these figures at the 
> -translate- level, using the -mag-, -xmag-, -ymag-, -xsize- and/or -ysize- 
> options. (Correct me if I'm wrong.) I would guess that these are set in the 
> region of -mag 67-.

> My queries are:

> 1. Does SJ (and/or the manuals) have an official house style regarding 
> magnification of .eps figures? (I would like to be able to preview my SJ 
> insert drafts with the right magnification.)

For figures that include only one graph we use -xsize(3.12)- and
-ysize(2.392)-.  These can be set in the style for the gph2eps translator by

	. translator set gph2ezp xsize 3.12
	. translator set gph2ezp ysize 2.392

or they can be used in the -translate- command such as

	. translate graph.gph graph.eps, xsize(3.12) ysize(2.392)

For figures that include multiple graphs, the above numbers are hand adjusted
according to the number of rows and columns.

> 2. More generally, are the current -translate- options stored anywhere 
> accessible to ordinary Stata-level programmers? I ask because I would like 
> to write programs that change them temporarily, and then restore the 
> pre-existing options.

If I understand the question correctly, the answer is no.  However, each
translator has its own "settings" that can be changed using -translator set-.
These "settings" can be overridden, an example of this is the -translate-
command above.

--Jeff 
  [email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index