当前位置:网站首页>Latex configuration and use
Latex configuration and use
2022-04-23 06:39:00 【mightbxg】
1. Install package
Software package needed (archlinux/manjaro):
texlive-core # Tex Live Core distribution
texlive-bin # Tex Live Applications
texlive-langchinese # Chinese support
texlive-latexextra # multirow Support
texlive-science # algorithm、algorithmic Support
Installation command :
sudo pacman -S texlive-core texlive-bin texlive-langchinese texlive-latexextra texlive-science
2. LaTex Tips
Typesetting tools
LaTex There are many typesetting tools (pdfTeX, pdfLaTeX, XeTeX, XeLaTeX etc. ), Write documents in pure English abroad pdfLaTex A little more , We write in mixed Chinese and English. We suggest using XeLaTex.
How to insert pictures
Introduction area
\usepackage{graphicx, subfig}
Text area
% [ht] means Here&Top, use {figure*} instead if multirow
\begin{figure}[ht]
\centering
\includegraphics[width=2.5in]{my_awesome_picture.png}
\caption{The figure caption}
\label{fig_my_picture}
\end{figure}
How to insert SVG Vectorgraph
First you have to install inkscape package , And make sure it's in the environment variable , Execute... In the terminal inkscape -V To check if it's available .
Introduction area
\usepackage{svg}
\svgsetup{inkscapelatex=false} % keep original font and size
Text area
\begin{figure}[ht]
\centering
\includesvg[width=5cm]{my_awesome_graph.svg}
\caption{The figure caption}
\label{fig_my_graph}
\end{figure}
in addition , Must be enabled at compile time shell escape (write18), That is, add... When executing the compilation command -shell-escape Options .
See :
Other practical materials
- A better entry material : A short one LaTeX Introduction to the document
- Paper template :latex paper template ( source )
- How to insert pseudo code
- How to arrange multiple pictures
3. Editor
Tex Live The provided editor is Texworks, This itself is already very useful , And more people use it . But I recently found vscode With the help of LaTeX Workshop Plug ins are better for writing documents , For example, it supports :
- Automatic compilation : When saving documents , It can compile automatically pdf And update the preview interface
- Input Association : Input macro package 、 command 、 Even resource file names ( For example, when inserting pictures ) when , Can automatically associate
- log analysis : Compile time error and warning Will be automatically parsed and prompted in vscode The specific location in the editor
- Quick preview : Inserted formula 、 Pictures can be quickly previewed in the editor ( When pointed by the mouse pointer )
To support Chinese and svg Vectorgraph , You need to simply configure the plug-in . stay vscode Install in LaTeX Workshop After the plug-in , Enter the plug-in setting interface , find Latex-workshop > Latex:Tools To configure , Click on Edit in settings.json, And then in settings.json Chinese vs latex-workshop.latex.tools The first item in the list ( namely name Field is latexmk Project ) Of args Make the following changes :
- Join in
-shell-escapeParameters , That is, vector graphics support - take
-pdfThe parameter is changed to-xelatex, That is to use XeLaTeX Typesetting tools
The modified latexmk Configure to :
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-shell-escape",
"-interaction=nonstopmode",
"-file-line-error",
"-xelatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {
}
}
版权声明
本文为[mightbxg]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230546583292.html
边栏推荐
- 【UDS统一诊断服务】一、诊断概述(4)— 基本概念和术语
- 使用TransmittableThreadLocal实现参数跨线程传递
- 1007 go running (hdu6808) in the fourth game of 2020 Hangzhou Electric Multi school competition
- 大学概率论与数理统计知识点详细整理
- 数组旋转
- The most practical chrome plug-in
- PHP junior programmers, take orders and earn extra money
- C语言循环结构程序
- NVIDIA Jetson: GStreamer 和 openMAX(gst-omx) 插件
- 进程管理命令
猜你喜欢

Programmers can also write novels
[ThreadX] h743 + ThreadX + Filex migration record

MySQL groups are sorted by a field, and the first value is taken

类的继承与派生

基于Sentinel+Nacos 对Feign Client 动态添加默认熔断规则

for()循环参数调用顺序

Graduation project, viewing screenshots of epidemic psychological counseling system

A solution to replace not in in SQL

Call procedure of function

OpenCV使用 GenericIndex 进行 KNN 搜索
随机推荐
jenkspy包安装
【UDS统一诊断服务】二、网络层协议(2)— 数据传输规则(单帧与多帧)
进程间通信-互斥锁
sqlite3加密版
Rust 的 Box指针
Solution to the trial of ycu Blue Bridge Cup programming competition in 2021
友元函数,友元类,类模板
LaTeX配置与使用
安装pyshp库
共用数据的保护
函数的调用过程
声明为全局变量
静态成员
爬取小米有品app商品数据
Static member
PM2 deploy nuxt related commands
clion安装教程
【UDS统一诊断服务】四、诊断典型服务(5)— 功能/元件测试功能单元(例行程序功能单元0x31)
Rust:单元测试(cargo test )的时候显示 println 的输出信息
Rust:如何实现一个线程池?