# Author: Julien Rioux <jrioux@lyx.org>
-Format 62
+Format 63
# The framework (biblatex|bibtex)
CiteFramework bibtex
# Author: Julien Rioux <jrioux@lyx.org>
-Format 62
+Format 63
Requires jurabib
# Default style file
DefaultBiblio jurabib
+# Maximum number of names before "et al." chimes in
+MaxCiteNames 3
+
# The syntax of the cite command definitions below is:
# LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
# Author: Julien Rioux <jrioux@lyx.org>
-Format 62
+Format 63
Requires natbib
# Default style files for either engine type
DefaultBiblio authoryear:plainnat|numerical:plainnat
+# Maximum number of names before "et al." chimes in
+MaxCiteNames 2
+
# The syntax of the cite command definitions below is:
# LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
# This script will update a .layout file to current format
# The latest layout format is also defined in src/TextClass.cpp
-currentFormat = 62
+currentFormat = 63
# Incremented to format 4, 6 April 2007, lasgouttes
# Incremented to format 62, 21 October 2016 by spitz
# New Layout argument tag "PassThru"
+# Incremented to format 63, 7 January 2017 by spitz
+# - New textclass tags CiteFramework, MaxCiteNames (for cite engines)
+# - Extended InsetCite syntax.
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
i += 1
continue
- if format >= 60 and format <= 61:
+ if format >= 60 and format <= 62:
# nothing to do.
i += 1
continue
// You should also run the development/tools/updatelayouts.py script,
// to update the format of all of our layout files.
//
-int const LAYOUT_FORMAT = 62; //spitz PassThru for arguments.
+int const LAYOUT_FORMAT = 63; //spitz: new tags CiteFramework, MaxCiteNames, extended InsetCite syntax.
// Layout format for the current lyx file format. Controls which format is
outputType_(LATEX), outputFormat_("latex"),
defaultfont_(sane_font),
titletype_(TITLE_COMMAND_AFTER), titlename_("maketitle"),
- min_toclevel_(0), max_toclevel_(0),
+ min_toclevel_(0), max_toclevel_(0), maxcitenames_(2),
cite_full_author_list_(true)
{
}
TC_CITEENGINETYPE,
TC_CITEFORMAT,
TC_CITEFRAMEWORK,
+ TC_MAXCITENAMES,
TC_DEFAULTBIBLIO,
TC_FULLAUTHORLIST,
TC_OUTLINERNAME
{ "input", TC_INPUT },
{ "insetlayout", TC_INSETLAYOUT },
{ "leftmargin", TC_LEFTMARGIN },
+ { "maxcitenames", TC_MAXCITENAMES },
{ "modifystyle", TC_MODIFYSTYLE },
{ "nocounter", TC_NOCOUNTER },
{ "nofloat", TC_NOFLOAT },
citeframework_ = rtrim(lexrc.getString());
break;
+ case TC_MAXCITENAMES:
+ lexrc.next();
+ maxcitenames_ = size_t(lexrc.getInteger());
+ break;
+
case TC_DEFAULTBIBLIO:
if (lexrc.next()) {
vector<string> const dbs =
std::map<std::string, std::string> cite_default_biblio_style_;
/// Citation command aliases
std::map<std::string, std::string> cite_command_aliases_;
+ /// The maximum number of citations before "et al."
+ size_t maxcitenames_;
/// Whether full author lists are supported
bool cite_full_author_list_;
/// The possible citation styles
///
std::map<std::string, std::string> const & citeCommandAliases() const
{ return cite_command_aliases_; }
+ /// The maximum number of citations before "et al."
+ size_t max_citenames() const { return maxcitenames_; }
///
bool const & fullAuthorList() const { return cite_full_author_list_; }
protected: