1 Star 0 Fork 60

MrLin/embed_linux_tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
latexbuild2.py 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
hejiawencc 提交于 2020-12-12 15:27 +08:00 . 基于本项目,对配置文件进行修改
# -*- coding: utf-8 -*-
import datetime, os, sys
name = "i.MX Linux开发实战指南"
#输出PDF文档 名称格式 type = 1:手册 type = 0:教程
type = 0
time = datetime.datetime.now().year * 10000 + datetime.datetime.now().month * 100 + datetime.datetime.now().day
if type == 1:
pdfname = '[野火] ' + name + str(time) + '.pdf'
else:
pdfname = '[野火EmbedFire]《' + name + '》—' + str(time) + '.pdf'
print(pdfname)
os.rename('_build/latex/output.pdf', '_build/latex/' + pdfname)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Mrlinshuai/embed_linux_tutorial.git
git@gitee.com:Mrlinshuai/embed_linux_tutorial.git
Mrlinshuai
embed_linux_tutorial
embed_linux_tutorial
master

搜索帮助