[Tioga-users] Setting absolute size of figure

Bill Paxton paxton at kitp.ucsb.edu
Thu Jun 29 00:33:46 EDT 2006


Hi Ivars,


On Jun 28, 2006, at 8:47 PM, Ivars Finvers wrote:

> Hi,
>
> I'm a new user of Tioga.

Great!

> I would like to create a double column wide figure (with 3
> subfigures) for a paper that I'm writing, but I can't find anything
> in the Tioga documentation regarding setting the absolute width of
> the figure. All the sizing commands are in relative dimensions. The
> standard figure width seems to be about 3-3.5 inches (what sets
> this?), while I would like a width of about 7 inches.
>
> Ideally I would like to specify the figure width and the absolute
> size of the font (so that the final figure text matches the rest of
> the paper).
>
> Any suggestions?

Coming Soon -- that's exactly the stuff I've been working on lately.   
(It would already be released if we hadn't had RubyForge network  
problems for the last week.)

Here's a sneak preview of what's coming:

for top-level page layout
	set_device_pagesize(width, height) # measured in tenths of points
	set_A4_portrait, set_A4_landscape
	set_A5_portrait, set_A5_landscape
	set_B5_portrait, set_B5_landscape
	set_JB5_portrait, set_JB5_landscape
	set_USLegal_portrait, set_USLegal_landscape
	set_USLetter_portrait, set_USLetter_landscape
	set_frame_sides(left, right, top, bottom) # sizes in page coords [0..1]

for TeX preview page and figure size
	tex_preview_paper_width
	tex_preview_paper_height
	tex_preview_hoffset
	tex_preview_voffset
	tex_preview_figure_width
	tex_preview_figure_height

for TeX preview font selection
         tex_preview_fontsize
         tex_preview_fontfamily
         tex_preview_fontseries
         tex_preview_fontshape

I hope this will prove to be adequate to do what you're after -- but  
if not, please let me know.

> Thanks.
>
> Ivars

Your welcome.  And I hope there will be a new release very soon!

However, iIn case you are impatient (like me), here is an example of  
the new Tioga preview preamble.  You can try cut-and-pasting it into  
your own file in your favorite TeX editor if you'd like to give it a  
try.    Note that you can edit the preview TeX file for things like  
the font family or figure or page size, and then "typeset" the new  
version in the TeX editor to see the changes -- no need to rerun  
Tioga for that.  You can play in the TeX editor until you get what  
you want, and then go back later to edit your Tioga program.

You might even want to do the figures in the paper using the preview  
preamble approach rather than using the preview PDF's themselves --  
i.e., instead of doing 'includegraphics' for the PDF's, use the  
preview preamble commands like TiogaFigureSized and build the figures  
"on the fly" from the pieces when you typeset the document.  That way  
you delay the choice of fonts in the figures until the last moment,  
so if something changes you don't need redo the figures and you can  
also feel sure that the font choice is consistent across the full set.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Icon.tex
Type: application/octet-stream
Size: 2449 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/tioga-users/attachments/20060629/81886510/attachment.obj 
-------------- next part --------------


Cheers,
Bill




More information about the Tioga-users mailing list