mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use plain links instead of buttons.
This commit is contained in:
parent
ada018263a
commit
a8976fd4dc
3 changed files with 65 additions and 53 deletions
|
@ -111,14 +111,13 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint")
|
||||
.card-hint-actions
|
||||
.card-hint-action-ext-link
|
||||
a.btn.btn-sm.btn-default(ng-href="{{ entry.extraInfoURL }}", target="_blank")
|
||||
a(ng-href="{{ entry.extraInfoURL }}", target="_blank")
|
||||
i.fa.fa-external-link
|
||||
| #{translate("log_hint_extra_info")}
|
||||
.card-hint-action-feedback
|
||||
label.card-hint-enquiry-label #{translate("log_hint_enquiry_helpful")}
|
||||
.btn-group.btn-group-sm(role="group")
|
||||
button.btn.btn-default #{translate("answer_yes")}
|
||||
button.btn.btn-default #{translate("answer_no")}
|
||||
label.card-hint-enquiry-label #{translate("log_hint_enquiry_helpful")}
|
||||
a #{translate("answer_yes")}
|
||||
a #{translate("answer_no")}
|
||||
p.entry-content(ng-show="entry.content") {{ entry.content }}
|
||||
|
||||
p
|
||||
|
|
|
@ -1,43 +1,43 @@
|
|||
define -> [
|
||||
regexToMatch: /Too many }'s/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Too_many_.7D.27s"
|
||||
humanReadableHint: """
|
||||
The reason LaTeX thinks there are too many }'s here is that the opening curly brace is missing after the <tt>\\date</tt> control sequence and before the word December, so the closing curly brace is seen as one too many (which it is!).
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Undefined control sequence/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Undefined_control_sequence"
|
||||
humanReadableHint: """
|
||||
In this example, LaTeX is complaining that it has no such command ("control sequence") as <tt>\\dtae</tt>. Obviously it's been mistyped, but only a human can detect that fact: all LaTeX knows is that <tt>\\dtae</tt> is not a command it knows about: it's undefined.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Missing \$ inserted/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Not_in_Mathematics_Mode"
|
||||
humanReadableHint: """
|
||||
A character that can only be used in the mathematics was inserted in normal text. If you intended to use mathematics mode, then use <tt>$...$</tt> or <tt>\\begin{math}...\\end{math}</tt> or use the 'quick math mode': <tt>\\ensuremath{...}</tt>.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Runaway argument/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Runaway_argument"
|
||||
humanReadableHint: """
|
||||
In this error, the closing curly brace has been omitted from the date. It's the opposite of the error of too many }'s, and it results in <tt>\\maketitle</tt> trying to format the title page while LaTeX is still expecting more text for the date!
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Underfull \\hbox/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Underfull_hbox"
|
||||
humanReadableHint: """
|
||||
This is a warning that LaTeX cannot stretch the line wide enough to fit, without making the spacing bigger than its currently permitted maximum. The badness (0-10,000) indicates how severe this is (here you can probably ignore a badness of 1394).
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Overfull \\hbox/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Overfull_hbox"
|
||||
humanReadableHint: """
|
||||
An overfull \\hbox means that there is a hyphenation or justification problem: moving the last word on the line to the next line would make the spaces in the line wider than the current limit; keeping the word on the line would make the spaces smaller than the current limit, so the word is left on the line, but with the minimum allowed space between words, and which makes the line go over the edge.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /LaTeX Error: File .* not found/
|
||||
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Missing_package"
|
||||
humanReadableHint: """
|
||||
When you use the <tt>\\usepackage</tt> command to request LaTeX to use a certain package, it will look for a file with the specified name and the filetype <tt>.sty</tt>. In this case the user has mistyped the name of the paralist package, so it's easy to fix.
|
||||
"""
|
||||
regexToMatch: /Too many }'s/
|
||||
extraInfoURL: ""
|
||||
humanReadableHint: """
|
||||
The reason LaTeX thinks there are too many }'s here is that the opening curly brace is missing after the <tt>\\date</tt> control sequence and before the word December, so the closing curly brace is seen as one too many (which it is!).
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Undefined control sequence/
|
||||
extraInfoURL: "/learn/Errors:Undefined_control_sequence."
|
||||
humanReadableHint: """
|
||||
In this example, LaTeX is complaining that it has no such command ("control sequence") as <tt>\\dtae</tt>. Obviously it's been mistyped, but only a human can detect that fact: all LaTeX knows is that <tt>\\dtae</tt> is not a command it knows about: it's undefined.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Missing \$ inserted/
|
||||
extraInfoURL: "/learn/Errors:Missing_$_inserted"
|
||||
humanReadableHint: """
|
||||
A character that can only be used in the mathematics was inserted in normal text. If you intended to use mathematics mode, then use <tt>$...$</tt> or <tt>\\begin{math}...\\end{math}</tt> or use the 'quick math mode': <tt>\\ensuremath{...}</tt>.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Runaway argument/
|
||||
extraInfoURL: "/learn/Errors:Undefined_control_sequence."
|
||||
humanReadableHint: """
|
||||
In this error, the closing curly brace has been omitted from the date. It's the opposite of the error of too many }'s, and it results in <tt>\\maketitle</tt> trying to format the title page while LaTeX is still expecting more text for the date!
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Underfull \\hbox/
|
||||
extraInfoURL: "/learn/Errors:Underfull_%5Chbox"
|
||||
humanReadableHint: """
|
||||
This is a warning that LaTeX cannot stretch the line wide enough to fit, without making the spacing bigger than its currently permitted maximum. The badness (0-10,000) indicates how severe this is (here you can probably ignore a badness of 1394).
|
||||
"""
|
||||
,
|
||||
regexToMatch: /Overfull \\hbox/
|
||||
extraInfoURL: ""
|
||||
humanReadableHint: """
|
||||
An overfull \\hbox means that there is a hyphenation or justification problem: moving the last word on the line to the next line would make the spaces in the line wider than the current limit; keeping the word on the line would make the spaces smaller than the current limit, so the word is left on the line, but with the minimum allowed space between words, and which makes the line go over the edge.
|
||||
"""
|
||||
,
|
||||
regexToMatch: /LaTeX Error: File .* not found/
|
||||
extraInfoURL: "/learn/Errors:missing_package"
|
||||
humanReadableHint: """
|
||||
When you use the <tt>\\usepackage</tt> command to request LaTeX to use a certain package, it will look for a file with the specified name and the filetype <tt>.sty</tt>. In this case the user has mistyped the name of the paralist package, so it's easy to fix.
|
||||
"""
|
||||
]
|
|
@ -195,6 +195,19 @@
|
|||
.fa {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.alert-danger & {
|
||||
color: @alert-danger-border;
|
||||
}
|
||||
|
||||
.alert-warning & {
|
||||
color: @alert-warning-border;
|
||||
}
|
||||
|
||||
.alert-info & {
|
||||
color: @alert-info-border;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-text,
|
||||
|
@ -205,9 +218,8 @@
|
|||
}
|
||||
|
||||
&-enquiry-label {
|
||||
font-size: 0.8rem;
|
||||
font-size: inherit;
|
||||
margin-bottom: 0;
|
||||
margin-right: 0.5em;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
|
@ -218,18 +230,19 @@
|
|||
&-action-ext-link,
|
||||
&-action-feedback {
|
||||
display: inline-block;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
&-action-feedback {
|
||||
float: right;
|
||||
|
||||
a {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
& + p {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue