markdown-preview-plus.cson 643 B

123456789101112131415161718192021
  1. # You can place LaTeX Macros here.
  2. # They are written as coffeescript objects in CSON.
  3. # So don't forget to escape your backslashes!
  4. # Here are some examples to get you going:
  5. # A zero argument macro
  6. # This is just an alias for \theta.
  7. # th: "{\\theta}" # Example usage: $\th$
  8. # A one argument macro
  9. # This one gives you "1 over something" as a fraction.
  10. # inv: ["{\\frac{1}{#1}}",1] # Example usage: $\inv{x}$
  11. # A two argument macro
  12. # This one gives you a fraction with nicely typeset parentheses on either side.
  13. # pfrac: ["{\\left(\\frac{#1}{#2}\\right)}",2] # Example usage: $\pfrac{x}{y}$
  14. # You can use up to 9 arguments like this!