#862 closed enhancement (fixed)
support for eqref
Reported by: | Owned by: | levon | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | frontend-qt2 | Version: | 1.3.0cvs |
Severity: | minor | Keywords: | patch VERIFIED |
Cc: | leeming@…, poenitz@… |
Description
This patch add support for \eqref to lyx. It would be nice if eqref would be te
defualt when crossreferencing to equations, but I haven't figured out how to do
that.
Index: src/buffer.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/buffer.C,v
retrieving revision 1.399
diff -a -u -r1.399 buffer.C
--- src/buffer.C 2003/01/23 16:23:36 1.399
+++ src/buffer.C 2003/01/31 16:34:45
@@ -1071,6 +1071,7 @@
cmdName == "htmlurl") {
inset = new InsetUrl(inscmd);
} else if (cmdName == "ref"
cmdName == "eqref" |
cmdName == "pageref" cmdName == "vref" cmdName == "vpageref"
Index: src/insets/insetref.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/insets/insetref.C,v
retrieving revision 1.55
diff -a -u -r1.55 insetref.C
--- src/insets/insetref.C 2002/11/27 10:30:25 1.55
+++ src/insets/insetref.C 2003/01/31 16:34:48
@@ -116,6 +116,7 @@
InsetRef::type_info InsetRef::types[] = {
{ "ref", N_("Standard"), N_("Ref: ")},
+ { "eqref", N_("Equation"), N_("EqRef: ")},
{ "pageref", N_("Page Number"), N_("Page: ")},
{ "vpageref", N_("Textual Page Number"), N_("TextPage: ")},
{ "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")},
Index: src/mathed/ref_inset.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/mathed/ref_inset.C,v
retrieving revision 1.10
diff -a -u -r1.10 ref_inset.C
--- src/mathed/ref_inset.C 2002/11/27 10:30:28 1.10
+++ src/mathed/ref_inset.C 2003/01/31 16:34:50
@@ -125,6 +125,7 @@
RefInset::type_info RefInset::types[] = {
{ "ref", N_("Standard"), N_("Ref: ")},
+ { "eqref", N_("Equation"), N_("EqRef: ")},
{ "pageref", N_("Page Number"), N_("Page: ")},
{ "vpageref", N_("Textual Page Number"), N_("TextPage: ")},
{ "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")},
Change History (10)
comment:1 by , 21 years ago
Keywords: | patch added |
---|---|
Owner: | changed from | to
comment:2 by , 21 years ago
Cc: | added |
---|
comment:3 by , 21 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Log message:
support for eqref (fixes #862)
Patches:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/ChangeLog?r1=1.1250&r2=1.1251
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/factory.C?r1=1.27&r2=1.28
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/insetref.C?r1=1.58&r2=1.59
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/ChangeLog?r1=1.641&r2=1.642
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/mathed/ref_inset.C?r1=1.22&r2=1.23
comment:4 by , 21 years ago
Component: | general → frontend-qt2 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
The qt frontend doesn't seem to have eqref support yet. I'll attach a patch
that fixes it.
comment:5 by , 21 years ago
For some reason I'm not able to create a new attachment, so I'll just put the
patch inline:
--- lyx/src/frontends/qt2/ui/QRefDialogBase.ui.orig Wed Jun 18 15:24:39 2003
+++ lyx/src/frontends/qt2/ui/QRefDialogBase.ui Wed Jun 18 15:26:56 2003
@@ -128,6 +128,12 @@
<item>
<property>
<name>text</name>
+ <string>(<reference>)</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
<string><page></string>
</property>
</item>
comment:7 by , 21 years ago
The xforms interface gets its information on what types of refs are available,
from insetref.h. From /src/frontends/xforms/FormRef.C:
46 for (int i = 0; !InsetRef::types[i].latex_name.empty(); ++i)
47 fl_addto_choice(dialog_->choice_format,
48 _(InsetRef::types[i].gui_name.c_str()));
The QT interface OTOH has static format types defined in the QRefDialogBase ui file.
comment:8 by , 21 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
gah, I dropped the ball again. Can you please send the patch to
levon@… ? Thanks.
Well, this one slipped through the cracks :(
Angus, or Andre, can you please look at this patch ?