-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when adding file containing # to entry with character #7012
Comments
@k3KAW8Pnf7mkmdSMPHz27 I just merged your other PR, does this maybe fix this is as well? |
@Siedlerchr I don't think so. I'll take a look at it. I don't know how the source file line should look... |
I can't reproduce. I'd guess that a workaround is to use @judober could you paste the bibtexentry or link to it? I am not familiar with springer's webpage and the one I got from google scholar does not match yours. I'd guess this is one/two bugs, I don't believe curly brackets are removed for filenames, in which case it might create an issue when they are stored in the bib-file? |
@Siedlerchr I don't know what is going on in this issue, but I don't think my PR should impact this. |
@judober on another note, if you want to use latex_to_unicode for titles, you might consider using |
Okay. I think the regex or so does not make sense because the # is interpreted as bibtex string. |
I tested again and I think I have to close Jabref and open it again in order to reproduce (will update original post). Just added the entry through doi, loaded the pdf (probably any pdf will do) and draged in on the entry. When I click the pdf symbol, after restart, my documentsfolder is opened but neither the pdf folder nor the pdf. Also I have the weird file-entry in the biblatex source that causes problem when using the library (undefined label Halbleiter). The entry:
I would expect the file-line to be My manual workaround: I tried @Siedlerchr @k3KAW8Pnf7mkmdSMPHz27 does this help? Also, I think this used to work with older jabref versions (5.0). At least I use this pattern for a while and did not notice this issue before. |
See https://docs.jabref.org/advanced/strings for general information I can't reproduce step 1 here. What is the BibTeX? Does it contain I assume that step 3 introduced |
Regarding step 1: I just added the entry using the doi: I tried Also, when |
It doesn't seem like there should be an issue if there is only one I'd guess adding it to |
@k3KAW8Pnf7mkmdSMPHz27 Good idea to add it to the illegal chars to avoid problems |
I don't know how feasible this is, probably needs more thinking. Normally in LaTex you can escape those "illegal" chars using a backslash. And we have already a LatexCleanUpFormatter who does this for certain things. I remember having % signs in the abstract field needed to be escaped. Refs also #7010 Our LatexCleanupFormattter at least fixes the % sign, |
If this is a rarely used feature, perhaps it should be opt-in rather than opt-out? Or perhaps with some defaults for |
You are right. The more I look into it, the more sense it makes to solve it rather than avoiding it. |
Can you try to remove I also added an issue JabRef/user-documentation#318 hopefully guessing right what's going on there. |
Hi,we are a group of 7 students from Harbin Institue of Technology.Our open source software testing class asked us to contribute to an open-source project.We'd love to help with this issue.Is anyone currently working on this issue?If not can we take it? We are all new contributors to open-source projects.If possible could we get some guidance on which part of the code we should look into first. Thanks a lot |
This issue needs much thinking. Please read on at #7010 to get to know the issue around JabRef's internal handling of Deep links to methods are:
|
Roger, our team will go to see it right away. |
* Change default behavior of resolve bibtex strings Fixes #7010 Fixes #7012 Fixes #8303 * Renaming of fields * fix prefs, remove migration * Fix gui properties and l10n * adjust defaults, fix bst tests * remove obsolete test Fix changelog * fix checkstyle * fix another test * fix comment * Fix typos * add institution * Sort fields alphabetically * Group prefernces at "File": BibTeX strings, Loading, Saving * Remove unused imports * Add ADR-0024 * Add test for comment field * fix tests * Fix markdown in ADR-0024 * ADR-0024: Fix filename and addr to adr.md * ADR-0019: Fix typo * Remove obsolete empty line * Introduce BIBTEX_STRING_START_END_SYMBOL and remove negation - Add org.jabref.logic.bibtex.FieldWriter#BIBTEX_STRING_START_END_SYMBOL - !doNotResolveStrings -> resolveStrings * Remove deprecated constructor FieldWriterPreferences() * Fix test on Windows (CRLF issue) * Add missing context information * Add more tests * Fix negation Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
We now changed the whole logic and enable BibTeX string resolving only for a couple of fields. This can be adjusted in the options |
JabRef version 5.2--2020-10-13--fdaf25a on Windows 10
Steps to reproduce the behavior:
My setup: biblatex, keypattern: "[auth3][shortyear]"
The text was updated successfully, but these errors were encountered: