How can I modify the codes for adding different caption to 'list of figures and tables'? For example,
\begin{figure}[h!]
\centering
\includegraphics[height=7cm]{indir.jpg}
\caption[Caption for TOC]{Caption for report}
\label{fig:figure}
\end{figure}
and
\begin{table}[!h]
\small
\centering
\caption[Caption for TOC]{Caption for report}
\begin{tabular}{cccc}
\hline
Row1 & Row2 & Row3 & Row4\\
\hline
Lorem & ipsum & dolor & sit \\
Lorem & ipsum & dolor & sit \\
\hline
\end{tabular}
\label{t1}
\end{table}
In the above examples, 'list of figures and tables' caption and report caption can be different.
So, In the codes below, there is no section for the 'list of figures and tables'. The caption is shown as same in 'list of figures and tables' and report. Is there any way to modify?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{caption}
\captionsetup{format=hang}
\title{Title}
\begin{document}
\section{Introduction}
\newcommand{\weirdCapFigure}[2]{\sbox{0}{#1}#1
\rule{\dimexpr.5\linewidth-0.5\wd0}{0pt}%
\parbox[t]{\dimexpr.5\linewidth+0.5\wd0}{\caption{#2}}
}
\newcommand{\weirdCapTable}[2]{\sbox{0}{#2}
\rule{\dimexpr.5\linewidth-0.5\wd0}{0pt}%
\parbox[t]{\dimexpr.5\linewidth+0.5\wd0}{\caption{#1}}
#2%
}
\begin{figure}[h!]
\centering
\weirdCapFigure{\includegraphics[height=7cm]{example-image}}
{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed felis risus, ullamcorper ac suscipit ac, molestie non orci. Nam neque orci, facilisis in euismod sed, suscipit quis dolor.\label{fig:heyelenturkiye}}
\end{figure}
\begin{table}[!h]
\small
\centering
\weirdCapTable{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed felis risus, ullamcorper ac suscipit ac, molestie non orci. Nam neque orci, facilisis in euismod sed, suscipit quis dolor.\label{t1}}
{\begin{tabular}{cccc}
\hline
Row1 & Row2 & Row3 & Row4\\
\hline
Lorem & ipsum & dolor & sit \\
Lorem & ipsum & dolor & sit \\
Lorem & ipsum & dolor & sit \\
Lorem & ipsum & dolor & sit \\
\hline
\end{tabular}}
\end{table}
\end{document}
Thank you.

\captionsetup{justification=raggedright,singlelinecheck=false}in the preamble, see for example https://tex.stackexchange.com/questions/275131/align-caption-to-the-left. – Marijn Jun 14 '19 at 14:40justification=justified. – Marijn Jun 14 '19 at 21:00