Coder Social home page Coder Social logo

totalo / hnuthesis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hnuthesis/hnuthesis

0.0 0.0 0.0 14.02 MB

湖南大学硕士学位论文 LaTeX 模板

Home Page: https://yusanshi.github.io/hnuthesis/

License: MIT License

Shell 1.30% Python 13.89% TeX 84.81%

hnuthesis's Introduction

警告

由于本人能力、精力有限,无法继续维护这个仓库。--2024.4


湖南大学硕士学位论文 LaTeX 模板

Compile and publish the release GitHub Releases

本项目是湖南大学硕士学位论文 LaTeX 模板 hnuthesis,按照《湖南大学研究生学位论文撰写规范》的要求编写(个人能力、精力有限,不保证完全符合规范,Use at your own risk!)。

下载地址:GitHub ReleasesOverleaf

本项目基于 Gwinel/Latex

关于 LaTeX 的安装、配置、编写的相关问题,请参阅其他类似项目(如 thuthesisustcthesis 等)。

关键文件说明

  • main.tex: 主文件,编译入口;
  • hnuthesis.cls: 撰写规范,需要调整格式在该文件中对应修改;
  • references.bib: 参考文献列表;
  • chapters/: 论文章节文件夹,分章有利于保持 TeX 文件的整洁;
  • figures/: 插图文件夹,LaTeX 支持多种格式,如 EPS、PDF、PNG 等;
  • main.pdf: 编译生成的论文 PDF 文件;
  • main-for-word.pdf: 编译生成的适用于转 Word 的论文 PDF 文件(栅格化公式,防止转 Word 后不忍直视)。

编译

1. 本地编译(版本最新,推荐)

  1. 安装 LaTeX 发行版;

  2. 对于非 Windows 系统,需要额外安装字体,以 Debian/Ubuntu 为例:

    sudo apt-get update
    
    # 自动同意 Microsoft EULA 并安装 ttf-mscorefonts-installer
    echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
    sudo apt-get install -y ttf-mscorefonts-installer
    
    # 手动下载安装 SimSun(中易宋体)、SimHei(中易黑体)字体
    mkdir simfonts && wget -qO- https://github.com/yusanshi/hnuthesis/files/6371620/SimFonts.tar.gz | tar xz -C simfonts
    mkdir -p ~/.local/share/fonts && mv simfonts ~/.local/share/fonts
    fc-cache -f
  3. 下载模板:

    git clone https://github.com/yusanshi/hnuthesis
    cd hnuthesis
  4. 编译主版本:

    latexmk -xelatex -shell-escape main.tex

    或者在 vscode 下安装 LaTeX Workshop 插件后 complie on save(本项目的 .vscode/settings.json 已经对其做了配置)。

  5. 编译主版本和转 Word 版:

    ./run.sh

    注意:脚本的运行需要 Unix style 的命令行环境,对于 Windows 用户,可以使用安装完 Git 客户端之后的 Git Bash。

2. Overleaf(版本可能较旧)

https://www.overleaf.com/latex/templates/hu-nan-da-xue-shuo-shi-xue-wei-lun-wen-latex-mo-ban-hnuthesis/dbjwjghhvmmd

3. GitHub Actions

  1. 通过 Use this template 或 Fork 创建项目;

  2. 通过 push tag 触发 compile & publish 过程,如:

    git tag v0.x.x
    git push --tags
    

    待 GitHub Actions 结束后在 releases 中下载新编译的 main.pdfmain-for-word.pdf 文件。

    image

转 Word 文件

使用 https://www.adobe.com/acrobat/online/pdf-to-word.html 转换 main-for-word.pdf 文件。第二次转换文件时需要登录 Adobe 账号才能下载,建议在浏览器的“无痕浏览”“隐私模式”等模式下访问以跳过强制登录。

TODO

  • 重新整理 hnuthesis.clshnunumerical.bst,支持博士学位;
  • [issue] 转 Word 时,文献引用符号后面的文字变小。

hnuthesis's People

Contributors

yusanshi avatar jiangzhengtao1 avatar yakunouyang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.