Improve LaTeX export of checkboxes
Patch by Valentin W黶tholz
This commit is contained in:
parent
275da724d4
commit
824f6efbe4
|
@ -97,6 +97,7 @@
|
|||
\\usepackage{float}
|
||||
\\usepackage{wrapfig}
|
||||
\\usepackage{soul}
|
||||
\\usepackage{amssymb}
|
||||
\\usepackage{hyperref}"
|
||||
("\\section{%s}" . "\\section*{%s}")
|
||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||
|
@ -112,6 +113,7 @@
|
|||
\\usepackage{float}
|
||||
\\usepackage{wrapfig}
|
||||
\\usepackage{soul}
|
||||
\\usepackage{amssymb}
|
||||
\\usepackage{hyperref}"
|
||||
("\\part{%s}" . "\\part*{%s}")
|
||||
("\\chapter{%s}" . "\\chapter*{%s}")
|
||||
|
@ -127,6 +129,7 @@
|
|||
\\usepackage{float}
|
||||
\\usepackage{wrapfig}
|
||||
\\usepackage{soul}
|
||||
\\usepackage{amssymb}
|
||||
\\usepackage{hyperref}"
|
||||
("\\part{%s}" . "\\part*{%s}")
|
||||
("\\chapter{%s}" . "\\chapter*{%s}")
|
||||
|
@ -290,7 +293,7 @@ string should be like \"\\end{itemize\"."
|
|||
(string :tag "Use a section string" :value "\\subparagraph{%s}")))
|
||||
|
||||
(defcustom org-export-latex-list-parameters
|
||||
'(:cbon "\\texttt{[X]}" :cboff "\\texttt{[ ]}")
|
||||
'(:cbon "$\\boxtimes$" :cboff "$\\Box$")
|
||||
"Parameters for the LaTeX list exporter.
|
||||
These parameters will be passed on to `org-list-to-latex', which in turn
|
||||
will pass them (combined with the LaTeX default list parameters) to
|
||||
|
|
|
@ -1305,6 +1305,8 @@ Valid parameters PARAMS are
|
|||
(setq sublist (replace-match cbon t t sublist)))
|
||||
(if (string-match "\\[CBOFF\\]" sublist)
|
||||
(setq sublist (replace-match cboff t t sublist)))
|
||||
(if (string-match "\\[-\\]" sublist)
|
||||
(setq sublist (replace-match "$\\boxminus$" t t sublist)))
|
||||
(setq rtn (concat rtn istart term ddstart
|
||||
sublist ddend iend isep)))
|
||||
(t (setq rtn (concat rtn ;; previous list
|
||||
|
|
Loading鈥
Reference in New Issue