Skip to content

Commit 77edeec

Browse files
committed
Fix math formatting, escape & in references, fix latex tutorial
1 parent b7e7aa9 commit 77edeec

File tree

4 files changed

+386
-289
lines changed

4 files changed

+386
-289
lines changed

ParseMdtoLatex.py

+3
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ def removeRefSection(text):
498498
# Remove relevant references heading
499499
text = removeRefSection(text)
500500

501+
# Remove escaped characters that pandoc inserts (should actually only remove inside math mode)
502+
text = text.replace("\\^","^").replace("\\_","_").replace("\\{","{").replace("\\}","}")
503+
501504
# Remove unknown latex tags that pandoc inserts
502505
# remove \toprule, \bottomrule, \tightlist
503506
text = text.replace("\\toprule","").replace("\\bottomrule","").replace("\\tightlist","")

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ beastversion: 2.7.x
99

1010

1111

12+
1213
# Background
1314

1415
This tutorial will show how to configure and run a model with progressive changes in birth and death rates, using the ClaDS tree prior implemented in the BEAST2 package ClaDS.
@@ -213,7 +214,7 @@ Note that many other options are available in this section, such as fixing the v
213214

214215
### The parameter priors
215216

216-
Most of the default parameter priors are reasonable, so we will not change them. However, the default prior for the mean clock rate is a uniform distribution from 0 to Infinity, which allows values which are too large for most datasets. A reasonable value for the global substitution rate of primates is on the order of 10^-2 substitution/site/My, so we will set a exponential prior around this value.
217+
Most of the default parameter priors are reasonable, so we will not change them. However, the default prior for the mean clock rate is a uniform distribution from 0 to Infinity, which allows values which are too large for most datasets. A reasonable value for the global substitution rate of primates is on the order of {% eqinline 10^{-2} %} substitution/site/My, so we will set a exponential prior around this value.
217218

218219
> Use the dropdown menu on the right of **clockRate.c:primates** to select a **Exponential** distribution for this prior.
219220
> Click on the arrow left to **clockRate.c:primates** to open the detailed options. Set the **Mean** parameter to **0.01**.

0 commit comments

Comments
 (0)