Comments (3)
As of 8329629 this feature is on the way to being full implemented for environments.
Currently, the yaml
looks like this:
modifyLineBreaks:
everyBeginStartsOnOwnLine: 1
everyBodyStartsOnOwnLine: 1
everyEndStartsOnOwnLine: 1
everyEndFinishesWithLineBreak: 1
equation*:
BeginStartsOnOwnLine: 1
BodyStartsOnOwnLine: 1
EndStartsOnOwnLine: 1
EndFinishesWithLineBreak: 1
I think I'd prefer it to be:
modifyLineBreaks:
environments:
everyBeginStartsOnOwnLine: 1
everyBodyStartsOnOwnLine: 1
everyEndStartsOnOwnLine: 1
everyEndFinishesWithLineBreak: 1
equation*:
BeginStartsOnOwnLine: 1
BodyStartsOnOwnLine: 1
EndStartsOnOwnLine: 1
EndFinishesWithLineBreak: 1
ifElseFi:
everyBeginStartsOnOwnLine: 1
everyBodyStartsOnOwnLine: 1
everyEndStartsOnOwnLine: 1
everyEndFinishesWithLineBreak: 1
ifnum:
BeginStartsOnOwnLine: 1
BodyStartsOnOwnLine: 1
EndStartsOnOwnLine: 1
EndFinishesWithLineBreak: 1
etc.....
This would allow the user to specify linebreak choices globally on a per-object basis (as well as a per-named object).
from latexindent.pl.
I'd also like to see:
-1: leave alone, don't change linebreaks (translates to `undef` in the perl code)
0: e.g `BodyStartsOnOwnLine: 0` means body does *not* start on own line, so remove line break if necessary
1: e.g `BodyStartsOnOwnLine: 1` means body *does* start on own line, so add line break if necessary (this is the only one of the three currently implemented, as of https://github.com/cmhughes/latexindent.pl/commit/8329629b9300d5dd906381bfb2a72475e3b9ba00)
from latexindent.pl.
As of f29e867 this is now fully implemented. See test-cases/mand-args/mand-arg-test-cases.sh for samples.
The YAML interface is slightly different from that detailed above, as there is no need for 'every'.
Furthermore, each poly-switch can take the value of 2, which will add a comment symbol before adding a line break (if one is not already present) as appropriate.
from latexindent.pl.
Related Issues (20)
- tabularray's cmidrule causes the conflict between "modifyLineBreaks" and "lookForAlignDelims" HOT 5
- Support for algorithm packages, such as algorithmic and algpseudocodex HOT 3
- Non-English (non-Latin) paragraphs are not affected by the "modify linebreaks" action HOT 8
- Ignore or properly format specified lines from the `noIndentBlock` setting HOT 17
- Use `$homeDir`/`$HOME` in `$LATEXINDENT_CONFIG` file HOT 4
- Inconsistent indentation of Non-Latin `\item` and non-`\item` paragraphs (with linebreaks) HOT 8
- Text wrapping doesn't work inside an environment HOT 9
- \\ is misinterpreted in the \substack command HOT 3
- The default settings cann't align the table created by package tabularray HOT 17
- verbatimEnvironments can't take more than one Regex HOT 3
- verbatimEnvironments doesnt use more than one Regex HOT 3
- Tabular: Delete horizontal whitespace HOT 2
- Indentation is only 1 space after a section instead of 4 spaces like it is after all other headings. HOT 2
- Support for special characters in file path HOT 2
- Suggestion to add devcontainer configuration HOT 8
- `\item` indent rule unreliable under `modifyLineBreaks` with `when: after` HOT 5
- Interval mistaken for optional arguments? HOT 5
- latexindent.pl is uninstallable on Windows using conda because of missing dependency (perl5) HOT 6
- noindent for single line patterns HOT 3
- `modifyLineBreaks` with `when: after` has problems in the presence of comments and `\item` HOT 6
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 latexindent.pl.