Sure it doesn’t stop you from using these macros in your formulas, but it doesn’t display nicely, you see the name of the macro instead of a schematic preview. However LyX doesn’t support every LaTeX package and the macros it defines. It makes writing formulas very easy and it allows you to see the formula as you are writing, as opposed to seeing only LaTeX code. I believe LyX is a great tool for writing LaTeX document. Posted on MaJCategories LaTeX, Tutorials Tags culmus-latex, Hebrew, LyX 5 Comments on Creating a Hebrew Document in LyX 2.1 with XeTeX Number Exercises Separately in LyX To do so, add the following lines to the Preamble: \newfontfamily\hebrewfont It is possible to set a different font for Hebrew and Latin, but care needs to be taken to match styles. It is preferable to use fonts that provide both Hebrew and Latin scripts, as otherwise there might be significant style differences which make the document look weird. Now you can toggle the current language between English and Hebrew by simply pressing F12. Select “language” under “Cursor, Mouse and Editing Functions” and click “Modify” to set a keyboard shortcut ( F12 is traditionally used for this).Write “language” under “Show key-bindings containing:”.Go to Tools -> Preferences -> Editing -> Shortcuts.The easiest way to do so is to create a keyboard shortcut for it: To insert English text in your Hebrew document, you need to change the current language. I would suggest saving these settings as default (via “Save as Document Defaults”) or saving it as a template so you won’t need to repeat those steps.
![italics in lyx italics in lyx](https://frommindtotype.files.wordpress.com/2019/03/exo-2-2.png)
You can now write your document and compile it. Under Language select Hebrew as the document’s language.There is no need to change the Math font.David CLM is also a good choice with somewhat better italics variant. Under Fonts check the box next to `Use non-TeX fonts (via XeTeX/LuaTeX) and select suitable fonts:.Avoid “Hebrew Article”, as it is broken under XeTeX. I recommend “KOMA-Script Article” but “Article” works just as fine. You may also try and use the fonts that come with your operating system, they might work as well.Ĭreate a new document and open the settings dialog ( Document -> Settings.). Again I’ve used those which come with TeXLive 2012. XeTeX – I’ve tested with version 3.1415926-2.4-0.9998 which comes with TeXLive 2012, but I guess any recent version will do.I had very limited success with LyX 2.0, so you should probably avoid it. LyX 2.1 or later (I’ve also tested with the development version of 2.2).
![italics in lyx italics in lyx](https://i.stack.imgur.com/30ALQ.jpg)
I’ll walk through the (short) list of steps needed to configure LyX with XeTeX. This post complements the basic LaTeX template I gave yesterday for typesetting Hebrew with XeTeX.