Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \ProvidesPackage{style}
- \usepackage{graphicx}
- \usepackage{tikz}
- % Inserts a scale bar into an image
- % Optional argument: the colour of the bar and text
- % Argument 1: an \includegraphics command
- % Argument 2: the real world width of the image
- % Argument 3: the length of the scale bar
- % Argument 4: the units in which the scale bar is measured
- \newcommand{\scalebar}[5][white]{
- \begin{tikzpicture}
- \draw (0,0) node[anchor=south west,inner sep=0] (image) { #2 };
- \begin{scope}[x={(image.south east)},y={(image.north west)}]
- \fill [#1] (0.05,0.2cm) rectangle (#4/#3+0.05,0.4cm);
- \draw [#1] (0.05,0.4cm) node[anchor=south west] { \SI{#4}{#5} };
- \end{scope}
- \end{tikzpicture}
- }
- % SI units
- \usepackage{siunitx}
- \DeclareSIUnit \molar {M}
- \sisetup{separate-uncertainty=true}
- \usepackage{booktabs}
- \usepackage[version=3]{mhchem}
- \usepackage{graphicx}
- \usepackage{subcaption}
- \usepackage{mathtools}
- \usepackage[width=.75\textwidth]{caption}
- \usepackage[superscript]{cite}
- % Define acronyms
- \usepackage{acronym}
- \usepackage{chemfig}
- \setdoublesep{0.35700 em} % 'Bond Spacing'
- \setatomsep{1.78500 em} % 'Fixed Length'
- %\setatomsep{1.0 em} % 'Fixed Length'
- \setbondoffset{0.18265 em} % 'Margin Width'
- \newcommand{\bondwidth}{0.06642 em} % 'Line Width'
- \setbondstyle{line width = \bondwidth}
- \usepackage{cleveref}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement