
編集済み レポートクラスで論文を書いていますが、各章ごとに別々の著者を表示する必要があります。著者は表示されますが、authblk 形式にフォーマットされません。何が間違っているのか、誰かわかりますか? メインの tex のコードは次のとおりです。
\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}
答え1
問題は、\maketitle
コマンドがドキュメント内で 1 回しか使用できないことだと思います。正しく記憶していれば、このコマンドは最初の使用後に何もしないように再定義されます。おそらく、これを行わず (私のシステムではコードは にあります)、関連する部分だけを選択する (章の見出しの後にタイトルは本当に必要ですか?) 独自の を定義\maketitle
することが\mymaketitle
できます。report.cls
/usr/local/texlive/2019/texmf-dist/tex/latex/base