mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Adapt tex2lyx to the new file format.
This commit is contained in:
parent
73f59e87bd
commit
00b8f04988
@ -105,6 +105,9 @@ Format LaTeX feature LyX feature
|
||||
- [osf] \font_osf true
|
||||
\usepackage{crimson} \font_roman "cochineal" "<nontexfont>"
|
||||
\usepackage[cochineal]{newtxmath} \font_math "cochineal-ntxm" "<nontexfont>"
|
||||
526
|
||||
Plural and capitalized refstyles InsetRef
|
||||
|
||||
|
||||
General
|
||||
|
||||
|
@ -3496,6 +3496,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
<< ":";
|
||||
os << convert_command_inset_arg(p.verbatim_item())
|
||||
<< "\"\n";
|
||||
os << "plural \"false\"\n";
|
||||
os << "caps \"false\"\n";
|
||||
end_inset(os);
|
||||
preamble.registerAutomaticallyLoadedPackage("refstyle");
|
||||
}
|
||||
@ -3512,6 +3514,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
os << "reference \""
|
||||
<< convert_command_inset_arg(p.verbatim_item())
|
||||
<< "\"\n";
|
||||
os << "plural \"false\"\n";
|
||||
os << "caps \"false\"\n";
|
||||
end_inset(os);
|
||||
if (t.cs() == "vref" || t.cs() == "vpageref")
|
||||
preamble.registerAutomaticallyLoadedPackage("varioref");
|
||||
|
@ -33,7 +33,7 @@ extern char const * const lyx_version_info;
|
||||
// Do not remove the comment below, so we get merge conflict in
|
||||
// independent branches. Instead add your own.
|
||||
#define LYX_FORMAT_LYX 526 // rgh: labelonly for references
|
||||
#define LYX_FORMAT_TEX2LYX 525
|
||||
#define LYX_FORMAT_TEX2LYX 526
|
||||
|
||||
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
|
||||
#ifndef _MSC_VER
|
||||
|
Loading…
Reference in New Issue
Block a user