Menu

#28 Bibkey -> Filename conversion

Next full release
closed
None
5
2018-03-10
2005-06-22
No

Hi,

Usually my bibtex keys look like this

FirstAuthor/SecondAuthor:SomeWordsOfTitle:05

and I use filenames based on these keys for pdf and ps
files. However, I do not want the slashes in the
filename, so I replace them by "_". Attached is a patch
that adds two TextFields to the pattern tab into which
the user can enter a regular expression and a
replacement for this expression. When files are
searched based on the BibTeX key, the replacement is
applied using basefile.replaceAll(,). I think that
could be useful for others, too.

Using the regular expression [:/] and the replacement
"_" works fine for me.

Cheers,
Simon

Discussion

  • Simon Fischer

    Simon Fischer - 2005-06-22

    Diff file for BasePanel.java

     
  • Simon Fischer

    Simon Fischer - 2005-06-22

    Diff for TabLabelPattern.java

     
  • Simon Fischer

    Simon Fischer - 2005-06-22

    Diff for Jabref_en.properties

     
  • Simon Fischer

    Simon Fischer - 2005-06-22

    Diff for Jabref_de.properties

     
  • Oliver Kopp

    Oliver Kopp - 2012-11-24

    The problem seems to still exist in JabRef 2.9. We're currently investigating how to integrate the idea in the current autolink infrastructure.

     
  • Oliver Kopp

    Oliver Kopp - 2012-11-24
    • status: open --> pending
    • assigned_to: Oliver Kopp
    • milestone: --> Next full release
     
  • Oliver Kopp

    Oliver Kopp - 2018-03-10
    • status: pending --> closed
     
  • Oliver Kopp

    Oliver Kopp - 2018-03-10

    I think, this feature is avaible. Feel free to report back at https://github.com/JabRef/jabref/ if there are any issues.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.