// print name
out << "\\item {\\it Parameter name:} {\\tt "
<< escape(demangle(p->first)) << "}\n"
- << "\\phantomsection\\label{parameters:";
+ << "\\phantomsection";
// labels are not to be escaped but mangled:
- for (unsigned int i=0; i<target_subsection_path.size(); ++i)
- out << mangle(target_subsection_path[i]) << "/";
- out << p->first;
- out << "}\n\n"
- << '\n';
+ {
+ std::string label = "parameters:";
+ for (unsigned int i=0; i<target_subsection_path.size(); ++i)
+ {
+ label.append(mangle(target_subsection_path[i]));
+ label.append("/");
+ }
+ label.append(p->first);
+ out << "\\label{" << label << "}\n";
+ // Backwards-compatibility. Also output label without
+ // escaping whitespace:
+ if (label.find("_20")!=std::string::npos)
+ out << "\\label{" << Utilities::replace_in_string(label,"_20", " ") << "}\n";
+ }
+ out << "\n\n";
out << "\\index[prmindex]{"
<< escape(demangle(p->first))
DEAL::\begin{itemize}
DEAL::\item {\it Parameter name:} {\tt First bool}
DEAL::\phantomsection\label{parameters:First_20Class/First_20bool}
+DEAL::\label{parameters:First Class/First bool}
DEAL::
DEAL::
DEAL::\index[prmindex]{First bool}
DEAL::{\it Possible values:} A boolean value (true or false)
DEAL::\item {\it Parameter name:} {\tt First double}
DEAL::\phantomsection\label{parameters:First_20Class/First_20double}
+DEAL::\label{parameters:First Class/First double}
DEAL::
DEAL::
DEAL::\index[prmindex]{First double}
DEAL::{\it Possible values:} A floating point number $v$ such that $-\text{MAX\_DOUBLE} \leq v \leq \text{MAX\_DOUBLE}$
DEAL::\item {\it Parameter name:} {\tt First int}
DEAL::\phantomsection\label{parameters:First_20Class/First_20int}
+DEAL::\label{parameters:First Class/First int}
DEAL::
DEAL::
DEAL::\index[prmindex]{First int}
DEAL::{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
DEAL::\item {\it Parameter name:} {\tt First string}
DEAL::\phantomsection\label{parameters:First_20Class/First_20string}
+DEAL::\label{parameters:First Class/First string}
DEAL::
DEAL::
DEAL::\index[prmindex]{First string}
DEAL::\begin{itemize}
DEAL::\item {\it Parameter name:} {\tt Second bool}
DEAL::\phantomsection\label{parameters:Second_20Class/Second_20bool}
+DEAL::\label{parameters:Second Class/Second bool}
DEAL::
DEAL::
DEAL::\index[prmindex]{Second bool}
DEAL::{\it Possible values:} A boolean value (true or false)
DEAL::\item {\it Parameter name:} {\tt Second double}
DEAL::\phantomsection\label{parameters:Second_20Class/Second_20double}
+DEAL::\label{parameters:Second Class/Second double}
DEAL::
DEAL::
DEAL::\index[prmindex]{Second double}
DEAL::{\it Possible values:} A floating point number $v$ such that $-\text{MAX\_DOUBLE} \leq v \leq \text{MAX\_DOUBLE}$
DEAL::\item {\it Parameter name:} {\tt Second int}
DEAL::\phantomsection\label{parameters:Second_20Class/Second_20int}
+DEAL::\label{parameters:Second Class/Second int}
DEAL::
DEAL::
DEAL::\index[prmindex]{Second int}
DEAL::{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
DEAL::\item {\it Parameter name:} {\tt Second string}
DEAL::\phantomsection\label{parameters:Second_20Class/Second_20string}
+DEAL::\label{parameters:Second Class/Second string}
DEAL::
DEAL::
DEAL::\index[prmindex]{Second string}
{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
\item {\it Parameter name:} {\tt string list}
\phantomsection\label{parameters:Testing/string_20list}
+\label{parameters:Testing/string list}
\index[prmindex]{string list}
{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
\item {\it Parameter name:} {\tt string list}
\phantomsection\label{parameters:Testing/string_20list}
+\label{parameters:Testing/string list}
\index[prmindex]{string list}
\begin{itemize}
\item {\it Parameter name:} {\tt double 2}
\phantomsection\label{parameters:Testing/Testing_202/double_202}
+\label{parameters:Testing/Testing 2/double 2}
\index[prmindex]{double 2}
{\it Possible values:} A floating point number $v$ such that $-\text{MAX\_DOUBLE} \leq v \leq \text{MAX\_DOUBLE}$
\item {\it Parameter name:} {\tt int 2}
\phantomsection\label{parameters:Testing/Testing_202/int_202}
+\label{parameters:Testing/Testing 2/int 2}
\index[prmindex]{int 2}
{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
\item {\it Parameter name:} {\tt string list 2}
\phantomsection\label{parameters:Testing/Testing_202/string_20list_202}
+\label{parameters:Testing/Testing 2/string list 2}
\index[prmindex]{string list 2}
\item {\it Parameter name:} {\tt string list}
\phantomsection\label{parameters:Testing/string_20list}
+\label{parameters:Testing/string list}
\index[prmindex]{string list}
\begin{itemize}
\item {\it Parameter name:} {\tt double 2}
\phantomsection\label{parameters:Testing/Testing_202/double_202}
+\label{parameters:Testing/Testing 2/double 2}
\index[prmindex]{double 2}
{\it Possible values:} A floating point number $v$ such that $-\text{MAX\_DOUBLE} \leq v \leq \text{MAX\_DOUBLE}$
\item {\it Parameter name:} {\tt int 2}
\phantomsection\label{parameters:Testing/Testing_202/int_202}
+\label{parameters:Testing/Testing 2/int 2}
\index[prmindex]{int 2}
{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
\item {\it Parameter name:} {\tt string list 2}
\phantomsection\label{parameters:Testing/Testing_202/string_20list_202}
+\label{parameters:Testing/Testing 2/string list 2}
\index[prmindex]{string list 2}
\item {\it Parameter name:} {\tt string list}
\phantomsection\label{parameters:Testing/string_20list}
+\label{parameters:Testing/string list}
\index[prmindex]{string list}
\begin{itemize}
\item {\it Parameter name:} {\tt double 2}
\phantomsection\label{parameters:Testing/Testing_202/double_202}
+\label{parameters:Testing/Testing 2/double 2}
\index[prmindex]{double 2}
{\it Possible values:} A floating point number $v$ such that $-\text{MAX\_DOUBLE} \leq v \leq \text{MAX\_DOUBLE}$
\item {\it Parameter name:} {\tt int 2}
\phantomsection\label{parameters:Testing/Testing_202/int_202}
+\label{parameters:Testing/Testing 2/int 2}
\index[prmindex]{int 2}
{\it Possible values:} An integer $n$ such that $-2147483648\leq n \leq 2147483647$
\item {\it Parameter name:} {\tt string list 2}
\phantomsection\label{parameters:Testing/Testing_202/string_20list_202}
+\label{parameters:Testing/Testing 2/string list 2}
\index[prmindex]{string list 2}
\begin{itemize}
\item {\it Parameter name:} {\tt some other entry with \{\%\}}
\phantomsection\label{parameters:section_5f1/some_20other_20entry_20with_20_7b_25_7d}
+\label{parameters:section_5f1/some other entry with _7b_25_7d}
\index[prmindex]{some other entry with \{\%\}}