-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
\ref{} is detected as end of a sentence #168
Comments
@atsuyaw |
How to reproduceEnvironment
Procedure$ mkdir textlint-latex2e-issue168 && cd $_
$ npm init -y
$ npm install --save \
[email protected] \
[email protected] \
[email protected]
$ cat << EOF > sample.tex
本日は図\ref{fig:sunnyy}に示すように晴天なり。
EOF
$ cat << EOF > .textlintrc
{
"plugins": ["latex2e"],
"rules": {
"ja-no-mixed-period": {
"periodMark": "。"
}
}
}
EOF
$ textlint sample.tex
/Users/pudding/Factory/textlint-latex2e-issue168/sample.tex
1:4 error 文末が"。"で終わっていません。 ja-no-mixed-period
✖ 1 problem (1 error, 0 warnings) Cause of this issueThere seems to be an error in the way
This problem can be avoided by interpreting it as an inline element, just like label and url. |
hmm... This problem is caused by #70 . HTML type nodes contain two types, inline and block, but there is no way to tell the difference, so they are always interpreted as block elements. textlint-plugin-latex2e/src/paragraphize.ts Lines 38 to 54 in 8bd0910
@tani Do you know of any good solutions? |
Oh, I found We need to use both |
@pddg |
When I use
![image](https://user-images.githubusercontent.com/68371029/119588090-043daa80-be0b-11eb-99ac-fa380a165ba0.png)
\ref{}
, the command was detected as end of a sentence:It is expected to detect an error in sentences such as line 199, but errors outed in line 200 and 201.
\ref{}
command is used for cross-reference frequently in academic writing.In fact, such structure of sentences were contained a lot in my file, so the output were filled with these errors.
The text was updated successfully, but these errors were encountered: