8000 Mathematical Notations · haghish/markdoc Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mathematical Notations

E. F. Haghish edited this page Aug 21, 2016 · 11 revisions

MarkDoc supports writing LaTeX mathematical notations in various formats such as docx, odt, pdf, slide, html, and latex. Although you might be writing your document with Markdown or HTML, you can always integrate LaTeX mathematical notations in your document.

Since you often write the mathematical notations in the especial comments, Stata will not interpret them as global macros. Nevertheless, you can also write dynamic mathematical notations, where you include values from scalars or macros in your mathematical formulas using the txt command.

/***
Writing with Markdown and LaTeX notations
=========================================

Inline notations
----------------

Use a single "\$" sign for writing inline mathematical notations. For example, 
$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$ would be rendered inline 
with the text paragraph. 


Placing notations on a separate line
------------------------------------

Use double dollar signs for placing the notations on a separate lines:

$$ Y_i = \beta_0 + \beta_1 X_i + \epsilon_i $$

Place a backslash before the "\$" if you are using them in the document, but 
not for rendering mathematical notations. The backslash will not appear in the 
dynamic document. Note that when you write inline mathematical notations, there 
should be __NO SPACE__ between the dollar sign and the notation. However, if you 
are placing your notations on a separate line, there should be no problem. 
***/ 
Clone this wiki locally
0