在两页底部添加一个圆圈

在两页底部添加一个圆圈
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc} % not needed in new latex versions
\usepackage[T1]{fontenc}
\usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm}
\usepackage[tikz]{bclogo}
\usepackage{tikz,tkz-tab,moreverb} % tableau de signe moreverb not needed
\usetikzlibrary{arrows}
\usepackage[french]{babel}
\usepackage{pifont} %bouni
\usepackage{fancybox} %pour faire l'encadrement
\usepackage[usestackEOL]{stackengine}
\usepackage{verbatim}
\usepackage{color}
\usepackage[final]{pdfpages} %pour inserer une page pdf
\usepackage{fancyhdr} % pagestyle
\begin{document}
cc
\newpage
cc
\end{document} 

我想用 cicle 计算两页的编号,如下所示

在此处输入图片描述

在此处输入图片描述

答案1

你可以使用 Ti为此的 Z 节点。

\documentclass{article}

\usepackage{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{tikz}

\usepackage{lipsum}

\geometry{%
    paper = a4paper,%
    top = 3cm,%
    bottom = 3.5cm,%
    left = 2.5cm,%
    right = 2.5cm,%
    footskip = 1.5cm,%
    nomarginpar,%
    showframe = false%
}

\fancypagestyle{mypagestyle}{%
    \renewcommand{\headrulewidth}{0pt}
    \fancyhf{}
    \fancyfoot[C]{\tikz{\node [circle, draw = black] at (0,0) {\thepage/\pageref{LastPage}}}}
}

\pagestyle{mypagestyle}

\begin{document}
    \lipsum
\end{document} 

例子

如果您加载该shapes库,则\usetikzlibrary{shapes}可以circle通过ellipse或甚至更花哨的东西来更改star, star points = 5

一些想法

  • \node [rectangle, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [circle, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [ellipse, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [star, star points = 5, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [diamond, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [cloud, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [starburst, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};
  • \node [tape, draw = black] (rectangle) at (0,0) {\thepage/\pageref{LastPage}};

相关内容