当前位置:网站首页>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 .
边栏推荐
猜你喜欢
[three tier architecture and JDBC summary]
猜谜语啦(142)
Lori remote control LEGO motor
Daily question - input a date and output the day of the year
leetcode - 445. 两数相加 II
STM32 single chip microcomputer -- volatile keyword
实例006:斐波那契数列
Arduino operation stm32
Sword finger offer 06 Print linked list from end to end
猜谜语啦(9)
随机推荐
go依赖注入--google开源库wire
Guess riddles (5)
EA introduction notes
MATLAB小技巧(28)模糊综合评价
Shell script
Keil use details -- magic wand
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
MATLAB skills (28) Fuzzy Comprehensive Evaluation
STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)
99 multiplication table (C language)
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
Go dependency injection -- Google open source library wire
Lori remote control commissioning record
剑指 Offer 09. 用两个栈实现队列
UE pixel stream, come to a "diet pill"!
Speech recognition learning summary
Weidongshan Internet of things learning lesson 1
Various types of questions judged by prime numbers within 100 (C language)
猜谜语啦(5)
Run menu analysis