mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update HumanReadableLogsRules.coffee
This commit is contained in:
parent
95a66bbf00
commit
1ce8901c2a
1 changed files with 30 additions and 0 deletions
|
@ -152,6 +152,36 @@ define -> [
|
|||
humanReadableHint: """
|
||||
You have used a \\hline command in the wrong place, probably outside a table. If the \\hline command is written inside a table, try including \\\ before it.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /LaTeX Error: There's no line here to end/
|
||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors/LaTeX_Error:_There%27s_no_line_here_to_end"
|
||||
humanReadableHint: """
|
||||
You have used a \\\ or \\newline command where LaTeX was not expecting one. Make sure that you only use line breaks after blocks of text, and be careful using linebreaks inside lists and other environments.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /LaTeX Error: \\verb ended by end of line/
|
||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors/LaTeX_Error:_%5Cverb_ended_by_end_of_line"
|
||||
humanReadableHint: """
|
||||
You have used a \\verb command incorrectly. Try replacling the \\verb command with \begin{verbatim}\u2026\end{verbatim}.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Illegal unit of measure (pt inserted)/
|
||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors%2FIllegal%20unit%20of%20measure%20(pt%20inserted)"
|
||||
humanReadableHint: """
|
||||
You have written a length, but have not specified the appropriate units (pt, mm, cm etc.). If you have not written a length, check that you have not witten a linebreak \\\ followed by square brackets [\u2026] anywhere.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Extra \\right/
|
||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors/Extra_%5Cright"
|
||||
humanReadableHint: """
|
||||
You have written a \\right command without a corresponding \\left command. Check that all \\left and \\right commands balance everywhere.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Missing \\begin{document}/
|
||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors%2FLaTeX%20Error%3A%20Missing%20%5Cbegin%20document"
|
||||
humanReadableHint: """
|
||||
No \\begin{document} command was found. Make sure you have included \\begin{document} in your preamble, and that your main document is set correctly.
|
||||
"""
|
||||
,
|
||||
ruleId: "hint_mismatched_environment2"
|
||||
types: ['environment']
|
||||
|
|
Loading…
Reference in a new issue