Tinderbox and LaTeX

Mark, I’d like to thank you for the file you’ve developed. As WAKAMATSU wrote, it will allow me to export my notes to Texifier, compile them, and then refine my work from the PDF. It might seem insignificant, but as you’re familiar with LaTeX, you know from experience that a PDF generated from a LaTeX file has the appearance of a “finished product”, whether it’s an article or a book. And that’s exactly what I need. I thought I could work directly with Mellel, which is also an excellent tool, but LaTeX offers unparalleled formatting possibilities. I’ll give it some time, and once I’ve become more familiar with this new tool, I’ll provide you with a detailed review.

1 Like

I should note that I’m not an expert in LaTeX. All I know is learned from doing my PhD thesis (complex doc structure) in LaTeX and using LaTeX for publishing papers at ACM (a big CompSci org/publisher).

Using LaTeX feels like 1980s computing. I’m sure if it were rebuilt today it would be a bit less gnomic in its approach to the user who isn’t a command line coder. Of course, now it would be an 'AI assistant" so now you have
two problems to deal with.

Another tweak to my demo you might consider is to allow for non LaTeX output notes in the branch of notes being LaTeX-encode. A user boolean, checked in the template could exclude such notes entirely.

Essentially, wrap the whole templatecode in a call like this:

^if($LaTeXExport==true)^....^endIf^

So a user boolean $LaTeXExport would be set true (ticked) for all notes meant to be part of the export cascade and false for any others, e.g. author’s side notes, so they would not be exported.

As the export still cascades, a content note nested under a non-exporting note would still be found. Of course, the latter context could also be detected/suppressed by code if needed, but this just shows how quickly the export template & action code get very user-specific. :slight_smile:

1 Like

Dear Dominique Renauld,
I was considering a procedure similar to yours.
I am currently writing my second book
about the relationship between Marcel Moyes and philosophy.
I use the notes I write on Tinderbox to compile reference materials.
How to handle it? I was confused.
I was just putting together the materials for one side on Mellel 6.5.5.app.
(which I was assisting with Japaneseization.)
Using this improved Tinderbox by Dr.MarkAnderson
Since it is now possible to convert directly from LaTeX, in YAML in Quarto
There is no longer any need to add names to new documents.
For LaTeX fans, I would appreciate it if you could provide some improvements.
I am very grateful to Dr. Mark Anderson.
Yours, WAKAMATSU (from Japan)

Mea culpa, the code above wrongly showed (in both forms setting attribute and action) the wrong value for $HTMLUnderlineEnd. It should be “}”.

I’ve fixed it above but post here for those who might have already read an implemented the wrong value.

Dear Dr.Mark Anderson,

I am very grateful to you !
I made some changes to the code of the LaTeX document you created.
The purpose is to make the specified score number and TOC number the same.
Thanks to your help, I was able to achieve 90% of the look I wanted! !
In the literature I have, the music scores are serially numbered.
This unique numbering is used as is to refer to the score.
Aiming to match all notes and sheet music in Tinderbox10 to PDF
When exporting, the TOC number of your code and the number of the reference score will be different by one.
The problem is that the document placed at the beginning of
LaTeX-multi-note-export.tbx is recognized as one of the sections
and given the first number 1.

I hope you can understand from the attached image.
The contents of the four attachments are
[1-originalLaTeX document PDF.tiff]
Using the LaTeX document you provided
[2-LaTeX Document.txt]
The slightly modified LaTeX document used this time
[3-LaTeX.tbx.tiff]
Part of the tbx notebook used this time
[4-LaTeX.tbxPDF.tiff]
Export 3 tbx using 2 LaTeX document
PDF image compiled with texstudio-4.9.1-osx-m1.app

Yours, WAKAMATSU
P.S Trial and Error
Test01: How to start section number from “0” in LaTeX?
Test02: Is it better to use \section*{}?

LaTeXdocument.zip (261.4 KB)

If that’s what you’re trying to do…

… then, this thread should help you: https://tex.stackexchange.com/questions/167282/automatic-section-title-section-title-before-section-number

1 Like

Dear Dominique Renauld,
Thank you for your advice.
I am not particularly concerned with the layout specifications you introduced.
In the current rendering to PDF,
I focused on ToneDevelopment at the beginning.
The “wording” written in the document cannot be recalled
from the TOC with a click.
I guess I should be able to call internal links with hyperref?
Is it good if the written content is displayed before the section?
It seems that something is wrong with the settings.
In normal LaTeX settings, information written after \begin{document}
is displayed at the beginning of the text.
If you have any suggestions for improvement,
please provide information.
Yours, WAKAMATSU