I'm using lyx with a hebrew package (using xetex). It seems that I can't compile when inserting a wrap-figure, and I can't understand why.
And here is the latex code, taken from code preview pane:
% Preview source code
%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[11pt,english,hebrew]{article}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=1cm,bmargin=3cm,lmargin=0.5cm,rmargin=0.5cm,headheight=0.5cm,headsep=0.5cm,footskip=2cm}
\setlength{\parindent}{0bp}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{setspace}
\onehalfspacing
\usepackage{babel}
\begin{document}
\begin{wrapfigure}{o}{0.5\columnwidth}%
\caption{\L{\protect\includegraphics[scale=0.3]{1}}}
\end{wrapfigure}%
\end{document}
Thanks in advance.
\usepackage[latin9,cp1255]{inputenc}
doesn't make any sense, your files can't have two encodings at the same time. Why don't you use xelatex or lualatex for hebrew?