Adapt tex2lyx to the new file format.

This commit is contained in:
Richard Heck 2016-06-18 22:24:27 -04:00
parent 73f59e87bd
commit 00b8f04988
3 changed files with 8 additions and 1 deletions

View File

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

View File

@ -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");

View File

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