TeX - LaTeX Asked on August 15, 2021
I want to add the attached data to my Latex document with the same format, is there an environment that can help to recreate the same format
This the best I could do
documentclass[border=2cm]{standalone}
usepackage[paperwidth=841pt,paperheight=595pt,top=28pt,right=28pt,bottom=28pt,left=28pt, includefoot, includehead]{geometry}
usepackage{xcolor,listings}
usepackage{textcomp}
usepackage{color}
usepackage{inconsolata}
definecolor{codegreen}{HTML}{FEDE58}
definecolor{codegray}{HTML}{FEDE58}
definecolor{codepurple}{HTML}{98BFDA}
definecolor{bookColor}{cmyk}{0,0,0,0.90}
color{bookColor}
lstset{upquote=true}
lstdefinestyle{mystyle}{
backgroundcolor=color{white},
commentstyle=color{codegreen},
keywordstyle=color{codepurple},
numberstyle=numberstyle,
stringstyle=color{codepurple},
basicstyle=ttfamily,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=10pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
}
lstset{style=mystyle}
newcommandnumberstyle[1]{%
footnotesize
color{codegray}%
ttfamily
ifnum#1<10 0fi#1 |%
}
begin{document}
begin{lstlisting}[ language=SQL,
deletekeywords={IDENTITY},
deletekeywords={[2]INT},
morekeywords={clustered},
framesep=8pt,
xleftmargin=40pt,
framexleftmargin=40pt,
frame=tb,
framerule=0pt ]
CREATE TABLE ZONES_PLAN (
ZONE_ID INT (10) primary key,
Geo_Location_X int (20) NOT NULL,
Geo_Location_Y int (20) NOT NULL,
ZONE_PRIOROTY INT (1));
end{lstlisting}
end{document}
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP