当前位置:网站首页>Latex improve
Latex improve
2022-07-05 08:39:00 【Stay--hungry】
Custom command
The custom command is LaTeX \LaTeX LATEX A very powerful function , It can greatly optimize the volume of documents .
Basic usage :
\newcommand{
cmd}[args][default]{
def}
- cmd: Newly defined commands , Cannot have the same name as an existing command
- args: Number of parameters
- default: The first parameter ( Optional )
( namely #1 The default value of . You can define only one parameter 、 And the parameter contains the default value of the command .) - def: Specific definition content
( Parameters 1 With#1
Instead of , Parameters 2 With#2
Instead of …)
for example :
\newcommand{
\hh}[1]{
\textbf{
#1}}
-- after `\hh{}` amount to `\textbf{}`
In fact, this grammar is equivalent to C++ Medium #define
Redefine the command
If you redefine an existing command , Use \renewcommand
command , Usage and newcommand
identical .
边栏推荐
- Guess riddles (4)
- Sword finger offer 06 Print linked list from end to end
- 猜谜语啦(6)
- Typical low code apaas manufacturer cases
- 第十八章 使用工作队列管理器(一)
- 整形的分类:short in long longlong
- Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
- Five design details of linear regulator
- An enterprise information integration system
- 猜谜语啦(10)
猜你喜欢
猜谜语啦(2)
[three tier architecture]
Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
Meizu Bluetooth remote control temperature and humidity access homeassistant
Example 009: pause output for one second
STM32 single chip microcomputer - bit band operation
实例008:九九乘法表
Example 004: for the day of the day, enter a day of a month of a year to judge the day of the year?
Guess riddles (7)
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
随机推荐
【三层架构】
猜谜语啦(4)
Some pitfalls of win10 network sharing
[daily training] 1200 Minimum absolute difference
Guess riddles (9)
[matlab] matlab reads and writes Excel
剑指 Offer 05. 替换空格
Business modeling of software model | stakeholders
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
An enterprise information integration system
Cmder of win artifact
Daily question - input a date and output the day of the year
猜谜语啦(8)
The first week of summer vacation
Guess riddles (10)
Digital analog 1: linear programming
How can fresh students write resumes to attract HR and interviewers
Weidongshan Internet of things learning lesson 1
Tips 1: Web video playback code
Matlab tips (28) fuzzy comprehensive evaluation