Tags:
create new tag
, view all tags

Question

Hi,

I am using the BibtexPlugin. If I don't use the default style, then sorting does not work any more (with the default style, everything works fine).

Any idea what I can do?

Thanks

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, BibtexPlugin, BreadCrumbsPlugin, CommentPlugin, EditTablePlugin, EmptyPlugin, FilterPlugin, FlexWebListPlugin, GluePlugin, IfDefinedPlugin, InterwikiPlugin, NatSkinPlugin, PreferencesPlugin, RedDotPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, TwistyPlugin
Server OS: Mandriva Linux 2006, kernel 2.6.12
Web server: Apache 2.0.54
Perl version: 5.8.7
Client OS: Mandriva Linux 2006, kernel 2.6.12
Web Browser:  
Categories: Plugins

-- TWikiGuest - 22 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The plugin assumes that if a style other than bibtool is used, then the ordering is set by the BibTeX style. To change this behavior, you can break apart the code block that spans L608-L614 in BibtexPlugin.pm. e.g. Add the following lines to the block:

L608:      } else {
L609:         $bibtex2HtmlArgs .= ' -dl --use-keys ';
+          }
+          {
L610:         $bibtex2HtmlArgs .= '-a ' if $theSort =~ /^(author|name)$/;
L611:         $bibtex2HtmlArgs .= '-d ' if $theSort =~ /^(date|year)$/;
L612:         $bibtex2HtmlArgs .= '-u ' if $theSort !~ /^(author|name|date|year)$/;
L613:         $bibtex2HtmlArgs .= '-r ' if $theReverse eq 'on';
L614:      }

I'll try to make the sorting behavior more logical in the next release.

-- ScottHoge - 23 Aug 2006

Thank you very much for this fast answer! It's working fine now.

-- TWikiGuest - 23 Aug 2006

 
Change status to:
Topic revision: r3 - 2006-08-23 - TWikiGuest
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.