Re: Insert hspace in subfigure

2001-07-12 Thread Dekel Tsur

On Tue, Jul 10, 2001 at 09:58:02AM +0200, Rainer Dorsch wrote:
> 
> But that does not work, if I want to use it only in one float environment in 
> the document...
> 
> ...I think I will write the latex code.

Then put the following at the beginning of the float you want to change

\let\origsubfigure\subfigure
\renewcommand\subfigure[2][]{%
 \hspace{10bp}\origsubfigure[#1]{#2}\hspace{10bp}%
 }
 

Another option is to put the following in the preamble,

\let\origsubfigure\subfigure
\newcommand\mysubfigure[2][]{%
 \hspace{10bp}\origsubfigure[#1]{#2}\hspace{10bp}%
}

and at the beginning of the float you want to change put
\let\subfigure\mysubfigure




Re: Insert hspace in subfigure

2001-07-10 Thread Rainer Dorsch


But that does not work, if I want to use it only in one float environment in 
the document...

...I think I will write the latex code.

Thanks.

Rainer.

> Rainer Dorsch wrote:
> > 
> > can I do soemthing like this in LyX (without typing plain LaTeX)?
> > 
> > \subfigure[...]{\hspace{10bp}\includegraphics[width=1in]{...}\hspace{10bp}}
> 
> in preamble:
> 
> \let\mysubfigure\subfigure
> \renewcommand\subfigure[2][]{%
>   \hspace{10bp}\mysubfigure[#1]{#2}\hspace{10bp}%
> }
> 
> >  or
> > 
> > \subfigure[...]{\hbox to 92bp{%
> > \hfil
> > \includegraphics[width=1in]{...}%
> > \hfil}}
> 
> nearly the same
> 
> Herbert
> 
> -- 
> http://www.educat.hu-berlin.de/~voss/lyx/
> 





Re: Insert hspace in subfigure

2001-07-09 Thread Herbert Voss

Rainer Dorsch wrote:
> 
> can I do soemthing like this in LyX (without typing plain LaTeX)?
> 
> \subfigure[...]{\hspace{10bp}\includegraphics[width=1in]{...}\hspace{10bp}}

in preamble:

\let\mysubfigure\subfigure
\renewcommand\subfigure[2][]{%
  \hspace{10bp}\mysubfigure[#1]{#2}\hspace{10bp}%
}

>  or
> 
> \subfigure[...]{\hbox to 92bp{%
> \hfil
> \includegraphics[width=1in]{...}%
> \hfil}}

nearly the same

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Insert hspace in subfigure

2001-07-09 Thread Rainer Dorsch


Hello,

can I do soemthing like this in LyX (without typing plain LaTeX)?

\subfigure[...]{\hspace{10bp}\includegraphics[width=1in]{...}\hspace{10bp}}

 or

\subfigure[...]{\hbox to 92bp{%
\hfil
\includegraphics[width=1in]{...}%
\hfil}}

Thanks,

Rainer.