Mark, thank you so much for your help. I have no doubt that if you had my file, you would have fixed the problem quickly, as you usually do: it’s thanks to you that I can use my main Tinderbox file as a powerful Markdown editor!
But, as I was a little bit in a hurry and as I know nothing about computers or very little, I had to use an AI. I hope you won’t mind.
But, in fact, even with an AI, it wasn’t easy at all: I had to reconfigure my entire file and repeat the operation several times. Each time something was wrong.
The first code you gave me produces : \part{Partie} ## Chapitre ### Section. I imagine, therefore, that by adding a line of code that would say something like $Headlevel value == 2, then value is Chapter, we should obtain the desired level between \part{} and ##, that is #.
The second code produces the \part{} section.
The code I was given is as follows:
Markdown page:
\part{^value($Name)^}
^children(/Templates/Markdown page/Markdown item)
Markdown item:
^if($HeadingLevel==2)^
# ^value($Name)^
^else^
^if($HeadingLevel==3)^
## ^value($Name)^
^else^
^if($HeadingLevel==4)^
### ^value($Name)^
^else^
^if($HeadingLevel==5)^
#### ^value($Name)^
^endif^
^endif^
^endif^
^endif^
^value($TextMarkdown)^
^children(/Templates/Markdown page/Markdown item)
Thank for your help: I can now produce an entire LaTex document from Tinderbox.
