Skip to content

Commit

Permalink
Trying to change the codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
ElBi21 committed Oct 15, 2024
1 parent e250bdd commit 92493ff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
Binary file modified main.pdf
Binary file not shown.
20 changes: 13 additions & 7 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,19 @@ \section{Custom boxes}
\[ \lim_{x \to 0} \log_{10}(x+1) \eq +\infty \]
\end{example}

%\begin{codeblock}
% \begin{lstlisting}[language = Python]
%def main():
% for i in range(40):
% print(i)
% return None\end{lstlisting}
%\end{codeblock}
\pagebreak

\begin{codeblock}
\begin{lstlisting}[language = Python]
def main():
for i in range(40):
print(i)
return None\end{lstlisting}
\end{codeblock}

\texttt{Hello there}

\fontfamily{cascadia-code}\selectfont{AAA}


\chapter{The \texttt{notexmacros} package}
Expand Down
11 changes: 6 additions & 5 deletions notex.cls
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

\RequirePackage[T1]{fontenc} % Package for font encoding
\RequirePackage{fouriernc} % Package with the font
%\RequirePackage{sourcecodepro}
\RequirePackage{cascadia-code}
%\RequirePackage[nottdefault]{sourcecodepro}

\RequirePackage{amsmath}
\RequirePackage{amssymb}
Expand Down Expand Up @@ -313,13 +314,13 @@
breakable,
rounded corners=all,
arc=1mm,
leftrule=3mm,
%leftrule=3mm,
skin first=enhanced,
skin middle=enhanced,
skin last=enhanced,
overlay={
\node[rotate=90, anchor=east] at ([xshift=1.5mm, yshift=-1.1mm]frame.north west) {\boxdesc{Code}};
},
%overlay={
% \node[rotate=90, anchor=east] at ([xshift=1.5mm, yshift=-1.1mm]frame.north west) {\boxdesc{Code}};
%},
}


Expand Down

0 comments on commit 92493ff

Please sign in to comment.