On 2009-05-25, Leandro Lucarella wrote:
> Guenter Milde, el 24 de mayo a las 20:34 me escribiste:
>> On 2009-05-21, Leandro Lucarella wrote:
>> > Guenter Milde, el 19 de mayo a las 11:26 me escribiste:

>> >>   Most of the keyval keys used in the graphicx package may also be set
>> >>   using the command \setkeys provided by the keyval package.

>> >> so for your scaling, the default value can be set with::

>> >>   \usepackage{graphicx}
>> >>   \setkeys{Gin}{scale=0.75}

>> > Hi, I've just tried this and it doesn't seems to work. 

It did not work in my tests here too (independent of the graphic format).

However, it works (here) for a global image width:

\documentclass{article}

\usepackage{graphicx}
%\setkeys{Gin}{scale=0.5}
\setkeys{Gin}{width=0.25\textwidth}

\begin{document}

\includegraphics{image.pdf}
\includegraphics[scale=0.5]{image.pdf}

\end{document}


Asking in comp.text.tex brought me a partial explanation:

  might be beause they are handled differently, the width is saved in a
  macro, scale is not.

  have a look in the source in graphicx.sty

So available options for scaling pictures differently in HTML and PDF
via LaTeX would be:

1. set a printing resolution in the image,

2. set a global default image width in the style sheet/preamble with ::

     \usepackage{graphicx}
     \setkeys{Gin}{width=0.25\textwidth}
    
3. specify the width argument using the unit 'px' and specify a global
   resolution in the style sheet/preamble with ::
   
     \pdfpxdimen=1in % 1 DPI
     \divide\pdfpxdimen by 92 % 92 DPI
   
   (substitute 92 with the desired resolution) or any translation to an
   absolute length like e.g. ::

     \pdfpxdimen=0.1mm  % 10 px = 1 mm 


Günter



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to