Michael Logies wrote:

> At 00:00 19.09.2003 +0200, Herbert Voß wrote:
> 
>>pdflatex has _no_ bugs!
> 
> Herbert,
> 
> this big distance between caption and graphic in floats is a bug for me.
> How would you call it? An option? How to change this?

I would call that a bug in LyX which outputs the wrong latex in this case. A 
fix was committed to the 1.4.x tree this morning by Jürgen Spitzmüller.

How to change? I think that you need to do some editing of the latex file 
created by LyX. Does your file contain stuff like:

...
\begin{figure}

\caption{foo bar}

\begin{center}\includegraphics{your_file}\end{center}
\end{figure}


? If so, change 'center' to 'centering' and the extra space will dissappear. 
So, the question is, how do you do that 'automatically'? The answer is to 
define your own wrapper script for latex, pdflatex, whatever you choose to 
use. I suggest that you change your converters, adding these lines to your 
personal .lyx/preferences file:

\\converter latex dvi "my_latex.sh latex $$i" "latex"
\\converter latex pdf2 "my_latex.sh pdflatex $$i" "latex"

Thereafter, you must make the script 'my_latex.sh' executable:
$ chmod u+x my_latex.sh
and place it in your PATH
$ echo $PATH

What to put in my_latex.sh? Well, the attached file works perfectly.

Hope this helps, but note that this is a work-around. You should test to see 
whether it is still needed in future versions of LyX.

-- 
Angus

Attachment: my_latex.sh
Description: application/shellscript

Reply via email to