Forums » Using AMC (english) »
Templates/source files using CSV and accented characters: consider to add a LaTeX patch
Added by Miguel J Ruiz Benítez over 2 years ago
I have encountered a problem with accented characters when using the template with csvsimple, and I have found the solution in this link
Adding the following fragment after
\usepackage{csvsimple}the problem is solved:
\def\csv@def@par{\par} \makeatletter \patchcmd\csvloop {\if\csv@par} {\ifx\csv@def@par} {}{\ERROR! Failed to patch}
Please, consider to add the patch to the templates using CSV.
Thanks.
Replies (5)
RE: Templates/source files using CSV and accented characters: consider to add a LaTeX patch - Added by Alexis Bienvenüe over 2 years ago
Thanks for the report.
Can you provide a minimal project source file, along with a students file, that does not work with latest AMC and LaTeX version but works with this patch?
RE: Templates/source files using CSV and accented characters: consider to add a LaTeX patch - Added by Miguel J Ruiz Benítez over 2 years ago
Files of "Nominative-sheets" template attached; in list.csv, I have changed "Avogadro" to "Ávogadro" (note accented A).
(Auto Multiple Choice 1.5.0 / TeXLive 2021 full installation)
Thanks.
Nominative-sheets.tex (2.2 kB)
list.csv (98 Bytes)
RE: Templates/source files using CSV and accented characters: consider to add a LaTeX patch - Added by Alexis Bienvenüe over 2 years ago
This seems to work with my setup. Which csvsimple
version are you using?
RE: Templates/source files using CSV and accented characters: consider to add a LaTeX patch - Added by Miguel J Ruiz Benítez over 2 years ago
It works with csvsimple version 2.2.1 (2022/01/07) but not with version 1.21 (2019/04/09) the one included in a fresh TeXLive 2021 installation. Note the versions of TeXLive and the csvsimple packages in Debian Stable and Ubuntu 21.04, texlive_2020.20210202-3_all.deb. I think you should include a comment about the issue in the templates, at least.
Sorry if too much sorry; as an end user I expect that templates work right out of the box with no hassle.
Thank you.
RE: Templates/source files using CSV and accented characters: consider to add a LaTeX patch - Added by Miguel J Ruiz Benítez over 2 years ago
I mean, sorry if too much noise.
(1-5/5)