Skip to main content
Known Participant
January 27, 2024
Answered

Problème avec les puces numérotées dans un en-tête

  • January 27, 2024
  • 4 replies
  • 3507 views

Bonjour,

Comment faire pour ajouter le numéro de puce d'un titre dans un en-tête de page continu (dans le gabarit), de manière automatique ?

Le nom du titre apparait bien dans l'en-tête (sous forme de variable, avec un style), mais pas le numéro de la puce. 

Je joins une photo de mon document.

Merci pour votre aide.

 

This topic has been closed for replies.
Correct answer Peter Kahrel

Well, Michel, that's a lot of steps, all of which can be captured in a script. I updated the script so that it handles everything, including adding and applying GREP styles, so that the only document preparation is to make sure that the running-header frames are labelled correctly. and I updated the web page to reflect that there's not really much to do.

 

Later: Your solution is great if it's just about automatic paragraph numbers -- very clever! But when styling is involved then the solution I described is needed.

 

4 replies

Peter Kahrel
Community Expert
Community Expert
January 31, 2024

Probably mustard after the meal, but I updated the script to deal better with paragraph numbers (adopting Michel's trick), separately from text styling. And rewrote the web page accordingly. Same link. 

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
January 29, 2024

Well, Michel, that's a lot of steps, all of which can be captured in a script. I updated the script so that it handles everything, including adding and applying GREP styles, so that the only document preparation is to make sure that the running-header frames are labelled correctly. and I updated the web page to reflect that there's not really much to do.

 

Later: Your solution is great if it's just about automatic paragraph numbers -- very clever! But when styling is involved then the solution I described is needed.

 

Peter Kahrel
Community Expert
Community Expert
January 28, 2024

This problem comes back regularly. Here's a (convoluted) workaround:

https://creativepro.com/files/kahrel/indesign/text-variables-in-running-headers.html

 

LizaaaAuthor
Known Participant
January 29, 2024

Thank you very much for the link, Peter Kahrel.
It all seems a bit complicated, but I'll give it a try.

Thanks!

jmlevy
Community Expert
Community Expert
January 27, 2024

La seule solution que je vois (mais qui n'est pas parfaite) est de convertir la numérotation automatique en texte (sélection du style dans le panneau des styles de paragraphe, puis clic droit > convertir [Nom du style] Numérotation en texte). Bien évidemment, il faut faire ça à la toute fin, quand ton document est finalisé.

Une fois la manipulation faite, les en-têtes se mettent à jour et incluent la numérotation.

FRIdNGE
January 27, 2024

From my phone:

 

Hmm!

 

(^/)  The Jedi

jmlevy
Community Expert
Community Expert
January 27, 2024

Décidément Michel tu resteras un mystère pour moi !