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 w.r.t to betterFullStop #447

Merged
merged 1 commit into from May 25, 2023

Conversation

qiaojunfeng
Copy link
Contributor

what is this pull request about?

Add w.r.t. to betterFullStop so that modifyLineBreaks does not break the sentence at w.r.t.

does this relate to an existing issue?

no

does this change any existing behaviour?

yes, will not break sentence at w.r.t.

what does this add?

currently betterFullStop includes e.g., i.e., etc, this PR adds w.r.t to it.

For example,

The derivative of $F(x) = x^2$ w.r.t. $x$ is $2x$.

the currently result is

The derivative of $F(x) = x^2$ w.r.t.
$x$ is $2x$.

with this PR, the result is

The derivative of $F(x) = x^2$ w.r.t. $x$ is $2x$.

how do I test this?

  1. apply this PR
  2. copy the previous example to a file a.tex
  3. create a file localSettings.yaml with content
    modifyLineBreaks:
      oneSentencePerLine:
        manipulateSentences: 1
  4. run with latexindent -m -l a.tex

anything else?

no

@cmhughes cmhughes merged commit e7fbb6c into cmhughes:develop May 25, 2023
2 checks passed
@cmhughes
Copy link
Owner

Great, thanks so much! This will be part of the next release.

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.

None yet

2 participants