This is the second part of my previous post on the same topic Writing your research paper in Latex using texmaker 3.0.4 : Some useful commands and tips. So here are the new tid-bits:

**1. Sort Citations by Reference Number **

If you are happen to be using a bib style other than ieeetr and need to sort citations then use the following in your premble –

\usepackage[numbers,sort]{natbib}

or

\usepackage[numbers,sort&compress]{natbib}

The latter would format the list as [1–3] while the former gives [1, 2, 3]

**2. BibTeX Style Examples**

If you are confused about which bibtex style your publisher uses then you can search this style example archive.

**3. Aligning on specific character for multiline equations with one equation number**

Use the split environment with only one ampersand at the alignment point, which would be the equals sign for your case. So, for instance, your code would be:

\usepackage{amsmath} \begin{equation} \begin{split} A + B &= C + D \\ &= E + F \\ &= 3 \end{split} \end{equation}

So here the equation will align around the ‘=’ sign. And ‘\\’ splits the equations in separate lines.

**4. Remove colon from table and figure name, making bold**

The caption package provides a lot of functionality and I would recommend to use it. You get Figure x.x bold with

\usepackage[labelfont=bf]{caption}

when you load the package.

Use the caption package with the labelsep=space option to remove colon.

\usepackage[labelsep=space]{caption}

**5. How to break a long equation/Group equations under a single equation number
**

Use split environment provided by amsmath package.

\begin{equation} \begin{split} F = \{F_{x} \in F_{c} &: (|S| > |C|) \\ &\quad \cap (\text{minPixels} < |S| < \text{maxPixels}) \\ &\quad \cap (|S_{\text{conected}}| > |S| - \epsilon) \} \end{split} \end{equation}

**6. Making a wide figure or table in a two-column document **

Use the starred version * of the figure or table environment. This will usually flush the figure (or table) to the top of the following page, so there is not much control on placement. For table* and figure*, the only available options are t (top of next page) or p (end of document). b and h have been disabled on purpose, there is probably a strong typographical reason behind it.

Note that the table may appear one the next page instead of the current one. If you really need to control on what page the table is, you may have to move the table definition up in the source code.

Figure* Example:

\documentclass[twocolumn]{article} \usepackage[showframe]{geometry}% http://ctan.org/pkg/geometry \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{graphicx}% http://ctan.org/pkg/graphicx \begin{document} \lipsum[1-2] \begin{figure*} \includegraphics[width=\textwidth,height=4cm]{tiger} \caption{This is a tiger.} \end{figure*} \lipsum[3-10] \end{document}

Table* example:

\documentclass[twocolumn]{article} \usepackage{lipsum} \begin{document} \lipsum[1-10] % To create a random first page \lipsum[1-3] [Location of the table in source code] \begin{table*}[t] \centering \begin{tabular}{lcr} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{tabular} \caption{Blabla} \label{tab:1} \end{table*} \lipsum[1-6] \end{document}

7. Labels and Cross-referencing

This is very useful. In LaTeX you can easily reference almost anything that is numbered (sections, figures, formulas), and LaTeX will take care of numbering, updating it whenever necessary. Go to the following link to know how its done.