0

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.

Here are the errors: enter image description here

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.

11
  • 1
    hebrew (bidi) is complex and wrapfigure too. Without a small, complete example problems are very difficult to impossible to debug. Dec 13, 2022 at 21:35
  • @UlrikeFischer Can you specify what counts as complete? The document is empty except this figure, so it's isolated. Is there any more logs I should add to the OP?
    – sadcat_1
    Dec 13, 2022 at 21:43
  • A complete document start with \documentclass and ends with \end{document} and can be copied and then compiled unchanged. Dec 13, 2022 at 21:45
  • @UlrikeFischer Thank you for your input, OP has been edited
    – sadcat_1
    Dec 13, 2022 at 21:48
  • 3
    \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? Dec 13, 2022 at 21:57

0

You must log in to answer this question.

Browse other questions tagged .