Merge pull request #332 from MCribbin/patch-4

Update HumanReadableLogsRules.coffee
This commit is contained in:
James Allen 2016-10-11 11:11:10 +01:00 committed by GitHub
commit 65bc8a84db

View file

@ -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']