Commit bc231c86 authored by MARTINEZ Thierry 's avatar MARTINEZ Thierry

Fixed: error message unknown comment doc commands

Added cite command
parent 4d2b0d21
......@@ -29,28 +29,27 @@
software.
').
% FF ca cree un bug que je ne comprends pas
%:- doc('
%Biocham file names are suffixed by \\texttt{.bc}. In a Biocham file, everything following the character percent is a comment.
%Some other file formats are used.
%Biocham models can be imported from, and exported to, other file formats using the following suffixes:
%\\begin{itemize}
%\\item \\texttt{.xml} for Systems Biology Markup Language (SBML) files, more precisely SBML2 files for reaction systems and SBML3qual files for influence systems;
%\\item \\texttt{.ode} for Ordinary Differential Equation files (ODEs in XXPAUT format), allowing us to import a reaction system from ODEs using a heuristic inference algorithm described in \\cite{FGS15tcs}.
%\\end{itemize}
%Biocham numerical data time series can be imported/exported in
%\\begin{itemize}
%\\item \\texttt{.csv} comma-separated values format (spreadsheet format).
%\\end{itemize}
%The following files can also be used to export some Biocham objects:
%\\begin{itemize}
%\\item \\texttt{.tex} LaTeX format for exporting ODEs and graphs;
%\\item \\texttt{.dot} for exporting graphs;
%\\item \\texttt{.plot} for exporting numerical data time series;
%\\item \\texttt{.smv} for exporting boolean transition systems and Computation Tree Logic (CTL) queries for the NuSMV model-checker;
%\\item \\texttt{.dot} for exporting graphs.
%\\end{itemize}
%').
:- doc('
Biocham file names are suffixed by \\texttt{.bc}. In a Biocham file, everything following the character percent is a comment.
Some other file formats are used.
Biocham models can be imported from, and exported to, other file formats using the following suffixes:
\\begin{itemize}
\\item \\texttt{.xml} for Systems Biology Markup Language (SBML) files, more precisely SBML2 files for reaction systems and SBML3qual files for influence systems;
\\item \\texttt{.ode} for Ordinary Differential Equation files (ODEs in XXPAUT format), allowing us to import a reaction system from ODEs using a heuristic inference algorithm described in \\cite{FGS15tcs}.
\\end{itemize}
Biocham numerical data time series can be imported/exported in
\\begin{itemize}
\\item \\texttt{.csv} comma-separated values format (spreadsheet format).
\\end{itemize}
The following files can also be used to export some Biocham objects:
\\begin{itemize}
\\item \\texttt{.tex} LaTeX format for exporting ODEs and graphs;
\\item \\texttt{.dot} for exporting graphs;
\\item \\texttt{.plot} for exporting numerical data time series;
\\item \\texttt{.smv} for exporting boolean transition systems and Computation Tree Logic (CTL) queries for the NuSMV model-checker;
\\item \\texttt{.dot} for exporting graphs.
\\end{itemize}
').
start :-
......
......@@ -361,6 +361,9 @@ format_doc_html(command(Id, Command)) :-
format_doc_html(label(Key)) :-
format('<a id="~a" />', [Key]).
format_doc_html(cite(Key)) :-
format('<a href="#~a">~a</a>', [Key, Key]).
format_doc_tex(document_opening(Title)) :-
!,
......@@ -649,6 +652,9 @@ format_doc_tex(command(Id, Command)) :-
format_doc_tex(label(Key)) :-
format('\\label{~a}', [Key]).
format_doc_tex(cite(Key)) :-
format('\\cite{~a}', [Key]).
tex_section(3, section).
......@@ -1591,7 +1597,11 @@ write_command(section, Argument) :-
write_doc(Argument),
format_doc(end_local_section(SectionLevel)).
write_command(Command, _Argument, _Stream) :-
write_command(cite, Argument) :-
!,
format_doc(cite(Argument)).
write_command(Command, _Argument) :-
throw(error(unknown_command(Command))).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment