mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-03 02:52:37 +00:00
Merge pull request #332 from MCribbin/patch-4
Update HumanReadableLogsRules.coffee
This commit is contained in:
commit
65bc8a84db
1 changed files with 30 additions and 0 deletions
|
@ -152,6 +152,36 @@ define -> [
|
||||||
humanReadableHint: """
|
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.
|
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"
|
ruleId: "hint_mismatched_environment2"
|
||||||
types: ['environment']
|
types: ['environment']
|
||||||
|
|
Loading…
Reference in a new issue