在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):djhocking/Markdown-for-Manuscripts开源软件地址(OpenSource Url):https://github.com/djhocking/Markdown-for-Manuscripts开源编程语言(OpenSource Language):TeX 87.0%开源软件介绍(OpenSource Introduction):Writing Scientific Papers Using MarkdownMarkdown is a markup language that is very handy and easy to use. I won't say much more about it, but I've written about it before here and here. I've used it increasingly for writing blog posts, webpages, taking notes, with GitHub issue tracking, and with R code (R Markdown in RStudio is fantastic!). As a Mac OS user, I find Microsoft Office products to be annoying and temperamental. I read Karthik Ram's great post on how to ditch MS Word a while back and since I've been using Markdown for so much lately, it seemed like a good time to write my first scientific paper with it. I'm going to use this post, written in Markdown, to outline my process. This will help me repeat the process in the future if I like it and hopefully help others interested in trying it. Step 1: Create a Markdown DocumentObviously the first step is to create a Markdown document. You can do this with any text editor and just change the extension from For this example and for future use, I've created a template for a manuscript that you can find here. Step 2: Add In-Text CitationsTo add references, I use Mendeley and create a folder for any publications I cite (or might cite) in the manuscript. Then while writing you can add in-text citations with Step 3: Install or Update PandocPandoc is an amazing program to convert between different file types. In our case we can create HTML, Word, and PDF files from our Markdown document. You can find the installation instructions at http://johnmacfarlane.net/pandoc/installing.html. You will also need LaTeX installed if you want to output PDF documents. You can use MacTex or BasicTeX on a Mac or MiKTeX on a Windows machine (Linux users, you know what to do). I was getting an error
So I decided to install Haskell and run the following:
Then this can just be run again in the Terminal app in the future to update pandoc. Step 4: Add a Style SheetWhen creating a PDF there is a 1.5 inch left margin by default (good for binding I guess). Generally, I want 1 inch margins all around so I open a text file and paste
Then save it as
Step 5: Add a Journal Style FileOne of the benefits of writing in simple text is that you don't have to worry about formatting while writing. But now to add formatting for a specific journal, go here to get a style Step 6: Put it all TogetherNow is when we use pandoc to combine the styles and bibliographic information with the manuscript. In the Terminal you can simply run
to convert the document from markdown to PDF. However, this won't have any of the desired formatting. To include the formatting, you just add some flags and arguments as such:
To automate this code and potentially output PDF, Word, and HTML documents all at once you can easily create a
Then save the file as If you change anything in the markdown file or want to format for a different journal just add the new I am currently using |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论