Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzbart/e690f141ab30b8d3d4e7 to your computer and use it in GitHub Desktop.
Save nzbart/e690f141ab30b8d3d4e7 to your computer and use it in GitHub Desktop.
#Requires -RunAsAdministrator
choco install -y python2-x86_32 miktex
python -m pip install --upgrade pip
python -m pip install pygments
$path = [Environment]::GetEnvironmentVariable('PATH', 'Machine')
$scriptPath = 'C:\tools\python2-x86_32\Scripts'
if($path -notlike ("*" + $scriptPath + "*")) {
[Environment]::SetEnvironmentVariable('PATH', "$PATH;$scriptPath", 'Machine')
}
#Generate document with `pdflatex ".\Sample document.tex" -shell-escape`
\documentclass{article}
\usepackage{minted}
\begin{document}
\inputminted{csharp}{SampleSource.cs}
\end{document}
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment