Author: rgheck
Date: Sun Dec 4 00:15:04 2011
New Revision: 40356
URL: http://www.lyx.org/trac/changeset/40356
Log:
Comments.
Modified:
lyx-devel/trunk/src/insets/InsetRef.cpp
Modified: lyx-devel/trunk/src/insets/InsetRef.cpp
==============================================================================
--- lyx-devel/trunk/src/insets/InsetRef.cpp Sat Dec 3 23:58:38 2011
(r40355)
+++ lyx-devel/trunk/src/insets/InsetRef.cpp Sun Dec 4 00:15:04 2011
(r40356)
@@ -143,6 +143,10 @@
docstring const data = getEscapedLabel(rp);
if (cmd == "eqref" && buffer().params().use_refstyle) {
+ // we advertise this as printing "(n)", so we'll do that, at
least
+ // for refstyle, since refstlye's own \eqref prints, by default,
+ // "equation n". if one wants \eqref, one can get it by using a
+ // formatted label in this case.
os << '(' << from_ascii("\\ref{") << data << from_ascii("})");
}
else if (cmd == "formatted") {
@@ -323,7 +327,7 @@
features.addPreambleSnippet("\\let\\pr@chap=\\pr@cha");
}
} else if (cmd == "eqref" && !buffer().params().use_refstyle)
- // refstyle defines its own version
+ // with refstyle, we simply output "(\ref{label})"
features.require("amsmath");
else if (cmd == "nameref")
features.require("nameref");