Pagedown: Multiple business cards in pagedown

Created on 28 Jan 2019  Â·  6Comments  Â·  Source: rstudio/pagedown

Hello, I am trying to create a number of cards on the same page, so that they can be used as name badges. I know I can create a single business card in pagedown but I am not sure how to create multiple in a single file. Can you advise? Thank you!

Most helpful comment

The answer is positive: I think it is feasible. I just wonder what would be the best implementation

  • using divs with a custom class: the problem I see is for reusing the same content across cards (e.g. same address)
  • using an HTML template & custom element populated by pandoc variables: it would be easier for reusing default content across cards

In both options, styling with CSS shouldn't be too difficult.

All 6 comments

Do you try to repeat the same content on each card or do you need different contents on cards?

Same format, but different content on each one (e.g. different names).

On Mon, Jan 28, 2019 at 11:59 AM Romain LESUR notifications@github.com
wrote:

Do you try to repeat the same content on each card or do you need
different contents on cards?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rstudio/pagedown/issues/55#issuecomment-458235946,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AmNeybctScqhi8kS7w59TS6AW-vPrp49ks5vHzqHgaJpZM4aWcUY
.

Thanks, that's clear. We need to modify the business card template for this.

I would much appreciate it if it's feasible. Thank you again!

The answer is positive: I think it is feasible. I just wonder what would be the best implementation

  • using divs with a custom class: the problem I see is for reusing the same content across cards (e.g. same address)
  • using an HTML template & custom element populated by pandoc variables: it would be easier for reusing default content across cards

In both options, styling with CSS shouldn't be too difficult.

Thank you so much!! Will try it out shortly.

On Mon, Feb 4, 2019 at 3:05 PM Yihui Xie notifications@github.com wrote:

Closed #55 https://github.com/rstudio/pagedown/issues/55 via #56
https://github.com/rstudio/pagedown/pull/56.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rstudio/pagedown/issues/55#event-2116864371, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AmNeye2HXW-JDwKBkZYh03EEt3bsLeXvks5vKKCagaJpZM4aWcUY
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cderv picture cderv  Â·  4Comments

AnabelleLaurent picture AnabelleLaurent  Â·  4Comments

atusy picture atusy  Â·  3Comments

EnricowithR picture EnricowithR  Â·  5Comments

lgnbhl picture lgnbhl  Â·  4Comments