I resend my previous message about wrapfigure because I forgot to include the following infos:
Lyx version 2.0.5.1
Mac OsX 10.8.2
Problem description follows.

When using wrapfigure with a language different from english you always
end up with the word "Figure xy" under the picture. This is due to the
fact that the tex expansion of the wrap:Figure Lyx instruction is:

***************************************************************************************
%% LyX 2.0.5.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[italian,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{wrapfig}
\usepackage{graphicx}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


\makeatother

\usepackage{babel}
\begin{document}
\selectlanguage{italian}%
\begin{wrapfigure}{O}{0.4\columnwidth}%

\selectlanguage{english}%             <---------------this causes the
problem !!!!!!!

\includegraphics[bb=0bp 0bp 558bp
1383bp,width=0.4\columnwidth]{\string"/Users/federico/Dropbox/Landau/Capitolo
V/figura39\string".eps}\foreignlanguage{italian}{\caption{\selectlanguage{english}%
\selectlanguage{italian}%
}
}\selectlanguage{italian}%
\end{wrapfigure}%
\selectlanguage{english}%

\end{document}
***************************************************************************************
the output would give the line "Figure 1" which is not the correct
expression in italian. If i change the line with the
"\selectlanguage{english}%" instruction to "\selectlanguage{italian}% "
I get the correct word "Figura 1"
Am i wrong somewhere??
Thanks. f.r.

--
    |-------------------------------------------------------|
    |                                                       |
    |   Between the idea and the reality                    |
    |   Between the motion and the act                      |
    |   Falls the Shadow                                    |
    |                        T.S. Eliot, The Hollow Men     |
    |                                                       |
    |-------------------------------------------------------|
----------------------------------------------------------------------
Federico Rapuano                Email: federico.rapu...@mib.infn.it
Dip. di Fisica  G. Occhialini   Tel:   +39 0264482540
Universita' Milano-Bicocca      Fax:   +39 0264482585
Edificio U2
Piazza della Scienza 3
20126 Milano - Italia
----------------------------------------------------------------------



Reply via email to