yasnippet-snippets icon indicating copy to clipboard operation
yasnippet-snippets copied to clipboard

Erroneous snippet for LaTeX-mode: `moderncv-cventry`

Open bertulli opened this issue 3 years ago • 1 comments
trafficstars

Hi! I think the snippet moderncv-cventry is wrong. As you see:

# -*- mode: snippet -*-
# name: moderncv-cventry
# key: cventry
# --
\cventry{${1:year}}{${2:job}}{${3:employer}}{${4:city}}{${5:description}}
$0

It expands into the template \cventry{year}{job}{employer}{city}{description}, thus it provides 5 arguments. However, as you can see from this TeX SE question, it actually needs 6. The manual is a bit unclear, I opened an issue even for that. Can it be fixed upstream? I can make a PR if you like. Thanks!

bertulli avatar Sep 04 '22 15:09 bertulli

Yeah it would be great if you could open a PR @bertulli, thanks!

AndreaCrotti avatar Jan 17 '23 10:01 AndreaCrotti