When I compile the file
\documentclass[12pt,francais]{article}
\PassOptionsToPackage{dvipsnames,svgnames}{xcolor}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{amsmath,amssymb,amsthm,epsfig,stmaryrd,bbm,mathrsfs,stmaryrd}
\usepackage{fancyhdr}
\usepackage{titlesec,graphicx,comment}
\usepackage{nopageno}
\usepackage[top=1.5cm,left=2cm,right=2cm,bottom=2cm]{geometry}
\usepackage{fancybox}
\usepackage{shadow}
\usepackage{enumerate}
%%%%%%%%%%% FONTE %%%%%%%%%%%%%%%%%
\usepackage[fulloldstyle]{kpfonts}
\usepackage{mathrsfs}
%%%%%%%%%%%%%%%%%% FIORITURES %%%%%%%%%%%%%%
\usepackage[object=vectorian]{pgfornament}
\usetikzlibrary{shapes.geometric,calc}
\usepackage{psvectorian,auto-pst-pdf}
\usepackage{tikz}
\usetikzlibrary {positioning}
\renewcommand*{\psvectorianDefaultColor}{NavyBlue}%
\tikzset{pgfornamentstyle/.style={draw=NavyBlue, fill = blue}}
\begin{document}
\vspace {-3cm}
\fontfamily{pzc} \selectfont
\begin{tikzpicture}[every node/.style={inner sep=0pt}]
\node[text width= \linewidth-2cm](Text){%
~
\bigskip\\
{\LARGE Intégration et probabilités} \hfill {\large ENS Paris, 2012-2013} \\
~ \bigskip \\
\centerline{\LARGE \normalfont TD 12 -- Convergence de variables aléatoires }
} ;
\node[shift={(-1cm,0.2cm)},anchor=north west](CNW) at (Text.north west)
{\pgfornament[width=1cm]{61}};
\node[shift={(1cm,0.2cm)},anchor=north east](CNE) at (Text.north east)
{\pgfornament[width=1cm,symmetry=v]{61}};
\node[shift={(-1cm,-0.5cm)},anchor=south west](CSW) at (Text.south west)
{\pgfornament[width=1cm,symmetry=h]{61}};
\node[shift={(1cm,-0.5cm)},anchor=south east](CSE) at (Text.south east)
{\pgfornament[width=1cm,symmetry=c]{61}};
\node[shift={(0cm,0cm)}](CS) at (Text.south)
{\pgfornament[width=4.5cm,ydelta=+3cm]{75}};
\pgfornamenthline{CNW}{CNE}{north}{89}
\pgfornamentvline{CNW}{CSW}{west}{87}
\pgfornamentvline{CNE}{CSE}{east}{87}
\end{tikzpicture}
\end{document}
I already compile this file with pdf rendering is better. I suspect that when I install Texmaker after Winedt this problem has appeared.
I have duplicate texmaker and winedt interface.
I have downloaded:
- the package pgfornament from this site,
- and psvectorian from this site.
and extract them to the texmf folder in the following path
C:\Program Files\MiKTeX 2.9\tex\latex.
Best Answer
I began by turning the code into a more minimal example to narrow down the problem.
I then determined that the primary problem was that the
francais
option tobabel
conflicts with the use of\pgfornamenthline
etc. Based on Gonzalo Medina's advice responding to my comment on his answer here, adding thebabel
tikz library resolves the problem:As Gonzalo Medina explains, this solution is only available with tikz 3. If you have an older version, you need to turn the relevant shorthand characters off when necessary. For example:
Alternatively, disable the shorthand globally for all tikz environments: