General ⇒ New Commands
New Commands
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)?
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
New Commands
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}