sinaatalay / rendercv

The engine of the RenderCV App
http://docs.rendercv.com
MIT License
1.75k stars 116 forks source link

Characters are not escaped in LaTeX, leading to render errors #129

Open prabhjotsbhatia-ca opened 1 month ago

prabhjotsbhatia-ca commented 1 month ago

Describe the bug Some characters commonly used in resumes are not escaped in LaTeX, leading to render errors, or inaccurate results. For example,

To Reproduce Please provide a minimal YAML input as a code block for us to produce the same error.


    Skills:
      - >-
        Skill A | skill B | skill C

Screenshots If applicable, add screenshots to help explain your problem.

image
sinaatalay commented 1 month ago

Thank you!

I couldn't reproduce the "|" converts to "---" issue. In my case, it prints "|" successfully. Could you please provide a full YAML file to reproduce?

RenderCV doesn't escape the $ sign by default to allow users to add math. Do you think it would be better if it were escaped by default?

prabhjotsbhatia-ca commented 1 month ago

I'm using the sb2nov theme with Latin Modern Sans Serif. You can reproduce it by just adding the pipe character "|" to any yaml element using the sb2nov theme

image image

Perhaps it is because of not using this: \usepackage[T1]{fontenc} as outlined here: https://texblog.net/latex-archive/uncategorized/symbols/