ソースを参照

specify code type, but don't do code highlighting

George C. Privon 7 年 前
コミット
9c0d0fe711
2 ファイル変更8 行追加5 行削除
  1. 3 3
      aastex62/README.md
  2. 5 2
      aastex62/demo.md

+ 3 - 3
aastex62/README.md

@@ -3,13 +3,13 @@
 Generate a `tex` file with:
 
 ```
-pandoc demo.md -s --template aastex62_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc
+pandoc demo.md -s --template aastex62_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --no-highlight
 ```
 
 Go straight to the pdf with:
 
 ```
-pandoc demo.md -s --template aastex62_template.tex -o demo.pdf -F pandoc-crossref -F pandoc-citeproc  --pdf-engine=xelatex
+pandoc demo.md -s --template aastex62_template.tex -o demo.pdf -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --pdf-engine=xelatex --no-highlight
 ```
 
 The `demo.md` file contains a sample article describing the use of this template in generating AASTeX output via pandoc.
@@ -24,5 +24,5 @@ The `demo.md` file contains a sample article describing the use of this template
 
 ## Known Issues
 
-* AASTeX table environments pass through to LaTeX without trouble. But note that these will not translate to other outputs (HTML, epub, etc.). So consider what your desired outputs will be before you put lots of effort into tables.
+* AASTeX table environments pass through to LaTeX without trouble. But note that these will not translate to other outputs (HTML, epub, etc.). So consider what your desired outputs will be before you put lots of effort into tables. Or write a [pandoc filter](https://pandoc.org/filters.html) to handle tables.
 * The AAS bibliography format is not part of the [Zotero (citation) Style Repository](https://www.zotero.org/styles) so `pandoc-citeproc` does not have access to the correct citation style. Dealing with this is beyond the scope of this particular repository, but hopefully that spec will eventually be translated into [Citation style language](https://citationstyles.org/).

+ 5 - 2
aastex62/demo.md

@@ -77,7 +77,7 @@ Article data such as the title, relevant dates, author list, keywords, etc. is s
 The `pandoc` template also derives the \aastex\ style information from this YAML header, via the `aastexops` entry.
 The YAML header given below is that used for the preparation of this document:
 
-```
+```{#yamlheader .yaml .numberLines}
 ---
 aastexopts: [singlecolumn]
 preambleinput: ["macros.tex"]
@@ -138,6 +138,9 @@ Table: Number of imaginary thunderstorms in Gainesville, FL during the 21st week
 Citations can be incorporated using the pandoc-citeproc filter^[<https://pandoc.org/MANUAL.html#citations>].
 These citations take the form of: `[@Astropy2018]` to correspond to [@Astropy2018].
 
+## Equations {#sec:equations}
+
+
 # Notes on Preparation for Submission {#sec:notes}
 
 ## Limitations on Internal References
@@ -162,7 +165,7 @@ With output formats besides \aastex\ in mind, the acknowledgments portion of the
 However, is desirable to automatically convert this to an `\acknowledgments` macro when creating a \TeX\ file.
 As a filter demonstration, the following lua code performs this translation:
 
-```
+```{#ackfilter .lua .numberLines}
 return {
   {
     Str = function (elem)