Latex: Strikethrough text

with the ulem package this becomes:

\sout{Hello World}

With the soul package this is:

\st{Hellow world}

enter image description here


How to remove space after image caption

A quick way would be to use \vspace{} with negative length as input. However, this is not the right approach and is not recommended for use.

Without using vspace the output would look like: without vspace

Here is a MWE with vspace and negative length as input followed by the output.



  \caption{\textcolor{gray}{\footnotesize \textit{ImageCaption}}}
   This is first text after caption.


Note how the use of vspace after the figure and after the caption shrinks the space.

with vpsace

Placing a figure inside a multirow table cell

or those wondering how to put images in tables in general, the salient point is the bracketed fixup after the {*} in \multirow:


For example:


By adjusting the fixup you can avoid Latex’s default behavior of putting the image way too low in the table.


foreign command atop frack or genfrac should be used instead(amsmath)

Using \atop is abusing its functionality; if you want to turn a screw, sometimes a knife can help, but a screwdriver is surely better.

In other words, use \substack that has been specifically defined for this task and can accommodate any number of lines. It’s also easier to use even for two lines.


\sum_{1\le i\le n\atop i\ne j}\quad
\sum_{\scriptstyle 1\le i\le n\atop\scriptstyle i\ne j}\quad
\sum_{\substack{1\le i\le n\\ i\ne j}}


The first is wrong; the second is complicated to write. With \substack you also avoid the warning

Package amsmath Warning: Foreign command \atop;
(amsmath)                \frac or \genfrac should be used instead
(amsmath)                 on input line 6.

get IEEEtran to work with the subcaption package

The problem is that there does not seem to be a way to prevent subcaption from taking control of the main caption formatting away from IEEEtran like the caption=false option does under subfig.sty. IEEEtran has to format captions differently depending on its mode. An admittedly crude hack that might work is simply to restore IEEEtran’s definition of \@makecaption:




And then code figures like:

\subcaption{Case I}\label{fig_first_case}%
\subcaption{Case II}\label{fig_second_case}%
\caption{Simulation results for the network.}

This did seem to work for me in one simple test, but more extensive testing is required.