当前位置:网站首页>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#1Instead of , Parameters 2 With#2Instead 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 .
边栏推荐
- Sword finger offer 06 Print linked list from end to end
- 实例010:给人看的时间
- Explore the authentication mechanism of StarUML
- 【日常训练】1200. 最小绝对差
- Business modeling of software model | vision
- [daily training] 1200 Minimum absolute difference
- Lori remote control LEGO motor
- Some pitfalls of win10 network sharing
- 319. Bulb switch
- [three tier architecture and JDBC summary]
猜你喜欢
随机推荐
Typical low code apaas manufacturer cases
Business modeling of software model | overview
Stm32--- systick timer
696. 计数二进制子串
Xrosstools tool installation for X-Series
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?
Sword finger offer 09 Implementing queues with two stacks
Guess riddles (6)
Example 007: copy data from one list to another list.
The first week of summer vacation
Lori remote control LEGO motor
[NAS1](2021CVPR)AttentiveNAS: Improving Neural Architecture Search via Attentive Sampling (未完)
Explore the authentication mechanism of StarUML
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
【NOI模拟赛】汁树(树形DP)
2022.7.4-----leetcode. one thousand and two hundred
How apaas is applied in different organizational structures
Business modeling of software model | stakeholders
实例006:斐波那契数列









