Replies: 1 comment 2 replies
-
|
@iamhyc Do you have any solution regarding this issue? Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm experiencing an issue with Overleaf Workshop where the formatter incorrectly modifies LaTeX commands that include optional arguments, particularly the
\authorcommand.I am using the following document class:
\documentclass[final, 5p, times, twocolumn]{elsarticle}Additionally, I am working with the Elsevier article template, available here [https://www.overleaf.com/latex/templates/elsevier-article-elsarticle-template/vdzfjgjbckgz].
For example, the following line:
\author[label1]{John Doe}is reformatted as:
\author{[}label1]{John Doe}This breaks the syntax and prevents successful compilation of the document.
Steps to Reproduce
Use Overleaf Workshop with formatting enabled in VS Code.
Add the Elsevier document class and the
\authorcommand with an optional argument, as shown above.Save the file or trigger the formatter.
Expected Behaviour
The formatter should preserve the syntax of the \author command, including its optional arguments, without modification.
Actual Behaviour
The formatter incorrectly splits or modifies the command, resulting in invalid syntax.
Question
Is there a way to configure the formatter in Overleaf Workshop to handle optional arguments in commands properly, or to skip formatting specific commands like
\author?Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions