]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
parameter_handler: add labels to individual parameters in latex output
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 26 May 2014 17:28:34 +0000 (17:28 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 26 May 2014 17:28:34 +0000 (17:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@32978 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/parameter_handler.cc

index 29446174a1789fcfa0d913cf03cde4e94889b109..a81e36349b558b7777a6d2624101e79865808082 100644 (file)
@@ -2066,7 +2066,12 @@ ParameterHandler::print_parameters_section (std::ostream      &out,
                 const std::string value = p->second.get<std::string>("value");
 
                 // print name
-                out << "\\item {\\it Parameter name:} {\\tt " << demangle(p->first) << "}\n\n"
+                out << "\\item {\\it Parameter name:} {\\tt " << demangle(p->first) << "}\n"
+                    << "\\phantomsection\\label{parameters:";
+                for (unsigned int i=0; i<subsection_path.size(); ++i)
+                  out << subsection_path[i] << "/";
+                out << demangle(p->first);
+                out << "}\n\n"
                     << std::endl;
 
                 out << "\\index[prmindex]{"

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.