-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
User contributed templates
- https://pandoc-templates.org: a website showcasing popular pandoc templates with previews, filtering and sorting options
- A simple latex.template with comments (MichaelT)
- LaTeX template that removes "Figure #" automatic labels from caption (rwst quoting jgm)
- Customizing the appearance of pandoc tables with booktabs (requires 1.12.2)
- Eisvogel: A LaTeX template for lecture notes and exercises with a focus on computer science
- A simple letter template for Pandoc
- Template for making Tufte-style handouts
- The Markdown Resume
- PDF slides and handouts using Pandoc and Beamer
- A template for creating a PhD thesis in markdown + pandoc
- Alternative template for creating a PhD thesis in markdown + pandoc
- Simple example on how to write a thesis in markdown with Pandoc
- Boilerplate for writing a paper with Markdown/Latex and Pandoc
- A sound and versatile Pandoc LaTeX boilerplate to produce academic books using modular Markdown files featuring KOMA-Script and BibLaTeX
- md2latex is a collection of templates and scripts which are designed to allow you to write in APA 6 style using Markdown and to convert to APA 6 Style in LaTeX.
- Pandoc Project Boilerplate This is the boilerplate to produce a book and an ebook with Pandoc.
- A skeleton template and generator for creating academic papers and targeting common formats, with SVG support.
- Lecture material: PDF slides and HTML/EPUB handouts using Pandoc and Beamer
- Pandoc Journal Templates - github repository with journal templates for several major journals (incl. JASA, TAS, JBES, JCGS, SBP, Technometrics, Biometrical Journal, Biometrics, Biometrika, Biostatistics, AOAS, AOP, AAP, AOS, SSY, Journal of Statistical Software, Statistics in Medicine, and The R Journal)
- A template and makefile for generating MLA-formatted PDFs
- Pandoc Markdown ebook template (EPub, html and PDF)
- Pandoc e-book generation script (HTML/EPUB/DOCX/PDF)
- Opening Science, an example of using Pandoc to create both a printed and electronic book with academic citations (see also the blog post by Martin Fenner)
- Advanced R Programming, combining pandoc with Jekyll and knitr
- Simple project template for html, pdf and epub pandoc ebooks
- Customizing pandoc for GitHub style markdown (PDF/EPUB)
- Docx Shun manuscript template
- Bootstrap4 Template: A Bootstrap 4 template with table of contents
- https://github.com/tonyblundell/pandoc-bootstrap-template A bootstrap template.
- https://github.com/diversen/pandoc-bootstrap-adaptive-template. A bootstrap adaptive template with a sticky accordion menu.
- https://github.com/diversen/pandoc-uikit. A pandoc UIKIT adaptive template with a sticky accordion menu.
- mindoc: minimal template producing a HTML document with responsive styling and section navigation menu. Designed to make academic documents including course syllabi and scholarly articles accessible on small screens.
-
gh-themes-magick: (pandoc v2) GitHub Pages’ themes converted to pandoc html5 templates; template vars exposed via single
configuration.yamlto customize website and html metadata. - GitHub Pandoc HTML5 Template: built from GitHub's original CSS to mimick the look and feel of GitHub documents. [Live Demo]
- Easy Pandoc Templates: a collection of portable pandoc templates without dependencies — bootstrap, elegant bootstrap, and UIKit, bundled with useful helpers and demos. Maintained by Ryan Grose, GPL-3.0 License.
- numbered-sections: Docx-template with numbered sections for heading levels one (1.) to four (1.1.1.1).
- Shun Manuscript template
Notable forks of pandoc-templates, for ~/.pandoc/templates
- claes / pandoc-templates is a good illustration of a template with many user-defined variables, e.g for margins, language, papersize, orientation, etc. Because this makes command line specification a bit unwieldy, he includes simple shell script with unused options commented out to instruct markdown2pdf how to fill in all the blanks.
- dsanson / pandoc-templates
- kjhealy / pandoc-templates. Note that it calls a special .sty file from kjhealy / latex-custom-kjh.
- smile / pandoc-templates, including a German-language article template.
- wcaleb / pandoc-templates
""" XXX DEX PPT Generator - 主入口文件 生成深色科技风格的XXX DEX产品演示PPT """
from fastapi import FastAPI, File, UploadFile, HTTPException from fastapi.responses import FileResponse from fastapi.middleware.cors import CORSMiddleware from src.ppt_generator import XXXDEXPPTGenerator import uvicorn import os import tempfile
app = FastAPI( title="XXX DEX PPT Generator", description="生成XXX DEX产品演示PPT的自动化工具", version="1.0.0" )
app.add_middleware( CORSMiddleware, allow_origins=[""], allow_credentials=True, allow_methods=[""], allow_headers=["*"], )
@app.post("/generate-ppt") async def generate_ppt(): """生成PPTX文件并返回下载链接""" try: generator = XXXDEXPPTGenerator()
# 创建临时文件
with tempfile.NamedTemporaryFile(suffix='.pptx', delete=False) as tmp_file:
tmp_path = tmp_file.name
# 生成PPT
generator.create_presentation(tmp_path)
return FileResponse(
tmp_path,
media_type="application/vnd.openxmlformats-officedocument.presentationml.presentation",
filename="XXX-DEX-产品演示.pptx"
)
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))
@app.get("/health") async def health_check(): """健康检查接口""" return {"status": "healthy", "service": "XXX DEX PPT Generator"}
if name == "main": uvicorn.run(app, host="0.0.0.0", port=8000)