How to Fix the LaTeX “Not allowed in LR mode” Error When Highlighting Revisions If you highlight changes in a LaTeX manuscript using commands such as \change{...} , \rev{...} , or \hl{...} , you may eventually run into this error: LaTeX Error: Not allowed in LR mode. This often confuses authors, especially during journal revisions. Fortunately, the cause is simple: you placed a command inside the highlight block that LaTeX does not allow in LR mode. 🔍 Why This Error Happens Highlight macros like \change{} put LaTeX into a restricted text-only mode called LR mode . Inside LR mode, LaTeX only accepts basic text . The following commands cannot appear inside a highlight block: Section commands: \section , \subsection , \subsubsection Figures and tables List environments ( itemize , enumerate ) Math environments ( equation , align ) Captions and labels ( \caption , \label ) Any \begin{...} / \end{...} environment If even one of these appears in...
Comments
Post a Comment