in other client

Je souhaite créer une commande qui utilise la commande ifthen avec pour condition une égalité de chaîne, la chaîne étant le titre d'une subsubsection.

Si je fais \thesubsubsection, j'obtiens le numéro.

Existe-t-il un moyen simple de récupérer le titre?

Posée 18 Mar '20, 13:28

joseph-tux's gravatar image

joseph-tux
1.0k626
Taux d'acceptation : 4%

Modifiée 18 Mar '20, 14:21

Pathe's gravatar image

Pathe ♦♦
6.8k9136211

Quelle \documentclass avez-vous?

(18 Mar '20, 13:31) samcarter samcarter's gravatar image

scrartcl

(pourquoi?)

(18 Mar '20, 13:45) joseph-tux joseph-tux's gravatar image
1

La solution est différent pour des classes différentes. Par exemple avec beamer on peut faire \insertsectionhead

(18 Mar '20, 14:05) samcarter samcarter's gravatar image

Pour scrartcl one peut récupérer le titre du \subsubsection avec \@currentheadentry :

Ouvrir dans l'éditeur Overleaf
\documentclass{scrartcl}

\usepackage{xstring}

\makeatletter
\newcommand{\insertcurrentsubsubsection}{\@currentheadentry}
\makeatother

\newcommand{\test}{
  \IfEq{\insertcurrentsubsubsection}{title b}{%
   yes
  }{%
   no
  }%
}

\begin{document}

\subsubsection{title a}

\insertcurrentsubsubsection

\test

\subsubsection{title b}

\insertcurrentsubsubsection

\test

\end{document}

alt text

Lien permanent

Publiée 18 Mar '20, 14:00

samcarter's gravatar image

samcarter
5.6k416
Taux d'acceptation : 54%

Modifiée 18 Mar '20, 14:08

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.

Mots-clés de la question :

×2

Question posée : 18 Mar '20, 13:28

Question vue : 834 fois

Dernière mise à jour : 18 Mar '20, 14:08

Questions similaires

Better site: ProxyBot webproxy https://proxybot.cc/b?q=2PXEEjCiquF8s6oSIFSBukFsdSqhR-9hDtBkJj67YCJYuEjX7ui
Better site: ProxyBot webproxy https://proxybot.cc/b?q=BuQIXYoBnCju8s6oSauS35yNNgSG-uuiOjkj7BXnnuFOjkiUuaOIF6oOjudXiaOj7Od6nOaka
Better site: ProxyBot webproxy https://proxybot.cc/b?q=kW8kW98Q7ESq1ShO-9hDphD3hO-phL0hp0hO-0hpthp5hO-3h5thDO-hO-3h5thD8-
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118qXi6o7WX8nWS1knsdS4-kEunsdXqOm-uUt
Better site: ProxyBot webproxy https://proxybot.cc/b?q=BuQsYXTBda8s6oSTYSp3My3pgSV-7quOLBkOLqXFkOuknXiUO6CnOK-CYXkOLii
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1XYY7T6Fi8s6oSFCStNNtt0g3Sf-knCFkYOjCBn7OnkiiuaOjkjuOjkiUuaOkInuFOskBnXiU
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=211181ujYX68PTSFkiqXiUSTu6TYuS1TTTYSMNtNNptM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=T6FisYXTdCj8s6oSCqStN5gN59NSLK-OLTTYuUknuOLYuQXBOl-6iF6uOkiaOG-XIIki7OG-7YuFOUun
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=T6FisYXTdCj8s6oSCqSTSo6osXq6TuF
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFSWSBfSS3XqB8FCSWXu1S9pyMS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFSWSfSSBkBXBk8FCSI6SXiI68TdTHXaw3Mytpt9
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2XoT6FiWXau6B8s6oSunSWXau6BStyttg0NtShO-9hD5hL9hO-9hD5hLLhO-9hDLhDLhO-yhL0hp0hO-yhpMh5R-hO-ghp9hDghO-9hDLhDL3b-VG-FkiBWuBnXnuVhO-phpph55hO-phpDhL8-hO-phpDhL8-VXBVokibkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTv3plBVjXUVBdkInVn6VndFCBnVnduVkiCBS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFSWSfSSkCuT6Fi68s6oSWXau6ST6FiCdkSokYXBdqkOBOokYuiqXoXOBXBqkoXOT6EXFCunOI6n6UFkICOp0
Better site: ProxyBot webproxy https://proxybot.cc/b?q=BuQIXYoBnCju8s6oSduS3ttMMggS2-uQ7OjY6iauOT6FiBnkFOH-Xsn6FXkOH-kiiOUunBOduFOjXU
Better site: ProxyBot webproxy https://proxybot.cc/b?q=211181ujYX68PTSFkiqXiUSs6oTCnuFS6TB7USMNtNNptM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2BuQWXau6da8TF6SIFSnCjuSBuQ3
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2Yn81XqnX6ikF786FUS1XqXSknBXoXuU6PCBXkB
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2XEYuBXoaXT6Fi68s6oSFCS7CFXVYCWVnFkXYuFVMyS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2Bo6nFXo8FCS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiStyptSsIio8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2PXEEjCiquF8s6oSFCS90MgNgSn16VaCauBVdkFaV6iVnduVd6nVjY6iauVjXnsd8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiStgt5SsFkE78dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiS03NSYknXik8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSttptSU7i6VuQko8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2Yn81XqXTuaXk86FUS1XqXSR-XhR-yhLDFXsd6Oqkin6ikB
Better site: ProxyBot webproxy https://proxybot.cc/b?q=BuQIXYoBnCju8s6oSFCSy3p30ppSl-kXaOICsqXiUOXiOYknuQOYXiUuFXuOkiaOdXUdOduuYB
Better site: ProxyBot webproxy https://proxybot.cc/b?q=T6FisYXTdCj8s6oSuiStN5gN59NSLK-OLTTYuUknuOLYuQXBOl-6iF6uOkiaOG-XIIki7OG-7YuFOUun
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nCjuBuQ1618s6oSIFSdrSkz-O-nf-G-qEA-G-O-Ql-V-qEl-G-w-9Sf-XsqXVx-CinuFhMR-VG-x-c-2-VLc-f-bkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoT
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2XQQQ81XiS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=ui8o7nCjuB8Q7ESWSfSSskTFkiUuF8PTSEXTkiUSaunkXYO9p5gS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=21118U66UYunkUokikUuF8s6oSiB8dnoYHXaw4-G-l-Vv-R-l-yMv-
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118jkXaC8s6oS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=a61iY6ka8oT3nCju8sYCjS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=uVduinkX86FU
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nCjuBuQ1618s6oSjiSdrSkz-O-nf-G-qEA-G-O-Qf-G-c-tf-PO-QSf-u1V2-uiBknX6iBVVVBnCiiuFVb-XuVLYYXuVx-kEuV8-CsqBV2-dkiuVV-XuBuYbkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoT
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nCjuBuQ1618s6oSi6SdrSkz-O-nf-G-qEA-G-O-Qf-G-c-tf-PO-QSf-u1V2-uiBknX6iBVVVBnCiiuFVb-XuVLYYXuVx-kEuV8-CsqBV2-dkiuVV-XuBuYbkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoT
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1XYY7T6Fi8s6oSuiSg3pMgMSD66n7YXsX6CBOLo7ODF66quOUunBOkikYOFXTTua
Better site: ProxyBot webproxy https://proxybot.cc/b?q=21uj8kFsdXWu86FUS1ujSMNt9NMt9N0MNyMS1118iunqCnknkB6q8dCSMNNpONMON0OkFsdXWu8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=0pBuQ8nWSCqSokFquFSoXuYkSFknXiUSTkUuVtS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2PXEEjCiquF8s6oSuYSBukFsdSqhR-9hDtBkJj67YCJYuEjX7ui
Better site: ProxyBot webproxy https://proxybot.cc/b?q=21118U66UYunkUokikUuF8s6oSiB8dnoYHXaw4-G-l-Vv-R-l-yMv-
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=211181ujYX68PTSFkiqXiUSYXIuS1TUPiSMNtNNptM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2ak81XqXTuaXk86FUS1XqXSv-XojYua6iVouBnuFBqkjuFiuOMNN5
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2BuQWXau6da8TF6STnSnCjuSBuQ3
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2un81XqXTuaXk86FUS1XqXSO-YXQXF
Better site: ProxyBot webproxy https://proxybot.cc/b?q=21uj8kFsdXWu86FUS1ujSMNt9N5MNt5M339S1118TXksqCnknkB6q8dCSMNt3ONyOtgOkFsdXWu8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=TCFuY6YXVduinkX8Q7ESnuiqCCVi6VkikoCBCouVY6YXs6iVn6aaYuFs6iVkFnS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2Bo6nFXo8FCSjFkiaS53t9
Better site: ProxyBot webproxy https://proxybot.cc/b?q=211181ujYX68PTSFkiqXiUSTu6TYuSqiiBESMNtNNptM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFSWSBfSS1118FCBdaT6Fi68iunSBuqBSt0ptN0ST6Fi6Vq6iuoS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2au8T6FidCj8s6oSWXau6HswpM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1XYY7T6Fi8s6oSFCSTSnuFk
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2XEYuBXoaXT6Fi68s6oSYnSnkUSauuTndF6knS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=BuQsYXTBda8s6oSunSTSkoknCuF
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2BuQWXau6da8TF6SiYSnCjuSBuQ3
Better site: ProxyBot webproxy https://proxybot.cc/b?q=T6FiUXWu8ouSnFSISBkFuuSTkUuSM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=nFkiBYknua8QQQSuBSHBwjuICsq
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSptgS1dXnu8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=211181ujYX68PTSFkiqXiUSsCYnCFuSFqj7USMNtMN5t3
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nCjuBuQ1618s6oSnFSdrSkz-O-nf-G-qEA-G-O-El-El-Ne-V-LESc-VICsqVo7VUIbkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoT
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118skBdWXau6nCju8s6oSuBSgtgSFCjXk8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSauSp3ySa6UU78dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=0NN03g8dN8siSUCjkO0N58dnoYHB6FnwMv6FauFj7
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSuiSXiauQ8BdnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFSWSfSSUXUT6Fi68s6oSWSM5My03S
Better site: ProxyBot webproxy https://proxybot.cc/b?q=FC8FCBnCju8o6iBnuFSWSBfSSCEjCo8BCSa6okBdiuuOT6Fi6So6Y6a7XuOYuBjX7kiqXOnFCnB7kOTXBqkoX8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2IF8QdkoBnuFt98s6oSXiI6Ss6inksn
Better site: ProxyBot webproxy https://proxybot.cc/b?q=T6FisYXTdCj8s6oSFCSTSjkndF66o
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2uVduinkX86FUSBS3ukuNNj3NgStpgN05MV0
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2uVduinkX86FUSBS9kIuMpt90kStpgN05MV5
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1XYY7T6Fi8s6oSnFSy9g35pgSLiXoknuaOICnkikFXOICsqXiUOkiaOBCsqB
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118daFuka78QQQSunS0MpggNySd6nOkoknuCFOjFCiunnuOIXiUuFXiUOI6FOnduO1ujsko
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118Fk7BVs6CinuF8s6oS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nCjuBuQ1618s6oSTYSdrSkz-O-nf-G-qEA-G-O-Ql-V-qEl-G-w-9Sf-XsqXVx-CinuFhMR-VG-x-c-2-VLc-f-bkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoT
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nCjuBuQ1618s6oSdXSdrSkz-O-nf-G-qEA-G-O-Ql-V-qEl-G-w-9Sf-XsqXVx-CinuFhMR-VG-x-c-2-VLc-f-bkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoTlkoT
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2un81XqXTuaXk86FUS1XqXSb-YXXkqC
Better site: ProxyBot webproxy https://proxybot.cc/b?q=1118NNgoXYI8s6oSnFS5pgSjCqqkqu8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=BuQIXYoBnCju8s6oSduSM05tg3SLiUuYkO2-kYWkUi6Ol-kBnCFjknuBOx-uFODXUOR-YXn
Better site: ProxyBot webproxy https://proxybot.cc/b?q=o6iu78t038s6oSBTusXkYSNNTkXS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2uPPu81ujYX68PTSFkiqXiUSjCBXiuBBSuqE7PSMNtNNptM
Better site: ProxyBot webproxy https://proxybot.cc/b?q=WCT8XqCBdXok816FqSWSBfSSQBEkWt8s6oSWXau6SMMMgMNStSt8dnoY
Better site: ProxyBot webproxy https://proxybot.cc/b?q=WCT8XqCBdXok816FqSWSBfSS1118ndXBkW8s6oSWXau6S9N3Mp5S
Better site: ProxyBot webproxy https://proxybot.cc/b?q=21118U66UYunkUokikUuF8s6oSiB8dnoYHXaw4-G-l-Vv-R-l-yMv-
Better site: ProxyBot webproxy https://proxybot.cc/b?q=WCT8XqCBdXok816FqSWSBfSS1118Fua1kT8ouSWXau6BSMp00pySFukYVTkXiICYVkikYVjjsVT6CiaBVnXi7VUXFYBVkBBd6YuVsF7XiUV6iVs6ouo7skoS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=3QoknCFu8s6oSFCSBOsknSICYSsnFStS
Better site: ProxyBot webproxy https://proxybot.cc/b?q=2nuQiXrCu8IFS6BrkSrCuBnX6iBS5tyMSXauinXIXuFVCiVnXnFuVauVBusnX6iHnFXwO-is6CFB