1

My latex document is in hebrew and english
those are my headers :

\documentclass[greek, english, hebrew]{article} % <- here
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[greek, english, hebrew]{babel} % <- and here
\usepackage{amsmath}

and when I try to

\underline{x^2}

I'm getting those errors:

Missing $ inserted. $\underline{x^2}
Missing } inserted. $\underline{x^2}
Missing $ inserted. $\underline{x^2}
Missing } inserted. $\underline{x^2}
Missing $ inserted. $\underline{x^2}
Missing $ inserted. $\underline{x^2}
Extra }, or forgotten $. $\underline{x^2}
Extra }, or forgotten $. $\underline{x^2}

without

\usepackage[greek, english, hebrew]{babel}

underline works but hebrew not

any tips? thanks!

closed as unclear what you're asking by Andrew Swann, TeXnician, Bobyandbob, Troy, Stefan Pinnow May 15 '18 at 10:33

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Update changed to use polyglossia answer – Eran Elbaz Apr 14 '18 at 12:44
  • 1
    Welcome to TeX.SE. Please provide a MWE – gebruiker Apr 14 '18 at 12:45
  • 2
    The usage of ^ as a shortcut for superscript does (almost) only make sense in math mode. The errors you describe occur because you used ^ outside of math mode. – leandriis Apr 14 '18 at 12:52

Browse other questions tagged or ask your own question.