How can I create an additional List to appear in the TOC referencing a custom environment? Working on Overleaf, I've unsuccessfully tried applying the answers from the following questions, and I can't understand why:
list of newcounter
Generating lists of custom environment.?
Customized 'list of...'?
Below is my MWE. It is the first time I ask, so excuse me if I haven't managed to get rid of unnecessary code. Let me know if you want me to edit it. Thanks.
\documentclass[12pt,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, american]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[a4paper, margin=3cm]{geometry}
\usepackage[style=apa,backend=biber, natbib]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{References/library.bib}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{threeparttable}
\usepackage{longtable}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{graphicx}
\usepackage[justification=centering]{caption}
\usepackage{subcaption}
\usepackage{epigraph}
\usepackage[toc,page]{appendix}
\usepackage{rotfloat}
\usepackage{hyperref}
\usepackage{microtype}
\usepackage{todonotes}
\usepackage{ifthen}
\usepackage[raggedright]{titlesec}
\usepackage{tocstyle}
\usetocstyle{standard}
\usepackage{pdfpages}
%packages for \newenviroment data
\usepackage{xcolor}
\usepackage{amsmath}
\newcounter{mydata}
\newenvironment{data}[1]
{%
\par%
\addvspace{\baselineskip}%
\refstepcounter{mydata}%
{\centering {Extract \themydata: #1}\par}%
\addvspace{0.5\baselineskip}%
%\\%
}{%
\par%
\addvspace{0.5\baselineskip}%
}%
\numberwithin{mydata}{chapter}
\usepackage{paracol}
\footnotelayout{m}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{emptypage}
\usepackage[intoc]{nomencl}
\usepackage{enumitem}
\usepackage[nottoc]{tocbibind}
\usepackage{tocloft}
\begin{document}
\pagestyle{empty}
\frontmatter
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\pagestyle{fancy}
\chapter{Intro}
bla bla
\section{First section}
\begin{data}{My first Extract.}
First Extract data
\end{data}
\chapter{Second chapter}
\section{First section}
\begin{data}{My second Extract.}
First Extract data
\end{data}
\end{document}

dataenvironment to be captured in the ToC? Do you want it in a separate ToC-like display, or just added to the existing ToC? What do you want it to look like? – Werner Dec 27 '17 at 19:06dataenvironments listed in an additional List similar to the LoF and LoT. @Christian's answer does exactly this. However, I can't add this new List to the ToC nor format it as the LoF and LoT. For the latter, this question's answers are not working: [https://tex.stackexchange.com/questions/58469/why-are-listof-and-listoffigures-styled-differently]. – Lukitah Dec 28 '17 at 11:57\cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{\listofdataextractsname}before\listofdataextractsinserts the new List to the ToC. – Lukitah Dec 28 '17 at 12:19