![如何在 tufte-handout 类的页面底部添加 Creative Commons 许可证?](https://linux22.com/image/294017/%E5%A6%82%E4%BD%95%E5%9C%A8%20tufte-handout%20%E7%B1%BB%E7%9A%84%E9%A1%B5%E9%9D%A2%E5%BA%95%E9%83%A8%E6%B7%BB%E5%8A%A0%20Creative%20Commons%20%E8%AE%B8%E5%8F%AF%E8%AF%81%EF%BC%9F.png)
我找不到在第一页底部添加通知的方法。我试过了这但它只是将所有内容刷新到第二页并将框添加到第一页的底部。
编辑:一些示例代码。
\documentclass{tufte-handout}
\usepackage{amsmath}
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{minted}
\makeatletter
\minted@define@extra{label}
\makeatother
\usepackage[ddmmyyyy]{datetime}
\usemintedstyle{tango}
\newminted{cpp}{}
\newmint{cpp}{}
\usepackage[portuguese,ruled]{algorithm2e}
\usepackage{tikz}
\newcommand\copyrighttext{%
\footnotesize text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text}
\newcommand\copyrightnotice{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south,yshift=10pt] at (current page.south) {\fbox{\parbox{\dimexpr\textwidth-\fboxsep-\fboxrule\relax}{\copyrighttext}}};
\end{tikzpicture}%
}
\title{Best title ever}
\author{Me}
\begin{document}
\copyrightnotice
\maketitle
\section{Things}
text text text text text text
\section{Stuff}
text text text text
\结束{文档}
生成这两个页面:
答案1
以下代码可以满足您的需要;只需使用\copyrightnotice
后 \maketitle
:
\documentclass{tufte-handout}
\usepackage{amsmath}
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ddmmyyyy]{datetime}
\usepackage[portuguese,ruled]{algorithm2e}
\usepackage[absolute]{textpos}
\usepackage{tikz}
\newcommand\copyrighttext{%
\footnotesize text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text text}
\newcommand\copyrightnotice{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south,yshift=10pt,draw]
at (current page.south)
{\parbox{\dimexpr\textwidth-\fboxsep-\fboxrule\relax}{\copyrighttext}};
\end{tikzpicture}%
}
\title{Best title ever}
\author{Me}
\begin{document}
\maketitle
\copyrightnotice
\section{Things}
text text text text text text
\section{Stuff}
text text text text
\end{document}