xelatex-cv-roald icon indicating copy to clipboard operation
xelatex-cv-roald copied to clipboard

Error with TeXLive2020 kvoptions-patch conflict.

Open laenan8466 opened this issue 4 years ago • 18 comments

Hey, first thank you for the template. It is wonderful!

Sadly, with TexLive2020, it is not working anymore, as there is an issue with kvoptions-patch. I asked a related question on TeX stackexchange: https://tex.stackexchange.com/questions/572584/changes-from-texlive-2017-2020

I will try if I can find a solution, but not sure if I have the time.

Further resources on the issue: kvoption package announcement concerning this issue issue on github

laenan8466 avatar Nov 27 '20 11:11 laenan8466

Hey @laenan8466,

Glad to hear that my 3 year old template is still enjoyed by people!

Thanks for the investigation into the source of the problem! I will try to find a solution, but I haven't used LaTeX in some time, so I'll have to get into it again :).

Roald.

Roald87 avatar Nov 27 '20 14:11 Roald87

Hey, it's me again. Of course people are working with it: Oldies but goodies... ;-)

I started working on a resolution, and faced a 'decision' that I have to make. Stumbled over it, as I was creating a new class (similar to your cv) for my cover letter. And I need your opinion: Would you favor to change the compiler to lualatex or stay with xelatex? Just because I read in the TeX manual: LuaTEXis the designated successor of pdfTEX

I have no strong opinion here, ...

EDIT: I played around a bit with LuaLaTeX. Although it is designated to be the future, I would recommend to continue using XeLaTex. I wasn't even able to run:

% !TeX program = lualatex
\documentclass{standalone}

\begin{document}
	Inhalt...
\end{document}

They manage the fonts from the system fonts and there is some issue on my (Windows) machine.

laenan8466 avatar Nov 27 '20 16:11 laenan8466

They manage the fonts from the system fonts and there is some issue on my (Windows) machine.

I have windows too, and lualatex works for me (and my other people) without any problems.

Beside this: nothing in the class is xelatex specific, it should work with lualatex too. But the class should remove the cellspace patch, cellspace has been adapted and contains the fix. And there is no need to load color if tikz is loaded.

u-fischer avatar Nov 28 '20 17:11 u-fischer

Thanks for stepping in! :-) Most probably, it's sth amiss on my machine, as LuaLaTeX is working fine on my other one. Sadly, I just hadn't had the patience to fix it that day. I will look into the cellspace tomorrow. @Roald87 I had the feeling, that cellspace wasn't working for me properly, and I got quite narrow bottom lines. Did you expect the same thing?

laenan8466 avatar Nov 29 '20 00:11 laenan8466

I just tried to compile the example cv with different tex live versions (2020, 2019 and 2016) on Overleaf. I had no issues with the kvoptions-patch package when I tried to compile it. It worked for both XeLaTeX as well as LuaTex.

I'll also install tex locally on my Ubuntu machine and see if I can compile it there.

I did notice that the spacing after the titles was different with texlive 2020 and that the cellspace was not working properly. Regarding the latter: As mentioned by @u-fischer this can be fixed by removing the code in the patch section:

% # REQUIRED PACKAGES
\RequirePackage{xpatch}

% Patch to prevent package color and cellspace to clash
% More info: https://tex.stackexchange.com/questions/384664/xcolor-package-disables-cellspace-package
\makeatletter
\xpatchcmd{\@endpbox}{\color@endgroup}{\expandafter\color@endgroup}{}{\ddt}
\makeatother

Roald87 avatar Nov 29 '20 10:11 Roald87

Hrm, when your local install works fine as well, I guess it is my corrupted Windows installation... Ah, didn't understood the part with the patch completely. Could one add a conditional check for the TeXLive (?) version in the xpatch section?

laenan8466 avatar Nov 29 '20 11:11 laenan8466

Could one add an conditional check for the TeXLive (?) version in the xpatch section?

Not sure. Let me check.

Roald87 avatar Nov 29 '20 11:11 Roald87

Could one add an conditional check for the TeXLive (?) version in the xpatch section?

Couldn't find an easy method to do this unfortunately.

Roald87 avatar Dec 20 '20 13:12 Roald87

Yep, I came to the same conclusion. For me I circumvent this by using an old latex version. If I update my version at any point and find a solution, I will let you know.

laenan8466 avatar Mar 01 '21 21:03 laenan8466

I had the same issue and I could solve it without changing to an old latex version but simply by replacing the package "kvoptions-patch" with "xkvltxp" in the .cls file. I did not have to change anything else.

j-jansen avatar Mar 22 '21 19:03 j-jansen

Thanks for letting us know!

Roald87 avatar Mar 24 '21 20:03 Roald87

Works for me as well as solution. Had to adjust some margins/spacings, but nothing big.

I'm just a little bit hesitant as there is a reason why people switched from xkvltxp to kvoptions-patch. Also it seems to be quite old, isn't it? Not sure, if it is still under maintenance.

But thank you! It worked for this problem and now I don't have to switch the computer to get a new date on my CV every time...

laenan8466 avatar Mar 26 '21 20:03 laenan8466

Docs were updated a few months ago, so looks like xkvltxp is still maintained.

afbeelding

Roald87 avatar Apr 02 '21 15:04 Roald87

Hey Guys, i just try to understand how this fix works, i use texworks and i really can not find this cls file.

I hope you can help me, this problem drives me crazy. :(

Freezeen avatar Jun 17 '21 15:06 Freezeen

@Freezeen what cls file do you mean?

Roald87 avatar Jun 17 '21 17:06 Roald87

I had the same issue and I could solve it without changing to an old latex version but simply by replacing the package "kvoptions-patch" with "xkvltxp" in the .cls file. I did not have to change anything else.

I mean this one :) and thanks for the quick reply.

Freezeen avatar Jun 17 '21 18:06 Freezeen

I had the same issue and I could solve it without changing to an old latex version but simply by replacing the package "kvoptions-patch" with "xkvltxp" in the .cls file. I did not have to change anything else.

I mean this one :) and thanks for the quick reply.

No problem. Glad the template is still used! It is line 59 of cv-roald.cls

Roald87 avatar Jun 17 '21 18:06 Roald87

Many thanks it works great <3 You saved me :)

Freezeen avatar Jun 17 '21 21:06 Freezeen

Close at this point as many solutions were given.

laenan8466 avatar Nov 11 '23 20:11 laenan8466

Latest version 5.x.x works with TexLive 2023 on Overleaf. I do get an error that there are unused options, but all template options (changecolor, titlecolor, and colorharmony) work for me.

Roald87 avatar Apr 07 '24 13:04 Roald87