RMarkdown YAML content and stylingYAML current date in rmarkdownmultiple authors and subtitles in Rmarkdown yamlUsing rmarkdown::render to set document header (title, author, date)Evaluating R code in YAML headerCustom Field in Rmarkdown HeaderWhy does rendering a pdf from rmarkdown require closing rstudio between renders?Using YAML params: in HTML templateQuotes and inline R code in Rmarkdown YAMLAuthors and affiliations in the YAML of RMarkdownCustom highlighting style in rmarkdown
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Is this toilet slogan correct usage of the English language?
Yosemite Fire Rings - What to Expect?
Closed-form expression for certain product
Open a doc from terminal, but not by its name
Creepy dinosaur pc game identification
Aragorn's "guise" in the Orthanc Stone
Can I sign legal documents with a smiley face?
How do I color the graph in datavisualization?
C++ debug/print custom type with GDB : the case of nlohmann json library
Removing files under particular conditions (number of files, file age)
Is it safe to use olive oil to clean the ear wax?
"Spoil" vs "Ruin"
What does routing an IP address mean?
Is there any references on the tensor product of presentable (1-)categories?
Is the U.S. Code copyrighted by the Government?
Count the occurrence of each unique word in the file
A social experiment. What is the worst that can happen?
What was this official D&D 3.5e Lovecraft-flavored rulebook?
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Why does the Sun have different day lengths, but not the gas giants?
is this legal and f i dont come up with extra money is the deal off
Biological Blimps: Propulsion
How can "mimic phobia" be cured or prevented?
RMarkdown YAML content and styling
YAML current date in rmarkdownmultiple authors and subtitles in Rmarkdown yamlUsing rmarkdown::render to set document header (title, author, date)Evaluating R code in YAML headerCustom Field in Rmarkdown HeaderWhy does rendering a pdf from rmarkdown require closing rstudio between renders?Using YAML params: in HTML templateQuotes and inline R code in Rmarkdown YAMLAuthors and affiliations in the YAML of RMarkdownCustom highlighting style in rmarkdown
For an RMarkdown YAML like below:
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output: html_document
---
the rendered version looks like this:

The subtitle, author and date are italicised by default. How do I undo this? I am not able to do this using custom CSS classes like .subtitle etc. Also, is it possible to get the author and date on the same line? Is it possible to add new custom value pairs? Anyone know where is the underlying default HTML template for html_document()?
r r-markdown
add a comment |
For an RMarkdown YAML like below:
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output: html_document
---
the rendered version looks like this:

The subtitle, author and date are italicised by default. How do I undo this? I am not able to do this using custom CSS classes like .subtitle etc. Also, is it possible to get the author and date on the same line? Is it possible to add new custom value pairs? Anyone know where is the underlying default HTML template for html_document()?
r r-markdown
add a comment |
For an RMarkdown YAML like below:
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output: html_document
---
the rendered version looks like this:

The subtitle, author and date are italicised by default. How do I undo this? I am not able to do this using custom CSS classes like .subtitle etc. Also, is it possible to get the author and date on the same line? Is it possible to add new custom value pairs? Anyone know where is the underlying default HTML template for html_document()?
r r-markdown
For an RMarkdown YAML like below:
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output: html_document
---
the rendered version looks like this:

The subtitle, author and date are italicised by default. How do I undo this? I am not able to do this using custom CSS classes like .subtitle etc. Also, is it possible to get the author and date on the same line? Is it possible to add new custom value pairs? Anyone know where is the underlying default HTML template for html_document()?
r r-markdown
r r-markdown
edited Mar 7 at 8:23
rmf
asked Mar 7 at 7:32
rmfrmf
3,61363058
3,61363058
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output:
html_document:
template: default.html
css: your.css
---
you can Custom CSS and template,Reference here
And default HTML template
In the default.html file, the following line
<h3 class="subtitle"><em>$subtitle$</em></h3>
when changed to
<h3 class="subtitle">$subtitle$</h3>
removes italic subtitle.
When passing the originaldefault.htmlthroughtemplate:default.html, mathjax expressions do not work and custom code highlighting fails.
– rmf
Mar 7 at 12:56
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038331%2frmarkdown-yaml-content-and-styling%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output:
html_document:
template: default.html
css: your.css
---
you can Custom CSS and template,Reference here
And default HTML template
In the default.html file, the following line
<h3 class="subtitle"><em>$subtitle$</em></h3>
when changed to
<h3 class="subtitle">$subtitle$</h3>
removes italic subtitle.
When passing the originaldefault.htmlthroughtemplate:default.html, mathjax expressions do not work and custom code highlighting fails.
– rmf
Mar 7 at 12:56
add a comment |
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output:
html_document:
template: default.html
css: your.css
---
you can Custom CSS and template,Reference here
And default HTML template
In the default.html file, the following line
<h3 class="subtitle"><em>$subtitle$</em></h3>
when changed to
<h3 class="subtitle">$subtitle$</h3>
removes italic subtitle.
When passing the originaldefault.htmlthroughtemplate:default.html, mathjax expressions do not work and custom code highlighting fails.
– rmf
Mar 7 at 12:56
add a comment |
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output:
html_document:
template: default.html
css: your.css
---
you can Custom CSS and template,Reference here
And default HTML template
In the default.html file, the following line
<h3 class="subtitle"><em>$subtitle$</em></h3>
when changed to
<h3 class="subtitle">$subtitle$</h3>
removes italic subtitle.
---
title: Title
subtitle: Subtitle
author: Author
date: 20-Jan-2019
output:
html_document:
template: default.html
css: your.css
---
you can Custom CSS and template,Reference here
And default HTML template
In the default.html file, the following line
<h3 class="subtitle"><em>$subtitle$</em></h3>
when changed to
<h3 class="subtitle">$subtitle$</h3>
removes italic subtitle.
edited Mar 7 at 12:08
rmf
3,61363058
3,61363058
answered Mar 7 at 9:11
quanquan
485
485
When passing the originaldefault.htmlthroughtemplate:default.html, mathjax expressions do not work and custom code highlighting fails.
– rmf
Mar 7 at 12:56
add a comment |
When passing the originaldefault.htmlthroughtemplate:default.html, mathjax expressions do not work and custom code highlighting fails.
– rmf
Mar 7 at 12:56
When passing the original
default.html through template:default.html, mathjax expressions do not work and custom code highlighting fails.– rmf
Mar 7 at 12:56
When passing the original
default.html through template:default.html, mathjax expressions do not work and custom code highlighting fails.– rmf
Mar 7 at 12:56
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038331%2frmarkdown-yaml-content-and-styling%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown