首页 > 系统相关 >hitszthesis Linux使用笔记

hitszthesis Linux使用笔记

时间:2022-10-14 15:37:19浏览次数:73  
标签:笔记 tex hitszthesis algorithm2e https Linux main sty texlive


安装texlive

# texlive-extra-utils: texdef
# latex-cjk-all: Chinese font package
# texlive-fonts-extra: Fonts such as consolas
# evince: PDF reader
sudo apt install

下载模板

​https://gitee.com/jingxuanyang/hitszthesis​

安装额外依赖

# texlive-science: siunitx.sty
# latexmk: make clean要用
sudo apt -y install

参考:
​​​https://techoverflow.net/2019/07/30/how-to-fix-latex-error-file-siunitx-sty-not-found-on-ubuntu/​

配置vscode

我装了这几个插件

hitszthesis Linux使用笔记_git

ctrl+s就可以自动编译,不需要命令行。

编译

make

如果要用vscode的话,要把​​main.tex​​里的

% !TEX program  = XeLaTeX

改成

% !TEX program  = xelatex

否则vscode会报错:​​Recipe terminated with fatal error: spawn XeLaTeX ENOENT.​​,因为linux是大小写敏感的。

添加.gitignore

*.sty
*.aux
*.cfg
*.cls
*.glo
*.gls
*.hd
*.idx
*.ilg
*.ind
*.ist
*.log
*.out
*.pdf
hitszthesis.pdf
main.pdf
*.toc
*.bbl
*.blg
*.synctex.gz
*.thm

这样commit的时候可以不把这些临时文件commit进去。

hitszthesis Linux使用笔记_linux_02

参考文献

在google scholar上搜索文献,然后点击引用

hitszthesis Linux使用笔记_git_03

选Bibtex

hitszthesis Linux使用笔记_linux_04

hitszthesis Linux使用笔记_javascript_05

复制下来放到项目根目录下的​​reference.bib​​里

hitszthesis Linux使用笔记_参考文献_06

绿色的那个就是自动生成的名字,要引用时cite这个名字就好了

hitszthesis Linux使用笔记_linux_07

注意更改了​​reference.bib​​之后要

bibtex main

才会生效。

然后再编译几下​​main.tex​​就好了。

hitszthesis Linux使用笔记_git_08

hitszthesis Linux使用笔记_参考文献_09

引用misc类型的参考文献可能会报错​​Unsupported entry type​​​。,将​​misc​​​改成​​Online​​即可。

伪代码

hitszthesis的伪代码用的是​​algorithm2e​​​包,已经自带了,不需要另外usepackage。
注意algorithm2e里是用​​​\;​​​来结束一条语句,而不是用​​\State​​​来开始一条语句。
algorithm2e教程:​​https://wenda.latexstudio.net/article-5052.html​​​​https://tex.stackexchange.com/questions/522327/how-to-change-the-type-of-vertical-line-in-algorithm-environment-while-minimizin​


标签:笔记,tex,hitszthesis,algorithm2e,https,Linux,main,sty,texlive
From: https://blog.51cto.com/seekstar/5757004

相关文章

  • linux解压文件和创建压缩文件
    约定:FileName表示文件名,不能是目录名name表示可以是文件名,也可以是目录名。DirName表示目录名。温馨提示:可以用vim预览压缩包里的东西,例如vim防止解压出一堆散的文件污......
  • latex个人学习笔记
    别人的博客各种width各种空格符号​​希腊字母​​​​Latex常用数学符号输入方法​​名字符号代码备注自然连接\bowtie​​latex如何输入自然连接⋈​​并且\wedge或者\ve......
  • linux内核hash
    linux内核API文档:​​​https://www.kernel.org/doc/htmldocs/kernel-api/index.html​​​带搜索的:​​https://www.kernel.org/doc/html/latest/​​参考:​​https://sec......
  • linux 安装python
    wgethttps://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgztarvxzfPython-2.7.18.tgzcdPython-2.7.18yuminstallgccg++make./configuremake&&......
  • linux开放指定端口命令
    1、开启防火墙   systemctlstartfirewalld2、开放指定端口   firewall-cmd--zone=public--add-port=1935/tcp--permanent 命令含义:--zone#作用域......
  • SQL笔记
    日期转换函数参考:https://blog.csdn.net/qq_45515347/article/details/126457842参考:https://www.w3school.com.cn/sql/sql_create_table.asp......
  • Linux初始化init系统
    近年来,​​Linux​​​ 系统的 ​​init​​​ 进程经历了两次重大的演进,传统的 ​​sysvinit​​​ 已经淡出历史舞台,新的 ​​init​​​ 系统 ​​UpStart​​​......
  • [学习笔记]参数服务器
    好家伙今天翻博客发现了之前的参数服务器相关的东西没有发布,今天发出来吧~~~~~~~~~~~~~~~~参数服务器,顾名思义就是参数的服务器[doge]咳咳参数服务器在ROS中主要用于实现不同节点之间的......
  • 前端成神之路-JavaScript基础第02天笔记
    JavaScript基础第02天1-运算符(操作符)1.1运算符的分类运算符(operator)也被称为操作符,是用于实现赋值、比较和执行算数运算等功能的符号。JavaScript中常用的运算符有:算数运......
  • 学习笔记-命令执行漏洞
    命令执行定义:命令执行漏洞是指攻击者可以随意执行系统命令,分为远程命令执行和系统命令执行两类。原理:程序应用有时需要调用一些执行命令的函数,如php中的system,e......