소스 검색

using --natbib will generate \cite{} calls, fixes #3

George C. Privon 7 년 전
부모
커밋
a101f2d2bf
4개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      aa/README.md
  2. 1 1
      aastex62/README.md
  3. 3 0
      aastex62/demo.md
  4. 1 1
      mnras/README.md

+ 1 - 1
aa/README.md

@@ -3,7 +3,7 @@
 Generate a `tex` file with:
 
 ```
-pandoc demo-structured_abstract.md -s --template aa_template.tex -o demo-structured_abstract.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua
+pandoc demo-structured_abstract.md -s --template aa_template.tex -o demo-structured_abstract.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --natbib
 ```
 
 Go straight to the pdf with:

+ 1 - 1
aastex62/README.md

@@ -3,7 +3,7 @@
 Generate a TeX file with:
 
 ```
-pandoc demo.md -s --template aastex62_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --no-highlight
+pandoc demo.md -s --template aastex62_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --no-highlight --natbib
 ```
 
 Go straight to the pdf with:

+ 3 - 0
aastex62/demo.md

@@ -224,6 +224,9 @@ These citations take the form of: `[@Astropy2018]`, corresponding to [@Astropy20
 `pandoc-citeproc` uses the Citation Style Language^[<https://citationstyles.org/>] to format citations.
 Presently most of the main astrophysics journals lack entries in the CSL database.
 
+By default, `pandoc-citeproc` will convert the references into text when generating \TeX files.
+In order to convert the citations to `\cite{}` style commands (which are likely preferred for journal submissions) call `pandoc` with the `--natbib` or option.
+
 ## Equations {#sec:equations}
 
 Equations can be specified and labeled in the text using standard \TeX\ macros.

+ 1 - 1
mnras/README.md

@@ -3,7 +3,7 @@
 Generate a `tex` file with:
 
 ```
-pandoc demo.md -s --template mnras_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua
+pandoc demo.md -s --template mnras_template.tex -o demo.tex -F pandoc-crossref -F pandoc-citeproc --lua-filter=filters/acknowledgments.lua --natbib
 ```
 
 Go straight to the pdf with: