2

I am new in latex. My problem is that I want to make the text in the box italic.

\documentclass[a4paper,12pt,openany]{book}
\usepackage{etex}
\usepackage[utf8]{inputenc}
\usepackage{chngcntr}   
\usepackage{fontenc}
\usepackage[french]{babel}  
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{color}
\usepackage{dsfont} 
\usepackage{lastpage} 
\usepackage{sectsty}
\usepackage[left=2cm,right=2cm,top=2.75cm,bottom=3cm]{geometry}
\usepackage[Bjornstrup]{fncychap}
\usepackage{hyperref}  
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage[most]{tcolorbox}
\usepackage{cleveref}
\newtcbtheorem[auto counter, number within = section]{defn}{Définition}{
  colback=green!5,
  colframe=green!35!black,
  fonttitle=\bfseries,
}{t}
\begin{document}
\begin{defn}{}{}
asymptotically uniformly integrable relatively
\end{defn}
asymptotically uniformly integrable relatively
\end{document}

The result :

enter image description here

But, I want the writing inside the Box in the following form:

enter image description here

5

Welcome! Are you looking for fontupper=\itshape?

\documentclass[a4paper,12pt,openany]{book}
\usepackage[most]{tcolorbox}
\usepackage{cleveref}
\newtcbtheorem[auto counter, number within = section]{defn}{D\'efinition}{
  colback=green!5,
  colframe=green!35!black,
  fonttitle=\bfseries,
  fontupper=\itshape
}{t}
\begin{document}
\begin{defn}{}{}
asymptotically uniformly integrable relatively
\end{defn}
asymptotically uniformly integrable relatively
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.