diff --git a/examples/presentation.pdf b/examples/presentation.pdf index 44610b1..5819619 100644 Binary files a/examples/presentation.pdf and b/examples/presentation.pdf differ diff --git a/examples/presentation.typ b/examples/presentation.typ index 9f227fb..d94e04e 100644 --- a/examples/presentation.typ +++ b/examples/presentation.typ @@ -1,7 +1,24 @@ - #import "@preview/polylux:0.3.1": * +#import "@preview/polylux:0.3.1": * +#import "@preview/codly:0.2.0": * +#import "@preview/pinit:0.1.3": * #import "../template.typ": * #show: everything => ktu-theme(everything) +#show: codly-init.with() +#codly( + languages: ( + typst: (color: rgb("#CE412B")), + ), + + fill: luma(240), + zebra-color: luma(240), + + display-name: false, + display-icon: false, + enable-numbers: false, + stroke-width: 2pt, + stroke-color: black +) #ktu-title-slide[ = Pristatymo tema @@ -35,5 +52,50 @@ #ktu-no-vertical-slide[ == Daug teksto, kitas variantas - #lorem(130) + #only((1,2))[Būti]#only(2)[, ar nebūti]? + + #lorem(120) +] + +#ktu-no-vertical-slide[ + == Kodas 1 + + #text(size:15pt)[ + ```python + import sys + import signal + import warnings + + from analyser.app import App + from analyser.qt_compat import QtWidgets + from analyser.settings import Settings + + signal.signal(signal.SIGINT, signal.SIG_DFL) + warnings.filterwarnings("ignore", category=DeprecationWarning) + + if __name__ == "__main__": + settings = Settings() + app = QtWidgets.QApplication(sys.argv) + ex = App(settings) + sys.excepthook = ex.excepthook + sys.exit(app.exec_()) + ```] +] + + +#ktu-no-vertical-slide[ + == Kodas 2 + + ```java + public interface SortedSet extends Set { + // Grąžinamas aibės poaibis iki element. + Set headSet(E element); + // Grąžinamas aibės poaibis nuo element1 iki element2. + Set subSet(E element1, E element2); + // Grąžinamas aibės poaibis nuo element. + Set tailSet(E element); + // Grąžinamas atvirkštinis iteratorius. + Iterator descendingIterator(); + } + ``` ] diff --git a/template.typ b/template.typ index 943f8a2..3fc53d0 100644 --- a/template.typ +++ b/template.typ @@ -397,7 +397,7 @@ polylux-slide[ // Content - #block(width: 95%, height: 100%)[ + #block(width: 100%, height: 100%)[ #header #v(36pt) #body.children.filter(it => {return it.func() != heading}).join() @@ -407,7 +407,7 @@ // Horizontal line #place( top, - dy: 44pt, + dy: 1.52cm, pad( right: -margins.right, left: -margins.left,