Closed yuans-cellbio closed 1 year ago
ChatGPT solved my problem... It blew my mind...
Here is its answer.
The issue with the longtable option is that it requires the longtable LaTeX package to be loaded. You can add the longtable package to the CV header using the header-includes option in the YAML header of your R Markdown file. Here is an example:
yaml
---
title: "My CV"
output:
vitae::awesomecv:
cvname: my_cv
header-includes:
- \usepackage{longtable}
---
Regarding the \cellcolor issue, you can add the colortbl LaTeX package to the CV header using the same header-includes option. Here is an updated example:
yaml
---
title: "My CV"
output:
vitae::awesomecv:
cvname: my_cv
header-includes:
- \usepackage{longtable}
- \usepackage{colortbl}
---
Note that the striped option may not work well with the longtable package, so you may need to experiment with different options to achieve the desired style.
I tried to insert a table into my CV. It works if I just use kable, but the style is not appealing. It also does not support all functions from kable.
For example, this works.
When I set longtable = TRUE, "LaTeX Error: Environment longtable undefined".
If I add stripes, "! Undefined control sequence. \cellcolor".
Is there any way I can fix this?