|
|
@@ -12,7 +12,7 @@ define [], () ->
|
|
|
'Lambda', 'Xi', 'Pi', 'Sigma', 'Upsilon', 'Phi', 'Psi', 'Omega'
|
|
|
]
|
|
|
singleArgumentCommands = [
|
|
|
- 'chapter', 'usepackage', 'section', 'label', 'textbf', 'subsection',
|
|
|
+ 'chapter', 'section', 'label', 'textbf', 'subsection',
|
|
|
'vspace', 'cite', 'textit', 'documentclass', 'includegraphics', 'input',
|
|
|
'emph','caption', 'ref', 'title', 'author', 'texttt', 'include',
|
|
|
'hspace', 'bibitem', 'url', 'large', 'subsubsection', 'textsc', 'date',
|
|
|
@@ -30,7 +30,7 @@ define [], () ->
|
|
|
]
|
|
|
special = ['LaTeX', 'TeX']
|
|
|
|
|
|
- rawCommands = [].concat(
|
|
|
+ rawCommands = ['usepackage'].concat(
|
|
|
noArgumentCommands,
|
|
|
singleArgumentCommands,
|
|
|
doubleArgumentCommands,
|
|
|
@@ -63,19 +63,19 @@ define [], () ->
|
|
|
meta: "cmd"
|
|
|
}
|
|
|
special = for cmd in special
|
|
|
- {
|
|
|
- caption: "\\#{cmd}{}"
|
|
|
- snippet: "\\#{cmd}{}"
|
|
|
- meta: "cmd"
|
|
|
- }
|
|
|
+ {
|
|
|
+ caption: "\\#{cmd}{}"
|
|
|
+ snippet: "\\#{cmd}{}"
|
|
|
+ meta: "cmd"
|
|
|
+ }
|
|
|
|
|
|
staticCommands = [].concat(
|
|
|
- noArgumentCommands,
|
|
|
- singleArgumentCommands,
|
|
|
- doubleArgumentCommands,
|
|
|
- tripleArgumentCommands,
|
|
|
- special
|
|
|
- )
|
|
|
+ noArgumentCommands,
|
|
|
+ singleArgumentCommands,
|
|
|
+ doubleArgumentCommands,
|
|
|
+ tripleArgumentCommands,
|
|
|
+ special
|
|
|
+ )
|
|
|
|
|
|
class Parser
|
|
|
constructor: (@doc, @prefix) ->
|