명함은 pagedown 기능을 이용하여 구현할 수 있다. 크게 3가지 기능이 명함제작에 필요한데 로고, 키-값으로 구성된 명함 정보, 그리고 명함 외양(css)으로 나눌 수 있다.
기본템플릿에 기본 정보를 넣어 작성한 내용을 명함으로 제작한 결과는 다음과 같다.
템플릿 명함, height=350 width=25%
htmltools::includeHTML("business_card/R_user_group.html")이모지 HTML 참조표 : Emoji Unicode Reference
CSS를 사용해서 좀더 예쁘게 명함을 제작할 수 있다.
템플릿 명함, height=350 width=25%
---
phone: "☎ : +82 010-xxxx-xxxx"
email: "📧 : victor@r2bit.com"
url: "🌐 : www.r2bit.com"
address: |
경기도 성남시 분당구 판교
logo: "https://raw.githubusercontent.com/statkclee/art/gh-pages/fig/R_user_group.png"
person:
- name: 이광춘
title: R 사용자회, 대표
repeat: 12
googlefonts: "sunflower" # feel free to try other fonts at https://fonts.google.com
paperwidth: 8.5in
paperheight: 11in
cols: 4
rows: 3
size: 8
output: pagedown::business_card
---
# CSS ----------------------------
.wrapper {
color: black;
font-size: 11pt;
background-color: white;
border: 4px solid darkgray;
}
.name {
color: black;
font-size: 15pt;
width: 100%;
line-height: 270%;
}
.title {
color: darkgray;
font-size: 12pt;
}
.coordinates {
color: #100;
}데이터 과학자 이광춘 저작
kwangchun.lee.7@gmail.com