Friends, I have used LyX for ages now, but this is my first patch, so please be kind (i.e., instuctional) if I'm doing this entirely wrong.
I'm attaching a tiny patch that will show a BibTeX's entry annotation text in the citation preview dialog. Myself and several other researcher I know annotate their BibTeX files, and seeing these notes in the preview can help the author decide if this is the right citation. I've also tweaked the mechanism that erases BibTeX comments (starting with '%') so that it does not erase occurences of "\%", but instead replaces it with '%', which does get displayed. Comments are welcome, before I proceed to the next patch: translating and correctly displaying references to BibTeX @strings. --Eitan Frachtenberg. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Index: src/frontends/controllers/biblio.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/controllers/biblio.C,v retrieving revision 1.70 diff -r1.70 biblio.C 326a327 > string annote = parseBibTeX(data, "annote"); 354a356,357 > if (!annote.empty()) > result << "\nAnnote: " << annote; 483c486,490 < dummy.erase(idx, string::npos); --- > // Check if this is really a comment or just "\%" > if (idx == 0 || dummy.rfind('\\',idx) != idx - 1) > dummy.erase(idx, string::npos); > else // This is "\%", so just erase the '\' > dummy.erase(idx - 1, 1);