Toufan
2007-06-07 16:16:04 UTC
Bonjour,
Dans le code ci-dessous, quelqu'un pourrait me dire pourquoi la
commande LastPage ne fonctionne pas comme il faut ?
%%%%%%%
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{fancyhdr}
\usepackage{lastpage}
\fancyhf{}
\fancyhead{}
\fancyhead[L]{}
\fancyhead[R]{}
\fancyhead[C]{\thepage /\pageref{LastPage}}
\fancyfoot[C]{}
\fancyfoot[R]{}
\fancyfoot[L]{}
\pagestyle{fancy}
\begin{document}
ici latex n'affiche pas : \thepage/3 \newpage
ici latex n'affiche pas : \thepage/3 \newpage
ici latex n'afficher pas : \thepage/3 \newpage
\setcounter{page}{1}
ici latex affiche bien : \thepage/2 \newpage
ici latex affiche bien : \thepage/2
\end{document}
%%%%%%%%%%%%%%
Merci
Toufan
Dans le code ci-dessous, quelqu'un pourrait me dire pourquoi la
commande LastPage ne fonctionne pas comme il faut ?
%%%%%%%
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{fancyhdr}
\usepackage{lastpage}
\fancyhf{}
\fancyhead{}
\fancyhead[L]{}
\fancyhead[R]{}
\fancyhead[C]{\thepage /\pageref{LastPage}}
\fancyfoot[C]{}
\fancyfoot[R]{}
\fancyfoot[L]{}
\pagestyle{fancy}
\begin{document}
ici latex n'affiche pas : \thepage/3 \newpage
ici latex n'affiche pas : \thepage/3 \newpage
ici latex n'afficher pas : \thepage/3 \newpage
\setcounter{page}{1}
ici latex affiche bien : \thepage/2 \newpage
ici latex affiche bien : \thepage/2
\end{document}
%%%%%%%%%%%%%%
Merci
Toufan