mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +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 noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
|
||||||
|
|
||||||
static string const lyxarrow_def =
|
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
|
// for quotes without babel. This does not give perfect results, but
|
||||||
// anybody serious about non-english quotes should use babel (JMarc).
|
// anybody serious about non-english quotes should use babel (JMarc).
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "InsetSpecialChar.h"
|
#include "InsetSpecialChar.h"
|
||||||
|
|
||||||
#include "Dimension.h"
|
#include "Dimension.h"
|
||||||
|
#include "Font.h"
|
||||||
#include "LaTeXFeatures.h"
|
#include "LaTeXFeatures.h"
|
||||||
#include "Lexer.h"
|
#include "Lexer.h"
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
@ -220,6 +221,9 @@ int InsetSpecialChar::latex(odocstream & os,
|
|||||||
os << "\\ldots{}";
|
os << "\\ldots{}";
|
||||||
break;
|
break;
|
||||||
case MENU_SEPARATOR:
|
case MENU_SEPARATOR:
|
||||||
|
if (rp.local_font->isRightToLeft())
|
||||||
|
os << "\\lyxarrow*{}";
|
||||||
|
else
|
||||||
os << "\\lyxarrow{}";
|
os << "\\lyxarrow{}";
|
||||||
break;
|
break;
|
||||||
case SLASH:
|
case SLASH:
|
||||||
|
Loading…
Reference in New Issue
Block a user