]> https://gitweb.dealii.org/ - dealii.git/commitdiff
update
authorTimo Heister <timo.heister@gmail.com>
Wed, 8 Nov 2017 14:22:44 +0000 (09:22 -0500)
committerTimo Heister <timo.heister@gmail.com>
Wed, 8 Nov 2017 14:22:44 +0000 (09:22 -0500)
source/base/parameter_handler.cc
tests/parameter_handler/parameter_acceptor_06.output
tests/parameter_handler/parameter_handler_4.output
tests/parameter_handler/parameter_handler_4a.output
tests/parameter_handler/parameter_handler_4a_with_alias.output
tests/parameter_handler/parameter_handler_4a_with_alias_deprecated.output
tests/parameter_handler/write_latex_01.output

index 46cc3342821d655272a8a05f510aa5d5423930e9..16e28de4ea8dca9bd88a5ff41720cf6fe0fc3903 100644 (file)
@@ -1141,8 +1141,8 @@ ParameterHandler::recursively_print_parameters (const std::vector<std::string> &
                 out << "\\item {\\it Parameter name:} {\\tt "
                     << escape(demangle(p->first)) << "}\n"
                     << "\\phantomsection";
-                // labels are not to be escaped but mangled:
                 {
+                  // create label: labels are not to be escaped but mangled
                   std::string label = "parameters:";
                   for (unsigned int i=0; i<target_subsection_path.size(); ++i)
                     {
@@ -1150,11 +1150,11 @@ ParameterHandler::recursively_print_parameters (const std::vector<std::string> &
                       label.append("/");
                     }
                   label.append(p->first);
-                  out << "\\label{" << label << "}\n";
-                  // Backwards-compatibility. Also output label without
+                  // Backwards-compatibility. Output the label with and without
                   // escaping whitespace:
                   if (label.find("_20")!=std::string::npos)
                     out << "\\label{" << Utilities::replace_in_string(label,"_20", " ") << "}\n";
+                  out << "\\label{" << label << "}\n";
                 }
                 out << "\n\n";
 
@@ -1197,13 +1197,23 @@ ParameterHandler::recursively_print_parameters (const std::vector<std::string> &
                 // print name
                 out << "\\item {\\it Parameter name:} {\\tt "
                     << escape(demangle(p->first)) << "}\n"
-                    << "\\phantomsection\\label{parameters:";
-                // do not escape but mangle labels:
-                for (unsigned int i=0; i<target_subsection_path.size(); ++i)
-                  out << mangle(target_subsection_path[i]) << "/";
-                out << p->first;
-                out << "}\n\n"
-                    << '\n';
+                    << "\\phantomsection";
+                {
+                  // create label: labels are not to be escaped but mangled
+                  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);
+                  // Backwards-compatibility. Output the label with and without
+                  // escaping whitespace:
+                  if (label.find("_20")!=std::string::npos)
+                    out << "\\label{" << Utilities::replace_in_string(label,"_20", " ") << "}\n";
+                  out << "\\label{" << label << "}\n";
+                }
+                out << "\n\n";
 
                 out << "\\index[prmindex]{"
                     << escape(demangle(p->first))
index a435c9bce55391b8099584d8c1f455af2b0535b2..0da52b16978cfef4709b8a027b4c6f183a30ce1f 100644 (file)
@@ -18,8 +18,8 @@ DEAL::\label{parameters:First_20Class}
 DEAL::
 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::\phantomsection\label{parameters:First Class/First bool}
+DEAL::\label{parameters:First_20Class/First_20bool}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{First bool}
@@ -32,8 +32,8 @@ DEAL::
 DEAL::
 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::\phantomsection\label{parameters:First Class/First double}
+DEAL::\label{parameters:First_20Class/First_20double}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{First double}
@@ -46,8 +46,8 @@ DEAL::
 DEAL::
 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::\phantomsection\label{parameters:First Class/First int}
+DEAL::\label{parameters:First_20Class/First_20int}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{First int}
@@ -60,8 +60,8 @@ DEAL::
 DEAL::
 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::\phantomsection\label{parameters:First Class/First string}
+DEAL::\label{parameters:First_20Class/First_20string}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{First string}
@@ -80,8 +80,8 @@ DEAL::\label{parameters:Second_20Class}
 DEAL::
 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::\phantomsection\label{parameters:Second Class/Second bool}
+DEAL::\label{parameters:Second_20Class/Second_20bool}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{Second bool}
@@ -94,8 +94,8 @@ DEAL::
 DEAL::
 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::\phantomsection\label{parameters:Second Class/Second double}
+DEAL::\label{parameters:Second_20Class/Second_20double}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{Second double}
@@ -108,8 +108,8 @@ DEAL::
 DEAL::
 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::\phantomsection\label{parameters:Second Class/Second int}
+DEAL::\label{parameters:Second_20Class/Second_20int}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{Second int}
@@ -122,8 +122,8 @@ DEAL::
 DEAL::
 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::\phantomsection\label{parameters:Second Class/Second string}
+DEAL::\label{parameters:Second_20Class/Second_20string}
 DEAL::
 DEAL::
 DEAL::\index[prmindex]{Second string}
index deae5f1a2ada7018ac7b0cf99e2860d2ad38843f..f590e9d387dd52bea289f67c2c3cc79fdd1baae6 100644 (file)
@@ -38,8 +38,8 @@
 
 {\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}
+\phantomsection\label{parameters:Testing/string list}
+\label{parameters:Testing/string_20list}
 
 
 \index[prmindex]{string list}
index 1b93de23d1699553f4b0c243f235f14c2335407a..042e196dfff0ef3cf69cc52a157050d96c72dc16 100644 (file)
@@ -38,8 +38,8 @@
 
 {\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}
+\phantomsection\label{parameters:Testing/string list}
+\label{parameters:Testing/string_20list}
 
 
 \index[prmindex]{string list}
@@ -63,8 +63,8 @@
 
 \begin{itemize}
 \item {\it Parameter name:} {\tt double 2}
-\phantomsection\label{parameters:Testing/Testing_202/double_202}
-\label{parameters:Testing/Testing 2/double 2}
+\phantomsection\label{parameters:Testing/Testing 2/double 2}
+\label{parameters:Testing/Testing_202/double_202}
 
 
 \index[prmindex]{double 2}
@@ -80,8 +80,8 @@
 
 {\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}
+\phantomsection\label{parameters:Testing/Testing 2/int 2}
+\label{parameters:Testing/Testing_202/int_202}
 
 
 \index[prmindex]{int 2}
@@ -94,8 +94,8 @@
 
 {\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}
+\phantomsection\label{parameters:Testing/Testing 2/string list 2}
+\label{parameters:Testing/Testing_202/string_20list_202}
 
 
 \index[prmindex]{string list 2}
index 8e4ddc2e82a95d4347881dfe454669dc88521ef2..27e232141687fc93710c8725d550f1ffdc17bc02 100644 (file)
@@ -56,8 +56,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 
 \item {\it Parameter name:} {\tt string list}
-\phantomsection\label{parameters:Testing/string_20list}
-\label{parameters:Testing/string list}
+\phantomsection\label{parameters:Testing/string list}
+\label{parameters:Testing/string_20list}
 
 
 \index[prmindex]{string list}
@@ -81,8 +81,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 \begin{itemize}
 \item {\it Parameter name:} {\tt double 2}
-\phantomsection\label{parameters:Testing/Testing_202/double_202}
-\label{parameters:Testing/Testing 2/double 2}
+\phantomsection\label{parameters:Testing/Testing 2/double 2}
+\label{parameters:Testing/Testing_202/double_202}
 
 
 \index[prmindex]{double 2}
@@ -98,8 +98,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 {\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}
+\phantomsection\label{parameters:Testing/Testing 2/int 2}
+\label{parameters:Testing/Testing_202/int_202}
 
 
 \index[prmindex]{int 2}
@@ -112,8 +112,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 {\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}
+\phantomsection\label{parameters:Testing/Testing 2/string list 2}
+\label{parameters:Testing/Testing_202/string_20list_202}
 
 
 \index[prmindex]{string list 2}
index 047b7e1205d94c209cd26b152cfa317d2c579d69..4b2750dda76146b2039be48f52151b24d6739ae8 100644 (file)
@@ -56,8 +56,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 
 \item {\it Parameter name:} {\tt string list}
-\phantomsection\label{parameters:Testing/string_20list}
-\label{parameters:Testing/string list}
+\phantomsection\label{parameters:Testing/string list}
+\label{parameters:Testing/string_20list}
 
 
 \index[prmindex]{string list}
@@ -81,8 +81,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 \begin{itemize}
 \item {\it Parameter name:} {\tt double 2}
-\phantomsection\label{parameters:Testing/Testing_202/double_202}
-\label{parameters:Testing/Testing 2/double 2}
+\phantomsection\label{parameters:Testing/Testing 2/double 2}
+\label{parameters:Testing/Testing_202/double_202}
 
 
 \index[prmindex]{double 2}
@@ -98,8 +98,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 {\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}
+\phantomsection\label{parameters:Testing/Testing 2/int 2}
+\label{parameters:Testing/Testing_202/int_202}
 
 
 \index[prmindex]{int 2}
@@ -112,8 +112,8 @@ This parameter is an alias for the parameter ``\texttt{int}''.
 
 {\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}
+\phantomsection\label{parameters:Testing/Testing 2/string list 2}
+\label{parameters:Testing/Testing_202/string_20list_202}
 
 
 \index[prmindex]{string list 2}
index 3e44a474fd35ea1a0cab77f0e6bd2de80674e830..7513fbf555f88707f5f6f2e98c856a5fb110d661 100644 (file)
@@ -17,8 +17,8 @@
 
 \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}
+\phantomsection\label{parameters:section_5f1/some other entry with _7b_25_7d}
+\label{parameters:section_5f1/some_20other_20entry_20with_20_7b_25_7d}
 
 
 \index[prmindex]{some other entry with \{\%\}}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.