GeneralNew Commands

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
eleanor
Posts: 19
Joined: Sat Oct 03, 2009 6:03 pm

New Commands

Post by eleanor »

Hi.

I've defined a couple of new commands, like:
\picture
\video

that I use mostly when parsing latex into HTML. But the problem is that I would also want other people to use the latex code (not the heading - everything before \begin{document} and after \end{document}).

I know that I can also post the header information, but not many people wants to actually use that, since they probably redefine their own commands.

So my question is: should I redefined known commands like \includegraphics (well there isn't one for \video though), so when people will use my latex, they can actually compile the code with their own header - since every command is defined (in the contrary to \picture, \video)?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

New Commands

Post by Stefan Kottwitz »

I would not silently redefine known commands. This would mean that the same code works differently in the documents of other people.

I would make my own definitions, put them into a file such as commands.tex and tell the other people to load it in their preamble by

Code: Select all

\input{commands}
Stefan
LaTeX.org admin
Post Reply