Closed alperyilmaz closed 6 years ago
To be more specific, here's an example taken from Jatdown publication (please refer to Labeled Sections section):
For example, a
# [Figure 1] Type II CRISPR-Cas
![](./figures/type-2-crispr.tif)
Genetic organization of the type II-A CRISPR-Cas system...
Which becomes:
<fig id="fig-Figure1">
<label>Figure 1</label>
<graphic xlink:href="figures/type-2-crispr.tif" mimetype="image" mime-subtype="tiff"/>
<caption>
<title>Type II CRISPR-Cas</title>
<p>Genetic organization of the type II-A CRISPR-Cas system...</p>
</caption>
What I was referring to in my original question is; <p>
element within <caption>
element.
Hi, if you want to use markdown in caption, currently such feature is supported by rstudio/bookdown#209 instead of Rmarkdown.
However, you could always use \\textbf{}
(not \textbf{}
) in fig.cap
to bold what you want. For example fig.cap = "\\textbf{an example title.} those are extra words for the title"
That is correct. Thanks @yufree!
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
The code below is for adding figure and caption: (please ignore backslashes)
The result (from the sample template)
But, I need to have caption text (not bold) in addition to caption title (bold) as shown below:
So, how can I add caption text (in addition to caption title) in Rmd file? Does
fig.cap
have option/ability to add more text?