From baa99efc81959c432cc7b7987dd75d8a21f4e570 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 15 Jan 2019 21:41:30 +0000 Subject: qsharp (15jan19) git-svn-id: svn://tug.org/texlive/trunk@49722 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/qsharp/qsharp.sty | 72 +++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/qsharp/qsharp.sty (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/qsharp/qsharp.sty b/Master/texmf-dist/tex/latex/qsharp/qsharp.sty new file mode 100644 index 00000000000..8e6d17f4cf1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/qsharp/qsharp.sty @@ -0,0 +1,72 @@ +%% +%% This is file `qsharp.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% qsharp.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% TODO: license header +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{qsharp} + [2019/01/14 v0.3.1901.1401 Initial public version.] + + +\usepackage{listings} +\usepackage{xcolor} + + + + +\newcommand{\qs}{Q\#} + + + + +\definecolor{cud-reddish-purple}{RGB}{204,121,167} +\colorlet{doc-comment}{cud-reddish-purple!60!black} + + + + +\makeatletter +\lstdefinelanguage{QSharp}{ + morekeywords={ + namespace, + open, + operation, + function, + body, + adjoint, + auto, + controlled, + let, + set, + mutable, + using, + borrowing, + Adjoint, + Qubit, Unit, + Zero, One + }, + % Define built-in primitives as second-order keywords. + morekeywords=[2]{H, CNOT, I, X, Y, Z, Message}, + sensitive=true, + morecomment=[l]{//}, + morecomment=[l][\lst@commentstyle\color{doc-comment}]{///} +} +\makeatother + + +\lstdefinestyle{QSharp}{ + language=QSharp, + mathescape=true +} + + +\endinput +%% +%% End of file `qsharp.sty'. -- cgit v1.2.3