Comments (4)
@string is supported but there was a bug with parsing the line author=aubert#{ and }#Varacca
.
I've fixed the bug and the above bibtex should now be correctly tidied.
from bibtex-tidy.
Thanks a lot for this patch!
But there is an additional difficulty, in that particular case…
As of now,
@string{Aubert={Aubert, Clément}}
@string{Varacca={Varacca, Daniele}}
@Inproceedings{Aubert2021h,
author=aubert#{ and }#Varacca,
title = {Processes, Systems \& Tests: Defining Contextual Equivalences},
pages = {1-21},
doi = {10.4204/EPTCS.347.1},
}
is tidied as
@string{Aubert={Aubert, Clément}}
@string{Varacca={Varacca, Daniele}}
@inproceedings{Aubert2021h,
title = {Processes, Systems \& Tests: Defining Contextual Equivalences},
author = aubert # {and} # Varacca,
pages = {1--21},
doi = {10.4204/EPTCS.347.1}
}
but "and" is not just any string: there must be a space before and after it to be treated correctly by bibtex.
Otherwise, when "substituting" the strings, we get
author = {Aubert, ClémentandVaracca, Daniele},
which will trigger complaints of the form
Too many commas in name 1 of "Aubert, ClémentandVaracca, Daniele}" for entry Aubert2021h
Indeed, bibtex expects to see
author = {Aubert, Clément and Varacca, Daniele},
i.e., with the spaces preserved.
from bibtex-tidy.
Interesting, yeah I see that it's not ideal that bibtex-tidy always trims whitespace in braced values.
I've updated bibtex-tidy so that it will not trim braced values that are concatenated.
For your example we now get:
@string{Aubert={Aubert, Clément}}
@string{Varacca={Varacca, Daniele}}
@inproceedings{Aubert2021h,
title = {Processes, Systems \& Tests: Defining Contextual Equivalences},
author = aubert # { and } # Varacca,
pages = {1--21},
doi = {10.4204/EPTCS.347.1}
}
Let me know if that's solved your issue.
from bibtex-tidy.
Let me know if that's solved your issue.
It absolutely does, thanks!
from bibtex-tidy.
Related Issues (20)
- Bug with commands in fields? HOT 2
- Extra empty line when wrapping long non-breakable lines HOT 2
- Support output to stdout HOT 6
- Problem running bibtex-tidy in MacOS/iPad HOT 1
- a HOT 1
- Generate Bibtex Keys Improvement HOT 9
- Option to un-escape characters HOT 4
- FR: Removing & Filtering Entries HOT 4
- FR: Option to add blank lines between entries HOT 2
- Option for generation of abbreviations HOT 2
- Output/save key replacements when merging
- Space in generated keys HOT 1
- Feature Request: Tidy up months field HOT 1
- Error in Entry Parsing HOT 1
- Do not treat entries as duplicates if `number` field differs HOT 1
- Feature request: allow checking files without modification
- issue with generating bibtex keys HOT 1
- Add a function to remove duplicate entries HOT 1
- Tag bibtex-tidy releases HOT 1
- Cannot parse generated output. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bibtex-tidy.