\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}};