1 Star 0 Fork 4

bzy/qemu-observe

forked from 泰晓科技/qemu-observe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
falcon 提交于 2022-11-10 19:00 . allow customize titlepage wallpaper
# Author: Wu Zhangjin / Falcon <[email protected]>
# Update: 2014/01/17 PM 14:20, 2022/08/15 AM 2:53
SRC = $(wildcard v*/*.md)
html_theme=dzslides
latex_theme=Darmstadt
# colortheme: beaver,crane,dolphin,dove,fly,lily
# monarca,seagull,seahorse,spruce,wolverine
latex_colortheme=wolverine
# configure the ratio of width/height
latex_aspectratio=169
# Put and select the .jpg's in images/, without suffix
#titlepage_wallpaper=
titlepage_titlefg=white
titlepage_authorfg=darkgray
# toc bg/fg
toc_number_bg=white
toc_number_fg=violet
toc_section_bg=white
toc_section_fg=orange
latex_fontsize=9pt
latex_template=./templates/zh_template.tex
latex_pagefoot="欢迎加入『QEMU 模拟器观察』小组,联系微信:tinylab,公众号:泰晓科技"
# pygments / kate /monochrome /espresso /haddock /tango /zenburn
highlight_style ?= espresso
PDFS=$(SRC:.md=.pdf)
HTML=$(SRC:.md=.html)
IMGS=$(wildcard images/*.jpg)
all: clean $(PDFS) $(HTML)
pdf: $(PDFS)
html: $(HTML)
%.pdf: %.md $(latex_template) $(IMGS)
sed '/^# 致谢/,$$d' $< > $<.tmp
pandoc -t beamer --toc --listings \
--latex-engine=xelatex \
--template=$(latex_template) \
$(if $(latex_aspectratio),-V aspectratio=$(latex_aspectratio)) \
-V titlepage_wallpaper:$$(for d in $(basename $<)_titlepage_wallpaper $(basename $<) $(dir $<)titlepage_wallpaper common/titlepage_wallpaper; do if [ -f "images/$$d.png" -o -f "images/$$d.jpg" ]; then echo "$$d"; break; fi; done) \
-V titlepage_titlefg:$(titlepage_titlefg) \
-V titlepage_authorfg:$(titlepage_authorfg) \
-V toc_number_bg:$(toc_number_bg) \
-V toc_number_fg:$(toc_number_fg) \
-V toc_section_bg:$(toc_section_bg) \
-V toc_section_fg:$(toc_section_fg) \
-V colortheme:$(latex_colortheme) \
-V theme:$(latex_theme) \
-V fontsize:$(latex_fontsize) \
-V pagefoot:$(latex_pagefoot) \
$<.tmp -o $@
rm $<.tmp
%.html: %.md
pandoc -t $(html_theme) -s --mathjax $< -o $@
sed -i -e "s/width: 800px; height: 600px;$$/width: 1280px; height: 768px;/" $@
sed -i -e "s/margin-left: -400px; margin-top: -300px;$$/margin-left: -640px; margin-top: -384px;/" $@
read: $(PDFS)
(chromium-browser $^ 2>&1 > /dev/null &) 2>&1 >/dev/null
view:
evince $(PDFS)
read-html: $(HTML)
(chromium-browser $^ 2>&1 > /dev/null &) 2>&1 >/dev/null
clean:
rm -rf $(PDFS) $(HTML) *.tmp
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bzy_nya/qemu-observe.git
[email protected]:bzy_nya/qemu-observe.git
bzy_nya
qemu-observe
qemu-observe
master

搜索帮助