Просмотр исходного кода

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

George C. Privon 7 лет назад
Родитель
Сommit
48104fbb41
2 измененных файлов с 14 добавлено и 4 удалено
  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"