add arguments to xcolor #439
-
I was writing a documentation guide for some code that I made in Julia and created a new syntax highlight with the \lstset{
basicstyle=\ttfamily\small,
columns=fixed,
numberstyle=\small\ttfamily\color{Gray},
stepnumber=1,
numbersep=10pt,
numberfirstline=true,
numberblanklines=true,
tabsize=4,
extendedchars=true,
breaklines=true,
keywordstyle=\color{magenta},
keywordstyle=[2]{\color{blue}},
keywordstyle=[3]{\color{cyan}},
identifierstyle=, % using emph or index keywords
commentstyle=\sffamily\color{OliveGreen},
stringstyle=\color{Maroon},
showstringspaces=false,
showtabs=false,
upquote=false,
texcl=true % interpet comments as LaTeX
}
\lstdefinelanguage{julia}{
keywordsprefix=::,
morekeywords = {exit,whos,edit,load,is,isa,isequal,typeof,tuple,ntuple,uid,hash,finalizer,convert,promote,subtype,typemin,typemax,realmin,realmax,sizeof,eps,promote_type,method_exists,applicable,invoke,dlopen,dlsym,system,error,throw,assert,new,Inf,Nan,pi,im,begin,while,for,in,return,break,continue,macro,quote,let,if,elseif,else,try,catch,end,bitstype,ccall,do,using,module,import,export,importall,baremodule,immutable,local,global,const,Bool,Integer,Int8,Int16,Int32,Int64,Uint,Uint8,Uint16,Uint32,Uint64,Real,Float,Float32,Float64,Complex64,Complex128,Any,Nothing,AbstractString,String,Char,None,function,type,typealias,abstract,ispath},
morekeywords=[2]{@info,@eval,@pump,@valve,@valves,@step,@uvc,@monitor,@csinfo,@livalve,sleep,OceanOptics,RS232,K501_Pump,S1050_Pump,open_port,write,str_from_serialport,UVcell,SartoriusBalance,calibrate_pump,monitor_balance,update_calibs,reset_calibs,rm_calibs,ValveType,pulse_experiment,equilibration},
morekeywords=[3]{true,false},
sensitive=true,
morecomment=[l]{\#},
morestring=[b]',
morestring=[b]"
} I was trying to add this code to the template but an error occurred stating the Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
In file \PassOptionsToPackage{usenames,dvipsnames}{xcolor} and let me know if it worked as you expected. |
Beta Was this translation helpful? Give feedback.
In file
Config/0_memoir.tex
add\PassOptionsToPackage{usenames,dvipsnames}{xcolor}
and let me know if it worked as you expected.