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.




Thanks in advance.

  • 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


You must log in to answer this question.

Browse other questions tagged .