(setq org-latex-minted-options
'(("frame" "lines")
("fontsize" "\\scriptsize")))
;; custom code block format to indicate input variables
(defun my-src-block (src-block contents info)
(cond
((eq (elt (plist-get info :back-end) 2) 'latex)
(concat
"\\begin{tcolorbox}
"
(format
(concat
(when (org-element-property :name src-block)
(format "src block name: %s\\\\" (org-element-property :name src-block)))
"language: %s")
(org-element-property :language src-block))
(org-latex-src-block src-block contents info)
"
\\end{tcolorbox}"))))
;; custom exporter
(org-export-define-derived-backend 'my-latex 'latex
:translate-alist '((src-block . my-src-block)))
(org-export-to-file 'my-latex "manuscript.tex" nil nil nil nil nil)
(ox-manuscript-latex-pdf-process "manuscript.tex")