\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lh-author-template}[2026/07/30 L&H author-facing manuscript interface]

% Display a linked ORCID iD beside the relevant author name, following the
% structured-author approach used by major scholarly publishers.
\RequirePackage{orcidlink}
\RequirePackage{keyval}
\hypersetup{hidelinks}

% This package keeps production metadata out of the author-input area.
% Volume, issue, article number, DOI, page range, editorial dates, handling
% editor, copyright, and license information are added by the editorial office
% after acceptance. The first-page layout retains a clearly labelled editorial
% information area so that the published article can show "Communicated by"
% without asking authors to supply it.

\makeatletter

\def\LH@journalname{L\&H Scientific Publishing journal}
\def\LH@issn{}
\def\LH@eissn{}
\def\LH@abstractoffset{-5mm}
\@ifclassloaded{jande}{%
  \def\LH@journalname{Journal of Applied Nonlinear Dynamics}%
  \def\LH@issn{2164-6457}%
  \def\LH@eissn{2164-6473}%
  \renewcommand{\jand@pubinfo}[2]{%
    \centering Manuscript submitted for peer review%
  }%
}{}
\@ifclassloaded{dnce}{%
  \def\LH@journalname{Discontinuity, Nonlinearity, and Complexity}%
  \def\LH@issn{2164-6376}%
  \def\LH@eissn{2164-6414}%
  \renewcommand{\dnc@pubinfo}[2]{%
    \centering Manuscript submitted for peer review%
  }%
}{}
\@ifclassloaded{jeame}{%
  \def\LH@journalname{Journal of Environmental Accounting and Management}%
  \def\LH@issn{2325-6192}%
  \def\LH@eissn{2325-6206}%
  \def\LH@abstractoffset{-4mm}%
  \renewcommand{\jeam@pubinfo}[2]{%
    \centering Manuscript submitted for peer review%
  }%
}{}
\@ifclassloaded{jvtsde}{%
  \def\LH@journalname{Journal of Vibration Testing and System Dynamics}%
  \def\LH@issn{2475-4811}%
  \def\LH@eissn{2475-482X}%
  \def\LH@abstractoffset{-4mm}%
  \renewcommand{\jvtsd@pubinfo}[2]{%
    \centering Manuscript submitted for peer review%
  }%
}{}

\long\def\LH@abstracttext{Replace this text with a concise abstract.}
\def\LH@keywordtext{keyword one; keyword two; keyword three}
\def\LH@shorttitle{Manuscript submitted for peer review}
\def\LH@communicatedby{}
\def\LH@receiveddate{}
\def\LH@accepteddate{}
\def\LH@onlinedate{}
\def\LH@volume{}
\def\LH@issue{}
\def\LH@year{}
\def\LH@firstpage{1}
\def\LH@doi{}
\newif\ifLH@production
\LH@productionfalse

\newcommand{\LHAbstract}[1]{\long\gdef\LH@abstracttext{#1}}
\newcommand{\LHKeywords}[1]{\gdef\LH@keywordtext{#1}}
\newcommand{\LHShortTitle}[1]{\gdef\LH@shorttitle{#1}}
\newcommand{\LHORCID}[1]{\,\orcidlink{#1}}

% Editorial-office interface. Authors should not use this command. It allows
% production staff to insert the handling editor and the final editorial dates
% without changing the established title/abstract geometry. Empty defaults
% preserve the labelled fields in author copies without fabricating metadata.
\newcommand{\LHEditorialMetadata}[4]{%
  \gdef\LH@communicatedby{#1}%
  \gdef\LH@receiveddate{#2}%
  \gdef\LH@accepteddate{#3}%
  \gdef\LH@onlinedate{#4}%
}

% Central production interface. This command is intended for editorial-office
% use only and switches the document from submission mode to publication mode.
\define@key{LHproduction}{volume}{\gdef\LH@volume{#1}}
\define@key{LHproduction}{issue}{\gdef\LH@issue{#1}}
\define@key{LHproduction}{year}{\gdef\LH@year{#1}}
\define@key{LHproduction}{first-page}{\gdef\LH@firstpage{#1}}
\define@key{LHproduction}{doi}{\gdef\LH@doi{#1}}
\define@key{LHproduction}{editor}{\gdef\LH@communicatedby{#1}}
\define@key{LHproduction}{received}{\gdef\LH@receiveddate{#1}}
\define@key{LHproduction}{accepted}{\gdef\LH@accepteddate{#1}}
\define@key{LHproduction}{online}{\gdef\LH@onlinedate{#1}}

\newcommand{\LHProductionMetadata}[1]{%
  \setkeys{LHproduction}{#1}%
  \global\LH@productiontrue
  \setcounter{page}{\LH@firstpage}%
  \@ifclassloaded{jande}{%
    \renewcommand{\jand@pubinfo}[2]{%
      \centering \LH@journalname\ \LH@volume(\LH@issue) (\LH@year) ##1--##2}%
  }{}%
  \@ifclassloaded{dnce}{%
    \renewcommand{\dnc@pubinfo}[2]{%
      \centering \LH@journalname\ \LH@volume(\LH@issue) (\LH@year) ##1--##2}%
  }{}%
  \@ifclassloaded{jeame}{%
    \renewcommand{\jeam@pubinfo}[2]{%
      \centering \LH@journalname\ \LH@volume(\LH@issue) (\LH@year) ##1--##2}%
  }{}%
  \@ifclassloaded{jvtsde}{%
    \renewcommand{\jvtsd@pubinfo}[2]{%
      \centering \LH@journalname\ \LH@volume(\LH@issue) (\LH@year) ##1--##2}%
  }{}%
  \fancypagestyle{firstpage}{%
    \fancyhf{}%
    \fancyfoot[LO,LE]{%
      \makebox[0pt][l]{\parbox[b]{\textwidth}{\footnotesize
        ISSN~\LH@issn, eISSN~\LH@eissn/\$-see front materials
        \copyright~\LH@year~L\&H Scientific Publishing, LLC. All rights reserved.\\[-1pt]
        DOI: \href{https://doi.org/\LH@doi}{\LH@doi}%
      }}%
    }%
    \renewcommand{\headrulewidth}{0pt}%
    \renewcommand{\footrulewidth}{0pt}%
  }%
}

% Preserve the established L&H title and abstract geometry. The complete
% editorial-information area remains visible, but its values are blank until
% production staff supplies them after acceptance.
\newcommand{\LHMakeTitle}{%
  \titlemark{\LH@shorttitle}%
  \abstract{%
    \begin{table}[h!]
      \vspace*{-5mm}\doublerulesep 0.05pt\tabcolsep 7.8mm\vspace*{2mm}
      \setlength{\tabcolsep}{7.5pt}
      \hspace*{-2.5mm}\begin{tabular*}{17.145cm}{r|||||l}
        \multicolumn{2}{l}{\rule[-6pt]{17.145cm}{.01pt}}\\
        \parbox[t]{6cm}{\small
          \vspace*{.5mm}
          \hfill{\bf Submission Info}\par
          \vspace*{2mm}
          \raggedleft Communicated by\ifx\LH@communicatedby\@empty\else\ \LH@communicatedby\fi\par
          \hfill Received\ifx\LH@receiveddate\@empty\else\ \LH@receiveddate\fi\par
          \hfill Accepted\ifx\LH@accepteddate\@empty\else\ \LH@accepteddate\fi\par
          \hfill Available online\ifx\LH@onlinedate\@empty\else\ \LH@onlinedate\fi\par
          \vspace*{2mm}
          \noindent\rule[-2pt]{6.3cm}{.1pt}\par
          \vspace*{2mm}
          \hfill{\bf Keywords}\par
          \vspace*{2mm}
          \raggedleft\LH@keywordtext\par
        }
        &
        \parbox[t]{10.5cm}{
          \vspace*{.5mm}
          {\normalsize\bf Abstract}\par
          \renewcommand{\baselinestretch}{.8}
          \normalsize\vspace*{2mm}{\small\LH@abstracttext}
          \par
          \ifLH@production
            \vspace*{2mm}\hfill{\scriptsize
              \copyright~\LH@year~L\&H Scientific Publishing, LLC. All rights reserved.}%
          \fi
          \par\par
        }\\[\LH@abstractoffset]
        &\\
        \multicolumn{2}{l}{\rule[15pt]{17.145cm}{.01pt}}\\
      \end{tabular*}
      \vspace*{-7mm}
    \end{table}
  }%
  \maketitle
}

% A submission manuscript must not display a fabricated DOI, issue, page range,
% copyright statement, or editorial dates.
\fancypagestyle{firstpage}{%
  \fancyhf{}
  \fancyfoot[C]{\footnotesize Manuscript submitted to \LH@journalname\ for peer review}
  \renewcommand{\headrulewidth}{0pt}
  \renewcommand{\footrulewidth}{0pt}
}

\makeatother

\endinput
