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













1















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:



enter image description here



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()?










share|improve this question




























    1















    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:



    enter image description here



    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()?










    share|improve this question


























      1












      1








      1


      2






      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:



      enter image description here



      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()?










      share|improve this question
















      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:



      enter image description here



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 8:23







      rmf

















      asked Mar 7 at 7:32









      rmfrmf

      3,61363058




      3,61363058






















          1 Answer
          1






          active

          oldest

          votes


















          1














          ---
          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.






          share|improve this answer

























          • 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










          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
          );



          );













          draft saved

          draft discarded


















          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









          1














          ---
          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.






          share|improve this answer

























          • 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















          1














          ---
          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.






          share|improve this answer

























          • 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













          1












          1








          1







          ---
          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.






          share|improve this answer















          ---
          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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 7 at 12:08









          rmf

          3,61363058




          3,61363058










          answered Mar 7 at 9:11









          quanquan

          485




          485












          • 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
















          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



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович