Comments (3)
Not sure if blacktex will ever deal with this. Underscores are assumed to occur in math mode, and there, one_o ne
is actually better (because only the first o
is put in the subindex). Of course, this should really only happen in math mode, but for this, blacktex would have to include an actual parser, which it probably never will.
from blacktex.
Underscores are useful in labels and bibliography entry names. As one example, the wonderful package cleveref doesn't accept spaces in references (without significant hacking). This modification of labels makes blacktex unusable for me and many LaTeX users whose code I've seen.
You are correct that it is impossible to detect math mode without parsing. It should be much easier to detect an enclosing command like \label, \cite, \cref, \ref, or \eqref.
from blacktex.
PRs welcome!
from blacktex.
Related Issues (20)
- Comments should not be removed
- Is it possible to support support files in sub-folders? HOT 6
- Replace in-place HOT 1
- replace $ ... $ with \( .... \) HOT 2
- connection with black formatter HOT 1
- log is changed to \log in text mode HOT 1
- Blacktex dangerously reformats commented-out code even with `--keep-comments` option HOT 4
- Do not change \def HOT 7
- spacing command \, switches opening and closing parentheses
- blacktex produces error on spacing before $ HOT 1
- missing braces inside braces
- Removes spaces in \text environment HOT 4
- Line Breaking HOT 2
- Add a `conda` install option to `blacktex` HOT 2
- List of issues addressed HOT 1
- Exit code HOT 4
- IndexError HOT 3
- Source code no longer available in git? HOT 1
- Enter new license key for texworld HOT 3
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 blacktex.