\documentclass[border=0.0cm,11pt,convert={ghostscript,outext=.png,density=600x600}]{standalone}%conversion en png avec ghostscript
%
%COMPILé AVEC XeLaTeX
%
\usepackage[T1]{fontenc}
\usepackage[dvipsnames,svgnames, x11names]{xcolor}
\colorlet{fond1}{Ivory!80}
\colorlet{fond2}{Cornsilk2!80}
\colorlet{fond3}{Ivory4!10}
\colorlet{fond4}{AntiqueWhite1!50}
%\colorlet{fond5}{Honeydew2!80}
\colorlet{fond5}{Ivory!80}
\colorlet{couleurdamier}{Sienna}
\usepackage{libertinus-otf}
%\usepackage{duerer}
\RequirePackage{bbding}
%\usepackage{lmodern}
\usepackage{marvosym}%symboles du Zodiaque
\usepackage{wasysym}%symboles du Zodiaque
%\usepackage{fontawesome}%symbole Soleil
\usepackage{comment}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\usetikzlibrary{calc,scopes}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{arrows,arrows.meta}
\usetikzlibrary{patterns}
%\tikzset{every picture/.style={line cap=round}}
\usepackage{pgfplots}\pgfplotsset{compat=newest}
\usepgfplotslibrary{polar}
\usepackage{svg}

\newcommand*{\arctexte}[4]{% angle1, angle2, rayon, texte
\draw [decorate, decoration={text along path, text=#4}](#1:#3) arc (#1:#2:#3) ;
}
%
\newcommand*{\textedroit}[4]{% ad, decl, texte, angle rotation
\draw ({180+#1}:{rayon(#2)}) node [rotate=#4, align=center] {#3} ;
}
\begin{document}
%
%---------------------------------------------------
%
\begin{tikzpicture}[font=\tiny,
declare function={%
rayon(\decl) = \requateur*(1-\decl/90) ;
rayonedt(\edt) = (rayon(60) - rayon(30))/16*\edt + rayon(30) ;
declinaison(\L) = asin(sin(\L)*sin(\eps));
AD(\L) = acos(cos(\L)/cos(declinaison(\L)));
},
]
%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------- DEFINITIONS
%%%%%%%%%%%%%%%%%%%%%%%%%
\def\rcalen{19.5}% rayon extérieur
\def\rzodiaque{18}
\def\requateur{17.45}
\def\ralidade{4} % rayon de l'alidade
\def\lalidade{22.5} % longueur de l'alidade
\pgfmathsetmacro\eps{23+26/60}
\def\anglealidade{0} % angle de rotation de l'alidade
\newlength{\decalageroues}
\setlength{\decalageroues}{7cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------- CLIPS
%%%%%%%%%%%%%%%%%%%%%%%%%
	% quart 1 :
%\draw (-0.5,-0.5) rectangle (\rcalen+0.2,{rayon(-\eps)+0.5}) ;
%\clip (-0.5,-0.5) rectangle (\rcalen+0.2,{rayon(-\eps)+0.5}) ;
	% quart 2 :
%\draw (-0.5, 0.5) rectangle (\rcalen+0.2,{-rayon(-\eps)-0.5}) ;
%\clip (-0.5, 0.5) rectangle (\rcalen+0.2,{-rayon(-\eps)-0.5}) ;
	% quart 3 :
%\draw (0.5, 0.5) rectangle (-\rcalen-0.2,{-rayon(-\eps)-0.5}) ;
%\clip (0.5, 0.5) rectangle (-\rcalen-0.2,{-rayon(-\eps)-0.5}) ;
	% quart 4 :
%\draw (0.5, -0.5) rectangle (-\rcalen-0.2,{rayon(-\eps)+0.5}) ;
%\clip (0.5, -0.5) rectangle (-\rcalen-0.2,{rayon(-\eps)+0.5}) ;
%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------Cadre
%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newlength{\largeur}
%\setlength{\largeur}{45cm}
%\newlength{\hauteur}
%\setlength{\hauteur}{45cm}
%\path(-0.5\largeur, {-0.5\hauteur+1.0cm}) rectangle ++(\largeur, \hauteur) ;
%%%%%%%%%%%%%%%%%%%%%%%%%
%\draw (0,0) node [draw, circle, couleurdamier]{+} ;
\input{calendrier}
%\draw (0,0) node {\includegraphics[width=39cm]{calendrier.pdf}} ;
\input{zodiaque}
%\draw (0,0) node {\includegraphics[width=37cm]{zodiaque.pdf}} ;
\input{equateur}
%\draw (0,0) node {\includegraphics[width=34.7cm]{equateur.pdf}} ;
\input{grille_equatoriale}
\input{etoiles}
\draw (0,2.28) node {\includesvg[height=40.3cm]{abaques}};
\input{legendes}
\input{alidade}
\begin{scope}[
rotate around={\anglealidade:(0,0)}, xshift=\decalageroues
]
\input{roue_3}
\input{languette_lune}
\input{roue_2}
\input{roue_1}
\end{scope}
%\draw (0,0) node [draw, circle, couleurdamier]{+} ;
%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------- feuille accessoires :
%%%%%%%%%%%%%%%%%%%%%%%%%
%\begin{scope}[xshift=-27.5cm, yshift=-3.0cm, rotate=\anglealidade]
%\input{roue_3}
%\end{scope}
%%
%\begin{scope}[xshift=-18cm, yshift=-3cm, rotate=\anglealidade]
%\input{roue_2}
%\end{scope}
%%
%\begin{scope}[xshift=-11cm, yshift=-5cm, rotate=\anglealidade]
%\input{roue_1}
%\end{scope}
%%
%\begin{scope}[xshift=-19cm, yshift=2cm, rotate=\anglealidade]
%\input{languette_lune}
%\end{scope}
%%
%\begin{scope}[xshift=-10cm, yshift=3cm, rotate=\anglealidade]
%\input{alidade_demontee}
%\end{scope}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------- SIGNATURE :
\draw (0.96*\rcalen,-0.9*\rcalen) node [rotate=90] {D. Alberto (www.astrolabe-science.fr)} ;
\end{tikzpicture}
\end{document}
