summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/revquantum/Install.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/revquantum/Install.ps1')
-rw-r--r--macros/latex/contrib/revquantum/Install.ps122
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/revquantum/Install.ps1 b/macros/latex/contrib/revquantum/Install.ps1
new file mode 100644
index 0000000000..eac3910e6f
--- /dev/null
+++ b/macros/latex/contrib/revquantum/Install.ps1
@@ -0,0 +1,22 @@
+param(
+ [switch] $CTAN
+)
+
+#region Bootstrap PoShTeX
+if (!(Get-Module -ListAvailable -Name posh-tex -ErrorAction SilentlyContinue)) {
+ Install-Module posh-tex -Scope CurrentUser
+}
+Import-Module posh-tex
+#endregion
+
+Out-TeXStyle revquantum
+Out-TeXStyleDocumentation revquantum
+
+Install-TeXUserResource tex/latex/revquantum revquantum.sty, revquantum.pdf
+
+Install-PandocUserResource templates pandoc/templates/revquantum.latex -ErrorAction Continue
+
+if ($CTAN) {
+ Invoke-TeXBuildEngine example.tex
+ Export-CTANArchive -ArchiveLayout Simple revquantum.ins, revquantum.pdf, README.md, example.tex, example.pdf, Install.ps1
+} \ No newline at end of file