* LaTeXFeatures.cpp:

* InsetSpecialChar.cpp:
	- make the menu separator direction-aware [only in LaTeX output] (bug 3560).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28085 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-01-11 08:31:52 +00:00
parent 2d63893f2f
commit b99fc9bcd9
2 changed files with 9 additions and 2 deletions

View File

@ -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).

View File

@ -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{}";