]> git.lyx.org Git - features.git/commitdiff
It is convenient for me to change this for use in XHTML output, but I also
authorRichard Heck <rgheck@comcast.net>
Thu, 11 Jun 2009 21:23:18 +0000 (21:23 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 11 Jun 2009 21:23:18 +0000 (21:23 +0000)
have been wanting to change it for a while. It is not very useful to have
a bunch of years listed in the citations TOC (which you get if you have used
\citeyear very often. Better, it seems to me, to see the citation keys.

Of course, this can be switched again if need be, and I can figure out a
different way to handle my own problem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30053 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBibtex.cpp
src/insets/InsetBibtex.h
src/insets/InsetCitation.cpp

index 1a03a821f90ede5152765b6cb8ffb4e283c1db75..7b824bbf011b872603814c71130c70bfe1edd3b2 100644 (file)
@@ -900,6 +900,13 @@ void InsetBibtex::validate(LaTeXFeatures & features) const
 }
 
 
+int InsetBibtex::xhtml(odocstream &, OutputParams const &) const
+{
+       //Toc const & toc = buffer().tocBackend().toc("citation");
+       return 0;
+}
+
+
 docstring InsetBibtex::contextMenu(BufferView const &, int, int) const
 {
        return from_ascii("context-bibtex");
index e48e39ee9c3c950ffc7c7bf7a8707f4e4477c71f..c4cd812e3f9993f089c045ad0b0820163dbf96e3 100644 (file)
@@ -52,6 +52,8 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
+       int xhtml(odocstream &, OutputParams const &) const;
+       ///
        static ParamInfo const & findInfo(std::string const &);
        ///
        static std::string defaultCommand() { return "bibtex"; };
index 25038a7e61db07748352816bc1e607d18b79393f..7ecea9c9a0e591e25755e54c7dd91947d0e0b10a 100644 (file)
@@ -466,7 +466,7 @@ void InsetCitation::updateLabels(ParIterator const &)
 void InsetCitation::addToToc(DocIterator const & cpit)
 {
        Toc & toc = buffer().tocBackend().toc("citation");
-       toc.push_back(TocItem(cpit, 0, cache.screen_label));
+       toc.push_back(TocItem(cpit, 0, getParam("key")));
 }