Browse Source

Remove the need for the ending slash

Homozygous chromosomes can now be entered without a final slash.
develop
Damien Goutte-Gattat 8 years ago
parent
commit
5e9053ca74
1 changed files with 15 additions and 19 deletions
  1. +15
    -19
      flygenet.dtx

+ 15
- 19
flygenet.dtx View File

@ -164,22 +164,6 @@ has been generated for details.
% several individuals of the indicated genotype.
%
%
% \section{Limitations}
%
% Homozygous chromosome must be written with an ending slash, as in the
% following example:
%
% \begin{minipage}{.6\textwidth}
% \begin{verbatim}
% \genotype{cn bw/;TM2/tra}
% \end{verbatim}
% \end{minipage}
% \begin{minipage}{.3\textwidth}
% $$
% \genotype{cn bw/;TM2/tra}
% $$
% \end{minipage}
%
% ^^A Inserts the LPPL text.
% \providecommand{\LPPLsection}{\section}
% \providecommand{\LPPLsubsection}{\subsection}
@ -229,6 +213,17 @@ has been generated for details.
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\FG@findslash}
% This macro determines whether its argument contains a forward slash,
% and sets the |\ifFG@foundslash| boolean accordingly.
% \begin{macrocode}
\newif\ifFG@foundslash\FG@foundslashfalse
\def\FG@findslash#1/#2\end{%
\def\FG@argii{#2}%
\ifx\FG@argii\empty\FG@foundslashfalse\else\FG@foundslashtrue\fi}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Typesetting chromosomes}
%
@ -307,9 +302,10 @@ has been generated for details.
% pair.
% \begin{macrocode}
\def\FG@parsechromosome#1;#2\end{%
\FG@printchromosome#1\end%
\def\FG@argii{#2}%
\ifx\FG@argii\empty\else; \FG@parsechromosome#2\end\fi}
\FG@findslash#1/\end%
\ifFG@foundslash\FG@printchromosome#1\end\else\FG@printchromosome#1/\end\fi%
\def\FG@argii{#2}%
\ifx\FG@argii\empty\else; \FG@parsechromosome#2\end\fi}
% \end{macrocode}
% \end{macro}
%


Loading…
Cancel
Save