Hi,

On Sat, 8 Jun 2002, Herbert Voss wrote:
> 
> this is from graphicx.sty
> 
> \define@key{Gin}{origin}[c]{%
>    \def\Gin@erotate{\Grot@box@kv[origin=#1]}}
> 
> which means, that the default is origin=c. Why should there be a 
> difference when running without this option?
> 

This just means that 

includegraphics[origin] == includegraphics[origin=c]

The difference with this patch is caused by this line from insetgrpahics.C

  if (!params().rotateOrigin.empty()) { 
      options << "  origin=" << params().rotateOrigin[0];

if rotateOrigin="" then the latex code is

includegraphics[]

which is treated differently by graphicx.sty

I'm no TEX guru, so I can't tell you exactly what the difference is, but
it seems not specifying origin uses \Grot@box@std while specifying origin
uses \def\Grot@box@kv

\def\rotatebox{%
  \@ifnextchar[\Grot@box@kv\Grot@box@std}
\def\Grot@box@std#1#2{%
  \Grot@setangle{#1}%
  \setbox\z@\hbox{{#2}}%
  \Grot@x\z@
  \Grot@y\z@
  \Grot@box}
\def\Grot@box@kv[#1]#2#3{%
  \@begin@tempboxa\hbox{#3}%
    \Grot@x\width \divide\Grot@x\tw@
    \Grot@y\height \advance\Grot@y-\depth \divide\Grot@y\tw@
    \setkeys{Grot}{#1}%
    \setbox\z@\box\@tempboxa
    \Grot@setangle{#2}%
    \Grot@box
  \@\Grend@tempboxa}


hope this helps. I can tell you that the results definitely looks
different.


John.

Reply via email to