<h3>Specific improvements</h3>
<ol>
+<li> Changed: Output of ParameterHandler::print_parameters with argument
+ParameterHandler::LaTeX was not particularly readable. The output has
+therefore been rewritten to be more structured and readable.
+<br>
+(Wolfgang Bangerth, 2011/11/28)
+
<li> Fixed: The TimerOutput class set the alignment of output to right-aligned
under some circumstances, but didn't reset this to the previous value at the
end of output. This is now fixed.
// satisfies its constraints
const std::string new_value
= p->second.get<std::string>("value");
-
+
const unsigned int pattern_index
= destination.get<unsigned int> (full_path +
path_separator +
// the destination argument
destination.put (full_path + path_separator + "value",
new_value);
-
+
// this node might have
// sub-nodes in addition to
// "value", such as
<< "# ---------------------" << std::endl;
break;
case LaTeX:
- out << "\\subsubsection*{Listing of parameters}";
+ out << "\\subsection{Global parameters}";
out << std::endl << std::endl;
- out << "\\begin{itemize}"
- << std::endl;
break;
case Description:
out << "Listing of Parameters:" << std::endl << std::endl;
case ShortText:
break;
case LaTeX:
- out << "\\end{itemize}" << std::endl;
break;
default:
Assert (false, ExcNotImplemented());
case LaTeX:
{
+ out << "\\begin{itemize}"
+ << std::endl;
+
// print entries one by
// one. make sure they are
// sorted by using the
const std::string value = p->second.get<std::string>("value");
// print name and value
- out << "\\item {\\bf " << demangle(p->first) << ":} "
- << value
- << " (";
+ out << "\\item {\\it Parameter name:} {\\tt " << demangle(p->first) << "}\\\\"
+ << std::endl
+ << "{\\it Value:} " << value << "\\\\"
+ << std::endl
+ << "{\\it Default:} "
+ << p->second.get<std::string>("default_value") << "\\\\"
+ << std::endl;
// if there is a
// documenting string,
// print it as well
if (!p->second.get<std::string>("documentation").empty())
- out <<p->second.get<std::string>("documentation") << ", ";
+ out << "{\\it Description:} "
+ << p->second.get<std::string>("documentation") << "\\\\"
+ << std::endl;
- // finally print default
- // value
- out << "{\\it default:} "
- << p->second.get<std::string>("default_value")
- << ")"
+ // also output possible values
+ out << "{\\it Possible values:} "
+ << p->second.get<std::string> ("pattern_description")
<< std::endl;
}
+ out << "\\end{itemize}" << std::endl;
break;
}
<< "subsection " << demangle(p->first) << std::endl;
break;
case LaTeX:
- out << std::endl
- << "\\item {\\bf "
- << "Subsection " << demangle(p->first)
- << "}" << std::endl
- << "\\begin{itemize}"
- << std::endl;
- break;
+ {
+ out << std::endl
+ << "\\subsection{Parameters in section \\tt ";
+
+ // find the path to the
+ // current section so that we
+ // can print it in the
+ // \subsection{...} heading
+ for (unsigned int i=0; i<subsection_path.size(); ++i)
+ out << subsection_path[i] << "/";
+ out << demangle(p->first);
+
+ out << "}" << std::endl
+ << std::endl;
+ break;
+ }
+
default:
Assert (false, ExcNotImplemented());
};
<< "end" << std::endl;
break;
case LaTeX:
- out << "\\end{itemize}"
- << std::endl;
break;
default:
Assert (false, ExcNotImplemented());