1

I am trying to force LaTeX to output the word ﺍﻨﺗﺑﻪ, however the output for the minimal working example provided below is

incorrect arabic output

Here is the minimal working example:

\documentclass[a4paper,10pt]{article}
\usepackage{arabtex}
\usepackage{utf8}

\begin{document}
\setcode{utf8}
\setarab
Arabic \<ﺍﻨﺗﺑﻪ> within latin.

\end{document}

I'm using TeXWorks 0.6.1 with MikTeX 2.9 64-bit under Windows 10.

I can get XeLaTeX to output the proper word, however my main document is in LaTeX, so a solution using XeLaTeX is not particularly useful due to incompatible packages, unless there is an easy way in which I can embed XeLaTeX within LaTeX.

Please also note that I'm not a speaker of Arabic.

6
  • There aren't so many incompatible packages Maybe they could be replaced with compatible ones?
    – Bernard
    Jan 31, 2017 at 16:56
  • There is a problem with the way you write that arabic word. The correct way is انتبه.
    – CroCo
    Jan 31, 2017 at 17:04
  • Maybe you need to adjust your editor font encoding to utf8
    – Salim Bou
    Jan 31, 2017 at 17:12
  • @SalimBou Yes, the editor is set to utf8 encoding, thanks. Jan 31, 2017 at 17:17
  • @CroCo, thanks. The original author wrote it like that in an MS Word document (which I'm converting for her into LaTeX), I just copy-pasted it into a utf8-capable editor. Is it possible to tell from this example alone if this is a spelling issue, or a copy-paste issue? Jan 31, 2017 at 17:24

1 Answer 1

1

Is this what you're looking for

enter image description here

\documentclass[a4paper,10pt]{article}

\usepackage{arabtex}
\usepackage{utf8}

\begin{document}
\setcode{utf8}
Arabic \<انتبه> within latin.

\end{document}
1
  • Yes, this works from my end as well, thank you. Jan 31, 2017 at 17:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .