Skip to content

use with quarto #57

Description

@jcolomb

would be nice to have a specific function for use with quarto (with all right defaults)

  • a white background would be nice when using dark mode
  • the QR code is on the right side in my case, do not know why. Also not in the table (html output), and size seems not to work. hyperlink not working either

now using:

bib_path <- "references.bib"

htmltools::div(
  style = "background-color: white;",
  htmltools::includeHTML(
  drop_name(bib_path,
            cite_key = "colomb2019",
            export_as = "html",
            qr_size = 150,
            qr_hyperlink = TRUE,
            vc_width = "80%",
            use_xaringan =TRUE,
            style = "classic"
          )
)
)

gives

<div style="background-color: white;"><table class="visual-citation">
  <tbody><tr>
    <td>
      <div style="width:80%px">
        <div class="top-row" style="font-size: 1.8rem;font-family: 'Vollkorn', 'Georgia', 'Times New Roman', serif;font-weight: normal;font-variant: small-caps;color:#e72e00;margin-bottom: 10px;">
          <span> (2019)</span>
        </div>
        <div class="title-row" style="font-size: 2.5rem;font-family: 'Vollkorn', 'Georgia', 'Times New Roman', serif;font-weight: bold;margin-bottom: 15px;color: #000000;">
          <span>Why research data management: four videos</span>
        </div>
        <div class="author-row" style="font-size: 1.3rem;font-family: 'Vollkorn', 'Georgia', 'Times New Roman', serif;font-weight: normal;color: #000000;">
          <span>Colomb, Julien; Gerlach, Roman</span>
        </div>
      </div>
    </td>
    
  </tr>
</tbody></table></div>
</div>
</div>
<img src="qr/colomb2019_qr.png" alt="QR code" class="r-stretch"></section>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions