Closed shypard closed 7 months ago
Update: I worked around issue 1) by adding the following configuration:
...
modifyLineBreaks:
commands:
label:
CommandStartsOnOwnLine: 1
...
The second issue (Block where first line starting with a command \textbf
, \textit
, etc does not wrap) still remains.
Apologies for the delay
On Mon, 8 Jan 2024, 15:30 Christian, @.***> wrote:
Update: I worked around issue 1) by adding the following configuration:
...modifyLineBreaks: commands: label: CommandStartsOnOwnLine: 1 ...
The second issue (Block where first line starting with a command \textbf, \textit, etc does not wrap) still remains.
— Reply to this email directly, view it on GitHub https://github.com/cmhughes/latexindent.pl/issues/506#issuecomment-1881232950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ7CYCKCVD2BJYTHNNQOITYNQGIPAVCNFSM6AAAAABBOJG6I6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGIZTEOJVGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
If we use the settings
modifyLineBreaks:
commands:
label:
CommandStartsOnOwnLine: 1
textWrapOptions:
columns: 60
blocksBeginWith:
other: |-
(?x)
\\acp
|
\\citeauth
then we receive
\section{Heading-1}
\label{heading-1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.
\acp{acr} ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.
\citeauthr{author1} Excepeur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id
est laborum.
I hope this helps, and sorry for the delay.
Alright, that works! Thanks! :)
Hi, thanks very much for your plugin - it has helped me a lot! However, I am having still trouble configuring my settings, here my two issues:
\section
,\subsection,
\chapters`, etc) and Labels {\label}\textbf{}
,\textit{}
,\acp{}
,\citeauthor{}
...Regarding Problem 2) I already added the regex code
(\\textbf{)|(\\textit{)
to theblocksBeginWith
section, but this seems a bit tedious for such commands, is there another way?This is the localSettings.yml file:
Actual/given output
Desired or expected output
Thanks & BR :)