mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 05:05:27 -05:00
Merge branch 'pr-latex-hints-improvements'
This commit is contained in:
commit
a33aeca9c3
3 changed files with 20 additions and 10 deletions
|
@ -106,7 +106,10 @@ div.full-size.pdf(ng-controller="PdfController")
|
||||||
span(ng-show="entry.file") {{ entry.file }}
|
span(ng-show="entry.file") {{ entry.file }}
|
||||||
span(ng-show="entry.line") , line {{ entry.line }}
|
span(ng-show="entry.line") , line {{ entry.line }}
|
||||||
p.entry-message(ng-show="entry.message") {{ entry.message }}
|
p.entry-message(ng-show="entry.message") {{ entry.message }}
|
||||||
.card.card-hint(ng-if="entry.humanReadableHint")
|
.card.card-hint(
|
||||||
|
ng-if="entry.humanReadableHint"
|
||||||
|
stop-propagation="click"
|
||||||
|
)
|
||||||
figure.card-hint-icon-container
|
figure.card-hint-icon-container
|
||||||
i.fa.fa-lightbulb-o(aria-hidden="true")
|
i.fa.fa-lightbulb-o(aria-hidden="true")
|
||||||
p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint")
|
p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint")
|
||||||
|
@ -129,7 +132,7 @@ div.full-size.pdf(ng-controller="PdfController")
|
||||||
) #{translate("answer_no")}
|
) #{translate("answer_no")}
|
||||||
.card-hint-feedback(ng-show="feedbackSent")
|
.card-hint-feedback(ng-show="feedbackSent")
|
||||||
label.card-hint-feedback-label #{translate("log_hint_feedback_gratitude")}
|
label.card-hint-feedback-label #{translate("log_hint_feedback_gratitude")}
|
||||||
p.entry-content(ng-show="entry.content") {{ entry.content }}
|
p.entry-content(ng-show="entry.content") {{ entry.content.trim() }}
|
||||||
|
|
||||||
p
|
p
|
||||||
.pull-right
|
.pull-right
|
||||||
|
|
|
@ -8,7 +8,7 @@ define -> [
|
||||||
regexToMatch: /Extra alignment tab has been changed to \\cr/
|
regexToMatch: /Extra alignment tab has been changed to \\cr/
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:Extra_alignment_tab_has_been_changed_to_%5Ccr"
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:Extra_alignment_tab_has_been_changed_to_%5Ccr"
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
You have written too many alignment tabs in a table, causing one of them to be turned into a line break. Make sure you have specified the correct number of columns in your <a href=\"https://www.sharelatex.com/learn/Tables\">table</a>.
|
You have written too many alignment tabs in a table, causing one of them to be turned into a line break. Make sure you have specified the correct number of columns in your <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Tables\">table</a>.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /Display math should end with \$\$/
|
regexToMatch: /Display math should end with \$\$/
|
||||||
|
@ -20,7 +20,7 @@ define -> [
|
||||||
regexToMatch: /Missing [{$] inserted./
|
regexToMatch: /Missing [{$] inserted./
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:Missing_$_inserted"
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:Missing_$_inserted"
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
Check that your $'s match around math expressions. If they do, then you've probably used a symbol in normal text that needs to be in math mode. Symbols such as subscripts ( _ ), integrals ( \\int ), Greek letters ( \\alpha, \\beta, \\delta ), and modifiers (\\vec{x}, \\tilde{x} ) must be written in math mode. See the full list <a href=\"https://www.sharelatex.com/learn/Errors:Missing_$_inserted\">here</a>.
|
Check that your $'s match around math expressions. If they do, then you've probably used a symbol in normal text that needs to be in math mode. Symbols such as subscripts ( _ ), integrals ( \\int ), Greek letters ( \\alpha, \\beta, \\delta ), and modifiers (\\vec{x}, \\tilde{x} ) must be written in math mode. See the full list <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Errors:Missing_$_inserted\">here</a>.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /(undefined )?[rR]eference(s)?.+(undefined)?/
|
regexToMatch: /(undefined )?[rR]eference(s)?.+(undefined)?/
|
||||||
|
@ -44,13 +44,13 @@ define -> [
|
||||||
regexToMatch: /`!?h' float specifier changed to `!?ht'/
|
regexToMatch: /`!?h' float specifier changed to `!?ht'/
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:%60!h%27_float_specifier_changed_to_%60!ht%27."
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:%60!h%27_float_specifier_changed_to_%60!ht%27."
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
The float specifier 'h' is too strict of a demand for LaTeX to place your float in a nice way here. Try relaxing it by using 'ht', or even 'htbp' if necessary. If you want to try keep the float here anyway, check out the <a href=\"https://www.sharelatex.com/learn/Positioning_of_Figures\">float package</a>.
|
The float specifier 'h' is too strict of a demand for LaTeX to place your float in a nice way here. Try relaxing it by using 'ht', or even 'htbp' if necessary. If you want to try keep the float here anyway, check out the <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Positioning_of_Figures\">float package</a>.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /No positions in optional float specifier/
|
regexToMatch: /No positions in optional float specifier/
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:No_positions_in_optional_float_specifier."
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:No_positions_in_optional_float_specifier."
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
You have forgotten to include a float specifier, which tells LaTeX where to position your figure. Find out more about float specifiers <a href=\"https://www.sharelatex.com/learn/Positioning_of_Figures\">here</a>.
|
You have forgotten to include a float specifier, which tells LaTeX where to position your figure. Find out more about float specifiers <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Positioning_of_Figures\">here</a>.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /Undefined control sequence/
|
regexToMatch: /Undefined control sequence/
|
||||||
|
@ -62,13 +62,13 @@ define -> [
|
||||||
regexToMatch: /File .+ not found/
|
regexToMatch: /File .+ not found/
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:File_XXX_not_found_on_input_line_XXX."
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:File_XXX_not_found_on_input_line_XXX."
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
The compiler cannot find the file you want to include. Make sure that you have <a href=\"https://www.sharelatex.com/learn/Including_images_in_ShareLaTeX\">uploaded the file</a> and <a href=\"https://www.sharelatex.com/learn/Errors:File_XXX_not_found_on_input_line_XXX.\">specified the file location correctly</a>.
|
The compiler cannot find the file you want to include. Make sure that you have <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Including_images_in_ShareLaTeX\">uploaded the file</a> and <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Errors:File_XXX_not_found_on_input_line_XXX.\">specified the file location correctly</a>.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /LaTeX Error: Unknown graphics extension: \..+/
|
regexToMatch: /LaTeX Error: Unknown graphics extension: \..+/
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:LaTeX_Error:_Unknown_graphics_extension:_.gif."
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:LaTeX_Error:_Unknown_graphics_extension:_.gif."
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
The compiler does not recognise the file type of one of your images. Make sure you are using a <a href=\"https://www.sharelatex.com/learn/Errors:LaTeX_Error:_Unknown_graphics_extension:_.gif.\">supported image format</a> for your choice of compiler, and check that there are no periods (.) in the name of your image.
|
The compiler does not recognise the file type of one of your images. Make sure you are using a <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Errors:LaTeX_Error:_Unknown_graphics_extension:_.gif.\">supported image format</a> for your choice of compiler, and check that there are no periods (.) in the name of your image.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /LaTeX Error: Unknown float option `H'/
|
regexToMatch: /LaTeX Error: Unknown float option `H'/
|
||||||
|
@ -80,7 +80,7 @@ define -> [
|
||||||
regexToMatch: /LaTeX Error: Unknown float option `.+'/
|
regexToMatch: /LaTeX Error: Unknown float option `.+'/
|
||||||
extraInfoURL: "https://www.sharelatex.com/learn/Errors:LaTeX_Error:_Unknown_float_option_%60H%27."
|
extraInfoURL: "https://www.sharelatex.com/learn/Errors:LaTeX_Error:_Unknown_float_option_%60H%27."
|
||||||
humanReadableHint: """
|
humanReadableHint: """
|
||||||
You have used a float specifier which the compiler does not understand. You can learn more about the different float options available for placing figures <a href=\"https://www.sharelatex.com/learn/Positioning_of_Figures\">here</a>.
|
You have used a float specifier which the compiler does not understand. You can learn more about the different float options available for placing figures <a target=\"_blank\" href=\"https://www.sharelatex.com/learn/Positioning_of_Figures\">here</a>.
|
||||||
"""
|
"""
|
||||||
,
|
,
|
||||||
regexToMatch: /LaTeX Error: \\math.+ allowed only in math mode/
|
regexToMatch: /LaTeX Error: \\math.+ allowed only in math mode/
|
||||||
|
|
|
@ -181,6 +181,8 @@
|
||||||
|
|
||||||
.card-hint:extend(.card-thin) {
|
.card-hint:extend(.card-thin) {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
padding-bottom: 7px;
|
||||||
|
cursor: default;
|
||||||
|
|
||||||
&-icon-container {
|
&-icon-container {
|
||||||
background: currentColor;
|
background: currentColor;
|
||||||
|
@ -217,6 +219,10 @@
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-text {
|
||||||
|
min-height: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
&-feedback-label {
|
&-feedback-label {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
|
@ -230,7 +236,8 @@
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-actions a {
|
&-actions a,
|
||||||
|
&-text a {
|
||||||
.alert-danger & {
|
.alert-danger & {
|
||||||
color: @alert-danger-text;
|
color: @alert-danger-text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue