texto do título do capítulo em palavras e figuras

texto do título do capítulo em palavras e figuras

Por favor, desejo obter uma réplica exatamente do resultado obtido com este código abaixo, exceto que quero o título do capítulo um em vez de 1. quando usei o código a seguir `

\usepackage{fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}

funcionou, mas desfigurou meu índice e comecei a ver alguns números como um,1, três. 4 e assim por diante. Existe alguma maneira de manter a numeração das figuras no índice e, ao mesmo tempo, alterar os títulos dos capítulos no corpo do documento para texto? Qualquer ajuda será apreciada

\documentclass[a4paper,12pt]{report}
\usepackage[margin=1in, left=3.5cm, top=2.5cm, right=2.5cm, bottom=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{lipsum}
\usepackage[titletoc]{appendix}
\usepackage [T1]{fontenc}
\usepackage{titletoc}
\titleformat{\chapter}[display]
{\normalfont\Large\bfseries\centering}{\centering\chaptertitlename\ \thechapter}{0pt}{\Large}
\titlespacing*{\chapter}
{0pt}{-60pt}{10pt}
\begin{document}
\begin{spacing}{1}
\tableofcontents
\end{spacing}
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\cleardoublepage
\chapter{Introduction}
\section{Background of Study}
\lipsum[1-2]

\chapter{literature}
\section{Empirical Literature}
\lipsum[1-2]

\end{document}

Responder1

Não redefina \thechapter, mas use \Numberstring{chapter}no argumento de \titleformat:

\usepackage{titlesec}
\usepackage{fmtcount}
%\renewcommand{\thechapter}{\Numberstring{chapter}}
\titleformat{\chapter}[display]
  {\normalfont\Large\bfseries\centering}
  {\centering\chaptertitlename\ \Numberstring{chapter}}% <- changed
  {0pt}{\Large}

Exemplo:

\documentclass[a4paper,12pt]{report}
\usepackage[margin=1in, left=3.5cm, top=2.5cm, right=2.5cm, bottom=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{lipsum}
\usepackage[titletoc]{appendix}
\usepackage [T1]{fontenc}
\usepackage{setspace}% <- added
\usepackage[nottoc]{tocbibind}% <- added
\usepackage{titletoc}
\usepackage{titlesec}% <- added
\usepackage{fmtcount}% <- added
\titleformat{\chapter}[display]
  {\normalfont\Large\bfseries\centering}
  {\centering\chaptertitlename\ \Numberstring{chapter}}% <- changed
  {0pt}{\Large}
\titlespacing*{\chapter}
{0pt}{-60pt}{10pt}
\begin{document}
\begin{spacing}{1}
\tableofcontents
\end{spacing}
%\addcontentsline{toc}{chapter}{\listtablename}% <- removed
\listoftables
\cleardoublepage
\chapter{Introduction}
\section{Background of Study}
\lipsum[1-2]
\chapter{literature}
\section{Empirical Literature}
\lipsum[1-2]
\end{document}

informação relacionada