Skip to content
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

Add remove-all-braces option #120

Closed
wants to merge 1 commit into from

Conversation

mcsitter
Copy link

@mcsitter mcsitter commented Jan 5, 2022

The option removes all braces inside the value field, if they don't contain a dollar sign.
If there is a specific case which would require a more complex regex, i am happy to make changes. I don't know how frequent dollar signs are for bibtex fields and what the entry would and after tidying should look like.

Maybe @tobirolinew can provide more info.

Closes #33

@FlamingTempura
Copy link
Owner

We should make sure that latex commands and escaped characters aren't broken by this option. These can appear outside of dollar signs, e.g.:

\`{A}
\textsterling{}
{\\fontencoding{LECO}\\selectfont\\char185}

How about only removing braces if there's not a slash command before or inside?

For quoted values we also have the case of the escaped quote "foo {"} bar". This syntax currently breaks bibtex tidy but I'm working on fixing it.

@FlamingTempura
Copy link
Owner

Superseded by cb45f7a

@mcsitter mcsitter deleted the remove-all-braces branch November 22, 2022 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all braces from fields
2 participants