michael-brade / LaTeX.js

JavaScript LaTeX to HTML5 translator
https://latex.js.org
MIT License
770 stars 58 forks source link

what's difference between @\maketitle and \maketitle #80

Closed seuliang closed 5 years ago

seuliang commented 5 years ago

https://github.com/michael-brade/LaTeX.js/blob/245ca82d22c9f9d4dc34041833316667b2f17af6/src/documentclasses/base.ls#L187

and https://github.com/michael-brade/LaTeX.js/blob/245ca82d22c9f9d4dc34041833316667b2f17af6/src/documentclasses/base.ls#L160

Are they different?

michael-brade commented 5 years ago

absolutely. @ is a shortcut for this. Line 160 is the method definition, line 187 just deletes all those methods so that \maketitle can only be called once.