Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 4.17 KB

README.md

File metadata and controls

66 lines (53 loc) · 4.17 KB

Writing Chinese Academic Papers with Quarto

Publish

This repository provides a comprehensive guide and toolset for writing academic papers in Chinese, such as the localization and sorting of Chinese bibliographies, conversion of Chinese quotes, and correcting spaces between Chinese and English characters. With the help of these templates and scripts, you can write your academic papers in Markdown, and convert them into various formats like Word, HTML, LaTeX, PDF, and ePub via Quarto with ease.

Features

  • Render Multiple Formats: Render DOCX, HTML, PDF, ePub, and Reveal.js slides at once with the same source file, and PDF can be customized for print or with watermark.
  • Localize Chinese Bibliographies: Change et al. to and other English localization strings to Chinese in citations and references, both author-date and numeric styles are supported.
  • Sort Chinese Bibliographies: Sort Chinese bibliographies by Pinyin, and can be customized to sort Chinese entries first or last.
  • Correct Chinese Quotes: Tweak Chinese quotes for sophisticated typesetting.
  • Correct Spaces: Improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean).
  • Extract Bibliographies: Extract all bibliographies cited in the document as a BibLaTeX file.
  • Generate Backlinks: Generate backlinks for bibliography entries to the corresponding citations.

Prerequisites

Usage

This project uses a Makefile to manage the build process. Here are the available commands:

  • make or make all: Render DOCX, HTML, PDF, ePub and Reveal.js slides at once.
  • make docx: Render DOCX.
  • make html: Render HTML.
  • make pdf: Render PDF.
  • make epub: Render ePub.
  • make slides: Render Reveal.js slides.
  • make print: Render PDF for print.
  • make watermark: Render PDF with watermark.
  • make citebib: Extract all bibliographies cited as BibLaTeX file citebib.bib.
  • make clean: Remove auxiliary and output files.

Tools

  • confetti: Send some 🎊 in Reveal.js slides.
  • ignore-softbreaks: Emulate Pandoc’s extension east_asian_line_breaks in Quarto.
  • latex-quotes: Replaces Straight quotes with German quotes for intermediate in LaTeX output, and specific processing for headers to avoid issues in PDF bookmarks.
  • links-to-citations: Remove local links but keep the link text as normal citations.
  • remove-spaces: Remove spaces before or after Chinese characters in DOCX.
  • auto-correct: Improve copywriting, correct spaces, words, and punctuations between CJK and English with AutoCorrect.
  • citation-backlinks: Generate backlinks for bibliography entries to the corresponding citations.
  • format-md: Preprocess Markdown files for conversion with Quarto.
  • get-bib: Extract all bibliographies cited in the document as a BibLaTeX file.
  • localize-cnbib: Localize Chinese bibliographies, change et al. to and other English localization strings to Chinese.
  • sort-cnbib: Sort Chinese bibliographies by Pinyin, and can be customized to sort Chinese entries first or last.

License

This project is licensed under the MIT License, see the LICENSE file for details.