Explorar el Código

a more general way of including packages which enables providing package options

George C. Privon hace 7 años
padre
commit
48104fbb41
Se han modificado 2 ficheros con 14 adiciones y 4 borrados
  1. 9 3
      aastex62/aastex62_template.tex
  2. 5 1
      aastex62/demo.md

+ 9 - 3
aastex62/aastex62_template.tex

@@ -13,11 +13,17 @@ $if(bibstyle)$
 $endif$
 
 $if(texpackages)$
-\usepackage{
 $for(texpackages)$
-$texpackages$,
+\usepackage
+$if(opts)$
+[
+$for(opts)$
+$opts$,
+$endfor$
+]
+$endif$
+{$texpackages.name$}
 $endfor$
-}
 $endif$
 
 $if(preambleinput)$

+ 5 - 1
aastex62/demo.md

@@ -1,7 +1,11 @@
 ---
 aastexopts: [singlecolumn]
 preambleinput: ["macros.tex"]
-texpackages: [xspace, amsmath]
+texpackages:
+- name: xspace
+#  opts: 
+- name: amsmath
+#  opts: 
 bibstyle: aasjournal
 received: "January 1, 2018"
 #revised: "January 7, 2018"