我有一份会议论文,要求我在文档的第一页输入版权声明。
我知道我可以用来fancyhdr
添加这个。我在文档中添加了以下内容:
\usepackage{fancyhdr}
\lfoot{This is the copyright notice} %The footer needs to be left aligned
我已经下载了fancyhdr
样式文件并将其添加到目录中。但在 pdf 输出中页脚未显示。
此外,在我使其工作之后,它只需要出现在第一页上。
编辑:完整代码如下:
%% LyX 2.1.0 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[conference]{IEEEtran}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{fancyhdr}
\lfoot{This is the copyright notice}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%% bare_conf.tex
%% V1.3
%% 2007/01/11
%% by Michael Shell
%% See:
%% http://www.michaelshell.org/
%% for current contact information.
%%
%% This is a skeleton file demonstrating the use of IEEEtran.cls
%% (requires IEEEtran.cls version 1.7 or later) with an IEEE conference paper.
%%
%% Support sites:
%% http://www.michaelshell.org/tex/ieeetran/
%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
%% and
%% http://www.ieee.org/
% correct bad hyphenation here
\hyphenation{op-tical net-works semi-conduc-tor}
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother
\begin{document}
% paper title% can use linebreaks \\ within to get better formatting as desired
\title{Title here}
\begin{author}
\author{\author{\IEEEauthorblockN{FK\IEEEauthorrefmark{1}, A A\IEEEauthorrefmark{1}, F K\IEEEauthorrefmark{1}, Ri\IEEEauthorrefmark{1} and Sd\IEEEauthorrefmark{2}} \IEEEauthorblockA{\IEEEauthorrefmark{1}School of Computing, Engineering and Information Sciences, .\\ Email: \{**, **, **i, **\}@dept.comk \IEEEauthorblockA{\IEEEauthorrefmark{2}Department of Computer Science and Engineering, ***\\ Email: **@g.com}}}}
\end{author}
\maketitle
\author{\IEEEauthorblockN{FK\IEEEauthorrefmark{1}, AA\IEEEauthorrefmark{1}, FF\IEEEauthorrefmark{1}, Ri\IEEEauthorrefmark{1} and Sd\IEEEauthorrefmark{2}} \IEEEauthorblockA{\IEEEauthorrefmark{1}School of Computing, Engineering and Information Sciences**.\\ Email: \{**, **, **, **\}@*** \IEEEauthorblockA{\IEEEauthorrefmark{2}Department of Computer Science and Engineering, ***\\ Email: ***}}}
\begin{abstract}
Abstract here
\end{abstract}
\section{Introduction}
Introduction here
\section{Proposed Method}
Method explained here
\section{Conclusion}
Conclusion here
\bibliographystyle{IEEEtran}
\bibliography{SS_bibtex}
% that's all folks
\end{document}
答案1
该类IEEEtran
对第一页使用特定的页面样式,因此只需修改它即可;加载fancyhdr
不是答案:文字编辑不会对此感到满意。
\documentclass[conference]{IEEEtran}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\def\ps@IEEEtitlepagestyle{%
\def\@oddfoot{\mycopyrightnotice}%
\def\@evenfoot{}%
}
\def\mycopyrightnotice{%
{\footnotesize The copyright belongs to me!\hfill}% <--- Change here
\gdef\mycopyrightnotice{}% just in case
}
%% bare_conf.tex
%% V1.3
%% 2007/01/11
%% by Michael Shell
%% See:
%% http://www.michaelshell.org/
%% for current contact information.
%%
%% This is a skeleton file demonstrating the use of IEEEtran.cls
%% (requires IEEEtran.cls version 1.7 or later) with an IEEE conference paper.
%%
%% Support sites:
%% http://www.michaelshell.org/tex/ieeetran/
%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
%% and
%% http://www.ieee.org/
% correct bad hyphenation here
\hyphenation{op-tical net-works semi-conduc-tor}
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother
\begin{document}
% paper title% can use linebreaks \\ within to get better formatting as desired
\title{Title here}
\begin{author}
\author{\author{\IEEEauthorblockN{FK\IEEEauthorrefmark{1}, A A\IEEEauthorrefmark{1}, F K\IEEEauthorrefmark{1}, Ri\IEEEauthorrefmark{1} and Sd\IEEEauthorrefmark{2}} \IEEEauthorblockA{\IEEEauthorrefmark{1}School of Computing, Engineering and Information Sciences, .\\ Email: \{**, **, **i, **\}@dept.comk \IEEEauthorblockA{\IEEEauthorrefmark{2}Department of Computer Science and Engineering, ***\\ Email: **@g.com}}}}
\end{author}
\maketitle
\author{\IEEEauthorblockN{FK\IEEEauthorrefmark{1}, AA\IEEEauthorrefmark{1}, FF\IEEEauthorrefmark{1}, Ri\IEEEauthorrefmark{1} and Sd\IEEEauthorrefmark{2}} \IEEEauthorblockA{\IEEEauthorrefmark{1}School of Computing, Engineering and Information Sciences**.\\ Email: \{**, **, **, **\}@*** \IEEEauthorblockA{\IEEEauthorrefmark{2}Department of Computer Science and Engineering, ***\\ Email: ***}}}
\begin{abstract}
Abstract here
\end{abstract}
\section{Introduction}
Introduction here
\newpage
\section{Proposed Method}
Method explained here
\newpage
\section{Conclusion}
Conclusion here
\bibliographystyle{IEEEtran}
\bibliography{SS_bibtex}
% that's all folks
\end{document}
答案2
针对 LaTeX 用户的版权声明提示如果您使用 LaTeX,您可以像这样添加 IEEE 版权声明。
步骤 1:请添加以下包
\usepackage{fancyhdr}
\begin{document}
步骤2:在“ ”前粘贴以下内容
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[c]{}
\fancypagestyle{FirstPage}{
\lfoot{978-1-7281-6455-7/20/\$31.00 \copyright2020 IEEE}
}
\section{Introduction}
步骤3:在“ ”或其他第一节声明后立即添加以下内容。\thispagestyle{FirstPage}
从此站点获得此信息:https://events.tuni.fi/icl-gnss2020/copyright-notice-hint-for-latex-users/
答案3
我的任务是将其放置在 IEEE 模板(\documentclass[10pt,conference]{IEEEtran})的第一页(标题页)上:
- 左下角有版权标志
- 页码位于底部中央(页码应为“20”)
这是解决方案(希望它能帮助到别人!):
\documentclass[10pt,conference]{IEEEtran}
\IEEEoverridecommandlockouts
...
\pagestyle{plain}
\IEEEpubidadjcol
\begin{document}
\pagenumbering{arabic}
\title{...}
\authors{...}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\newcommand\textline[4][t]{%
\par\smallskip\noindent\parbox[#1]{.4\textwidth}{\raggedright#2}%
\parbox[#1]{.2\textwidth}{\centering#3}%
\parbox[#1]{.4\textwidth}{\raggedleft\texttt{#4}}\par\smallskip%
}
\makeatletter
\def\ps@IEEEtitlepagestyle{%
\def\@oddfoot{\mycopyrightnotice}%
\def\@evenfoot{}%
}
\def\mycopyrightnotice{%
\textline[t]{979-8-3503-4999-3/23/\$31.00 \copyright 2023 IEEE}{\thepage}{}
\gdef\mycopyrightnotice{}% just in case
}
\maketitle
\setcounter{page}{20}
\begin{abstract}
...
它帮助了我:如何使文本在同一行左对齐、居中对齐、右对齐?