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

zestedesavoir/latex-template: LaTeX template used for PDF exports

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

开源软件名称(OpenSource Name):

zestedesavoir/latex-template

开源软件地址(OpenSource Url):

https://github.com/zestedesavoir/latex-template

开源编程语言(OpenSource Language):

TeX 78.6%

开源软件介绍(OpenSource Introduction):

Travis status

About

This is a proposal for the zmarkown template to help compile Markdown to LaTeX.

Credits go to :

  • Karnaj, for the original template and many improvements.
  • Heziode, for later improvements.
  • pierre-24, maintainer of the repository.

Installation

Basics

You need a standard (full) LaTeX distribution:

  • Windows: MikTeX
  • Mac OS X: MacTeX
  • Linux: TeXLive is probably available in your favorite package manager.

Since this template uses the minted package you also need Pygments, probably available in your package manager on Linux or via pip:

pip install Pygments

You also need these fonts:

Other images formats

To be able to use GIF and SVG images in your documents, two extra programs are needed:

  • librsvg, which uses cairo to convert svg to pdf, and is available under the name librsvg2-bin in many package managers ;
  • The convert program, part of the imagemagick tools suite, to convert GIF to PNG. It is probably also available in your package manager.

Package installation

If you are a developer wanting to help, you can clone this package anywhere and just use the Makefile to run the tests (see CONTRIBUTING.md).

To use this package normally, you need to clone it into your TXMFHOME/tex/latex/ directory (you can know to which location TXMFHOME corresponds by running kpsewhich -var-value TEXMFHOME, but probably $HOME/texmf/). Note that you don't need to run texhash. More information is given for example here.

This repo uses submodules. After clone this repo, in root folder of the project, execute this command to download the submodules: git submodule update --init --recursive.

Note that this package requires lualatex to be called with the -shell-escape option (because of minted).

Testing and using

The different macros and environment are defined in zmdocument.cls and documented in documentation.md. Here is a skeleton on what your LaTeX document should contain:

\documentclass{zmdocument}

\title{Title}
\author{Author}
\licence[path/to/image]{Licence name}{URL} % optional
\logo{logo.png}  % if ./logo.png is available

\begin{document}
\maketitle
\tableofcontents

%% ... The rest of your document
\end{document}

See the test.tex file in tests for an example usage of the document class.

Contributing

See CONTRIBUTING.md.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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