Monday, December 3, 2018

Missing "Reference" heading for bibliography section in the pdf file generated through Latex

This is post is regarding missing "Reference" heading for bibliography section in the pdf file generated through Latex file typed in texstudio. Following is the screenshot:



Following may be the lines of script in your latex file:

\bibliographystyle{elsarticle-harv}
\bibliography{mycollection}

--------------------------------------------------------------------------------

Solution:

you need to add a small code line before calling the bibliography style, as following

\newcommand{\bibsection}{\section*{\refname}}

it will make the heading working for your pdf file.



I hope it will help. Happy Latexing...............

Sunday, October 21, 2018

How to add Sub-figure in Latex

Latex is a great tool to document the research papers. Although it struggles with some manual function coding but still is wonderful to maintain formatting of the document better than MS Word and other similar editors. This post talks about adding subfigures in the figure tab (acc. to following example) of the Latex.


\begin{figure}[b!]
\centering

\begin{subfigure}{0.3\textwidth}
\includegraphics[width=\linewidth]{ar1.jpg}
\caption{Forged Image}
\end{subfigure}

\begin{subfigure}{0.29\textwidth}
\includegraphics[width=\linewidth]{ar2.jpg}
\caption{Original Image}
\end{subfigure}

\caption{Another example of Digital Image Forgery}
\label{fig:figex2}

\end{figure}

The code will make the things possible by using \begin{subfigure}------\end{subfigure} block. you can even create reference to a particular sub figure in the image. i have mentioned that in my another post.

Happy Latexing........