diff --git a/paper/ollie-optimization.tex b/paper/ollie-optimization.tex index a4398f8..5d16fe8 100644 --- a/paper/ollie-optimization.tex +++ b/paper/ollie-optimization.tex @@ -1,48 +1,36 @@ \documentclass[default,iicol,pdflatex]{sn-jnl} -\usepackage[acronym]{glossaries} -\usepackage[utf8]{inputenc} +% Springer packages \usepackage{amsmath} \usepackage{array} -\usepackage{float} -\usepackage{siunitx} -\usepackage{stfloats} -\usepackage{subfig} -\usepackage{titlesec} -\usepackage{url} +\usepackage{booktabs} \usepackage{xcolor} + +% Our packages +\usepackage[acronym]{glossaries} % get rid of colon for tables and figures as requested per journal format \usepackage[labelsep=space]{caption} +\usepackage{siunitx} +\usepackage{subfig} -\setcounter{secnumdepth}{4} - -\titleformat{\paragraph} -{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} -\titlespacing*{\paragraph} -{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex} +% Springer settings +\raggedbottom -%\def\url#1{\expandafter\string\csname #1\endcsname} -\newcounter{exno} -\newenvironment{examples} -{ -\begin{flushleft} -\begin{tabular}{>{(\refstepcounter{exno}\theexno\label{row:\theexno}) }rl} -} -{ -\end{tabular} -\end{flushleft} -} -%\newcommand*{\@rowstyle}{} -\newcommand*{\rowstyle}[1]{% sets the style of the next row +% Customizations and settings for our packages +% sets the style of the next row +\newcommand*{\rowstyle}[1]{ \gdef\@rowstyle{#1}% \@rowstyle\ignorespaces% } -\newcolumntype{=}{% resets the row style - >{\gdef\@rowstyle{}}% +% resets the row style +\newcolumntype{=}{ + >{\gdef\@rowstyle{}} } -\newcolumntype{+}{% adds the current row style to the next column +% adds the current row style to the next column +\newcolumntype{+}{ >{\@rowstyle}% } + \definecolor{ao}{rgb}{0.0, 0.5, 0.0} \definecolor{coolblack}{rgb}{0.0, 0.18, 0.39} @@ -53,15 +41,6 @@ \newacronym{nlp}{NLP}{non-linear programming problem} \newacronym[longplural={degrees of freedom}]{dof}{DoF}{degree of freedom} -\newcounter{magicrownumbers} -\newcommand\rownumber{\stepcounter{magicrownumbers}\arabic{magicrownumbers}} -\newcommand\figwidth{174mm} - -\jyear{2021}% - -\raggedbottom -%%\unnumbered% uncomment this for unnumbered level heads - \begin{document} \title[Maximizing Ollie Height by Optimizing Control Strategy and Skateboard Geometry Using Direct Collocation]{ @@ -95,6 +74,7 @@ \abstract{The ollie is the base aerial human-board maneuver, foundational to most modern skateboarding tricks. We formulate and solve an optimal control problem of a two-dimensional simplified human model and a rigid body skateboard with the objective of maximizing the height of the ollie. Our solution simultaneously discovers realistic human-applied force trajectories and optimal board geometry. We accomplish this with a direct collocation formulation using a null seed initial guess by carefully modeling the discontinuous aspects of board-ground impact and foot-board friction. This leads to very efficient and robust solutions that are 10 times more computationally efficient than prior work on similar problems. The solutions show that ollie height can increase 3\% by decreasing the wheelbase and that a smaller board with a back-foot dominated force strategy can give 12\% higher ollies. Our model can be used to inform jump strategy and the effects of changes to the essential board geometry.} \keywords{Skateboarding, Friction, Impact, Optimal Control, Trajectory Optimization, Parameter Optimization, Direct Collocation} + \maketitle \section{Introduction}\label{s_intro} @@ -106,7 +86,7 @@ \section{Introduction}\label{s_intro} distinct phases shown in Fig.~\ref{fig:ollie steps}. \begin{figure*}[!t] -\captionsetup[subfigure]{labelformat=empty} + \captionsetup[subfigure]{labelformat=empty} \subfloat[$t_1$=0.013]{{\includegraphics[width=0.13\textwidth]{figure/Fig1a.png} }}% \subfloat[$t_2$=0.129]{{\includegraphics[width=0.13\textwidth]{figure/Fig1b.png} }}% \subfloat[$t_3$=0.181]{{\includegraphics[width=0.13\textwidth]{figure/Fig1c.png} }}% @@ -121,7 +101,7 @@ \section{Introduction}\label{s_intro} \subfloat[$t_{10}$=0.904]{{\includegraphics[width=0.13\textwidth]{figure/Fig1j.png} }}% \subfloat[$t_{11}$=1.097]{{\includegraphics[width=0.13\textwidth]{figure/Fig1k.png} }}% \captionsetup{singlelinecheck=off} - \caption[Ollie motion cues]{Phases of the ollie. + \caption[Ollie motion cues]{Phases of the ollie. Green arrow: resultant force without friction, red arrows: force components with friction, blue arrow: resultant force with friction. Blue-, green- and red lines are trajectory of back wheel, middle and front wheel respectively. Images are retrieved from \url{youtu.be/339k4XEvbxY} with consent. The phases and associated motion cues are described by: @@ -520,23 +500,43 @@ \section{Conclusions} This model and the results provide a new stone in the foundation needed for utilizing optimization to improve skateboard trick strategy and performance. In its current form, it can be used to inform jump strategy and the effects of changes to the essential board geometry. Tying this tool to experimental studies of skateboard ollies is an obvious next research step. -\section{Acknowledgments} -None - -\section{Statements and Declarations} +\backmatter -\subsection{Supplementary Information} +\bmhead{Supplementary information} Animations of the solutions are included as supplementary material. -\subsection{Data availability} +\bmhead{Acknowledgments} -The software used to generate the optimal control solutions is available at \url{https://github.com/mechmotum/ollie-optimization}. +None -\subsection{Conflicts of Interest} +\section*{Declarations} + +\subsection*{Conflicts of Interest} There has been no conflict of interest with the authors involved in this work. +\subsection*{Funding} + +Not applicable + +\subsection*{Ethics approval} + +Not applicable + +\subsection*{Consent to participate} + +Not applicable + +\subsection*{Consent for publication} +Not applicable +\subsection*{Availability of data and materials} +Not applicable +\subsection*{Code availability} +The software used to generate the optimal control solutions is available at \url{https://github.com/mechmotum/ollie-optimization}. +\subsection*{Authors' contributions} +Not applicable + \bibliographystyle{sn-basic} \bibliography{references} diff --git a/paper/sn-basic.bst b/paper/sn-basic.bst index 8cba86e..5072a4d 100644 --- a/paper/sn-basic.bst +++ b/paper/sn-basic.bst @@ -472,7 +472,7 @@ FUNCTION {format.soft.eprint} { ""} { archive empty$ {"{\href{https://arxiv.org/abs/" eprint * "}" * - "{{https://arxiv.org/abs/" * format.archive * eprint * "}}}" *} + "{{" * format.archive * eprint * "}}}" *} {"{\href{https://arxiv.org/abs/" eprint * "}" * "{{" * format.archive * eprint * "}}}" *} if$ @@ -771,7 +771,7 @@ FUNCTION {n.separate} } FUNCTION {n.dashify} { - n.separate +%% n.separate 't := "" { t empty$ not } diff --git a/paper/sn-jnl.cls b/paper/sn-jnl.cls index da658c5..9d91310 100644 --- a/paper/sn-jnl.cls +++ b/paper/sn-jnl.cls @@ -67,6 +67,8 @@ \newif\if@pdflatex\global\@pdflatexfalse% \newif\if@remarkboxon\global\@remarkboxonfalse% +\newif\if@Numbered@refstyle\global\@Numbered@refstylefalse% Namedate + \newif\if@Spr@basic@refstyle\global\@Spr@basic@refstylefalse% 1.Basic Springer Nature Reference Style/Chemistry Reference Style -> sn-basic.bst \newif\if@Mathphys@refstyle\global\@Mathphys@refstylefalse% 2.Math and Physical Sciences Reference Style -> sn-mathphys.bst \newif\if@APS@refstyle\global\@APS@refstylefalse% 3.American Physical Society (APS) Reference Style -> sn-APS.bst @@ -108,9 +110,13 @@ \DeclareOption{sn-vancouver}{\global\@Vancouver@refstyletrue}% \DeclareOption{sn-apa}{\global\@APA@refstyletrue}% \DeclareOption{sn-chicago}{\global\@Chicago@refstyletrue}% -\DeclareOption{sn-standardnature}{\global\@Standard@Nature@refstyletrue}% +\DeclareOption{sn-nature}{\global\@Standard@Nature@refstyletrue}% \DeclareOption{default}{\global\@Default@refstyletrue}% +\DeclareOption{Numbered}{\global\@Numbered@refstyletrue}% +\DeclareOption{NameDate}{\global\@Numbered@refstylefalse}% + + %%\ExecuteOptions{twosidecrop,crop,centre,info,croppage} \ProcessOptions \LoadClass[twoside,fleqn]{article} @@ -124,6 +130,7 @@ %% General Packages Used % +\usepackage{manyfoot} \AtBeginDocument{% %%\newcommand*\ExtraParaSkip{12pt}% \SetFootnoteHook{\hspace*{-8pt}}% @@ -219,12 +226,6 @@ % %% for double column used sn-medium design trim and page size %% % -\setlength\paperwidth{193mm}% -\setlength\paperheight{260mm}% -% -\setlength\textwidth{160mm}% -\setlength\textheight{216mm}% -% \setlength\headheight{12pt}% \setlength\headsep{5.15mm}% % @@ -237,9 +238,9 @@ % \RequirePackage[% reversemp, - paperwidth=193mm, - paperheight=260mm, - top={19.29mm}, + paperwidth=210mm, + paperheight=297mm, + top={26mm}, headheight={12pt}, headsep={5.15mm}, text={160mm,216mm}, @@ -257,12 +258,12 @@ %% For single column used smallcond design trim and page size %% \RequirePackage[% reversemp, - paperwidth=155mm, - paperheight=235mm, - top={19.5mm}, + paperwidth=210mm, + paperheight=297mm, + top={26mm}, headheight={5.5pt}, headsep={5.6mm}, - text={119mm,194.25mm}, + text={31pc,194.25mm}, marginparsep=5mm, marginparwidth=12mm, bindingoffset=6mm, @@ -292,25 +293,6 @@ \def\StepUpCounter#1{\global\advance#1by 1\relax}% \def\StepDownCounter#1{\global\advance#1by -1\relax}% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%% Standard LaTeX Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% -\usepackage{graphicx}% -\usepackage{multirow}% -\usepackage{amsmath,amssymb,amsfonts}% -\usepackage{amsthm}% -\usepackage{mathrsfs}% -\usepackage[figuresright]{rotating}% -\usepackage[title]{appendix}% -\usepackage{xcolor}% -\usepackage{textcomp}% -\usepackage{manyfoot}% -\usepackage{booktabs}% -\usepackage{algorithm}% -\usepackage{algorithmicx}% -\usepackage{algpseudocode}% -\usepackage{program}% -\usepackage{listings}% -% %%%%%%%%%%%%%%%%%%%%%%%%%%%% Pagination Settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Line spacing @@ -457,7 +439,7 @@ \def\addressfont{\reset@font\fontsize{11bp}{13.5bp}\selectfont\titraggedcenter}% \def\abstractheadfont{\reset@font\fontsize{9bp}{11bp}\bfseries\selectfont\titraggedcenter}% \def\abstractsubheadfont{\reset@font\fontsize{9bp}{11bp}\bfseries\selectfont}% -\def\abstractfont{\reset@font\fontsize{9bp}{11bp}\selectfont\leftskip=24pt\rightskip=24pt}% +\def\abstractfont{\reset@font\fontsize{9bp}{11bp}\selectfont\leftskip=24pt\rightskip=24pt\parfillskip=0pt plus 1fil}% \def\keywordfont{\reset@font\fontsize{8bp}{9.5bp}\selectfont\leftskip=24pt\rightskip=24pt plus0.5fill}% \def\historyfont{\reset@font\fontsize{8bp}{9.5bp}\selectfont\leftskip=24pt\rightskip=24pt plus0.5fill}% @@ -475,8 +457,8 @@ \articletype{}% %% Meta Info -\def\@jyear{{0000}}% -\def\jyear#1{\gdef\@jyear{#1}}% +%\def\@jyear{{0000}}% +%\def\jyear#1{\gdef\@jyear{#1}}% %% Article Title @@ -503,11 +485,11 @@ \newif\if@auemail% \newif\if@corauemail% % -\def\au@and{\ifnum\punctcount=2\ and\else\unskip,\advance\punctcount by -1 \fi}% +\def\au@and{\ifnum\punctcount=2\ and\else\unskip, \advance\punctcount by -1 \fi}% % \def\author{\advance\aucount by 1\@ifstar\@@corrauthor\@@author}% % -\newcommand{\@@author}[2][]{\@corauemailfalse% +\newcommand{\@@author}[2][]{\def\@authfrstarg{#1}\@corauemailfalse% \g@addto@macro\artauthors{% \ifnum\aucount=1% \global\@auemailtrue% @@ -516,20 +498,20 @@ \fi% \Authorfont% \def\baselinestretch{1}% - \authorsep{#2}\unskip\ifx#1\empty\else\textsuperscript{\smash{{% - \@for\@@affmark:=#1\do{\edef\affnum{\@ifundefined{X@\@@affmark}{1}{\jmkRef{\@@affmark}}}% + \authorsep{#2}\unskip\ifx\@authfrstarg\empty\else\textsuperscript{\smash{{% + \@for\@@affmark:=#1\do{\edef\affnum{\@ifundefined{X@\@@affmark}{\@@affmark}{\jmkRef{\@@affmark}}}% \unskip\sep\affnum\let\sep=,}}}}\fi% - \def\authorsep{\au@and~}%%% + \def\authorsep{{\au@and} }%%% \global\let\sep\@empty\global\let\@corref\@empty% }}% % -\newcommand{\@@corrauthor}[2][]{\@corauemailtrue\advance\corraucount by 1% +\newcommand{\@@corrauthor}[2][]{\def\@authfrstarg{#1}\@corauemailtrue\advance\corraucount by 1% \g@addto@macro\artauthors{% \global\@auemailtrue% \Authorfont% \def\baselinestretch{1}% - \authorsep{#2}\unskip\ifx#1\empty\else\textsuperscript{\smash{{% - \@for\@@affmark:=#1\do{\edef\affnum{\@ifundefined{X@\@@affmark}{1}{\jmkRef{\@@affmark}}}% + \authorsep{#2}\unskip\ifx\@authfrstarg\empty\else\textsuperscript{\smash{{% + \@for\@@affmark:=#1\do{\edef\affnum{\@ifundefined{X@\@@affmark}{\@@affmark}{\jmkRef{\@@affmark}}}% \unskip\sep\affnum\let\sep=,}}}{*}\hskip-1pt}\fi\unskip% \def\authorsep{\au@and~}%%% \global\let\sep\@empty\global\let\@corref\@empty% @@ -537,8 +519,8 @@ %% %% Miscellaneous macros %% %% -\def\fnm#1{#1}% -\def\sur#1{#1}% +\def\fnm#1{\leavevmode\hbox{#1}}% +\def\sur#1{\unskip~\nobreak\leavevmode\hbox{#1}}% \def\spfx#1{#1}% \def\pfx#1{#1}% \def\sfx#1{#1}% @@ -649,7 +631,7 @@ \newcommand\subabstracthead{\@startsection{subsection}{2}{\z@}{3pt \@plus0ex \@minus0ex}{-.5em}{\abstractsubheadfont}} \def\@abstract{}% -\long\def\abstract#1 \par{\def\@abstract{% +\long\def\abstract#1{\def\@abstract{% \let\paragraph\subabstracthead% \abstractfont% \abstracthead*{\abstractname}% @@ -790,7 +772,12 @@ %%{\ifx\@motto\empty\else\@motto\fi}% \removelastskip\vskip36pt\vskip0pt}% +\usepackage{cuted}% +\@ifpackageloaded{cuted}{\gdef\@setmarks{}}{}% + %% Printing Article Header +\newdimen\firstpagehtcheck + \renewcommand\maketitle{\par \@afterindentfalse% \begingroup @@ -799,19 +786,31 @@ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\smash{\@thefnmark}}}}% \long\def\@makefntext##1{\parindent 1em\noindent\small\selectfont \hbox{\@textsuperscript{\normalfont\@thefnmark}}##1}% - \thispagestyle{titlepage}% \if@twocolumn \ifnum \col@number=\@ne% - \twocolumn[\@maketitle]% - \else - \twocolumn[\@maketitle]% - \fi% +\setbox0=\vbox{\@maketitle} +\firstpagehtcheck=\ht0% +\advance\firstpagehtcheck by \dp0% +\ifdim\firstpagehtcheck>\textheight% +\setbox1=\vsplit0to2\textheight% +\setbox1=\vbox{\unvbox1}% +\setbox2=\vbox{\unvbox0}% +\unvbox1% +\stripsep=0pt% +\begin{strip} +\unvbox2% +\end{strip} +\else +\twocolumn[\@maketitle]% +\fi +\else +\@maketitle +\fi% \else% \newpage% \global\@topnum\z@% Prevents figures from going at top of page. \@maketitle% \fi% - %%\thispagestyle{plain}% \endgroup% \ifx\@artnote\@empty\else\footnoteA{\@artnote}\fi% \ifx\@miscnote\@empty\else\footnoteA{\@miscnote\par}\fi% @@ -841,19 +840,34 @@ \def\headerfont{\reset@font\fontsize{10bp}{0bp}\selectfont}% \def\footerfont{\reset@font\fontsize{10bp}{0bp}\selectfont}% -\newdimen\opshortpage% +%% Regular Page Style +\def\ps@headings{% + \def\@oddfoot{\hfill\thepage\hfill}% + \let\@evenfoot\@oddfoot% + \def\@evenhead{% + \vbox to 0pt{\vspace*{-48pt}% + \hbox to \hsize{\hfill \relax\hfill}}\par%% + \hspace*{-\textwidth}\hbox to \hsize{\hfill}}% + \def\@oddhead{% + \vbox to 0pt{\vspace*{-48pt}% + \hbox to \hsize{\hfill \relax\hfill}}\par%% + \hspace*{-\textwidth}\hbox to \hsize{\hfill}}% + \let\@mkboth\markboth% + }% + +%\newdimen\opshortpage% -\def\printcopyright#1{#1}%% +%\def\printcopyright#1{#1}%% -\gdef\@copyrighttext{}% -\gdef\@copyrightyear{\@jyear}% +%\gdef\@copyrighttext{}% +%\gdef\@copyrightyear{\@jyear}% -\def\copytext#1#2{\gdef\@copyrightyear{#2}\def\@copyrighttext{\begin{minipage}[t]{\textwidth}\footerfont\textcopyright\ #1\ \@copyrightyear\end{minipage}}} +%\def\copytext#1#2{\gdef\@copyrightyear{#2}\def\@copyrighttext{\begin{minipage}[t]{\textwidth}\footerfont\textcopyright\ #1\ \@copyrightyear\end{minipage}}} -\copytext{Springer Science+Business Media B.V.}{\@jyear}% +%\copytext{Springer Science+Business Media B.V.}{\@jyear}% -\def\@opjournalheader{\leftmark\space\ {{(\@jyear),\ \textbf{\@jvol}:\@artid}} {\thepage{--}\pageref*{LastPage}}\\ -{\@DOI}}% +%\def\@opjournalheader{\undef\leftmark\space\ {{(\@jyear),\ \textbf{\@jvol}:\@artid}} {\thepage{--}\pageref*{LastPage}}\\ +%{\@DOI}}% %% Opening Page Style \def\ps@titlepage{% @@ -861,15 +875,14 @@ %%\let\@oddhead\@empty\let\@evenhead\@empty% \def\@oddhead{% \vbox to 0pt{\vspace*{-38pt}% - \hbox to \hsize{\hfill Springer Nature 2023 - \hfill}}}%% + \hbox to \hsize{\hfill \hfill}}}%% \let\@evenhead\@oddhead% - \def\@oddfoot{\vbox to 18pt{\vfill\reset@font\rmfamily \hspace{0.5\textwidth}\thepage}}%% + \def\@oddfoot{\vbox to 18pt{\vfill\reset@font\rmfamily\hfil\thepage\hfil}}%% \def\@evenfoot{}}% \def\ps@plain{\let\@mkboth\@gobbletwo% \let\@oddhead\@empty\let\@evenhead\@empty% -\def\@oddfoot{\vbox to 18pt{\vfill\reset@font\rmfamily\hfil\thepage\hfil}}% +\def\@oddfoot{\vbox to 18pt{\vfill\reset@font\rmfamily\hfil ddd\thepage\hfil}}% \let\@evenfoot\@oddfoot}% % @@ -1021,9 +1034,9 @@ \@itempenalty -\@lowpenalty \def\labelitemi{$\bullet$} \def\labelitemii{$\cdot$} \def\labelenumi{\theenumi.} \def\theenumi{\arabic{enumi}} -\def\labelenumii{(\alph{enumii})} \def\theenumii{\theenumi\alph{enumii}} -\def\labelenumiii{(\roman{enumiii})}\def\theenumiii{\theenumii.\roman{enumiii}} -\def\labelenumiv{(\Alph{enumiv})} \def\theenumiv{\theenumiii.\Alph{enumiv}} +\def\labelenumii{(\alph{enumii})} \def\theenumii{\alph{enumii}} +\def\labelenumiii{(\roman{enumiii})}\def\theenumiii{\roman{enumiii}} +\def\labelenumiv{(\Alph{enumiv})} \def\theenumiv{\Alph{enumiv}} % %%%%%%%%%%%%%%%%%%%%%%%%%%% Ordered & Unordered List %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1320,35 +1333,36 @@ \ifnum0=`{\fi}} \let\cline\cmidrule +\usepackage[figuresright]{rotating}% +\usepackage{threeparttable} + \let\tableorg\table% \let\endtableorg\endtable% +\let\sidewaystableorg\sidewaystable% +\let\endsidewaystableorg\endsidewaystable% + \renewenvironment{table}[1][]% {\begin{tableorg}[#1]% +\begin{center} +\begin{threeparttable} \tablebodyfont% \renewcommand\footnotetext[2][]{{\removelastskip\vskip3pt% \let\tablebodyfont\tablefootnotefont% \hskip0pt\if!##1!\else{\smash{$^{##1}$}}\fi##2\par}}% -}{\end{tableorg}} +}{\end{threeparttable}\end{center}\end{tableorg}} -% \let\sidewaystableorg\sidewaystable% -% \let\endsidewaystableorg\endsidewaystable% -% -% \newenvironment{sidewaystable}% -% {\begin{sidewaystableorg}% -% \tablebodyfont% -% \renewcommand\@makefntext[1]{{\vskip3pt% -% \let\tablebodyfont\tablefootnotefont% -% \hskip0pt{\smash{\@makefnmark}}##1\par}}% -% }{\end{sidewaystableorg}} - -\def\sidewaystablefn{\renewcommand\footnotetext[2][]{{\removelastskip\vskip3pt% +\renewenvironment{sidewaystable}[1][]% +{\begin{sidewaystableorg}[#1]% +\begin{center} +\begin{threeparttable} +\tablebodyfont% +\renewcommand\footnotetext[2][]{{\removelastskip\vskip3pt% \let\tablebodyfont\tablefootnotefont% \hskip0pt\if!##1!\else{\smash{$^{##1}$}}\fi##2\par}}% -}% -% +}{\end{threeparttable}\end{center}\end{sidewaystableorg}} + %%%%%%%%%%%%%%%%%%%%%%%%%%%% Other Env. %%%%%%%%%%%%%%%%%%%%%%%%% -% \def\quotefont{\reset@font\fontfamily{\rmdefault}\fontsize{9}{11}\selectfont}% @@ -1447,7 +1461,7 @@ \gdef\breakurldefns{% \if@pdflatex\else% \RequirePackage[hyphenbreaks]{breakurl}% - \let\href\burlalt% +% \let\href\burlalt% \fi}% \breakurldefns% % \bgroup @@ -1554,9 +1568,11 @@ \AtBeginDocument{% % +\DeclareRobustCommand{\S}{\ifmmode\mathsection\else\textsection\fi} + \DeclareSymbolFont{AMSa}{U}{msa}{m}{n}% \DeclareMathSymbol{\opensquare}{\mathord}{AMSa}{"03}% -\def\qedsymbol{\opensquare}% +\def\qedsymbol{\ensuremath{\opensquare}}% % \newenvironment{spiproof}[1][\proofname]{\par\removelastskip%\vspace*{2pt}% \pushQED{\qed}% @@ -1639,15 +1655,25 @@ \def\bibcommenthead{}% \if@Spr@basic@refstyle% - \usepackage[authoryear]{natbib}% +\if@Numbered@refstyle% + \usepackage[numbers,sort&compress]{natbib}% + \gdef\NumBib{YES}% +\else% + \usepackage[authoryear]{natbib}% \gdef\NumBib{NO}% +\fi% \bibliographystyle{sn-basic}% \setlength{\bibsep}{1em}% \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}% \fi% \if@Mathphys@refstyle% +\if@Numbered@refstyle% \usepackage[numbers,sort&compress]{natbib}% \gdef\NumBib{YES}% +\else% + \usepackage[authoryear]{natbib}% + \gdef\NumBib{NO}% +\fi% \bibliographystyle{sn-mathphys}% \setlength{\bibsep}{1em}% \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}% @@ -1660,15 +1686,25 @@ \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}% \fi% \if@Vancouver@refstyle% +\if@Numbered@refstyle% \usepackage[numbers,sort&compress]{natbib}% \gdef\NumBib{YES}% +\else% + \usepackage[authoryear]{natbib}% + \gdef\NumBib{NO}% +\fi% \bibliographystyle{sn-vancouver}% \setlength{\bibsep}{1em}% \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}% \fi% \if@APA@refstyle% +\if@Numbered@refstyle% + \usepackage[natbibapa]{apacite}% + \gdef\NumBib{YES}% +\else% \usepackage[natbibapa]{apacite}% \gdef\NumBib{NO}% +\fi% \bibliographystyle{sn-apacite}% \def\refdoi#1{\urlstyle{rm}\url{#1}}% \renewcommand{\doiprefix}{}% @@ -1679,8 +1715,13 @@ \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}% \fi% \if@Chicago@refstyle% - \usepackage[authoryear]{natbib}% +\if@Numbered@refstyle% + \usepackage[numbers,sort&compress]{natbib}% + \gdef\NumBib{YES}% +\else% + \usepackage[authoryear]{natbib}% \gdef\NumBib{NO}% +\fi% \bibliographystyle{sn-chicago}% \hypersetup{urlcolor=black,colorlinks=false,pdfborder={0 0 0}}\urlstyle{same}% \setlength{\bibsep}{1em}% @@ -1689,7 +1730,7 @@ \if@Standard@Nature@refstyle% \usepackage[numbers,sort&compress]{natbib}% \gdef\NumBib{YES}% - \bibliographystyle{sn-standardNature}% + \bibliographystyle{sn-nature}% \setlength{\bibsep}{1em}% \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}% \fi% @@ -1757,7 +1798,14 @@ $\kern\wd\@ne\kern -\@tempdima\left\@firstoftwo#1% \linenoon% \def\lineno@off{\unsetvruler}% \fi% - %% url macros %% +\gdef\orcidlogo{% +\includegraphics{Orcidlogo.eps}% +}% + +\gdef\orcid#1{\href{#1}{\orcidlogo}}% + + \endinput +