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)?
General ⇒ New Commands
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
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
Stefan
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}
LaTeX.org admin