diff options
author | Karl Berry <karl@freefriends.org> | 2019-01-15 21:41:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-01-15 21:41:30 +0000 |
commit | baa99efc81959c432cc7b7987dd75d8a21f4e570 (patch) | |
tree | 77b32e506fa6d5ca2c9014fbb00d0ac15b9a3f24 /Master/texmf-dist/tex | |
parent | a076fece1c9c051b3d7a4c2af8098ff04cb3bdec (diff) |
qsharp (15jan19)
git-svn-id: svn://tug.org/texlive/trunk@49722 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/qsharp/qsharp.sty | 72 |
1 files changed, 72 insertions, 0 deletions
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'. |