TeX - LaTeX Asked by user47106 on January 9, 2021
I have a compilation problem with an old document, wich i cannot recompile today with an up to date MiKTex 2.9 installation on Windows.
It seems that it is a problem with latest version of pgfkeys.
Here’s my minimal example that shows the error :
documentclass[10pt, a4paper]{article}
usepackage{pgf}
usepackage{xcolor}
usepackage{titlesec}
usepackage{interfaces}
sectionformatsection[hang]{
label=,
labelsep=,
font=bfseriesnormalsizecolor{blue!80!black},
top=16pt plus 1pt minus 1pt,
bottom=2pt,
}
begin{document}
truc
end{document}
With that and using XeLaTex (i have the same error with PdfLaTex)
! Undefined control sequence.
<inserted text> itf
@setlength itf @sk {####1}noexpand pgfkeysEsetvalue ...
l.15 }
I have added explicitly pgf package on top of the source, but the error is always here.
How can i fix it ?
Ulrike Fisher is right, the problem come from interfaces package.
With makeatletter
the code compile and produce the correct output. But for the future, I have replaced the interfaces command with titlesec commands.
titlelabel{}
titleformat{section}[hang]{bfseriesnormalsizecolor{blue!80!black}}{}{0pt}{}
titlespacing*{section}{0pt}{16pt plus 1pt minus 1pt}{2pt}
Now I have exactly the same output, and i hope it will be more stable for the future.
I used the Interfaces package because I found its syntax easy and readable for this kind of configuration; in any case simpler and more readable than titlesec directly (for this example).
But well, since it is no longer maintained, it must be removed and replaced.
Answered by user47106 on January 9, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP