-
Notifications
You must be signed in to change notification settings - Fork 84
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
linewidth not respected exactly with indentation #359
Comments
Thanks for this. So if there was no indentation then the line width would be correct....? |
Indeed |
OK, in which case this is a known issue : https://latexindentpl.readthedocs.io/en/latest/sec-conclusions-know-limitations.html I'll see if I can look into changing the order of things. I have no idea how difficult it will be. Text wrapping is the gift that keeps on giving. |
In that case sorry for reporting a know issue ;) |
For my reference |
This issue is on my mind a lot, I have a plan for how to tackle it, just need the head space to sit down and do it. I'm hoping to get to it before the end of 2022, at the latest. |
For my reference |
Some good news! :) As of a54b7be I've upgraded the demonstration 1Starting with \begin{abstract}
This is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. Another is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\begin{another}
Another is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\begin{itemize}
\item Another is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. One is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. Two is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\item Another is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. One is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. Two is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\item Another is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\begin{itemize}
\item One is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\item Two is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\end{itemize}
\item Three is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\end{itemize}
\end{another}
This is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. One is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. Two is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation. Three is a very long sentence that should be wrapped at some point, which is the case but is is is is line width is not respected because of the indentation.
\end{abstract} and the settings defaultIndent: ' '
modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 1
textWrapSentences: 1
sentencesFollow:
other: \\item
textWrapOptions:
columns: 100
when: after # <!---------- NEW BIT gives the output \begin{abstract}
This is a very long sentence that should be wrapped at some point, which is the case but is is
is is line width is not respected because of the indentation.
Another is a very long sentence that should be wrapped at some point, which is the case but is
is is is line width is not respected because of the indentation.
\begin{another}
Another is a very long sentence that should be wrapped at some point, which is the case but
is is is is line width is not respected because of the indentation.
\begin{itemize}
\item
Another is a very long sentence that should be wrapped at some point, which is
the case but is is is is line width is not respected because of the indentation.
One is a very long sentence that should be wrapped at some point, which is the
case but is is is is line width is not respected because of the indentation.
Two is a very long sentence that should be wrapped at some point, which is the
case but is is is is line width is not respected because of the indentation.
\item
Another is a very long sentence that should be wrapped at some point, which is
the case but is is is is line width is not respected because of the indentation.
One is a very long sentence that should be wrapped at some point, which is the
case but is is is is line width is not respected because of the indentation.
Two is a very long sentence that should be wrapped at some point, which is the
case but is is is is line width is not respected because of the indentation.
\item
Another is a very long sentence that should be wrapped at some point, which is
the case but is is is is line width is not respected because of the indentation.
\begin{itemize}
\item
One is a very long sentence that should be wrapped at some point, which
is the case but is is is is line width is not respected because of the
indentation.
\item
Two is a very long sentence that should be wrapped at some point, which
is the case but is is is is line width is not respected because of the
indentation.
\end{itemize}
\item
Three is a very long sentence that should be wrapped at some point, which is the
case but is is is is line width is not respected because of the indentation.
\end{itemize}
\end{another}
This is a very long sentence that should be wrapped at some point, which is the case but is is
is is line width is not respected because of the indentation.
One is a very long sentence that should be wrapped at some point, which is the case but is is
is is line width is not respected because of the indentation.
Two is a very long sentence that should be wrapped at some point, which is the case but is is
is is line width is not respected because of the indentation.
Three is a very long sentence that should be wrapped at some point, which is the case but is is
is is line width is not respected because of the indentation.
\end{abstract}
----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 Note that columns have been respected :) demonstration 2Starting with \begin{enumerate}
\item This is a very long sentence, which is mostly likely going to be longer than eighty characters---and it is.
\item This is a very long sentence, which is mostly likely going to be longer than eighty
characters---in fact, it is. But it's wrapped on one hundred characters, yes 100.
\end{enumerate} and the settings defaultIndent: " "
modifyLineBreaks:
textWrapOptions:
columns: 80
when: after #<!------- NEW BIT gives the output \begin{enumerate}
\item This is a very long sentence, which is mostly likely going to be longer
than eighty characters---and it is.
\item This is a very long sentence, which is mostly likely going to be longer
than eighty characters---in fact, it is. But it's wrapped on one
hundred characters, yes 100.
\end{enumerate}
----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 demonstration 3From #306, starting with \begin{document}
\begin{enumerate}[label=(\alph*)]
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit, cras imperdiet viv ris et molestie. Nulla molestie diam quam, ac molestie velit rhoncus placerat.
\begin{enumerate}[label=(\roman*)]
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit, cras imperdiet viv ris et molestie. Nulla molestie diam quam, ac molestie velit rhoncus placerat.
\end{enumerate}
\end{enumerate}
\end{document} Using the settings defaultIndent: ' '
modifyLineBreaks:
textWrapOptions:
columns: 100
when: after # <!---- NEW BIT gives the output \begin{document}
\begin{enumerate}[label=(\alph*)]
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit, cras
imperdiet viv ris et molestie. Nulla molestie diam quam, ac molestie
velit rhoncus placerat.
\begin{enumerate}[label=(\roman*)]
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit,
cras imperdiet viv ris et molestie. Nulla molestie diam
quam, ac molestie velit rhoncus placerat.
\end{enumerate}
\end{enumerate}
\end{document}
----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 You'll notice that the text wrapping can now respect This will be part of the next release, coming soon in early 2023, hopefully :) Feel free to pull from |
This is part of |
Please provide the following when posting an issue:
original .tex code
yaml settings
actual/given output
desired or expected output
The text was updated successfully, but these errors were encountered: