summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty52
1 files changed, 42 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty b/Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty
index 46aa6e10a9d..a841ec2d6ea 100644
--- a/Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty
+++ b/Master/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty
@@ -4,9 +4,9 @@
%%
%% The original source files were:
%%
-%% pgfmolbio.dtx (with options: `pgfmolbio')
+%% pgfmolbio.dtx (with options: `pgfmolbio-tex')
%%
-%% Copyright (C) 2011 by Wolfgang Skala
+%% Copyright (C) 2012 by Wolfgang Skala
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -16,22 +16,35 @@
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
-\ProvidesPackage{pgfmolbio}[2011/09/20 v0.1 Molecular biology graphs with TikZ]
+\ProvidesPackage{pgfmolbio}[2012/10/01 v0.2 Molecular biology graphs with TikZ]
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+
\newif\ifpmb@loadmodule@chromatogram
+\newif\ifpmb@loadmodule@domains
+\newif\ifpmb@loadmodule@convert
-\DeclareOption{chromatogram}{
- \pmb@loadmodule@chromatogramtrue
+\DeclareOption{chromatogram}{%
+ \pmb@loadmodule@chromatogramtrue%
+}
+\DeclareOption{domains}{%
+ \pmb@loadmodule@domainstrue%
+}
+\DeclareOption{convert}{%
+ \pmb@loadmodule@converttrue%
}
+
\ProcessOptions
-\RequirePackage{luatexbase-modutils}
- \RequireLuaModule{lualibs}
+\RequirePackage{ifluatex}
+\ifluatex
+ \RequirePackage{luatexbase-modutils}
+ \RequireLuaModule{lualibs}
+ \RequireLuaModule{pgfmolbio}
+\fi
+\RequirePackage[svgnames,dvipsnames]{xcolor}
\RequirePackage{tikz}
- \usetikzlibrary{positioning}
-
-\RequirePackage{xcolor}
+ \usetikzlibrary{positioning,svg.path}
\newcommand\pgfmolbioset[2][]{%
\def\@tempa{#1}%
@@ -42,9 +55,28 @@
\fi%
}
+\pgfkeyssetvalue{/pgfmolbio/coordinate unit}{mm}
+\pgfkeyssetvalue{/pgfmolbio/coordinate format string}{\%s\%s}
+
+\newtoks\@pmb@toksa
+\newtoks\@pmb@toksb
+\newif\ifpmb@con@includedescription
+\newif\ifpmb@con@outputtikzcode
+
+\def\pmbprotocolsizes#1#2{%
+ \pgfpoint{#1}{#2}%
+ \pgf@protocolsizes{\pgf@x}{\pgf@y}%
+}
+
\ifpmb@loadmodule@chromatogram
\input{pgfmolbio.chromatogram.tex}
\fi
+\ifpmb@loadmodule@domains
+ \input{pgfmolbio.domains.tex}
+\fi
+\ifpmb@loadmodule@convert
+ \input{pgfmolbio.convert.tex}
+\fi
\endinput
%%
%% End of file `pgfmolbio.sty'.