Debian Codegraph @

texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty

raw
1 %%
2 %% This is file `pgfmolbio.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% pgfmolbio.dtx (with options: `pgfmolbio-tex')
8 %%
9 %% Copyright (C) 2024 by Wolfgang Esser-Skala
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3c
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% https://www.latex-project.org/lppl.txt
16 %% and version 1.3c or later is part of all distributions of LaTeX
17 %% version 2008/05/04 or later.
18 %%
19 \ProvidesPackage{pgfmolbio}[2024/06/17 v0.21a Molecular biology graphs with TikZ]
20 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
21
22
23 \newif\ifpmb@loadmodule@chromatogram
24 \newif\ifpmb@loadmodule@domains
25 \newif\ifpmb@loadmodule@convert
26
27 \DeclareOption{chromatogram}{%
28 \pmb@loadmodule@chromatogramtrue%
29 }
30 \DeclareOption{domains}{%
31 \pmb@loadmodule@domainstrue%
32 }
33 \DeclareOption{convert}{%
34 \pmb@loadmodule@converttrue%
35 }
36
37 \ProcessOptions
38
39 \RequirePackage{ifluatex}
40 \ifluatex
41 \RequirePackage{luatexbase-modutils}
42 \RequireLuaModule{lualibs}
43 \RequireLuaModule{pgfmolbio}
44 \fi
45 \RequirePackage[svgnames,dvipsnames]{xcolor}
46 \RequirePackage{tikz}
47 \usetikzlibrary{positioning,svg.path}
48
49 \newcommand\pgfmolbioset[2][]{%
50 \def\@tempa{#1}%
51 \ifx\@tempa\@empty%
52 \pgfqkeys{/pgfmolbio}{#2}%
53 \else%
54 \pgfqkeys{/pgfmolbio/#1}{#2}%
55 \fi%
56 }
57
58 \pgfkeyssetvalue{/pgfmolbio/coordinate unit}{mm}
59 \pgfkeyssetvalue{/pgfmolbio/coordinate format string}{\letterpercent s\letterpercent s}
60
61 \newtoks\@pmb@toksa
62 \newtoks\@pmb@toksb
63 \newif\ifpmb@con@includedescription
64 \newif\ifpmb@con@outputtikzcode
65
66 \def\pmbprotocolsizes#1#2{%
67 \pgfpoint{#1}{#2}%
68 \pgf@protocolsizes{\pgf@x}{\pgf@y}%
69 }
70
71 \ifpmb@loadmodule@chromatogram
72 \input{pgfmolbio.chromatogram.tex}
73 \fi
74 \ifpmb@loadmodule@domains
75 \input{pgfmolbio.domains.tex}
76 \fi
77 \ifpmb@loadmodule@convert
78 \input{pgfmolbio.convert.tex}
79 \fi
80 \endinput
81 %%
82 %% End of file `pgfmolbio.sty'.