获取插入的文章标题和作者作为书籍类中的章节标题和章节作者

获取插入的文章标题和作者作为书籍类中的章节标题和章节作者

我正在尝试制作一本科学杂志(免费电子书),其中包含不同作者的科学和数学文章集。到目前为止,我已经使用以下软件包制作了此 MWE docmute

主文本

% !TEX program = xelatex
% !BIB program = biblatex
\documentclass[12pt]{book}
\usepackage{docmute}
\usepackage{amsmath}
%\usepackage{physics}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{extarrows}
\usepackage{enumitem}
\usepackage{lipsum}
\usepackage{mwe}
% \setlist[itemize]{label*={\fontfamily{lmr}\selectfont\textbullet}}      % due to the Bangla fonts
\usepackage[papersize={5.5in, 8.5in}, margin=0.8in, headheight=14.72pt]{geometry}
\linespread{1.15}

% For a bilingual document        % The font is available here: https://www.omicronlab.com/bangla-fonts.html                
 \usepackage[banglamainfont=Kalpurush, 
             banglattfont=Kalpurush]{latexbangla}
 %activate polyglossia
 \setdefaultlanguage[numerals=Bengali,
 changecounternumbering=true]{bengali}
 %number all levels
 \setcounter{secnumdepth}{5}
     \setotherlanguage{english}
%..............
\usepackage{csquotes}
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=cyan,
}
\urlstyle{same}
\usepackage{fancyhdr}
\fancypagestyle{plain}{
  \fancyhf{}                              % clear all header and footer fields
  \lhead{\href{<url>}{Magaize Website}}
  \cfoot{\thepage}    
  \renewcommand{\headrulewidth}{0.5pt}
  \renewcommand{\footrulewidth}{0.5pt}
}

% \usepackage[backend=biber, sorting=none, language=english, autolang=other]{biblatex}
% \addbibresource{ref.bib}

\allowdisplaybreaks 

% \tolerance=1    % https://tex.stackexchange.com/a/177179/114006
% \emergencystretch=\maxdimen
% \hyphenpenalty=10000
% \hbadness=10000

\makeatletter
\renewcommand{\@chapapp}{Article}
\makeatother

\begin{document}  
\title{Collection of Articles}
\author{Edior}
\date{}
\maketitle
\pagenumbering{roman}
\newpage
\setcounter{tocdepth}{0}
\tableofcontents  
\newpage
\pagestyle{plain}
\pagenumbering{arabic}

\chapter{Article 1 Title}
\input{article1}
% \chapter{Article 2 Title}
% \input{article2}
\end{document}

文章1.tex

% Contains the same preamble for the purpose of individual compilation (which is ignored while compiling main.tex)
\documentclass{article}
\begin{document}
\begin{figure}[t]
        \centering 
        \includegraphics[width=\textwidth]{example-image}
        \caption{ \lipsum[1][5] }
\end{figure}
\title{Title 1}
\author{Author 1}
\date{}
\maketitle
% \newpage
\section{section 1}
\lipsum 
\section{Section 2}
\lipsum[1][4-6] 
\end{document}

现在我想优化结构,将章节名称和章节作者名称自动设置为其对应的文章标题和作者。这样,文章及其作者就应该出现在目录中。

我该怎么做?另外,是否有任何专用的包或文档类或模板可以轻松提供我想要的输出?

相关内容