English 中文(简体)
Tex Commands Reference

Symbols

A

B

页: 1

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

Selected Reading

def
  • 时间:2024-11-03

def - Tex Command


Previous Page Next Page  

NAME

def - Used for defining your own commands.

SYNOPSIS

{ defmyCommandName{ <replacement text> } }

DESCRIPTION

def command is used to define your own commands (control sequences, macros, definitions); must appear (within math depmiters) before it is used;

EXAMPLE

    defmyHearts{color{purple}{heartsuit}kern-2.5ptcolor{green}{heartsuit}}
    myHeartsmyHearts
    
    $ defmyHearts{color{purple}{heartsuit}kern-2.5ptcolor{green}{heartsuit}} myHeartsmyHearts $

    defmyHearts#1#2{color{#1}{heartsuit}kern-2.5ptcolor{#2}{heartsuit}}
    myHearts{red}{blue}
    
    $ defmyHearts#1#2{color{#1}{heartsuit}kern-2.5ptcolor{#2}{heartsuit}} myHearts{red}{blue} $

Advertisements