Table of content in latex - latex

Could you help me to solve this problem? How I can separate the table of content, list of figure, list of table in different line in content?
Here, my command
\documentclass[12pt,a4paper,reqno,openbib]{extreport}
\usepackage[a4paper,left=1.60in,right=1.0in,top=1.0in,bottom=1.2in,footskip=0.5in]{geometry}
\usepackage{tocbibind}
%------------------
\usepackage{titletoc}%% http://ctan.org/pkg/titletoc
\titlecontents*{chapter}% <section-type>
[0pt]% <left>
{}% <above-code>
{\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
{}% <numberless-entry-format>
{\bfseries\hfill\contentspage}% <filler-page-format>
\begin{document}
\begin{center}
{\Large \bf{Abstract}}
\end{center}
\addcontentsline{toc}{chapter*}{\noindent\text{Abstract}\hspace{12.5cm} }
\bigskip
\begin{center}
{\Large \bf{Abstrak}}
\end{center}
\addcontentsline{toc}{chapter*}{\noindent\text{Abstrak}\hspace{12.8cm}}
\bigskip
\begin{center}
{\Large \bf{Acknowledgment}}
\end{center}
\addcontentsline{toc}{chapter*}{\noindent\text{Acknowledgement}\hspace{11.0cm}}
\bigskip
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
%\newpage
\chapter{Chapter 1}
\section{Background of the study}
\chapter{Chapter2}
\section{Background of the study}
\end{document}
The output is:

Please find the attachment showing answers of your query.

Related

How to add a caption with continuing numbering when using the Insert Box command in latex?

I have used the InsertBoxL command in Latex to have 3 consecutive images, one below the other, with text beside each image. Is there a way to insert a caption with continuous numbering within Latex using the command above?
The Latex I have used so far is:
\documentclass[11pt]{article}
\input{insbox}
\begin{document}
\InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here
\bigskip
\InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here
\bigskip
\InsertBoxL{0}{\rule{1.6in}{0.9in}} %text inserted here
\end{document}
I have replaced my actual images with the \rule command.
Any help will be appreciated!
To add captions to your boxes, you could use the \captionof macro from the caption package:
\documentclass[11pt]{article}
\input{insbox}
\usepackage{caption}
\begin{document}
\InsertBoxL{0}{\rule{1.6in}{0.9in}} \captionof{figure}{some text}
\bigskip
\InsertBoxL{0}{\rule{1.6in}{0.9in}} \captionof{figure}{some text}
\bigskip
\InsertBoxL{0}{\rule{1.6in}{0.9in}} \captionof{figure}{some text}
\end{document}
However instead of these strange box thingies, minipages might be easier:
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{caption}
\captionsetup{singlelinecheck=false}
\begin{document}
\noindent\begin{minipage}[b]{1.6in}
\includegraphics[width=\textwidth]{example-image}
\end{minipage}%
\begin{minipage}[b]{\dimexpr\linewidth-1.6in}
\captionof{figure}{some text}
\end{minipage}%
\noindent\begin{minipage}[b]{1.6in}
\includegraphics[width=\textwidth]{example-image}
\end{minipage}%
\begin{minipage}[b]{\dimexpr\textwidth-1.6in}
\captionof{figure}{some tefffffxt}
\end{minipage}%
\noindent\begin{minipage}[b]{1.6in}
\includegraphics[width=\textwidth]{example-image}
\end{minipage}%
\begin{minipage}[b]{\dimexpr\textwidth-1.6in}
\captionof{figure}{some text}
\end{minipage}%
\end{document}
There are also ready-to-use packages for captions besides images:
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{sidecap}
\begin{document}
\begin{SCfigure}
\includegraphics[width=.3\textwidth]{example-image-duck}
\caption{heading}
\end{SCfigure}
\begin{SCfigure}
\includegraphics[width=.3\textwidth]{example-image-duck}
\caption{heading}
\end{SCfigure}
\begin{SCfigure}
\includegraphics[width=.3\textwidth]{example-image-duck}
\caption{heading}
\end{SCfigure}
\end{document}

subfig - not plotting figures

I would like to refresh this thread: Subfigs of a figure on multiple pages.
I am struggling with reproduction. I have used suggestions on this post and I have used subfig docs. Unfortunately, neither works.
%Packages which I am using:
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{figure}
\centering
\subfloat[]{figures/fig1.pdf}
\qquad
\subfloat[]{figures/fig2.pdf}
\caption{Caption nr 1.}
\label{fig:figure1_2}
\end{figure}
\begin{figure}
\ContinuedFloat
\centering
\subfloat[]{figures/fig3.pdf}%
\qquad
\subfloat[]{figures/fig4.pdf}
\caption[]{Caption nr 2}
\label{fig:fig3_4}
\end{figure}
\end{document}
The output of it is a page with directories of figures displays accordingly without a figure itself.
Please let me know if something I missed.
You need to include the images with \includegraphics:
\documentclass{article}
%Packages which I am using:
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{figure}
\centering
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}
\qquad
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}
\caption{Caption nr 1.}
\label{fig:figure1_2}
\end{figure}
\begin{figure}
\ContinuedFloat
\centering
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}%
\qquad
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}
\caption[]{Caption nr 2}
\label{fig:fig3_4}
\end{figure}
\end{document}

How to add a subtitle in class article in Latex?

I am writing a report in Latex and my document class must be article. I want to add some additional text under my title but I can't find anything that would correspond to a subtitle command. Does anyone have any suggestions?
\documentclass[11pt,a4paper]{article}
\title {Title}
\author{Name}
\documentclass[11pt,a4paper]{article}
\title {Title}
\author{Name}
\makeatletter
\def\#maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
\let \footnote \thanks
{\LARGE \#title \par}%
\vskip 1em%
{\Large Whatever Subtitle you want\par}%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\#author
\end{tabular}\par}%
\vskip 1em%
{\large \#date}%
\end{center}%
\par
\vskip 1.5em}
\makeatother
\begin{document}
\maketitle
test
\end{document}
Hopefully, I found a very easy and quick solution:
\documentclass[11pt,a4paper]{article}
\title {Title \\[1ex] \large Subtitle}
\author{Name}
\begin{document}
\maketitle
Text.
\end{document}

Ordering subfigures in LaTex

I have this code in LaTex:
\begin{figure}[h!]
\centering
\subfigure[]{\includegraphics[width=50mm]{katua.jpg}}
\subfigure[]{\includegraphics[width=60mm]{txakurren_balioak.png}}
\subfigure[]{\includegraphics[width=60mm]{katuen_balioak.png}}}
\label{fig:eb3}
\end{figure}
and I get this:
And I want to put the images in two columns. In the column of the left the image of the cat and in the right the two histograms. How it is possible to do this?
Instead of \centering you could use \hfill to do the centering, see the example below:
\documentclass{report}
\usepackage{graphicx}
\usepackage{subfigure}
\begin{document}
\begin{figure}[h!]
\hfill
\subfigure[]{\includegraphics[width=50mm]{example-image-a}}
\hfill
\subfigure[]{\includegraphics[width=60mm]{example-image-b}}
\hfill
\hfill
\subfigure[]{\includegraphics[width=60mm]{example-image-c}}
\end{figure}
\end{document}

Wrap section title around figure

I have a twosided document and want to add some wrapfigures. The speciality is that I want wrapped section titles on left pages.
The example shows the problem for the second section. For the first and third everything is fine.
MWE:
\documentclass[12pt,a4paper,twoside,openright]{scrbook}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{caption}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\chapter{First Chapter}
\section{First Section}
\begin{wrapfigure}[14]{o}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.75\linewidth]{picture}
\end{center}
\vspace*{-1em}
\captionsetup{width=0.75\linewidth}
\caption[short]{long.}
\end{wrapfigure}
\blindtext[5]
\section{Second Section}
\begin{wrapfigure}[14]{o}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.75\linewidth]{picture}
\end{center}
\vspace*{-1em}
\captionsetup{width=0.75\linewidth}
\caption[short]{long.}
\end{wrapfigure}
\blindtext
\section{Third Section}
\begin{wrapfigure}[14]{o}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.75\linewidth]{picture}
\end{center}
\vspace*{-1em}
\captionsetup{width=0.75\linewidth}
\caption[short]{long.}
\end{wrapfigure}
\blindtext
\end{document}
Result:
https://i.imgur.com/N8cuf0D.jpg

Resources