Skip to content

Commit 5b48e50

Browse files
added quote and underscore in captions to style guide
1 parent 4f1325d commit 5b48e50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ bookdown::gitbook:
117117
- when saying that students will do things in code, always say "in R"
118118
- "you will be able to" (not "students will be able to", "the reader will be able to")
119119

120+
#### Captions
121+
- If you have special characters (particularly underscores, quotation marks, plus signs, other LaTeX math symbols) make sure to separate
122+
the caption out of the code chunk like so
123+
```
124+
(ref:blah)
125+
126+
\`\`\`
127+
{r blah, other_options}
128+
code here
129+
\`\`\`
130+
```
131+
120132
#### Equations
121133
- make sure all equations get capitalized labels ("Equation \\@ref(blah)", not "equation below" or "equation above")
122134

0 commit comments

Comments
 (0)