wolfe-pack / moro

Interactive documentation and programming with Scala, iPython notebook style.
http://wolfe-pack.github.io/moro
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

Globally define latex macros #44

Closed riedelcastro closed 9 years ago

riedelcastro commented 9 years ago

I often reuse the same latex code in several cells and notebooks, and it would be great to define macros for this globally.

sameersingh commented 9 years ago

Support for prefixHTML added to config files by 06cbfbc and 5c31b50.

For adding latex macros, add something like this to the moro.compilers section of the config file (first one creates a standalone macro, and the second a macro for single-argument function):

latex {
  imports = [
    "\\def\\RR{\\bf R}",
    "\\def\\bold#1{\\alpha: #1}"
  ]
}

Do you think this should be part of the notebook config?

sameersingh commented 9 years ago

Leaving notebook config for future.