Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103283153
prism-latex.min.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 28, 20:24
Size
1023 B
Mime Type
text/x-tex
Expires
Sun, Mar 2, 20:24 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24524541
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
prism-latex.min.js
View Options
!
function
(
a
){
var
e
=
/\\(?:[^a-z()[\]]|[a-z*]+)/i
,
n
=
{
"equation-command"
:
{
pattern
:
e
,
alias
:
"regex"
}};
a
.
languages
.
latex
=
{
comment
:
/%.*/
,
cdata
:
{
pattern
:
/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/
,
lookbehind
:!
0
},
equation
:
[{
pattern
:
/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/
,
inside
:
n
,
alias
:
"string"
},{
pattern
:
/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/
,
lookbehind
:!
0
,
inside
:
n
,
alias
:
"string"
}],
keyword
:
{
pattern
:
/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/
,
lookbehind
:!
0
},
url
:
{
pattern
:
/(\\url\{)[^}]+(?=\})/
,
lookbehind
:!
0
},
headline
:
{
pattern
:
/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/
,
lookbehind
:!
0
,
alias
:
"class-name"
},
function
:
{
pattern
:
e
,
alias
:
"selector"
},
punctuation
:
/[[\]{}&]/
},
a
.
languages
.
tex
=
a
.
languages
.
latex
,
a
.
languages
.
context
=
a
.
languages
.
latex
}(
Prism
);
Event Timeline
Log In to Comment