Dans la classe yathesis, est-il possible de modifier l'affichage du jury, de manière à obtenir « prénom nom + corps + nature des membres du jury » au lieu de « nature des membres du jury + prénom nom + corps » ?

Posée 25 Jui '18, 19:11

iti1801's gravatar image

iti1801
10948
Taux d'acceptation : 0%

Modifiée 25 Jui '18, 19:50

Pathe's gravatar image

Pathe ♦♦
7.4k29197245

Il faut redéfinir deux commandes : \YAD@display@staff et \YAD@committee@tabular. C'est un peu long.

(25 Jui '18, 22:15) touhami touhami's gravatar image

Il faut redéfinir les deux commandes : \YAD@display@staff et \YAD@committee@tabular. C'est un peu long. Ici, on a utilisé \patchcmd de etoolbox.

Ouvrir dans l'éditeur Overleaf
\documentclass{yathesis}
\usepackage{kpfonts}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\makeatletter 
\patchcmd{\YAD@display@staff}{%
    \DTLiffirstrow{%
      \ifthenelse{\DTLrowcount{\YAD@the@staff}>1}{%
        \ifboolexpr{%
          bool {YAD@hdr} and test {\ifdefstring{\YAD@the@staff}{supervisors-in-committee}}%
        }{%
          \YAD@translation{\YAD@the@staff-pl-hdr}%
        }{%
          \YAD@translation{\YAD@the@staff-pl}%
        }%
      }{%
        \ifboolexpr{%
          bool {YAD@hdr} and test {\ifdefstring{\YAD@the@staff}{supervisors-in-committee}}%
        }{%
          \YAD@translation{\YAD@the@staff-hdr}%
        }{%
          \YAD@translation{\YAD@the@staff}%
        }%
      }%
    }{%
    }%
    &}{}{}{}
\patchcmd{\YAD@display@staff}{%
    \YAD@reach@file{%
      \ifthenelse{\DTLiseq{\YAD@committeemember@role}{}}{%
        \ifdraft{%
          \YAD@generic@argument@translate{role}%
        }{%
        }%
      }{%
        \ifthenelse{\equal{\YAD@the@staff}{supervisors-in-committee}}{%
        }{%
          \YAD@translation{\YAD@committeemember@role}%
        }%
      }%
    }}{%
    \DTLiffirstrow{%
      \ifthenelse{\DTLrowcount{\YAD@the@staff}>1}{%
        \ifboolexpr{%
          bool {YAD@hdr} and test {\ifdefstring{\YAD@the@staff}{supervisors-in-committee}}%
        }{%
          \YAD@translation{\YAD@the@staff-pl-hdr}%
        }{%
          \YAD@translation{\YAD@the@staff-pl}%
        }%
      }{%
        \ifboolexpr{%
          bool {YAD@hdr} and test {\ifdefstring{\YAD@the@staff}{supervisors-in-committee}}%
        }{%
          \YAD@translation{\YAD@the@staff-hdr}%
        }{%
          \YAD@translation{\YAD@the@staff}%
        }%
      }%
    }{%
    }%
    &
    \YAD@reach@file{%
      \ifthenelse{\DTLiseq{\YAD@committeemember@role}{}}{%
        \ifdraft{%
          \YAD@generic@argument@translate{role}%
        }{%
        }%
      }{%
        \ifthenelse{\equal{\YAD@the@staff}{supervisors-in-committee}}{%
        }{%
          \YAD@translation{\YAD@committeemember@role}%
        }%
      }%
    }}{}{}

\patchcmd{\YAD@committee@tabular}{%
  \begin{tabular}[t]{>{\itshape}llp{5cm}l}}{%
  \begin{tabular}[t]{lp{5cm}>{\itshape}ll}}{}{}  
\makeatother

\begin{document}
% documentation
\author[aa@zygo.fr]{Alphonse}{Allais}
\title[Laugh's Chaos]{Le chaos du rire}
\subtitle[Chaos' Laugh]{Le rire du chaos}
\academicfield[Mathematics]{Mathématiques}
\speciality[Dynamical systems]{Systèmes dynamiques}

\supervisor[professor,affiliation=ULCO]{Michel}{de Montaigne}
\cosupervisor[associateprofessor*,affiliation=ULCO]{Charles}{Baudelaire}
\comonitor[associateprofessor,affiliation=ULCO]{Étienne}{de la Boétie}
\referee[professor,affiliation=IHP]{René}{Descartes}
\referee[seniorresearcher,affiliation=CNRS]{Denis}{Diderot}
\committeepresident[professor,affiliation=ENS Lyon]{Victor}{Hugo}
\examiner[associateprofessor,affiliation=Université de Paris~13]{Sophie}{Germain}
\examiner[juniorresearcher,affiliation=INRIA]{Joseph}{Fourier}
\examiner[juniorresearcher*,affiliation=CNRS]{Paul}{Verlaine}
\guest{George}{Sand}

\maketitle
\end{document}
Lien permanent

Publiée 26 Jui '18, 03:31

touhami's gravatar image

touhami
9.7k410
Taux d'acceptation : 51%

Votre réponse
(dés)activer l'aperçu

Suivre cette question

Par courriel :

Une fois que vous serez enregistré, vous pourrez souscrire à n'importe quelle mise à jour ici

Par flux RSS :

Réponses

Réponses et commentaires

Bases de Markdown

  • *italique* ou _italique_
  • **gras** ou __gras__
  • Lien ::[texte](http://url.com/ "Titre ")
  • Image : ?![alt texte](/path/img.jpg "Titre ")
  • Liste numérotée : 1. Foo 2. Bar
  • Pour ajouter un passage à la ligne, ajoutez deux espaces à l'endroit où vous souhaitez que la ligne commence.
  • Les balises HTML de base sont également prises en charge.