From 1ce8901c2ad68e8adc4b2787d8d3c1c4becbdf38 Mon Sep 17 00:00:00 2001 From: MCribbin Date: Wed, 5 Oct 2016 14:12:49 +0100 Subject: [PATCH 1/2] Update HumanReadableLogsRules.coffee --- .../HumanReadableLogsRules.coffee | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee b/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee index 164e78ce66..eb2f4b7e04 100644 --- a/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee +++ b/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee @@ -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'] From fba22dc11fd047f3a0e435aecb7deba0282facf2 Mon Sep 17 00:00:00 2001 From: MCribbin Date: Thu, 6 Oct 2016 12:29:42 +0100 Subject: [PATCH 2/2] Update HumanReadableLogsRules.coffee --- .../ide/human-readable-logs/HumanReadableLogsRules.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee b/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee index eb2f4b7e04..59d41ffa28 100644 --- a/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee +++ b/services/web/public/coffee/ide/human-readable-logs/HumanReadableLogsRules.coffee @@ -156,7 +156,7 @@ define -> [ 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. + 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/ @@ -168,7 +168,7 @@ define -> [ 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. + 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/