mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
increase tex2lyx output format to 265
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36841 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1b04aa7301
commit
c0b20c1c92
@ -203,7 +203,8 @@ char const HLINE = '\004';
|
|||||||
/*!
|
/*!
|
||||||
* Move the information in leftlines, rightlines, align and valign to the
|
* Move the information in leftlines, rightlines, align and valign to the
|
||||||
* special field. This is necessary if the special field is not empty,
|
* special field. This is necessary if the special field is not empty,
|
||||||
* because LyX ignores leftlines, rightlines, align and valign in this case.
|
* because LyX ignores leftlines > 1, rightlines > 1, align and valign in
|
||||||
|
* this case.
|
||||||
*/
|
*/
|
||||||
void ci2special(ColInfo & ci)
|
void ci2special(ColInfo & ci)
|
||||||
{
|
{
|
||||||
@ -235,12 +236,13 @@ void ci2special(ColInfo & ci)
|
|||||||
} else
|
} else
|
||||||
ci.special += ci.align;
|
ci.special += ci.align;
|
||||||
|
|
||||||
for (int i = 0; i < ci.leftlines; ++i)
|
// LyX can only have one left and one right line.
|
||||||
|
for (int i = 1; i < ci.leftlines; ++i)
|
||||||
ci.special.insert(0, "|");
|
ci.special.insert(0, "|");
|
||||||
for (int i = 0; i < ci.rightlines; ++i)
|
for (int i = 1; i < ci.rightlines; ++i)
|
||||||
ci.special += '|';
|
ci.special += '|';
|
||||||
ci.leftlines = 0;
|
ci.leftlines = min(ci.leftlines, 1);
|
||||||
ci.rightlines = 0;
|
ci.rightlines = min(ci.rightlines, 1);
|
||||||
ci.align = 'n';
|
ci.align = 'n';
|
||||||
ci.valign = 'n';
|
ci.valign = 'n';
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ extern CommandMap known_math_environments;
|
|||||||
///
|
///
|
||||||
extern bool noweb_mode;
|
extern bool noweb_mode;
|
||||||
/// LyX format that is created by tex2lyx
|
/// LyX format that is created by tex2lyx
|
||||||
int const LYX_FORMAT = 264;
|
int const LYX_FORMAT = 265;
|
||||||
|
|
||||||
/// path of the master .tex file
|
/// path of the master .tex file
|
||||||
extern std::string getMasterFilePath();
|
extern std::string getMasterFilePath();
|
||||||
|
Loading…
Reference in New Issue
Block a user