| 1 |
param( |
| 2 |
[switch] $CTAN |
| 3 |
) |
| 4 |
|
| 5 |
#region Bootstrap PoShTeX |
| 6 |
if (!(Get-Module -ListAvailable -Name posh-tex -ErrorAction SilentlyContinue)) { |
| 7 |
Install-Module posh-tex -Scope CurrentUser |
| 8 |
} |
| 9 |
Import-Module posh-tex |
| 10 |
#endregion |
| 11 |
|
| 12 |
Out-TeXStyle revquantum |
| 13 |
Out-TeXStyleDocumentation revquantum |
| 14 |
|
| 15 |
Install-TeXUserResource tex/latex/revquantum revquantum.sty, revquantum.pdf |
| 16 |
|
| 17 |
Install-PandocUserResource templates pandoc/templates/revquantum.latex -ErrorAction Continue |
| 18 |
|
| 19 |
if ($CTAN) { |
| 20 |
Invoke-TeXBuildEngine example.tex |
| 21 |
Export-CTANArchive -ArchiveLayout Simple revquantum.ins, revquantum.pdf, README.md, example.tex, example.pdf, Install.ps1 |
| 22 |
} |