NOTES on microtype, verbatim and elegantpaper
The following snippet can be used to remove the nasty activate=false during verbatim and example sourcecode export (which property and src results are using during latexPDF export) in org-mode with [[https:/github.comElegantLaTeXElegantPaper][elegantpaper]] class. It had been an issue haunted me for a long time (输出PDF时, SRC_EXAMPLE 上方显示一行 activate=false?).
NOTE: The snippet should be inserted in preamble section, hence, with LATEX_HEADER_EXTRA keywords (or also LATEX_HEADER, I assume) 1.
1 2 |
#+LATEX_HEADER_EXTRA: \makeatletter\usepackage{microtype}\g@addto@macro\@verbatim{\microtypesetup{activate=false}}\makeatother |
NOT working with BEGIN_EXPORT latex and END_EXPORT pair as in the following, which put the its contents in latex document section and generate more errors instead of resolving the issue.
1 2 3 4 5 |
#+BEGIN_EXPORT latex \makeatletter\usepackage{microtype}\g@addto@macro\@verbatim{\microtypesetup{activate=false}}\makeatother% #+END_EXPORT |
Footnotes:
‘LATEX_HEADER_EXTRA’ Arbitrary lines to add to the document’s preamble, before the hyperref settings. more LaTeX specific export settings.
JAN
About the Author:
Beyond 8 hours - Computer, Sports, Family...