Skip to content

Commit

Permalink
add latex
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist authored Jun 28, 2024
1 parent da2cf4b commit 85ad9b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nimitheme/doc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ proc `stylesheet=`*(doc: var NbDoc, html: string) = doc.context["stylesheet"] =
proc `highlight=`*(doc: var NbDoc, html: string) = doc.context["highlight"] = html
proc `highlightJs=`*(doc: var NbDoc, html: string) = doc.context["highlightJs"] = html
proc `nbStyle=`*(doc: var NbDoc, css: string) = doc.context["nb_style"] = css
proc `latex=`*(doc: var NbDoc, html: string) = doc.context["latex"] = html
proc `sourceSection=`*(doc: var NbDoc, html: string) = doc.partials["source_section"] = html
proc `showSourceScript=`*(doc: var NbDoc, html: string) = doc.partials["show_source_script"] = html

Expand All @@ -64,6 +65,7 @@ proc stylesheet*(doc: var NbDoc): string = doc.context["stylesheet"].vString
proc highlight*(doc: var NbDoc): string = doc.context["highlight"].vString
proc highlightJs*(doc: var NbDoc): string = doc.context["highlightJs"].vString
proc nbStyle*(doc: var NbDoc): string = doc.context["nb_style"].vString
proc latex*(doc: var NbDoc): string = doc.context["latex"].vString
proc sourceSection*(doc: var NbDoc): string = doc.partials["source_section"]
proc showSourceScript*(doc: var NbDoc): string = doc.partials["show_source_script"]

Expand Down

0 comments on commit 85ad9b8

Please sign in to comment.