Skip to content

Commit

Permalink
Merge pull request #67 from beneisner/master
Browse files Browse the repository at this point in the history
Added algorithm2e, as well as dependencies
  • Loading branch information
patbro authored Dec 17, 2021
2 parents b061079 + a7fdc89 commit 6dd150e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ latex_package(
tests = ["adjustbox_test.tex"],
)

latex_package(
name = "algorithm2e",
srcs = [
":float",
":ifoddpage",
":ifthen",
":relsize",
":xspace",
"@texlive_texmf__texmf-dist__tex__latex__algorithm2e",
],
tests = ["algorithm2e_test.tex"]
)

latex_package(
name = "amsgen",
srcs = [":amsmath"],
Expand Down Expand Up @@ -508,6 +521,12 @@ latex_package(
tests = ["ifluatex_test.tex"],
)

latex_package(
name = "ifoddpage",
srcs = ["@texlive_texmf__texmf-dist__tex__latex__ifoddpage"],
tests = ["ifoddpage_test.tex"],
)

latex_package(
name = "ifpdf",
srcs = [":graphics_oberdiek"],
Expand Down Expand Up @@ -779,6 +798,12 @@ latex_package(
tests = ["placeins_test.tex"],
)

latex_package(
name = "relsize",
srcs = ["@texlive_texmf__texmf-dist__tex__latex__relsize"],
tests = ["relsize_test.tex"],
)

latex_package(
name = "silence",
srcs = ["@texlive_texmf__texmf-dist__tex__latex__silence"],
Expand Down
19 changes: 19 additions & 0 deletions packages/algorithm2e_test.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
% Example from https://www.overleaf.com/learn/latex/Algorithms#The_algorithm2e_package
\documentclass{article}
\usepackage{algorithm2e}
\RestyleAlgo{ruled}
\begin{document}
\begin{algorithm}
$i\gets 10$\;
\eIf{$i\geq 5$}
{
$i\gets i-1$\;
}{
\If{$i\leq 3$}
{
$i\gets i+2$\;
}
}
\end{algorithm}

\end{document}
10 changes: 10 additions & 0 deletions packages/ifoddpage_test.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
\documentclass{article}
\usepackage{ifoddpage}
\begin{document}
\checkoddpage
\ifoddpage
Odd.
\else
Even.
\fi
\end{document}
6 changes: 6 additions & 0 deletions packages/relsize_test.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
% Example from: https://tex.stackexchange.com/questions/117893/why-does-relsize-1-in-normal-size-not-result-in-smaller
\documentclass{article}
\usepackage{relsize}
\begin{document}
\texttt{\small k1}: \texttt{\smaller k1} \textsmaller{\texttt{k1}} \texttt{\relsize{-1} k1} \texttt{\relsize{0} k1} \texttt{\footnotesize k1}
\end{document}

0 comments on commit 6dd150e

Please sign in to comment.