Adjust horizontal line and content width on slide with no vertical line

This commit is contained in:
2024-01-18 19:18:43 +02:00
parent 8ba86ff39f
commit c2511d5b6c
3 changed files with 66 additions and 4 deletions
Binary file not shown.
+64 -2
View File
@@ -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<E> extends Set<E> {
// Grąžinamas aibės poaibis iki element.
Set<E> headSet(E element);
// Grąžinamas aibės poaibis nuo element1 iki element2.
Set<E> subSet(E element1, E element2);
// Grąžinamas aibės poaibis nuo element.
Set<E> tailSet(E element);
// Grąžinamas atvirkštinis iteratorius.
Iterator<E> descendingIterator();
}
```
]
+2 -2
View File
@@ -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,