So LaTeX has a lot of commands that do very similar things. Often this is a result of some of these being old.
For example: $x^2$
vs \(^2\)
; As I understand it, the second example is the more modern version and should be used when possible.
Other examples: \it
vs the more modern \itshape
and the one I'm actually supposed to use \textit{}
I've heard enough mention of these that I think I know which one I'm supposed to use; however, there are also things like \begin{center}
vs \centering
where it is contextual (Due to vertical spacing)
These are examples I picked off the top of my head; $$...$$
vs \[...\]
vs \begin{equation}...\end{equation}
is another one that someone mentioned below.
Is there an easy way to tell which command I'm supposed to use when? For stuff from packages, it is usually easy to look at the manuals and see which is more up to date, but what about core LaTeX stuff? Is there a list of when to use various versions of commands? Or better yet, a general rule of thumb so I can tell if I should be learning a new way to do things?
nag
package seems useful to address some concerns – cmhughes Dec 17 '13 at 22:55;)
– doncherry Dec 17 '13 at 22:55