How to configure a Tinderbox file that exports notes in Markdown?

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.

1 Like

How kind! I’ll say the unspoken part though, that people’s willingness to share the detail of their problem informs us all. Plus, in taking the unrequited time to share back your results, we all gain. It doesn’t just solve one person’s problem but helps later readers and helps inform/correct what goes into aTbRef. So, I’m happy to help. With a toolbox app, each person’s issue isn’t everyone’s exact issue but most often it is at least part of the solution to the latter.

Very glad we got the problem sorted. :slight_smile:

1 Like

This is the file :
From Tinderbox to LaTex via Markdown.tbx (105.4 KB)

1 Like

Here is a video we did on this exact topic back on Feb. 2022.:

Another one on Apr. 2022: