402: Nothing to do (tex2lyx does not support bibtotoc)
403: Nothing to do (the old code already used the new layouts, bug #7780)
404: Nothing to do (write new prettyref syntax)
405: Nothing to do (empty lyx2lyx conversion)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39920
a592a061-630c-0410-9148-
cb99ea01b6c8
399 automatic mathdots loading \use_mathdots
400 other rules than \lyxline InsetLine
401 feyn.sty InsetMathDiagram
+402 \addcontentsline InsetBibtex bibtotoc option
+404 refstyle.sty InsetRef
+405 author hash \author
string h_cite_engine = "basic";
string h_use_bibtopic = "false";
string h_paperorientation = "portrait";
+string h_suppress_date = "false";
+string h_use_refstyle = "0";
string h_notefontcolor;
string h_secnumdepth = "3";
string h_tocdepth = "3";
<< "\\use_mathdots " << h_use_mathdots << "\n"
<< "\\cite_engine " << h_cite_engine << "\n"
<< "\\use_bibtopic " << h_use_bibtopic << "\n"
- << "\\paperorientation " << h_paperorientation << '\n';
+ << "\\paperorientation " << h_paperorientation << '\n'
+ << "\\suppress_date " << h_suppress_date << '\n'
+ << "\\use_refstyle " << h_use_refstyle << '\n';
if (!h_notefontcolor.empty())
os << "\\notefontcolor " << h_notefontcolor << '\n';
os << h_margins
/// Did we recognize any pdflatex-only construct?
extern bool pdflatex;
/// LyX format that is created by tex2lyx
-int const LYX_FORMAT = 401;
+int const LYX_FORMAT = 405;
/// path of the master .tex file
extern std::string getMasterFilePath();
char const * const known_ref_commands[] = { "ref", "pageref", "vref",
"vpageref", "prettyref", "eqref", 0 };
+char const * const known_coded_ref_commands[] = { "ref", "pageref", "vref",
+ "vpageref", "formatted", "eqref", 0 };
+
/*!
* natbib commands.
* The starred forms are also known except for "citefullauthor",
string const opt = p.getOpt();
if (opt.empty()) {
context.check_layout(os);
- begin_command_inset(os, "ref", t.cs());
+ char const * const * where = is_known(t.cs(),
+ known_ref_commands);
+ begin_command_inset(os, "ref",
+ known_coded_ref_commands[where - known_ref_commands]);
os << "reference \""
<< convert_command_inset_arg(p.verbatim_item())
<< "\"\n";