我有一个 IEEEtran 模板。我有标题和文本。当我包含一个 pdf 文件时,论文的标题和文本会消失,我只能看到包含的 pdf。我希望 pdf 位于论文末尾(论文文本结束后)。有人能帮我解决这个问题吗?
\documentclass[journal,comsoc]{IEEEtran}
\usepackage{pdfpages}
\usepackage{authblk}
\begin{document}
\title{Title Here}
\author[1]{Author1}
\author[2]{Author2}
\affil[1]{Org1 \authorcr {\tt [email protected]}}
\affil[2]{Org2 \authorcr {\tt [email protected]}}
\maketitle
\begin{abstract}
Abstract goes here.
\end{abstract}
\section{Intro}
Section1
\appendix
\subsection{Appendix A}
\includepdf[pages=-]{/home/e/Documents/saudi_parents/survey/kau/survey_english}.
\end{document}
答案1
我认为问题在于authblk
,一个非常古老的处理名称和从属关系块的包
IEEE 以其特殊的方式(毫无疑问)来处理作者和附属机构,定义区块\IEEEauthorblockN
并\IEEEauthorblockA
达到这一目的。
该代码编译成功。
\documentclass[journal,comsoc]{IEEEtran}
\usepackage{pdfpages}
\usepackage{kantlipsum}
%\usepackage{authblk}
\begin{document}
\title{Title Here}
\author{\IEEEauthorblockN{Michael Shell}
\IEEEauthorblockA{School of Electrical and\\
Computer Engineering\\
Georgia Institute of Technology\\
Atlanta, Georgia 30332--0250\\
Email: [email protected]}
\and \\
\IEEEauthorblockN{Homer Simpson}
\IEEEauthorblockA{Twentieth Century Fox\\
Springfield, USA\\
Email: [email protected]}
\and \\
\IEEEauthorblockN{James Kirk\\ and Montgomery Scott}
\IEEEauthorblockA{Starfleet Academy\\
San Francisco, California 96678-2391\\
Telephone: (800) 555--1212\\
Fax: (888) 555--1212}}
\maketitle
\begin{abstract}
2. \kant[2]
\end{abstract}
\section{Intro}
3. \kant[3-10]
\appendix
\subsection{Appendix A}
1. \kant[1]
\includepdf[pages=-]{IEEEtran_HOWTO}
\end{document}