1

I'm using the following code and the question is, how can I change the word "Chapter" for "Chapitre" (in French)? Thanks in advance!:

\documentclass[             fontsize=12pt,
                            % monochrome,
                             a4paper,               
                             parskip=half,      
                             ngerman,
                             headinclude=true,
                             footinclude=false,
                             captions=tableheading,
                             numbers=noenddot,
                             headings=big]
                             %chapterprefix=true]   % 
                            {scrreprt}

\usepackage[english,french]{babel}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{blindtext}
\usepackage{etoolbox}

% Define own Chapter style
% Pretty chapter pages
%------------------------------------------
\definecolor{nicered}{rgb}{.647,.129,.149}
\usepackage{soul}
\usepackage{pdfpages}

\makeatletter
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%
}}%
\rotatebox{90}{%
\resizebox{%
\heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%
{!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@chapter{\feline@chapter@marker[#1]}%
\makebox[0pt][l]{% aka \rlap
\makebox[1cm][r]{\usebox\feline@chapter}%
}}   

\renewcommand*{\chapterformat}{%
\hspace{\leftmargin} \feline@chm[2.5cm] % Height of the colored box
\hspace{2cm}
}

\patchcmd{\@@makechapterhead}
  {\size@chapter{#1}}
  {\size@chapter{\parbox[b]{\dimexpr\textwidth-4cm\relax}{\raggedright#1}}}
  {}
  {}
\makeatother
%------------------------------------------

\begin{document}


\chapter{Lorem ipsum dolor sit amet, consectetuer adipiscing elit}
\blindtext[2]
\end{document}
Johannes_B
  • 24,235
  • 10
  • 93
  • 248

0 Answers0