当前位置:网站首页>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 .
边栏推荐
- STM32 single chip microcomputer -- volatile keyword
- 实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
- [daily training] 1200 Minimum absolute difference
- 696. 计数二进制子串
- Arduino burning program and Arduino burning bootloader
- C语言标准函数scanf不安全的原因
- MATLAB小技巧(28)模糊综合评价
- STM32---IIC
- [matlab] matlab reads and writes Excel
- How to write cover letter?
猜你喜欢
How to manage the performance of R & D team?
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
【NOI模拟赛】汁树(树形DP)
Example 009: pause output for one second
实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
剑指 Offer 05. 替换空格
【三层架构】
Old Wang's esp8266 and old Wu's ws2818 light strip
leetcode - 445. Add two numbers II
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
随机推荐
319. 灯泡开关
Guess riddles (10)
Business modeling of software model | overview
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?
Guess riddles (2)
Shell script
[daily training] 1200 Minimum absolute difference
Array integration initialization (C language)
An enterprise information integration system
Mathematical modeling: factor analysis
[three tier architecture and JDBC summary]
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
Run menu analysis
U8g2 drawing
STM32---ADC
Program error record 1:valueerror: invalid literal for int() with base 10: '2.3‘
Warning: retrying occurs during PIP installation
Example 008: 99 multiplication table
猜谜语啦(2)
猜谜语啦(7)