]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add section labels to the latex output.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Nov 2011 03:09:28 +0000 (03:09 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Nov 2011 03:09:28 +0000 (03:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@24779 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/parameter_handler.cc

index 98f7e9343b723caab42800ea466196b36a6dc544..bd05601c82b7f4032758ea6cb3b1369b984c45df 100644 (file)
@@ -1578,7 +1578,8 @@ ParameterHandler::print_parameters (std::ostream     &out,
                << "# ---------------------" << std::endl;
            break;
       case LaTeX:
-           out << "\\subsection{Global parameters}";
+           out << "\\subsection{Global parameters}" << std::endl;
+           out << "\\label{parameters:global}" << std::endl;
            out << std::endl << std::endl;
            break;
       case Description:
@@ -1892,8 +1893,14 @@ ParameterHandler::print_parameters_section (std::ostream      &out,
                out << subsection_path[i] << "/";
              out << demangle(p->first);
 
-             out << "}" << std::endl
-                 << std::endl;
+             out << "}" << std::endl;
+             out << "\\label{parameters:";
+             for (unsigned int i=0; i<subsection_path.size(); ++i)
+               out << mangle(subsection_path[i]) << "/";
+             out << p->first << "}";
+             out << std::endl;
+
+             out << std::endl;
              break;
            }
 

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.