diff --git a/scribble-doc/scribblings/scribble/config.scrbl b/scribble-doc/scribblings/scribble/config.scrbl index 07781950..0d0af54e 100644 --- a/scribble-doc/scribblings/scribble/config.scrbl +++ b/scribble-doc/scribblings/scribble/config.scrbl @@ -519,6 +519,23 @@ style: @item{@ltxd[0]{postDoc} --- called after the document content; the default does nothing.} + @item{A set of commands that control the basic set of Latex packages that are loaded: + @itemlist[@item{@ltxd[0]{packageGraphicx}, defaults to @tt{\usepackage{graphicx}}} + @item{@ltxd[0]{packageHyperref}, defaults to @tt{\usepackage{hyperref}}} + @item{@ltxd[0]{renewrmdefault}, defaults to @tt{\renewcommand{\rmdefault}{ptm}}} + @item{@ltxd[0]{packageRelsize}, defaults to @tt{\usepackage{relsize}}} + @item{@ltxd[0]{packageMathabx}, defaults to @tt{\usepackage{mathabx}}} + @item{@ltxd[0]{packageWasysym}, defaults to @tt{\let\leftmoon\relax \let\rightmoon\relax \let\fullmoon\relax \let\newmoon\relax \let\diameter\relax \usepackage{wasysym}}} + @item{@ltxd[0]{packageTxfonts}, defaults to @tt{\usepackage{txfonts}}} + @item{@ltxd[0]{packageTextcomp}, defaults to @tt{\usepackage{textcomp}}} + @item{@ltxd[0]{packageFramed}, defaults to @tt{\usepackage{framed}}} + @item{@ltxd[0]{packageHyphenat}, defaults to @tt{\usepackage[htt]{hyphenat}}} + @item{@ltxd[0]{packageColor}, defaults to @tt{\usepackage[usenames,dvipsnames]{color}}} + @item{@ltxd[0]{doHypersetup}, defaults to @tt{\hypersetup{bookmarks=true,bookmarksopen=true,bookmarksnumbered=true}}} + @item{@ltxd[0]{packageTocstyle}, defaults to @tt{\IfFileExists{tocstyle.sty}{\usepackage{tocstyle}\usetocstyle{standard}}{}}} + @item{@ltxd[0]{packageCJK}, defaults to @tt{\IfFileExists{CJK.sty}{\usepackage{CJK}}{}}}] + @history[#:changed "1.36" @list{Added @ltx{packageTxfonts}}]} + @item{@ltxd[0]{sectionNewpage} --- called before each top-level section starts; the default does nothing, while the @racketmodname[scribble/manual] configuration uses diff --git a/scribble-doc/scribblings/scribble/utils.rkt b/scribble-doc/scribblings/scribble/utils.rkt index ba37ecf6..417c6e43 100644 --- a/scribble-doc/scribblings/scribble/utils.rkt +++ b/scribble-doc/scribblings/scribble/utils.rkt @@ -215,7 +215,7 @@ (define (ltx s) (tt "\\" s)) ; command (define (ltxe s) (tt s)) ; enviornment (define (ltxd n s) - (make-element #f (cons (index (list s) (ltx s)) + (make-element #f (cons (index (list (format "\\~a" s)) (ltx s)) (for/list ([i (in-range n)]) (tt "{}"))))) ;; Utility to render examples of scribble documentation forms