How do I get LaTeX to hyphenate a word that contains a dash?

The problem (as KennyTM noted) is that LaTeX won’t hyphenate words with dashes in them. Luckily, there’s a standard package (part of ncctools) that addresses that very problem, called extdash. This defines new hyphen and dash commands that do not disrupt hyphenation, and which can allow or prevent line breaks at the hyphen/dash. I prefer … Read more

Eliminate space before \begin{itemize} [closed]

The way to fix this sort of problem is to redefine the relevant list environment. The enumitem package is my favourite way to do this sort of thing; it has many options and parameters that can be varied, either for all lists or for each list individually. Here’s how to do (something like) what it … Read more

References with text in LaTeX

Have a look to this wiki: LaTeX/Labels and Cross-referencing: The hyperref package automatically includes the nameref package, and a similarly named command. It inserts text corresponding to the section name, for example: \section{MyFirstSection} \label{marker} \section{MySecondSection} In section \nameref{marker} we defined…

Footnotes for tables in LaTeX

The best way to do it without any headache is to use the \tablefootnote command from the tablefootnote package. Add the following to your preamble: \usepackage{tablefootnote} It just works without the need of additional tricks.

LaTeX table positioning

After doing some more googling I came across the float package which lets you prevent LaTeX from repositioning the tables. In the preamble: \usepackage{float} Then for each table you can use the H placement option (e.g. \begin{table}[H]) to make sure it doesn’t get repositioned.

How can I have linebreaks in my long LaTeX equations?

If your equation does not fit on a single line, then the multline (note that that’s multline without an “i”, not “multiline”) environment probably is what you need: \begin{multline} first part of the equation \\ = second part of the equation \end{multline} If you also need some alignment respect to the first part, you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)