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.

In How can I auto adjust a equation to appear in the entire page? (Scale to equations, is this exist?) I asked how I could change the equation sizes.

Nothing seemed to work. But the problem was I was using latex (Kile) and seeing the the results in dvi. When I used pdflatex as @Hooked proposed I got good results in the pdf.

Why? Why I can't use dvi? Or if I can use dvi, how to do this?

The code below generated this (using latex and dvi):

enter image description here

when the correct is this(possible using pdflatex).):

enter image description here

\documentclass[landscape, 12pt]{report}
\usepackage{graphicx}
\pagestyle{empty}

\begin{document}
\noindent Here is some text
\begin{equation}
\resizebox{1.0 \textwidth}{!}
{
   $ a + b $
}
\end{equation}
and here is some more.
\end{document}
share|improve this question
    
Please include code and images directly within your post so users can see everything related to your problem on the same page. –  doncherry Nov 21 '11 at 23:39
    
I have uploaded the figures and your code. Please confirm that this is correct. Also, there should be no reason to use pastebin for the code as you can include it here directly. –  Peter Grill Nov 21 '11 at 23:55
    
Thx, all edits are welcome. –  GarouDan Nov 22 '11 at 0:32
add comment

1 Answer 1

up vote 5 down vote accepted

I think it is a problem of your DVI-viewer. Perhaps the font problem.

I tried your code with LaTeX, and the dvi-file look quiet similar to your pdf-example (the text inside the resizebox looks is a bit grainy).

I converted the dvi with dvipdfmx (dvi can't be imported here), the result is:

2011-11-21 Edit: Uploaded cropped image

enter image description here

share|improve this answer
    
I use okular in Ubuntu 10.04 lts. Do you recomend another viewer to linux? –  GarouDan Nov 21 '11 at 23:01
    
Sorry. I use windows, so I can't recommend a viewer for Linux. –  knut Nov 21 '11 at 23:05
    
Using evince I got the same visualization. It's a linux problem? –  GarouDan Nov 21 '11 at 23:20
    
@knut: Please use appropriate sized images. The surrounding white space does not add any information. Thanks. –  Peter Grill Nov 21 '11 at 23:59
3  
@GarouDan: IIRC, when the output format is dvi, the graphics package package uses PS code to scale the box. Most dvi viewers do not evaluate the PS code (because it can be time consuming), therefore you do not see any scaling. When you convert the dvi to ps (using dvips) or to pdf (using dvipdfm), the PS code is evaluated, so you will see the correct result. –  Aditya Nov 22 '11 at 0:17
show 3 more comments

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.