This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

Working with LaTex

Working with LaTex

Tinderbox can export, via custom templates and HTML Export, data that includes LaTeX mark-up. Whilst must of the code is simply placed in the template, thought need to be given to $Text mark-up that is exported via the ^text^ export code:

Other styling such as inline font changes, text colour, highlighting, sub/superscript is ignored for export purposes.

In addition, the last two items of the bulleted list won't work. you can't control URL mark-up, so don't use links. Don't enlarge headings as you can't provide substitute mark-up for h1/h2/etc. default HTML export by this feature.

Turning off $HTMLMarkup is possible but that then dumps all $Text styling.

Inline images aren't exported by v5.

^text^ auto-markup you can re-set for LaTeX use

Coding for Underline & Strikethrough require presence of the 'normalelem' package and header declaration: \usepackage[normalem]{ulem}.

As the changes below are set in attributes, these can be altered only for those notes exporting to LaTeX thus allowing it to mix with default HTML export (or other export formats).

All \begin, \end and \item tags must include a trailing single space character. The quotes around values listed below are not part of the value and only indicate where extra white space may occur.

$HTMLBoldStart: "\textbf{"

$HTMLBoldEnd: "}"

$HTMLItalicStart: "\textit{"

$HTMLItalicEnd: "}"

$HTMLUnderlineStart: "\uline{"

$HTMLUnderlineEnd: "}"

$HTMLStrikeEnd: "\sout{"

$HTMLStrikeEnd: "}"

$HTMLIndentedParagraphStart: "\begin{quote} "

$HTMLIndentedParagraphEnd: "\end{quote} "

$HTMLListStart: "\begin{itemize} "

$HTMLListEnd: "\end{itemize} "

$HTMLOrderedListStart: "\begin{enumerate} "

$HTMLOrderedListEnd "\end{enumerate} "

$HTMLListItemStart: "\item "

$HTMLEntities: [false]

$HTMLExportExtension: might be set to ".tex"

Set to no value: $HTMLListItemEnd, $HTMLImageStart, $HTMLImageEnd

Paragraphs. Paragraph initial indenting, and first-vs-subsequent differences is handled in general LaTeX setup (i.e. in the template) so no paragraph start tag is needed. So set to no value: $HTMLParagraphStart, $HTMLFirstParagraphStart. However, $Text should either use line-spaced paragraphs or both $HTMLParagraphEnd and $HTMLFirstParagraphEnd should use an (invisible) line break character as the closing tag. Do not use "\n", but copy the line return from some $Text and paste this invisibly character into the appropriate input boxes. An alternative strategy (but with different effects on LaTeX paragraph spacing is to set end paragraphs tags to "\\", as illustrated.

Tag clouds. The text size chosen is left to the user but these are suggested values:

$HTMLCloud1Start: "{\scriptsize"

$HTMLCloud1End "}"

$HTMLCloud2Start: "{\normal"

$HTMLCloud2End "}"

$HTMLCloud3Start: "{\Large"

$HTMLCloud3End "}"

$HTMLCloud4Start: "{\huge"

$HTMLCloud4End "}"

$HTMLCloud5Start: "{\Huge"

$HTMLCloud5End "}"

Possible relevant notes (via "Similar Notes" feature):

A Tinderbox Reference File : Import/Export/Formatting : Working with LaTex