
EDITADO Estou escrevendo uma tese em aula de relatório e devo mostrar autores separados para cada capítulo. Embora os autores apareçam, eles não são formatados no formato authblk. Alguém tem uma idéia do que eu poderia estar fazendo de errado? O código do meu tex principal é
\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}
Responder1
Acho que o problema é que o \maketitle
comando só pode ser usado uma vez em um documento. Se bem me lembro, após o primeiro uso, ele se redefine para não fazer nada. Talvez você possa definir sua própria versão de \maketitle
, digamos \mymaketitle
, que não faça isso (no meu sistema o report.cls
código está em /usr/local/texlive/2019/texmf-dist/tex/latex/base
) apenas escolhendo os bits relevantes (você realmente precisa de um título após o cabeçalho do capítulo?).