When do you need to redefine a command?

When do you need to redefine a command?

Never redefine a command whose existing function is unknown to you or just because you want to use a particular command name, regardless of its previous function. By way of illustration: as a production editor, I have to combine articles by different authors into a single book.

How to define and redefine a TEX command?

Define or redefine a command (see also the discussion of \\DeclareRobustCommand in Class and package commands ). The starred form of these two forbids the arguments from containing multiple paragraphs of text (in plain TeX terms, the commands are not \\long ). With the default form, arguments can be multiple paragraphs.

Which is an example of defining a new command?

A simple example of defining a new command: ewcommand {\\RS} {Robin Smith} results in \\RS being replaced by the longer text. Redefining an existing command is similar: enewcommand {\\qedsymbol} { {\\small QED}} .

Which is the redefining command in dickimaw books?

This tends to involve the accent commands as they are short and that saves the author typing. It usually goes along these lines: author A redefines \\c (the cedilla accent command) to display a maths bold “ c ” to indicate a vector. Later, author B, uses the cedilla accent, say, in the name François: Author A’s hack turns this into Fran c cois.

How to redefine command \\ sfdefault to PHV?

\\sfdefault stores the name of the default sans-serif font (initially cmss , Computer Modern Sans-Serif) and the helvet package redefines \\sfdefault to phv , which is the identifier for the Helvetica font. So the following document will be in Helvetica:

How to redefine the \\ section command in latex?

A few days ago I asked a question about how to redefine the \\section command to be able to write content just after the head of the section with no line breaking: Redefining \\section command (I strongly recommend you to have a look to the link attached as it could be a good reference point to understand with this question).

When to use a starred version of ewcommand?

This has exactly the same format as ewcommand but is used for redefining existing commands. Again there is a starred version to indicate that the command is a short command . Never redefine a command whose existing function is unknown to you or just because you want to use a particular command name, regardless of its previous function.