mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
* 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:
parent
2d63893f2f
commit
b99fc9bcd9
@ -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).
|
||||
|
@ -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{}";
|
||||
|
Loading…
Reference in New Issue
Block a user