Created
January 19, 2025 16:48
-
-
Save kumanna/eb81deae66e34809b9074be1f3f6e9d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.log | |
slide.pdf | |
*.tuc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\startenvironment env-slides | |
\def\Largefont{16pt} | |
\def\Mediumfont{14pt} | |
\def\Smallfont{12pt} | |
\setuppapersize[SW][SW] | |
\setuppagenumbering[location=bottom] | |
\setupinteraction[state=start] | |
%\setuppagetransitions[dissolve] | |
\definefontfamily [myfamily] [serif] [Fontin][scale=1.66] | |
\definefontfamily [myfamily] [sans] [Delicious][scale=1.66] | |
\definefontfamily [myfamily] [math] [Neo Euler][scale=1.66] | |
\definefontfamily [myfamily] [mono] [DejaVu Sans Mono][scale=1] | |
\setupbodyfont[myfamily] | |
\setuptolerance[verytolerant] | |
% COLOURS | |
\startnotmode[nooverlay] | |
\setupcolors[state=start] | |
%%\startcolor[black] | |
\definecolor[b][r=0.13,g=0.13,b=0.7] | |
\definecolor[a][r=0,g=0,b=0.01] | |
\definecolor[w][r=1,g=1,b=1] | |
%\definecolor[b][b=0.0,g=0.0,r=0.0] | |
%\definecolor[a][b=0.4,g=0.0,r=0.0] | |
\definecolor[emphasize][r=1.0,g=0.0,b=0.0] | |
\startuniqueMPgraphic{LinearShade} | |
path p ; | |
p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; | |
linear_shade(p,4,\MPcolor{w},\MPcolor{w}) ; | |
\stopuniqueMPgraphic | |
\defineoverlay[shaded][\useMPgraphic{LinearShade}] | |
\setupbackgrounds[page][background={shaded}] | |
\stopnotmode | |
\startmode[nooverlay] | |
\definecolor[emphasize][r=1.0,g=0.0,b=0.0] | |
\stopmode | |
\setuphead[title][align=middle,textstyle=\ssbfc,color=darkred,after={}] | |
% HYPHENATION | |
\hyphenchar\font=-1 | |
\hyphenpenalty=100000 | |
\exhyphenpenalty=100000 | |
\usemodule[units] | |
%\setuppagetransitions[random] | |
% LAYOUT | |
\def\MyLength{1pt} | |
\setuplayout[ | |
top=\MyLength, | |
topdistance=\MyLength, | |
bottom=\MyLength, | |
bottomdistance=\MyLength, | |
topspace=\dimexpr(\topheight + \topdistance), | |
height=fit] | |
%% \useexternalfigure[mainbullet][mainbullet][height=\exheight] | |
%% \useexternalfigure[smallbullet][smallbullet][height=1.0\exheight] | |
%% \definesymbol[1][{\externalfigure[mainbullet]}] | |
%% \definesymbol[2][{\externalfigure[smallbullet]}] | |
\definereferenceformat[eqref][left=(,right=)] | |
%% defining matrix with parentheses | |
\definemathmatrix[pmatrix] | |
[matrix:parentheses] | |
[simplecommand=pmatrix] | |
%% defining matrix with brackets | |
\definemathmatrix[bmatrix] | |
[matrix:brackets] | |
[simplecommand=bmatrix] | |
%% defining determinant with bars | |
\definemathmatrix[determinant] | |
[matrix:bars] | |
[simplecommand=thedeterminant] | |
\stopenvironment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\environment env-slides | |
\title{Hi} | |
\startitemize | |
\item $x$ | |
\item $\sqrt{x + y}$ | |
\stopitemize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment