Skip to content

Commit

Permalink
added to latex example
Browse files Browse the repository at this point in the history
  • Loading branch information
mgimond committed Apr 11, 2024
1 parent 679219d commit 1524d39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/rmarkdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./sl_plot.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">20</span>&nbsp; <span class="chapter-title">Spread-level plots</span></span></a>
<span class="menu-text"><span class="chapter-number">20</span>&nbsp; <span class="chapter-title">Univariate spread-level plot</span></span></a>
</div>
</li>
<li class="sidebar-item">
Expand Down Expand Up @@ -655,13 +655,13 @@ <h2 data-number="29.5" class="anchored" data-anchor-id="text-formats"><span clas
<li>Block equations: You can embed <a href="https://www.sharelatex.com/learn/Mathematical_expressions">Latex</a> block equations using double dollar signs,</li>
</ul>
<pre class="output_example">$$
x = \frac{1 + x}{x}
y_{edu} = \frac{1 + x}{x} + \varepsilon
$$
</pre>
<p>which generates,</p>
<div class="output_out">
<p><span class="math display">\[
x = \frac{1 + x}{x}
y_{edu} = \frac{1 + x}{x} + \varepsilon
\]</span></p>
</div>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@
"href": "rmarkdown.html#text-formats",
"title": "29  R markdown document",
"section": "29.5 Text formats",
"text": "29.5 Text formats\nThe markdown language has several built-in text formatting options. A brief summary of some their syntax follows:\n\nItalic: To italicize text, wrap it in asterisks as in *this is italicized*. Note that you do not want spaces between the asterisks and the text.\nBold: To bold text, wrap it with a pair of asterisks **this is bold**.\nWeb links: To create web links wrap the text with [ ] followed by the web link wrapped with ( ) as in [ES 218 website](https://mgimond.github.io/ES218). Make sure that there are no spaces between [] and ().\nLists: To create lists in your document, precede each list item with an asterisk followed by a space. For example:\n\n* First list element\n* Second list element\n* Third list element\n\n\n\nFirst list element\nSecond list element\nThird list element\n\n\n\nBlock equations: You can embed Latex block equations using double dollar signs,\n\n$$\nx = \\frac{1 + x}{x}\n$$\n\nwhich generates,\n\n\\[\nx = \\frac{1 + x}{x}\n\\]\n\n\nInline equations: You can also add inline Latex equations using single dollar signs,\n\nThe equation $x(1 + x)$ can be re-written as $x + x^2$. \n\nwhich generates,\n\nThe equation \\(x(1 + x)\\) can be re-written as \\(x + x^2\\)."
"text": "29.5 Text formats\nThe markdown language has several built-in text formatting options. A brief summary of some their syntax follows:\n\nItalic: To italicize text, wrap it in asterisks as in *this is italicized*. Note that you do not want spaces between the asterisks and the text.\nBold: To bold text, wrap it with a pair of asterisks **this is bold**.\nWeb links: To create web links wrap the text with [ ] followed by the web link wrapped with ( ) as in [ES 218 website](https://mgimond.github.io/ES218). Make sure that there are no spaces between [] and ().\nLists: To create lists in your document, precede each list item with an asterisk followed by a space. For example:\n\n* First list element\n* Second list element\n* Third list element\n\n\n\nFirst list element\nSecond list element\nThird list element\n\n\n\nBlock equations: You can embed Latex block equations using double dollar signs,\n\n$$\ny_{edu} = \\frac{1 + x}{x} + \\varepsilon\n$$\n\nwhich generates,\n\n\\[\ny_{edu} = \\frac{1 + x}{x} + \\varepsilon\n\\]\n\n\nInline equations: You can also add inline Latex equations using single dollar signs,\n\nThe equation $x(1 + x)$ can be re-written as $x + x^2$. \n\nwhich generates,\n\nThe equation \\(x(1 + x)\\) can be re-written as \\(x + x^2\\)."
},
{
"objectID": "rmarkdown.html#code-chunks",
Expand Down
4 changes: 2 additions & 2 deletions rmarkdown.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ The markdown language has several built-in text formatting options. A brief summ

<pre class="output_example">
$$
x = \frac{1 + x}{x}
y_{edu} = \frac{1 + x}{x} + \varepsilon
$$
</pre>

which generates,

<div class="output_out">
$$
x = \frac{1 + x}{x}
y_{edu} = \frac{1 + x}{x} + \varepsilon
$$
</div>

Expand Down

0 comments on commit 1524d39

Please sign in to comment.