rstudio / pagedown

Paginate the HTML Output of R Markdown with CSS for Print
https://pagedown.rbind.io
Other
892 stars 128 forks source link

Bold font #290

Open zqsha opened 2 years ago

zqsha commented 2 years ago

Hi there, I am creating my own CV, I was wondering whether it's possible to have bold font for a given name in publications, like this Capture

Thank you so much.

cderv commented 2 years ago

How are you incerting the publication within the Rmd ? Can you share a reproducible example of what you want to do ?

Thanks

zqsha commented 2 years ago

Thanks for your reply. I used the following command lines to insert the publications in Rmd Capture

Basically, I used this datadrivencv package (https://github.com/nstrayer/datadrivencv), which is also employing pagedown to creat an CV. So, we can see this example, there is an example online (https://docs.google.com/spreadsheets/d/14MQICF2F8-vf8CKPF1m4lyGKO6_thG-4aSwat1e2TWc/edit#gid=917338460). And then we can run the following command line to generate four files, including cv.rmd, dd_cv.css, render_cv.r and cv_printing_functions.r.

datadrivencv::use_datadriven_cv( full_name = "Nick Strayer", data_location = "https://docs.google.com/spreadsheets/d/14MQICF2F8-vf8CKPF1m4lyGKO6_thG-4aSwat1e2TWc", pdf_location = "https://github.com/nstrayer/cv/raw/master/strayer_cv.pdf", html_location = "nickstrayer.me/cv/", source_location = "https://github.com/nstrayer/cv" )

But, in example CV, we can see there is no bold name in the publications. So, I just wanted to bold my name in the publications. Does it make sense? I am not whether it works.

Thanks.

cderv commented 2 years ago

I think that would be a question for datadrivencv package.

From what I can read in the documentation and a quick look at the code in the package, I believe you would need to use markdown formatting in your Sheets that contains the data for the content inserted (references section here).

Did you add markdown formatting in your data already ?

I really don't think pagedown is involved in the process here. You can add keep_md: true in your YAML under the output format (if the datadrivencv correctly supports it) to have the md file that is created before converting to HTML and then PDF and see which markdown syntax is used.

zqsha commented 2 years ago

OK, get it. thank you so much for your reply. I really appreciate it. I already added markdown formatting in my data, but it still did not work. I did not find YAML file in the folder. Anyway, I will try to dig into this. Thanks again.