Document Classesdeveloper CV won't work with babel and french

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
MartinRGT
Posts: 1
Joined: Mon May 03, 2021 4:15 pm

developer CV won't work with babel and french

Post by MartinRGT »

Hi everyone,
I'm writing my CV with the "Developer CV" class and I would like to make it follow the french typography rules. The problem lies with the \baritem command whitch doesn't work properly when the babel package is used and set to french. Here is an example:

Code: Select all

\documentclass[9pt]{developercv}
\begin{document}
\begin{minipage}[t]{0.5\textwidth}
	\vspace{-\baselineskip}
	\begin{barchart}{5.5}
		\baritem{JavaScript}{60}
		\baritem{PHP}{100}
		\baritem{SASS/LESS}{70}
		\baritem{Bootstrap}{70}
		\baritem{Git}{40}
		\baritem{LaTeX}{60}
	\end{barchart}
\end{minipage}
\end{document}
Without the babel package, the \baritem command works, labels and bars are aligned.
But if I try to use the babel package with the french option, the result is diferent:

Code: Select all

\documentclass[9pt]{developercv}
\usepackage[french]{babel}
\begin{document}
\begin{minipage}[t]{0.5\textwidth}
	\vspace{-\baselineskip}
	\begin{barchart}{5.5}
		\baritem{JavaScript}{60}
		\baritem{PHP}{100}
		\baritem{SASS/LESS}{70}
		\baritem{Bootstrap}{70}
		\baritem{Git}{40}
		\baritem{LaTeX}{60}
	\end{barchart}
\end{minipage}
\end{document}
Am I doing something wrong? Why does a language package change how a command works?

Thank you for yout help,

Martin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply