Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I typeset Arabic text with LuaLaTeX and recognised that quite often a character occurs in the resulting pdf that is invisible in the sourcetext -- it is unicode character 200f: the right-to-left mark. I don't know why this character is printed in the output at all, but it is and it shouldn't be there.

Of course, I could delete all of them manually, but there are many of them and I fear that they will appear in the printed book.

The input is: للشى ء (here on it is visible, in TexShop it isn't).

The output is:

the printed unicode character 200F

So is there a way how I could just simply get rid of all of them? (search/replace doesn't work), i. a command I could add to the preamble without ruining anything else in my document?

This is a MWE:

% !TEX TS-program = lualatex

    \setmainfont[Ligatures=TeX]{Times New Roman}
    \newfontfamily\arabicfont[Script=Arabic]{Arabic Typesetting}
\newcommand{\arabtext}[1]   % Arabic inside LTR
    {\bgroup\luatextextdir TRT\arabicfont #1\egroup}

share|improve this question
Very good question. You are right: RLM is a control character that can be necessary in bidirectional text but is not to be printed. A minimal example might help, as a solution might be specific to your setup. I don't know how necessary bidi controls are in the source to LuaLaTeX; it might be that the source doesn't require an RLM (but there is one in your source). –  Lover of Structure Apr 26 '13 at 7:04
@Lover of Structure : I added a MWE. –  ClintEastwood Apr 26 '13 at 7:21

1 Answer 1

up vote 6 down vote accepted

You can set the \catcode of the Right-to-Left Mark to 9, which will make it ignored. The code for this is

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.