
EDITADO Estoy escribiendo una tesis en clase de informe y debo mostrar autores separados para cada capítulo. Si bien aparecen los autores, no se formatean en formato authblk. ¿Alguien tiene una idea de lo que podría estar haciendo mal? El código para mi texto principal es
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage[a4paper,width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{babel}
\usepackage[style=english]{csquotes}
\usepackage[style=authoryear]{biblatex}
\addbibresource{library.bib}
\usepackage{fixltx2e}
\usepackage{titlesec}
\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}
{\thechapter}{20pt}{\huge}
\usepackage{authblk}
\title{Something clever}
\author{Name}
\date{}
\begin{document}
\maketitle
\chapter*{Abstract}
\chapter*{Dedication}
\chapter*{Declaration}
\chapter*{Acknowledgment}
\tableofcontents
\chapter{Introduction}
\input{Chapters/introduction}
\chapter{Title of Chapter}
\input{Chapters/chap2}
\chapter{Title of Chapter}
\input{Chapters/chap3}
\chapter{Title of Chapter}
\input{Chapters/chap4}
\printbibliography
\end{document}```
While in the chapters the code is:
\title{something clever}
\author[1]{Name1}
\author[2]{Name2}
\author[1]{Name3}
\author[1]{Name4}
\affil[1]{af1}
\affil[2]{af2}
\date{}
\begin{abstract}
\end{abstract}
Respuesta1
Creo que el problema es que el \maketitle
comando sólo se puede utilizar una vez en un documento. Si no recuerdo mal, después de su primer uso, se redefine para no hacer nada. Quizás pueda definir su propia versión de \maketitle
, digamos \mymaketitle
, que no haga esto (en mi sistema el report.cls
código está en /usr/local/texlive/2019/texmf-dist/tex/latex/base
) simplemente seleccionando los bits relevantes (¿realmente necesita un título después del encabezado del capítulo?).