निरंजन
I am trying to do something like the following:
```
% arara: pdflatex
% arara: pdflatex
% arara: clean: { extensions: [ log,aux,out,toc ] }
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\newcommand*\mysubsectionone[1]{%
\subsection[%
\texorpdfstring{%
#1\\[1ex]%
\hyperref[my#1two]{%
Link to two\dots\ \textit{\pageref{my#1two}}%
}\quad
\hyperref[my#1three]{%
Link to three\dots\ \textit{\pageref{my#1three}}%
}%
}{%
#1%
}%
]{%
#1\\[1ex]%
\hyperref[my#1two]{%
Link to two%
}\quad
\hyperref[my#1three]{%
Link to three%
}%
}%
\label{my#1one}%
}
\newcommand*\mysubsectiontwo[1]{%
\phantomsection
\subsection*{#1}%
\label{my#1two}%
}
\newcommand*\mysubsectionthree[1]{%
\phantomsection
\subsection*{#1}%
\label{my#1three}%
}
\begin{document}
\tableofcontents
\section{Test}
\mysubsectionone{abc}
\lipsum
\mysubsectiontwo{abc}
\lipsum
\mysubsectionthree{abc}
\lipsum
\end{document}
```
It gives me fairly satisfactory results, but I want the dots and the page number (as seen in the image below) to come after the original subsection and not after the extra links. How to change this?
