Skip to content

Commit

Permalink
Fix broken extensions from precommit running on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
profvjreddi committed Feb 4, 2025
1 parent 14c1176 commit f35dda5
Show file tree
Hide file tree
Showing 19 changed files with 94 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
\vspace{$titlepage-theme.affiliation-space-between$}$endif$
$endfor$
\vspace{1\baselineskip}
\vspace{1\baselineskip}
$if(author)$
$for(by-author)$
$if(by-author.email)$
Expand Down
5 changes: 2 additions & 3 deletions _extensions/nmfs-opensci/titlepage/_coverpage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$endif$

\newcommand{\coverauthorstyle}[1]{{$if(coverpage-theme.author-fontsize)$\fontsize{$coverpage-theme.author-fontsize$}{$coverpage-theme.author-spacing$}\selectfont
$endif$$for(coverpage-theme.author-fontstyle)$\$coverpage-theme.author-fontstyle${$endfor$#1$for(coverpage-theme.author-fontstyle)$}$endfor$}}
$endif$$for(coverpage-theme.author-fontstyle)$\$coverpage-theme.author-fontstyle${$endfor$$if(coverpage-theme.author-color)$\textcolor{$coverpage-theme.author-color$}$endif${#1}$for(coverpage-theme.author-fontstyle)$}$endfor$}}
\begin{tikzpicture}[remember picture, overlay, inner sep=0pt, outer sep=0pt]
Expand Down Expand Up @@ -55,8 +55,7 @@
{%
$if(coverpage-theme.author-fontsize)$\fontsize{$coverpage-theme.author-fontsize$}{$coverpage-theme.author-spacing$}\selectfont
$endif$$if(coverpage-theme.author-fontfamily)$\coverpageauthorfont
$endif$\node[anchor=$coverpage-theme.author-anchor$, align=$coverpage-theme.author-align$, rotate=$coverpage-theme.author-rotate$] (Author1) at ($$(current page.south west)+(\authorlocationleft,\authorlocationbottom)$$) [text width = $coverpage-theme.author-width$$if(coverpage-theme.author-node-spec)$, $coverpage-theme.author-node-spec$$endif$] {
$if(coverpage-theme.author-color)$\textcolor{$coverpage-theme.author-color$}$endif$\coverauthorstyle{$for(coverpage-author)$$coverpage-author$$sep$$coverpage-theme.author-sep$$endfor$\\}};
$endif$\node[anchor=$coverpage-theme.author-anchor$, align=$coverpage-theme.author-align$, rotate=$coverpage-theme.author-rotate$] (Author1) at ($$(current page.south west)+(\authorlocationleft,\authorlocationbottom)$$) [text width = $coverpage-theme.author-width$$if(coverpage-theme.author-node-spec)$, $coverpage-theme.author-node-spec$$endif$] {\coverauthorstyle{$for(coverpage-author)$$coverpage-author$$sep$$coverpage-theme.author-sep$$endfor$\\}};
}
\end{scope}
$endif$
Expand Down
2 changes: 1 addition & 1 deletion _extensions/nmfs-opensci/titlepage/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: titlepage
author: Eli Holmes
quarto-required: ">=1.1.0"
version: 3.3.10
version: 3.3.11
contributes:
format:
pdf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
\headerstyled
\vspace{0.025\textheight}
\vspace{0.025\textheight}
\rule{0.3\textwidth}{0.4pt} % Short horizontal rule under the title
}
$endif$
$if(titlepage-style-code.header.doublelinetight)$
\newcommand{\titlepageheaderblock}{
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\HRule\\[0.4cm]
Expand Down Expand Up @@ -90,13 +90,13 @@
\footerstyled
\vspace{0.025\textheight}
\vspace{0.025\textheight}
\rule{0.3\textwidth}{0.4pt} % Short horizontal rule under the title
}
$endif$
$if(titlepage-style-code.footer.doublelinetight)$
\newcommand{\titlepagefooterblock}{
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\HRule\\[0.4cm]
Expand Down Expand Up @@ -138,13 +138,13 @@
\datestyled
\vspace{0.025\textheight}
\vspace{0.025\textheight}
\rule{0.3\textwidth}{0.4pt} % Short horizontal rule under the title
}
$endif$
$if(titlepage-style-code.date.doublelinetight)$
\newcommand{\titlepagedateblock}{
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\HRule\\[0.4cm]
Expand All @@ -153,3 +153,4 @@
\HRule\\
}
$endif$
4 changes: 2 additions & 2 deletions _extensions/nmfs-opensci/titlepage/_title-themes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
\titleandsubtitle
\vspace{0.025\textheight}
\vspace{0.025\textheight}
\rule{0.3\textwidth}{0.4pt} % Short horizontal rule under the title
}$endif$
$--
$if(titlepage-style-code.title.doublelinetight)$
\newcommand{\titlepagetitleblock}{
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\HRule\\[0.4cm]
Expand Down
3 changes: 2 additions & 1 deletion _extensions/nmfs-opensci/titlepage/_titlepage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
\newcommand{\vrulecode}{\noindent\colorbox{$titlepage-theme.vrule-color$}{\begin{minipage}[b][0.99\textheight][c]{\vrulewidth}$if(titlepage-theme.vrule-text)$
\centering\rotatebox{90}{\makebox[0.88\textheight][r]{$if(titlepage-theme.vrule-text-fontstyle)$$for(titlepage-theme.vrule-text-fontstyle)$\$titlepage-theme.vrule-text-fontstyle${$endfor$$endif$$if(titlepage-theme.vrule-text-color)$\color{$titlepage-theme.vrule-text-color$}$endif$$titlepage-theme.vrule-text$$for(titlepage-theme.vrule-text-fontstyle)$}$endfor$}}$endif$\end{minipage}}}
$else$
\newcommand{\vrulecode}{\rule{\vrulewidth}{\textheight}}
\newcommand{\vrulecode}{\textcolor{$titlepage-theme.vrule-color$}{\rule{\vrulewidth}{\textheight}}}
$endif$
\newlength{\vrulewidth}
\setlength{\vrulewidth}{$titlepage-theme.vrule-width$}
Expand Down Expand Up @@ -210,3 +210,4 @@
\clearpage
$if(titlepage-geometry)$\restoregeometry
$endif$%%% TITLE PAGE END
1 change: 1 addition & 0 deletions _extensions/nmfs-opensci/titlepage/before-body.tex
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@
$endif$
%%%%% end titlepage extension code
28 changes: 15 additions & 13 deletions _extensions/nmfs-opensci/titlepage/coverpage-theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ This function assigns the themevals to the meta data
["date-style"] = "none",
}
assign_value(themevals)

return m
end,
["author"] = function (m)
Expand All @@ -124,7 +124,7 @@ This function assigns the themevals to the meta data
["date-style"] = "none",
}
assign_value(themevals)

return m
end,
["titleauthor"] = function (m)
Expand All @@ -137,15 +137,15 @@ This function assigns the themevals to the meta data
["date-style"] = "none",
}
assign_value(themevals)

return m
end,
["true"] = function (m)
themevals = {
["page-align"] = "left"
}
assign_value(themevals)

return m
end,
["great-wave"] = function (m)
Expand All @@ -158,7 +158,7 @@ This function assigns the themevals to the meta data
["date-style"] = "none",
}
assign_value(themevals)

return m
end,
["otter"] = function (m)
Expand All @@ -171,11 +171,11 @@ This function assigns the themevals to the meta data
["date-style"] = "none",
}
assign_value(themevals)

return m
end,
}

m['coverpage-file'] = false
if m.coverpage then
choice = pandoc.utils.stringify(m.coverpage)
Expand Down Expand Up @@ -217,7 +217,7 @@ This function assigns the themevals to the meta data
-- Only for themes
-- coverpage-theme will exist if using a theme
if not m['coverpage-file'] and m['coverpage-true'] then

--[[
Set up the demos
--]]
Expand Down Expand Up @@ -287,7 +287,7 @@ Set up the demos
end
end


--[[
Error checking and setting the style codes
--]]
Expand Down Expand Up @@ -387,7 +387,7 @@ Set affiliation sep character
Set the defaults for the coverpage alignments
default coverpage alignment is left
because coverpage uses tikzpicture, the alignments of the elements must be set
--]]
--]]
if isEmpty(m['coverpage-theme']["page-align"]) then
m['coverpage-theme']["page-align"] = "left"
end
Expand Down Expand Up @@ -470,7 +470,7 @@ Set left and width alignments, bottom distance and rotation
end -- rotate
end -- if style not none
end -- for loop


--[[
Set logo defaults
Expand All @@ -481,9 +481,11 @@ Set logo defaults
pandoc.RawInline("latex","0.2\\paperwidth")}
end
end

end -- end the theme section

return m

end


Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,4 @@ proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

2 changes: 1 addition & 1 deletion _extensions/nmfs-opensci/titlepage/mathjax.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
tags: 'ams' // should be 'ams', 'none', or 'all'
}
};
</script>
</script>
1 change: 1 addition & 0 deletions _extensions/nmfs-opensci/titlepage/pandoc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,4 @@
$endif$

$endif$

Loading

0 comments on commit f35dda5

Please sign in to comment.