• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

gbluma/latex-boilerplate: The starting point for all my LaTeX documents.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

gbluma/latex-boilerplate

开源软件地址(OpenSource Url):

https://github.com/gbluma/latex-boilerplate

开源编程语言(OpenSource Language):

TeX 72.4%

开源软件介绍(OpenSource Introduction):

About LaTeX-boilerplate

Screenshot

(Here is an example PDF)

I built this LaTeX template as the starting point for all of my homework assignments. I've used it with much success over the past couple years -- speeding up my workflow -- but it is not 100% perfect.

I used to create LaTeX documents from scratch at the start of every assignment, but I would spend hours tweaking the same things on each assignment (i.e. margins, fonts, captions, etc). I also found that I was copy-and-pasting between projects to save time. Over time, it just made sense to build an official template -- this is it!

This template is an opinionated work in progress. It was designed to work around my needs, but I appreciate feedback in order to make this more useful for everyone.

The design choices I made center around the tools I use. Here are a few of them:

  • Vim
  • gnumake
  • Preview.app (OS X document viewer)
  • Markdown (via Pandoc)

My workflow is efficient, but there are some concessions.

1.) The primary document is written in markdown, but not everything comes out exactly as I like (e.g. code, headers, graphics, and tables). But since Pandoc just ignores LaTeX, I can include it in my markdown and it falls through to the generated document. Thus, I use copious amounts of LaTeX in my markdown files.

2.) Not everyone likes calling make test to build their document, but I find it handy. Inside Vim I've bound a key sequence to quickly build a PDF and show it to me. The Vim command do this is :map ,t :w\|:!make test<cr>. With this, I can write a sentence, hit escape, and then comma and t, and I see the changes I made immediately.

3.) This template is largely configured for OS X, although I am moving towards supporting Linux as well. Currently I use an applescript called focus which refreshes the PDF document in Preview.app. This is handy for OS X, but I have not written a similar script for Linux yet.

If you have any recommendations I'd like to hear them.

Thanks.

How to use it?

Do this and you should have be ready to go.

cd ~/Documents
git clone git://github.com/gbluma/latex-boilerplate.git newdocument
cd newdocument
make && make open

# do work
make test

# check text for sloppy word usage
make check



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap