diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index fc3ef3c6bc..e52087c3dc 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -60,7 +60,10 @@ static string const lyxline_def = static string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}"; static string const lyxarrow_def = - "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}"; + "\\newcommand{\\lyxarrow}{%\n" + "\\@ifstar\n" + "{\\leavevmode\\,$\\triangleleft$\\,\\allowbreak}\n" + "{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}}"; // for quotes without babel. This does not give perfect results, but // anybody serious about non-english quotes should use babel (JMarc). diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index 8e107d4c0d..0750187c65 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -15,6 +15,7 @@ #include "InsetSpecialChar.h" #include "Dimension.h" +#include "Font.h" #include "LaTeXFeatures.h" #include "Lexer.h" #include "MetricsInfo.h" @@ -220,7 +221,10 @@ int InsetSpecialChar::latex(odocstream & os, os << "\\ldots{}"; break; case MENU_SEPARATOR: - os << "\\lyxarrow{}"; + if (rp.local_font->isRightToLeft()) + os << "\\lyxarrow*{}"; + else + os << "\\lyxarrow{}"; break; case SLASH: os << "\\slash{}";