1

I'd like to insert some Hebrew words at math-mode at LyX, like can I inset \text or something like that...

There is a way to do this?
Even not at \text and by adding special characters (or things that similar to this).

There is any way to do this, or it's impossible?

I saw this:
What are TeX codes for Hebrew letters to be used as math-mode symbols?
But I'm using LyX (and I don't know how to insert it to LyX), and I want to use all the Hebrew characters....

Thank you!

heblyx
  • 2,571
  • This is work for me but I wonder if there is a way that is more simple... - http://tex.stackexchange.com/questions/148961/hebrew-letters-in-a-math-equation – heblyx Dec 04 '15 at 20:15

2 Answers2

2

If you setup your document to use XeTeX, it works just as it should: You write \text then in the little box you enter your text in Hebrew as is. The only caveat is that LyX will display the text in the formula reversed, but in the output it is fine.

Guy
  • 536
  • 2
  • 9
-2

Create a math box inside a math box and type: "\R{hebrew text}"

\documentclass[english,hebrew]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\usepackage{amstext}
\usepackage{babel}
\begin{document}
   \L{$\text{\R{\text{עברית}}}$}
\end{document}
Jon
  • 185
  • This doesn't work... – Werner Nov 10 '16 at 23:46
  • well for me its does – Jon Nov 11 '16 at 00:14
  • You should then add more detail. Do you have a special module or package that you include allowing your text to be set in Hebrew via \R? – Werner Nov 11 '16 at 00:15
  • I guess you gotta have the miktex and the hebrew fonts (culmus). Nothing other than that – Jon Nov 11 '16 at 00:18
  • What does \R do? – Werner Nov 11 '16 at 00:18
  • I dunno, i just read it somewhere and it worked – Jon Nov 11 '16 at 00:19
  • ...well, we like to use definitive, fact-based answers here. – Werner Nov 11 '16 at 00:19
  • well this method works for me, i don't know how to explain it better than that. as simple as that – Jon Nov 11 '16 at 00:22
  • And I really cant understand your approach, why would I post something if I cant stand behind it? Did you even try it for yourself? I mean, it does work for me and probably would work for others, why else would I post it? Moreover, It took me several hours to find this solution in the internet and now you are voting to delete it? I really hope someone would find it helpful as long as it stays here. I thought the idea of Q&A is to have some answers in it. – Jon Nov 11 '16 at 00:56
  • I opened up LyX, inserted an (inline) math box, typed \R{hebrew text} and compiled. I received an undefined control sequence error as a result of \R. I can't retract my vote-to-delete, but has flagged this for moderator attention to convert it to a comment. If you can provide some detail that would help people like me make this work, then that would be awesome. – Werner Nov 11 '16 at 01:01
  • What kind of detail? – Jon Nov 11 '16 at 01:04
  • Go through your Document > Settings... > LaTeX Preamble and/or Modules and figure out what you have in your setup that might allow you to do this. Look at your .log file. Figure it out and support the community by adding some comprehensive detail. – Werner Nov 11 '16 at 01:05
  • No Preamble nor Modules are used, all is empty – Jon Nov 11 '16 at 01:07
  • \documentclass[english,hebrew]{article} \usepackage[T1]{fontenc} \usepackage[latin9,cp1255]{inputenc} \usepackage{amstext} \usepackage{babel} \begin{document} \L{$\text{\R{\text{עברית}}}$} \end{document} – Jon Nov 11 '16 at 01:09
  • this is from the Latex Source* – Jon Nov 11 '16 at 01:10
  • Under Document > Settings... > Language, you have these following settings, correct? Additionally, you've formatting the content within the math box as text, so you don't just use \R{..}, but \text{\R{...}}? Don't know how you added \usepackage{amstext} to the preamble. These are things you need to figure out. – Werner Nov 11 '16 at 02:00
  • How doesn't this provide an answer to the question? It says exactly what you have to do in order to write Hebrew text inside math mode – Jon Nov 11 '16 at 08:55