Closed rikutons closed 3 months ago
Can you try the GCString switch
https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#the-gcstring-switch
Can you try the GCString switch
https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#the-gcstring-switch
It worked correctly! I should have read docs more deeply, thanks for advise.
Some characters have larger width than other characters. For example, all CJK characters are fullwidth font. But now latexindent treats these characters as 1-width , that makes shifted \ and & on tabular environment.
Can you add an option to treat fullwidth characters as 2-width characters?
original .tex code
yaml settings
none
actual/given output
desired or expected output
(Seems like Github is not using monospace font on codeblock for fullwidth char,![image](https://github.com/cmhughes/latexindent.pl/assets/27684488/8fa87882-5844-4fc1-9dae-ab6875d6a8e5)
so I add screenshot with proper monospace font)
anything else
https://metacpan.org/pod/Text::CharWidth can detect char's width. But idk how to use with that algorithm. So need help to implement if this feature got accepted. https://github.com/cmhughes/latexindent.pl/blob/9cc2d864322c3edf8780d49aa27ba2eb3948e3af/LatexIndent/AlignmentAtAmpersand.pm#L1781
Long fullwidth string makes table broken(It's already formatted).![image](https://github.com/cmhughes/latexindent.pl/assets/27684488/0fd2b5eb-0515-4302-8a57-064fceab0656)