Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Paul Smith writes:
 Dear All

 How can one have a caption horizontally as long as the width of the
 picture?

One way is to use LyX's subfigure caption that is located under Extra 
Options of your Graphics object, but this introduces perhaps unwanted 
side effects (you gain a sub-figure, which is numbered (a), (b), (c), 
etc. by default). (If this interests you, take a look at the package 
subfig, which offers numerous options.)

Another quick way which should work...
1. Create your figure
2. Add graphic
3. Note/set width of graphic
4. Delete default Figure #
5. Add a LyX minipage below graphic (inside float)
6. Inside minipage using ERT add \caption{Your caption goes here...}
7. Set width of minipage to same as graphic (right-click inside 
minipage)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Herbert Voss

Paul Smith wrote:


How can one have a caption horizontally as long as the width of the picture?


http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width
http://www.dante.de/CTAN//help/Catalogue/entries/hvfloat.html

Herbert




Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Kevin Pfeiffer writes:
 6. Inside minipage using ERT 
 add \caption{Your caption goes here...}

For the sake of thoroughness...

\caption[short caption here for list of figures]{Long caption here}

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Herbert Voss writes:
 http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width

Something wrong with the domain name here, I think...



-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Herbert Voss

Kevin Pfeiffer wrote:

Herbert Voss writes:


http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width


copy and paste without thinking ...
http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width


Something wrong with the domain name here, I think...



Herbert




Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Paul Smith
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote:
 http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width

 copy and paste without thinking ...
 http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width

  Something wrong with the domain name here, I think...

I thank Kevin and Herbert for the useful help.

Paul


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Enrico Forestieri
Herbert Voss [EMAIL PROTECTED] writes:

 http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width

Very cool, Herbert. I have LyXfied a bit your example ;-)

--
Enrico


#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\newsavebox{\gBox}
\renewenvironment{figure}
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
\newcommand{\myFigure}[1]{%
  \sbox{\gBox}{#1}
  \centering
  \begin{minipage}{\wd\gBox}
\usebox{\gBox}
}
\end_preamble
\language english
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard
{
\end_inset 


\begin_inset Graphics
filename rose.eps
width 4cm

\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption


\begin_inset LatexCommand \label{fig:bild}

\end_inset 

Bildunterschrift, die auch in jedem Fall lang genug ist
\end_inset 


\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard
{
\end_inset 


\begin_inset Graphics
filename rose.eps
rotateAngle 30

\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption

Bildunterschrift, die auch in jedem Fall lang genug ist
\end_inset 


\the_end







Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Paul Smith writes:
 Dear All

 How can one have a caption horizontally as long as the width of the
 picture?

One way is to use LyX's subfigure caption that is located under Extra 
Options of your Graphics object, but this introduces perhaps unwanted 
side effects (you gain a sub-figure, which is numbered (a), (b), (c), 
etc. by default). (If this interests you, take a look at the package 
subfig, which offers numerous options.)

Another quick way which should work...
1. Create your figure
2. Add graphic
3. Note/set width of graphic
4. Delete default Figure #
5. Add a LyX minipage below graphic (inside float)
6. Inside minipage using ERT add \caption{Your caption goes here...}
7. Set width of minipage to same as graphic (right-click inside 
minipage)

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Herbert Voss

Paul Smith wrote:


How can one have a caption horizontally as long as the width of the picture?


http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width
http://www.dante.de/CTAN//help/Catalogue/entries/hvfloat.html

Herbert




Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Kevin Pfeiffer writes:
 6. Inside minipage using ERT 
 add \caption{Your caption goes here...}

For the sake of thoroughness...

\caption[short caption here for list of figures]{Long caption here}

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Herbert Voss writes:
 http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width

Something wrong with the domain name here, I think...



-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Herbert Voss

Kevin Pfeiffer wrote:

Herbert Voss writes:


http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width


copy and paste without thinking ...
http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width


Something wrong with the domain name here, I think...



Herbert




Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Paul Smith
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote:
 http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width

 copy and paste without thinking ...
 http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width

  Something wrong with the domain name here, I think...

I thank Kevin and Herbert for the useful help.

Paul


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Enrico Forestieri
Herbert Voss [EMAIL PROTECTED] writes:

 http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width

Very cool, Herbert. I have LyXfied a bit your example ;-)

--
Enrico


#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\newsavebox{\gBox}
\renewenvironment{figure}
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
\newcommand{\myFigure}[1]{%
  \sbox{\gBox}{#1}
  \centering
  \begin{minipage}{\wd\gBox}
\usebox{\gBox}
}
\end_preamble
\language english
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard
{
\end_inset 


\begin_inset Graphics
filename rose.eps
width 4cm

\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption


\begin_inset LatexCommand \label{fig:bild}

\end_inset 

Bildunterschrift, die auch in jedem Fall lang genug ist
\end_inset 


\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard
{
\end_inset 


\begin_inset Graphics
filename rose.eps
rotateAngle 30

\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption

Bildunterschrift, die auch in jedem Fall lang genug ist
\end_inset 


\the_end







Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Paul Smith writes:
> Dear All
>
> How can one have a caption horizontally as long as the width of the
> picture?

One way is to use LyX's subfigure caption that is located under Extra 
Options of your Graphics object, but this introduces perhaps unwanted 
side effects (you gain a sub-figure, which is numbered (a), (b), (c), 
etc. by default). (If this interests you, take a look at the package 
"subfig", which offers numerous options.)

Another quick way which should work...
1. Create your figure
2. Add graphic
3. Note/set width of graphic
4. Delete default "Figure #"
5. Add a LyX minipage below graphic (inside float)
6. Inside minipage using ERT add "\caption{Your caption goes here...}"
7. Set width of minipage to same as graphic (right-click inside 
minipage)

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Herbert Voss

Paul Smith wrote:


How can one have a caption horizontally as long as the width of the picture?


http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width
http://www.dante.de/CTAN//help/Catalogue/entries/hvfloat.html

Herbert




Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Kevin Pfeiffer writes:
> 6. Inside minipage using ERT 
> add "\caption{Your caption goes here...}

For the sake of thoroughness...

\caption[short caption here for list of figures]{Long caption here}

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Kevin Pfeiffer
Herbert Voss writes:
> http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width

Something wrong with the domain name here, I think...



-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Herbert Voss

Kevin Pfeiffer wrote:

Herbert Voss writes:


http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width


copy and paste without thinking ...
http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width


Something wrong with the domain name here, I think...



Herbert




Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Paul Smith
On 2/2/06, Herbert Voss <[EMAIL PROTECTED]> wrote:
> >>http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width
>
> copy and paste without thinking ...
> http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width
>
> > Something wrong with the domain name here, I think...

I thank Kevin and Herbert for the useful help.

Paul


Re: Caption horizontally as long as the width of the picture

2006-02-02 Thread Enrico Forestieri
Herbert Voss <[EMAIL PROTECTED]> writes:

> http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width

Very cool, Herbert. I have LyXfied a bit your example ;-)

--
Enrico


#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\newsavebox{\gBox}
\renewenvironment{figure}
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
\newcommand{\myFigure}[1]{%
  \sbox{\gBox}{#1}
  \centering
  \begin{minipage}{\wd\gBox}
\usebox{\gBox}
}
\end_preamble
\language english
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard
{
\end_inset 


\begin_inset Graphics
filename rose.eps
width 4cm

\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption


\begin_inset LatexCommand \label{fig:bild}

\end_inset 

Bildunterschrift, die auch in jedem Fall lang genug ist
\end_inset 


\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard
{
\end_inset 


\begin_inset Graphics
filename rose.eps
rotateAngle 30

\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption

Bildunterschrift, die auch in jedem Fall lang genug ist
\end_inset 


\the_end