Cette page contient un exemple de code illustrant l'utilisation de commandes du paquet ProfCollege de Christophe Poulain.
Le code
%!TEX lualatex
\documentclass[french]{article}
\usepackage{ProfCollege}
% Pour gérer la géométrie de la page.
\usepackage[%
a4paper,%
left=12mm,%
right=12mm,%
top=12mm,%
bottom=15mm,%
noheadfoot]{geometry}
\setlength{\parindent}{0pt}
\pagestyle{empty}
% Pour le passage en français, par exemple les dates, ...
\usepackage{babel}
%
\title{Exemple d'utilisation de ProfCollege pour les solides}
\begin{document}
\maketitle
Donner le nom de chacun de ces solides représentés en perspective cavalière.
\begin{minipage}[t][25mm][c]{0.3\linewidth}%1
\scalebox{0.5}{\Solide[Nom=cone]}
\vfill
\textbf{a/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.7}{\Solide[Nom=pave,Sommets=false]}
\vfill
\textbf{b/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.5}{\Solide[Nom=pyramide,Sommets=false]}
\vfill
\textbf{c/}\pointilles
\end{minipage}
\begin{minipage}[t][25mm][c]{0.3\linewidth}%2
\scalebox{0.6}{\AssemblageSolides[Cotes=4,Type=Pyramides,Anglez=20]}
\vfill
\textbf{d/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.5}{\Solide[Nom=pyramide,SommetsPyramide=4,Sommets=false]}
\vfill
\textbf{e/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.7}{%
\Solide[%
Nom=pave,%
Aretes=false,
Sommets=false,
Traces={%
color TT[];
TT0=0.7[F,G];
TT1=0.7[E,H];
TT2=0.2[F,G];%F
TT3=0.2[E,H];%E
trace chemin(TT2,TT0,TT1,TT3,TT2,A,B,C);
trace chemin(TT0,B);
trace chemin(TT1,C);
trace chemin(A,D,C) dashed evenly;
trace chemin(TT3,D) dashed evenly;
drawoptions(withcolor white);
pointe(E,F,G,H);
}%
]
}
\vfill
\textbf{f/}\pointilles
\end{minipage}
\begin{minipage}[t][25mm][c]{0.3\linewidth}%3
\scalebox{0.7}{%
\begin{Geometrie}
pair A[],B[];
A0=u*(1,1);
A1-A0=u*(2,0);
A2-A0=u*(0,1);
B0-A0=u*(1.8,1.8);
B1-B0=u*(2,0);
B2-B0=u*(0,1);
draw A0--A1--A2--cycle;
draw A2--B2--B1--A1;
draw A0--B0 dashed evenly;
draw B2--B0--B1 dashed evenly;
\end{Geometrie}
}
\vfill
\textbf{g/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.5}{\Solide[Nom=sphere]}
\vfill
\textbf{h/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.5}{\Solide[Nom=pyramide,Sommets=false,SommetsPyramide=7,Anglez=20]}
\vfill
\textbf{i/}\pointilles
\end{minipage}
\begin{minipage}[t][25mm][c]{0.3\linewidth}%4
\scalebox{0.7}{\Solide[Sommets=false]}
\vfill
\textbf{j/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.6}{%
\begin{Geometrie}
pair A[],B[];
A0=u*(1,1);
A1-A0=u*(2,0);
A2-A0=u*(2.3,1);
A3-A0=u*(1,1.7);
A4-A0=u*(0,1);
B0-A0=u*(1.3,1.3);
B1-B0=u*(2,0);
B2-B0=u*(2.3,1);
B3-B0=u*(1,1.7);
B4-B0=u*(0,1);
draw A0--A1--A2--A3--A4--cycle;
draw A1--B1;
draw A2--B2;
draw A3--B3;
draw A4--B4;
draw A0--B0 dashed evenly;
draw B4--B0--B1 dashed evenly;
draw B1--B2--B3--B4;
\end{Geometrie}
}
\vfill
\textbf{k/}\pointilles
\end{minipage}
\hfill
\begin{minipage}[t][25mm][c]{0.3\linewidth}
\scalebox{0.4}{\Solide[Nom=cylindre]}
\vfill
\textbf{l/}\pointilles
\end{minipage}
\end{document}
02/06/2025Environ 7 min