Code: Select all
\chapter{Database}
\section{Query 1}
\label{sql1}
\section{Query 2}
\label{sql2}
\section{Query 3}
\label{sql3}
\chapter{Applications}
\section{Application1}
in case of foo query described in \ref{sql1} is executed
in case of foo query described in \ref{sql2} is executed
\section{Application2}
in case of foo query described in \ref{sql2} is executed
in case of foo query described in \ref{sql3} is executed
Code: Select all
Database:
Query 1:
used in:
* Application 1 <reference link>
Query 2:
used in:
* Application 1 <reference link>
* Application 2 <reference link>
Query 3:
used in:
* Application 1 <reference link>
I have tried to do something like this:
-
\@starttoc{sqllist}
- define command \sqlref which:
- make label from counter
- pass counter, current section name and destination label to
\addtocontents{sqllist}
- at every
\ref
use\sqlref
Code: Select all
\sqlrefitem {Query label}{Chapter name}{Chapter label}
I am think there may be another solution, the additional output file should be generated following. Then parsing this file single time at the begining will generate one new command for each query. This is draft some details are missing and I am aware this renewcommand will hang on recursion.
Code: Select all
\renewcommand{\<Query label>index}{
\<Query label>index} \item Chapter name \ref{Chapter label}
}
Code: Select all
\begin{itemize}
\<Query label>index
\end{itemize}
- Is there a simpler way to do generate automatic reverse references?
- How to save a copy of "own" TOC at the start of tex script?
- Is there a simpler way to get data from TOC file in many places of particular file?
- Is there a way to call command by dynamically generating