General ⇒ Is it possible to use only the first letters of a command ?
Is it possible to use only the first letters of a command ?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Is it possible to use only the first letters of a command ?
You can do this if the letter is not a letter. Anytime TeX reads the sequence:
<backslash><valid_nonletter>
(this is in the standard setting; "valid" means basically any printable ASCII character), then TeX interprets it as the control character and executes it, no matter whether a space follows. So you could use for instance:With `\7` defined in the preamble by:Code: Select all
gr\7a\7eal
Note that I do not consider this a good idea, but you asked for it. Also, please, do not use anything like this in files you will provide to anybody like journals, publishers, collaborators etc.Code: Select all
\let\7\t