% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
\documentclass[12pt,letterpaper]{article}
\usepackage{fancyvrb}
\usepackage{fvextra}
\renewcommand{\seriesdefault}{bx}
\renewcommand{\bfseries}{\Huge{}}
\begin{document}
\section{Notes}
\Huge{}
To use the Verbatim environment you have to add the following line to the preamble of your document: \verb!\usepackage{fancyvrb}! and \verb!\usepackage{fvextra}!
\begin{Verbatim}[breaklines=true, breakanywhere=true]
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
\documentclass[12pt,letterpaper]{article}
\begin{document}
\begin{verbatim}
Hello World
\end{verbatim}
\end{document}
\end{Verbatim}
\end{document}
2. Save file as CodeHighlightVerbatim1.tex
3. then build or typeset or compile the Latex code.
Tidak ada komentar:
Posting Komentar