repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/mhspradlin/wilson-2024
https://raw.githubusercontent.com/mhspradlin/wilson-2024/main/programming/day-3.typ
typst
MIT License
#set page("presentation-16-9") #set text(size: 30pt) = Day 3 #pagebreak() == Defining Functions You can define your own functions using `def`. This is important to avoid repeating yourself. Functions have a *name*, *parameters*, and *return* a value (usually). #pagebreak() == Defining Functions ```python def is_big(number): if number > 100: return True else: return False print(is_big(10)) print(is_big(200)) ``` #pagebreak() == Number-Finder Take Two Our previous program for finding the smallest number whose square was bigger than a certain other number only worked for a *hard-coded* number. If we wanted to find $n$ for multiple square values, we would need to copy the code or write a new algorithm. Defining a *function* lets us reuse our algorithm easily. #pagebreak() == Number-Finder Function (previous) #text(size: 26pt)[ ```python still_searching = True current_number = 0 while still_searching: square = current_number * current_number if square > 2000000: print(current_number) print(square) still_searching = False else: current_number = current_number + 1 ``` ] #pagebreak() == Number-Finder Function #text(size: 26pt)[ ```python def find_smallest_square_bigger_than(target_number): current_number = 0 while True: square = current_number * current_number if square > target_number: return current_number else: current_number = current_number + 1 ``` ] We removed `still_searching` as the loop ends on *return*. #pagebreak() == Number-Finder Function Print the following values: ```python find_smallest_square_bigger_than(1000) find_smallest_square_bigger_than(2000000) find_smallest_square_bigger_than(1000000000000) find_smallest_square_bigger_than( 1000000 * 1000000 * 1000000 * 1000000) ``` What happens on the last one? #pagebreak() == Lists *Data structures* are used to represent data that is related in some way. The *list* data structure is one of the most common and useful ones you will encounter. A list is a number of *elements* in a specific order. #pagebreak() == Creating Lists Use square brackets to create a list: ```python empty_list = [] my_awesome_numbers = [35, 128, 2] words = ["cat", "dog", "elephant"] color = "blue" colors = [color, "red"] ``` #pagebreak() == Getting Elements from a List You can access an element at an *index* using square brackets: ```python animals = ["cat", "dog", "elephant"] animals[0] # "cat" animals[1] # "dog" animals[2] # "elephant" animals[3] # IndexError: list index out of range ``` #pagebreak() == Adding to Lists You can add elements to the end of a list using `append`: ```python animals = ["cat", "dog", "elephant"] animals.append("bird") animals[3] # "bird" ``` #pagebreak() == Removing from Lists Removing elements is done with `remove`: ```python animals = ["cat", "dog", "elephant"] animals.remove("dog") animals[1] # "elephant" ``` #pagebreak() == Getting List Size Call the `len` function on a list: ```python animals = ["cat", "dog", "elephant"] len(animals) # 3 animals.append("bird") len(animals) # 4 animals.remove("dog") len(animals) # 3 ``` #pagebreak() == Iterating over Lists It's very common to want to run a bit of code on every element of a list. You can do this using `for..in`: ```python animals = ["cat", "dog", "elephant"] for animal in animals: print(animal + "!") ``` #pagebreak() == Algorithm: Selection Sort It's common to want to sort a list in a particular order: - Sort emails by time - Sort scores high to low in a game - ? How might you sort a deck of cards? A simple way to do this is the *selection sort* algorithm. #pagebreak() == Selection Sort Given a list to sort called `input`, + Create an empty list called `output` + Find the smallest element in `input` + Remove the element from `input` + Add the element to the end of `output` + If `input` is empty, return `output` + If `input` is not empty, go back to step 2 #pagebreak() == Selection Sort ```python def selection_sort(input): output = [] while len(input) > 0: smallest = get_smallest(input) input.remove(smallest) output.append(smallest) return output ``` #pagebreak() == `get_smallest` Function A key part of programming is breaking down big problems into smaller problems, then combining the solutions. Can you think of an algorithm for `get_smallest`? #pagebreak() == `get_smallest` function ```python def get_smallest(input): smallest = input[0] for element in input: if element < smallest: smallest = element return smallest ``` #pagebreak() == Break #pagebreak() == Lab 3: Where's the Treasure? #link("https://tinyurl.com/wilson-pi-day-3")
https://github.com/kachick/dprint-plugin-typstyle
https://raw.githubusercontent.com/kachick/dprint-plugin-typstyle/main/README.md
markdown
Apache License 2.0
# dprint-plugin-typstyle [![CI - Nix Status](https://github.com/kachick/dprint-plugin-typstyle/actions/workflows/nix.yml/badge.svg?branch=main)](https://github.com/kachick/dprint-plugin-typstyle/actions/workflows/nix.yml?query=branch%3Amain+) [Typst](https://github.com/typst/typst) formatter as a [dprint](https://github.com/dprint/dprint) WASM plugin, powered by [typstyle](https://github.com/Enter-tainer/typstyle) ## Installation ```bash dprint config add 'kachick/typstyle' ``` This plugin delegates the formatter feature to the [upstream crate](https://github.com/Enter-tainer/typstyle). ## Configuration example ```json { "typst": { "column": 78 }, "plugins": [ "https://plugins.dprint.dev/kachick/typstyle-0.2.0.wasm" ] } ```
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/smartquotes-in-outline_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page #set page(width: 15em) #outline() = "This" "is" "a" "test"
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/128.%20yahoo.html.typ
typst
yahoo.html What Happened to Yahoo Want to start a startup? Get funded by Y Combinator. August 2010When I went to work for Yahoo after they bought our startup in 1998, it felt like the center of the world. It was supposed to be the next big thing. It was supposed to be what Google turned out to be.What went wrong? The problems that hosed Yahoo go back a long time, practically to the beginning of the company. They were already very visible when I got there in 1998. Yahoo had two problems Google didn't: easy money, and ambivalence about being a technology company.MoneyThe first time I met <NAME>, we thought we were meeting for different reasons. He thought we were meeting so he could check us out in person before buying us. I thought we were meeting so we could show him our new technology, Revenue Loop. It was a way of sorting shopping search results. Merchants bid a percentage of sales for traffic, but the results were sorted not by the bid but by the bid times the average amount a user would buy. It was like the algorithm Google uses now to sort ads, but this was in the spring of 1998, before Google was founded.Revenue Loop was the optimal sort for shopping search, in the sense that it sorted in order of how much money Yahoo would make from each link. But it wasn't just optimal in that sense. Ranking search results by user behavior also makes search better. Users train the search: you can start out finding matches based on mere textual similarity, and as users buy more stuff the search results get better and better.Jerry didn't seem to care. I was confused. I was showing him technology that extracted the maximum value from search traffic, and he didn't care? I couldn't tell whether I was explaining it badly, or he was just very poker faced.I didn't realize the answer till later, after I went to work at Yahoo. It was neither of my guesses. The reason Yahoo didn't care about a technique that extracted the full value of traffic was that advertisers were already overpaying for it. If Yahoo merely extracted the actual value, they'd have made less.Hard as it is to believe now, the big money then was in banner ads. Advertisers were willing to pay ridiculous amounts for banner ads. So Yahoo's sales force had evolved to exploit this source of revenue. Led by a large and terrifyingly formidable man called <NAME>, Yahoo's sales guys would fly out to Procter & Gamble and come back with million dollar orders for banner ad impressions.The prices seemed cheap compared to print, which was what advertisers, for lack of any other reference, compared them to. But they were expensive compared to what they were worth. So these big, dumb companies were a dangerous source of revenue to depend on. But there was another source even more dangerous: other Internet startups.By 1998, Yahoo was the beneficiary of a de facto Ponzi scheme. Investors were excited about the Internet. One reason they were excited was Yahoo's revenue growth. So they invested in new Internet startups. The startups then used the money to buy ads on Yahoo to get traffic. Which caused yet more revenue growth for Yahoo, and further convinced investors the Internet was worth investing in. When I realized this one day, sitting in my cubicle, I jumped up like Archimedes in his bathtub, except instead of "Eureka!" I was shouting "Sell!"Both the Internet startups and the Procter & Gambles were doing brand advertising. They didn't care about targeting. They just wanted lots of people to see their ads. So traffic became the thing to get at Yahoo. It didn't matter what type. [1]It wasn't just Yahoo. All the search engines were doing it. This was why they were trying to get people to start calling them "portals" instead of "search engines." Despite the actual meaning of the word portal, what they meant by it was a site where users would find what they wanted on the site itself, instead of just passing through on their way to other destinations, as they did at a search engine.I remember telling <NAME> in late 1998 or early 1999 that Yahoo should buy Google, because I and most of the other programmers in the company were using it instead of Yahoo for search. He told me that it wasn't worth worrying about. Search was only 6% of our traffic, and we were growing at 10% a month. It wasn't worth doing better.I didn't say "But search traffic is worth more than other traffic!" I said "Oh, ok." Because I didn't realize either how much search traffic was worth. I'm not sure even Larry and Sergey did then. If they had, Google presumably wouldn't have expended any effort on enterprise search.If circumstances had been different, the people running Yahoo might have realized sooner how important search was. But they had the most opaque obstacle in the world between them and the truth: money. As long as customers were writing big checks for banner ads, it was hard to take search seriously. Google didn't have that to distract them.HackersBut Yahoo also had another problem that made it hard to change directions. They'd been thrown off balance from the start by their ambivalence about being a technology company.One of the weirdest things about Yahoo when I went to work there was the way they insisted on calling themselves a "media company." If you walked around their offices, it seemed like a software company. The cubicles were full of programmers writing code, product managers thinking about feature lists and ship dates, support people (yes, there were actually support people) telling users to restart their browsers, and so on, just like a software company. So why did they call themselves a media company?One reason was the way they made money: by selling ads. In 1995 it was hard to imagine a technology company making money that way. Technology companies made money by selling their software to users. Media companies sold ads. So they must be a media company.Another big factor was the fear of Microsoft. If anyone at Yahoo considered the idea that they should be a technology company, the next thought would have been that Microsoft would crush them.It's hard for anyone much younger than me to understand the fear Microsoft still inspired in 1995. Imagine a company with several times the power Google has now, but way meaner. It was perfectly reasonable to be afraid of them. Yahoo watched them crush the first hot Internet company, Netscape. It was reasonable to worry that if they tried to be the next Netscape, they'd suffer the same fate. How were they to know that Netscape would turn out to be Microsoft's last victim?It would have been a clever move to pretend to be a media company to throw Microsoft off their scent. But unfortunately Yahoo actually tried to be one, sort of. Project managers at Yahoo were called "producers," for example, and the different parts of the company were called "properties." But what Yahoo really needed to be was a technology company, and by trying to be something else, they ended up being something that was neither here nor there. That's why Yahoo as a company has never had a sharply defined identity.The worst consequence of trying to be a media company was that they didn't take programming seriously enough. Microsoft (back in the day), Google, and Facebook have all had hacker-centric cultures. But Yahoo treated programming as a commodity. At Yahoo, user-facing software was controlled by product managers and designers. The job of programmers was just to take the work of the product managers and designers the final step, by translating it into code.One obvious result of this practice was that when Yahoo built things, they often weren't very good. But that wasn't the worst problem. The worst problem was that they hired bad programmers.Microsoft (back in the day), Google, and Facebook have all been obsessed with hiring the best programmers. Yahoo wasn't. They preferred good programmers to bad ones, but they didn't have the kind of single-minded, almost obnoxiously elitist focus on hiring the smartest people that the big winners have had. And when you consider how much competition there was for programmers when they were hiring, during the Bubble, it's not surprising that the quality of their programmers was uneven.In technology, once you have bad programmers, you're doomed. I can't think of an instance where a company has sunk into technical mediocrity and recovered. Good programmers want to work with other good programmers. So once the quality of programmers at your company starts to drop, you enter a death spiral from which there is no recovery. [2]At Yahoo this death spiral started early. If there was ever a time when Yahoo was a Google-style talent magnet, it was over by the time I got there in 1998.The company felt prematurely old. Most technology companies eventually get taken over by suits and middle managers. At Yahoo it felt as if they'd deliberately accelerated this process. They didn't want to be a bunch of hackers. They wanted to be suits. A media company should be run by suits.The first time I visited Google, they had about 500 people, the same number Yahoo had when I went to work there. But boy did things seem different. It was still very much a hacker-centric culture. I remember talking to some programmers in the cafeteria about the problem of gaming search results (now known as SEO), and they asked "what should we do?" Programmers at Yahoo wouldn't have asked that. Theirs was not to reason why; theirs was to build what product managers spec'd. I remember coming away from Google thinking "Wow, it's still a startup."There's not much we can learn from Yahoo's first fatal flaw. It's probably too much to hope any company could avoid being damaged by depending on a bogus source of revenue. But startups can learn an important lesson from the second one. In the software business, you can't afford not to have a hacker-centric culture.Probably the most impressive commitment I've heard to having a hacker-centric culture came from <NAME>, when he spoke at Startup School in 2007. He said that in the early days Facebook made a point of hiring programmers even for jobs that would not ordinarily consist of programming, like HR and marketing.So which companies need to have a hacker-centric culture? Which companies are "in the software business" in this respect? As Yahoo discovered, the area covered by this rule is bigger than most people realize. The answer is: any company that needs to have good software.Why would great programmers want to work for a company that didn't have a hacker-centric culture, as long as there were others that did? I can imagine two reasons: if they were paid a huge amount, or if the domain was interesting and none of the companies in it were hacker-centric. Otherwise you can't attract good programmers to work in a suit-centric culture. And without good programmers you won't get good software, no matter how many people you put on a task, or how many procedures you establish to ensure "quality."Hacker culture often seems kind of irresponsible. That's why people proposing to destroy it use phrases like "adult supervision." That was the phrase they used at Yahoo. But there are worse things than seeming irresponsible. Losing, for example. Notes[1] The closest we got to targeting when I was there was when we created pets.yahoo.com in order to provoke a bidding war between 3 pet supply startups for the spot as top sponsor.[2] In theory you could beat the death spiral by buying good programmers instead of hiring them. You can get programmers who would never have come to you as employees by buying their startups. But so far the only companies smart enough to do this are companies smart enough not to need to.Thanks to <NAME>, <NAME>, and <NAME> for reading drafts of this.
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/grape-suite/0.1.0/src/slides.typ
typst
Apache License 2.0
#import "@preview/polylux:0.3.1" #import "dates.typ": semester, weekday #import "colors.typ": * #let unbreak(body) = { set text(hyphenate: false) body } #let important-box(title, body, extra, primary-color, secondary-color, tertiary-color, dotted: false) = { set par(justify: true) block(width: 100%, inset: 1em, fill: secondary-color, stroke: (left: (thickness: 5pt, paint: primary-color, dash: if dotted { "dotted" } else { "solid" })), text(size: 0.75em, strong(text(fill: tertiary-color, smallcaps(title)))) // + place(dx: 90%, dy: -0.5cm, text(size: 4em, fill: primary-color.lighten(75%), strong(extra))) + block(body)) } #let standard-box-translations = ( "task": [Task], "hint": [Hint], "solution": [Suggested solution], "definition": [Definition], "notice": [Notice!], "example": [Example], ) #let task(body) = { important-box(locate(loc => state("grape-suite-box-translations", standard-box-translations).final(loc).at("solution")), body, [A], blue, blue.lighten(90%), purple) } #let hint(body) = { important-box(locate(loc => state("grape-suite-box-translations", standard-box-translations).final(loc).at("hint")), body, [H], yellow, yellow.lighten(90%), brown) } #let solution(body) = { important-box(locate(loc => state("grape-suite-box-translations", standard-box-translations).final(loc).at("solution")), body, [L], blue, blue.lighten(90%), purple, dotted: true) } #let definition(body) = { important-box(locate(loc => state("grape-suite-box-translations", standard-box-translations).final(loc).at("definition")), body, [D], magenta, magenta.lighten(90%), magenta) } #let notice(body) = { important-box(locate(loc => state("grape-suite-box-translations", standard-box-translations).final(loc).at("notice")), body, [!], magenta, magenta.lighten(90%), magenta, dotted: true) } #let example(body) = { important-box(locate(loc => state("grape-suite-box-translations", standard-box-translations).final(loc).at("example")), body, [B], yellow, yellow.lighten(90%), brown, dotted: true) } #let uncover = polylux.uncover #let only = polylux.uncover #let pause = polylux.pause #let slide(..args) = polylux.polylux-slide(..args) + counter("grape-suite-slide-counter").step() #let slides( no: 0, series: none, title: none, topics: (), author: none, email: none, show-semester: true, show-outline: true, box-task-title: standard-box-translations.at("task"), box-hint-title: standard-box-translations.at("hint"), box-solution-title: standard-box-translations.at("solution"), box-definition-title: standard-box-translations.at("definition"), box-notice-title: standard-box-translations.at("notice"), box-example-title: standard-box-translations.at("example"), date: datetime.today(), body ) = { show footnote.entry: set text(size: 0.5em) show heading: set text(fill: purple) set text(size: 24pt, lang: "de", font: "Atkinson Hyperlegible") set page(paper: "presentation-16-9", footer: { (locate(loc => if (show-outline and loc.page() > 2) or loc.page() > 1 { set text(fill: if loc.page() > 2 or not show-outline { purple.lighten(25%) } else { blue.lighten(25%) }) text(size: 0.5em,[ #if show-semester [#semester(short: true, date) ---] #series #if no != none [\##no] #if title != none [--- #title] --- #author ]) h(1fr) text(size: 0.75em, strong(str(counter(page).at(loc).first() - if show-outline { 2 } else { 1 }))) + text(size: 0.5em, [ \/ #(counter(page).final(loc).first() - if show-outline { 2 } else { 1 })]) })) } ) state("grape-suite-box-translations").update(( "task": box-task-title, "hint": box-hint-title, "solution": box-solution-title, "definition": box-definition-title, "notice": box-notice-title, "example": box-example-title, )) slide(align(horizon, [ #block(inset: (left: 1cm, top: 3cm))[ #text(fill: purple, size: 2em, strong[#series ] + if no != none [\##no]) \ #text(fill: purple.lighten(25%), strong(title)) #set text(size: 0.75em) #author #if email != none [--- #email \ ] #if show-semester [#semester(date) \ ] #weekday(date.weekday()), #date.display("[day].[month].[year]") ] ])) if show-outline { set page(fill: purple) slide[ #set text(fill: white) #heading(outlined: false, text(fill: blue.lighten(25%), [Ablauf])) #locate(loc => { let elems = query(selector(heading).after(loc), loc) enum(..elems .filter(e => e.level == 1 and e.outlined) .map(e => { e.body })) }) ] } set page(fill: white) body }
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/COMPLETE_STORIES.typ
typst
#let title = [Magic 2013 through Outlaws of Thunder Junction - The~Ultimate PDF] #set document(title: title) #{ set text(size: 32pt) set align(center + horizon) heading(level: 1, outlined: false)[#title] } #{ set align(center) set text(size: 18pt) [Compiled by Polarkac, last update: #datetime.today().display("[day]. [month]. [year]")] } #pagebreak() #show outline.entry.where(level: 1): it => { strong(it) } #outline(title: [Contents], indent: 32pt) #pagebreak() #show heading.where(level: 1): h => { set text(size: 24pt) set align(center) h.body } #include "./stories/001_Magic 2013.typ" #include "./stories/002_Return to Ravnica.typ" #include "./stories/003_Gatecrash.typ" #include "./stories/004_Dragon's Maze.typ" #include "./stories/005_Modern Masters.typ" #include "./stories/006_Magic 2014.typ" #include "./stories/007_Theros.typ" #include "./stories/008_Commander (2013 Edition).typ" #include "./stories/009_Born of the Gods.typ" #include "./stories/010_Duel Decks: Jace vs. Vraska.typ" #include "./stories/011_Journey into Nyx.typ" #include "./stories/012_Conspiracy.typ" #include "./stories/013_Magic 2015.typ" #include "./stories/014_Khans of Tarkir.typ" #include "./stories/015_Commander (2014 Edition).typ" #include "./stories/016_Fate Reforged.typ" #include "./stories/017_Dragons of Tarkir.typ" #include "./stories/018_Modern Masters 2015.typ" #include "./stories/019_Magic Origins.typ" #include "./stories/020_Prologue to Battle for Zendikar.typ" #include "./stories/021_Battle for Zendikar.typ" #include "./stories/022_Commander (2015 Edition).typ" #include "./stories/023_Oath of the Gatewatch.typ" #include "./stories/024_Shadows over Innistrad.typ" #include "./stories/025_Eternal Masters.typ" #include "./stories/026_Eldritch Moon.typ" #include "./stories/027_Conspiracy: Take the Crown.typ" #include "./stories/028_Kaladesh.typ" #include "./stories/029_Aether Revolt.typ" #include "./stories/030_Amonkhet.typ" #include "./stories/031_Hour of Devastation.typ" #include "./stories/032_Ixalan.typ" #include "./stories/033_Rivals of Ixalan.typ" #include "./stories/034_Dominaria.typ" #include "./stories/035_Core 2019.typ" #include "./stories/036_Guilds of Ravnica.typ" #include "./stories/037_Ravnica Allegiance.typ" #include "./stories/038_War of the Spark.typ" #include "./stories/039_Theros: Beyond Death.typ" #include "./stories/040_Zendikar Rising.typ" #include "./stories/041_Kaldheim.typ" #include "./stories/042_Strixhaven: School of Mages.typ" #include "./stories/043_Innistrad: Midnight Hunt.typ" #include "./stories/044_Innistrad: Crimson Vow.typ" #include "./stories/045_Kamigawa: Neon Dynasty.typ" #include "./stories/046_Streets of New Capenna.typ" #include "./stories/047_Pride Across the Multiverse.typ" #include "./stories/048_Dominaria United.typ" #include "./stories/049_The Brothers' War.typ" #include "./stories/050_Phyrexia: All Will Be One.typ" #include "./stories/051_March of the Machine.typ" #include "./stories/052_March of the Machine: The Aftermath.typ" #include "./stories/053_Wilds of Eldraine.typ" #include "./stories/054_Lost Caverns of Ixalan.typ" #include "./stories/055_Murders at Karlov Manor.typ" #include "./stories/056_Outlaws of Thunder Junction.typ"
https://github.com/ShapeLayer/ucpc-solutions__typst
https://raw.githubusercontent.com/ShapeLayer/ucpc-solutions__typst/main/docs/colors.md
markdown
Other
--- title: ucpc.colors supports: ["0.1.0"] --- This is a module that predefines colors mainly used in algorithm competitions. You can use the colors used as difficulty tier colors in [solved.ac](https://solved.ac). <table style="text-align: center; vertical-align: middle;" > <thead> <td scope="col">Name</td> <td scope="col">V</td> <td scope="col">IV</td> <td scope="col">III</td> <td scope="col">II</td> <td scope="col">I</td> </thead> <tbody> <tr> <th scope="row">brown / bronze</th> <td><img src="https://placehold.co/16x16/9d4900/9d4900" /></td> <td><img src="https://placehold.co/16x16/a54f00/a54f00" /></td> <td><img src="https://placehold.co/16x16/ad5600/ad5600" /></td> <td><img src="https://placehold.co/16x16/b55d0a/b55d0a" /></td> <td><img src="https://placehold.co/16x16/c67739/c67739" /></td> <tr> <tr> <th scope="row">bluegray / silver</th> <td><img src="https://placehold.co/16x16/38546e/38546e" /></td> <td><img src="https://placehold.co/16x16/3d5a74/3d5a74" /></td> <td><img src="https://placehold.co/16x16/435f7a/435f7a" /></td> <td><img src="https://placehold.co/16x16/496580/496580" /></td> <td><img src="https://placehold.co/16x16/4e6a86/4e6a86" /></td> </tr> <tr> <th scope="row">yellow / gold</th> <td><img src="https://placehold.co/16x16/d28500/d28500" /></td> <td><img src="https://placehold.co/16x16/df8f00/df8f00" /></td> <td><img src="https://placehold.co/16x16/ec9a00/ec9a00" /></td> <td><img src="https://placehold.co/16x16/f9a518/f9a518" /></td> <td><img src="https://placehold.co/16x16/ffb028/ffb028" /></td> </tr> <tr> <th scope="row">cyan / platinum</th> <td><img src="https://placehold.co/16x16/00c78b/00c78b" /></td> <td><img src="https://placehold.co/16x16/00d497/00d497" /></td> <td><img src="https://placehold.co/16x16/27e2a4/27e2a4" /></td> <td><img src="https://placehold.co/16x16/3ef0b1/3ef0b1" /></td> <td><img src="https://placehold.co/16x16/51fdbd/51fdbd" /></td> </tr> <tr> <th scope="row">skyblue / diamond</th> <td><img src="https://placehold.co/16x16/009ee5/009ee5" /></td> <td><img src="https://placehold.co/16x16/00a9f0/00a9f0" /></td> <td><img src="https://placehold.co/16x16/00b4fc/00b4fc" /></td> <td><img src="https://placehold.co/16x16/2bbfff/2bbfff" /></td> <td><img src="https://placehold.co/16x16/41caff/41caff" /></td> </tr> <tr> <th scope="row">cherry / ruby</th> <td><img src="https://placehold.co/16x16/e0004c/e0004c" /></td> <td><img src="https://placehold.co/16x16/ea0053/ea0053" /></td> <td><img src="https://placehold.co/16x16/f5005a/f5005a" /></td> <td><img src="https://placehold.co/16x16/ff0062/ff0062" /></td> <td><img src="https://placehold.co/16x16/ff3071/ff3071" /></td> </tr> <tr> <th scope="row">ghudegy</th> <td colspan="5"><img src="https://placehold.co/16x16/8769af/8769af" /></td> </tr> <tr> <th scope="row">unrated</th> <td colspan="5"><img src="https://placehold.co/16x16/2d2d2d/2d2d2d" /></td> </tr> </tbody> </table> ## General ```typst color.brown: array<coolor> color.bluegray: array<coolor> color.yellow: array<coolor> color.cyan: array<coolor> color.skyblue: array<coolor> color.cherry: array<coolor> ``` Each color pallete of general colors is array contains 5 colors **example** ```typst #text(fill: ucpc.color.brown.at(2))[Brown 3rd color] ``` ## solved.ac Difficulty Tier Colors ```typst color.bronze: (I: color, II: color, III: color, IV: color, V: color) color.silver: (I: color, II: color, III: color, IV: color, V: color) color.gold: (I: color, II: color, III: color, IV: color, V: color) color.platinum: (I: color, II: color, III: color, IV: color, V: color) color.diamond: (I: color, II: color, III: color, IV: color, V: color) color.ruby: (I: color, II: color, III: color, IV: color, V: color) ``` Each color pallete of solved.ac Difficulty tier Colors have struct like below: ```typst color.[tier].I: Color of [tier] I color.[tier].II: Color of [tier] II color.[tier].III: Color of [tier] III color.[tier].IV: Color of [tier] IV color.[tier].IV: Color of [tier] V ``` **example** ```typst Difficult: #text(fill: ucpc.color.diamond.III)[Challenging] ``` ## Misc ```typst color.misc.ghudegy color.misc.unrated ``` - `ghudegy` means bug and is an unofficial expression in Baekjun Online Judgement that refers to problems that require ad-hoc series or very unusual ideas. Defined as purple in ucpc-solutions. - `unrated`: black (not `#000000`)
https://github.com/DaavidT/CV-2023
https://raw.githubusercontent.com/DaavidT/CV-2023/main/modules/projects.typ
typst
Apache License 2.0
#import "../brilliant-CV/template.typ": * #cvSection("Proyectos") #cvEntry( title: [Chat Bot con dialog Flow], society: [UNITEC], date: [2023 - Present], location: [CDMX, MX], description: list( [Desarrollo de un chat bot que se hace pasar por un ser humano para resolver dudas de los alumnos de la universidad], [Se utliza dialog flow para el desarrollo del chat bot], [Implementado en un servidor de discord y un servidor de telegram] ) ) #cvEntry( title: [Diseño de una base de datos para una concesionaria de autos], society: [UNITEC], date: [2022 - 2022], location: [CDMX, MX], description: list( [Desarrollo de un MER para una concesionaria de autos], [Normalización de la base de datos], [Implementado en Oracle SQL] ) )
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/015%20-%20Commander%20(2014%20Edition)/002_The%20Lithomancer.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "The Lithomancer", set_name: "Commander (2014 Edition)", story_date: datetime(day: 29, month: 10, year: 2014), author: "<NAME>", doc ) #emph[Long ago, the world-devouring Eldrazi were sealed away on Zendikar by three Planeswalkers: the spirit dragon Ugin; the vampire Sorin Markov; and a third Planeswalker called the Lithomancer, about whom little is known in the present day.] #emph[Today, we look back in time, more than 6,000 years ago, to a plane whose name is lost to history.] #emph[Today, we meet the Lithomancer.] #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) A rampart of stone rose out of the bare earth, encircling the small encampment on what had been an open and vulnerable plain. It was smoothly curved, with elegant crenellations. Nahiri, called the Lithomancer, surveyed her work and frowned. It was well made, and under good conditions it would stand for centuries. These were not good conditions. There were perhaps a hundred refugees left. Tomorrow, they would move camp again, or risk being overrun by these…things, whatever they were. They were abominations, things out of nightmare, and Nahiri didn’t bother to hate them. What difference would it make? "May I have a word with you, Nahiri?" The clipped, dry voice was right behind her, close enough that she should have heard the man walk up to her, should have felt his breath on her neck. But he walked like a cat, and he drew no breath, and the thought of his lips so close to her throat made her shudder. #emph[Vampire] . She’d known he was there anyway—he was walking on bare stone, after all—but he himself had told her not to let anyone know all her tricks. Not even her friends, which she wasn’t at all sure he was. She turned to face <NAME>—vampire, fellow Planeswalker, protector of the plane called Innistrad, and the closest thing she had to a friend in this place so far from the world of her birth. They made a striking pair, and the refugees—human, dark-haired, and ruddy-cheeked—gave them plenty of space. His hair was as white as hers, but his skin was ash-gray where hers was alabaster. It was his eyes that unmistakably marked him as alien: black where they should be white, with bright, unnerving irises. #figure(image("002_The Lithomancer/02.jpg", width: 100%), caption: [Sorin Markov | Art by <NAME>], supplement: none, numbering: none) They picked their way between the refugees’ cook fires to the edge of the camp, where Nahiri’s wall encompassed a low, rocky outcropping. They stood and looked out over the wall. The sun was dropping low over the hills ahead of them, and the hideous shapes in the valley were falling mercifully into shadow. "You’ve made their camp for them," said Sorin. "Again. I think it’s time we left them to their own efforts." "No," said Nahiri. "We’re here to save them." "You’re here to save them," said Sorin. "I’m here to stop these creatures, on this world, before they spread to others—to mine, or to yours." Down in the river valley, dark shapes writhed. The sounds of camp life were muted. "I can’t stand to watch them suffer," she said. "Then turn away," said Sorin, "and look at the bigger picture." Nahiri glanced back at the camp. Some of the refugees were watching the two Planeswalkers. "And what is the bigger picture?" she asked quietly. "Are we winning?" Sorin stared down at the rippling darkness, still as a statue. "No," he said. His sharp features were shadowed. Was that guilt at their failure? Or contempt at their weakness? Did she even want to know? "We could stand and fight," he said. "Together, we might turn the tide. But we couldn’t keep these people safe at the same time." "Not an option," said Nahiri. "For all we know, they’re the last people alive on this plane. We have to save them. We have to try." "Well then," said Sorin, too loudly. "Let’s sit and hold their hands while they pass into oblivion, and let these monsters go on to devour other worlds. I’m sure they’ll take a great deal of comfort in knowing that we #emph[tried] ." She glanced back at the refugees. They were no longer watching the Planeswalkers, their eyes locked on whatever small tasks occupied their shaking hands. All except one. The girl was about fifteen, and her eyes were cold. Nahiri wanted to say something, anything, that might be of comfort. No words came. She could promise no salvation, and no victory—could promise nothing, except to try. And after Sorin’s outburst, the sentiment rang hollow. She turned away from Sorin and walked down off the outcropping. She stopped in front of young woman with the cold, hard eyes. "What’s your name?" she asked. "Lian," said the girl. "Can you use a sword?" Lian nodded. She was unarmed. Nahiri reached out to a nearby stone and let an old spell awaken inside her, a spell she had learned when she was still mortal, and still young. There was metal in stone, and this stone was every stone. She plunged her hand into the living rock, which melted and foamed around her milk-white hand. Some of the refugees gasped. Sorin frowned. The girl just watched. Nahiri called to the metal in the stone, and felt her hand close around the hilt of a sword. She pulled, and an elegant blade slid free of the molten rock. She held it up for a moment, letting it shine in the setting sun, drawing away the heat of its forging until it was cool to the touch. She offered it to Lian. "This is your world," she said. "This stone, this earth, is yours to fight for. If you don’t think you can rely on us, then don’t." Lian took the sword, tested its weight and its balance. "We’re all going to die, aren’t we?" she said, quietly. "I don’t know," said Nahiri. "But if you are, you can at least die fighting." Lian nodded. Nahiri turned back to Sorin. "Lovely," he said, this time softly enough that only she could hear. "I suppose false hope is better than none." "Any hope is better than none," said Nahiri. "Always." Sorin frowned, but before he could answer, the earth rumbled. Nahiri stumbled, but kept her feet. There’d been small tremors throughout the day, but nothing like this. The valley floor lay in full shadow, with the writhing, sinewy bodies of the enemy moving within it, all sickly colors and twisted shapes. But they had fallen strangely still, for the first time in the weeks that Sorin and Nahiri had been fighting them. They turned to the west, toward the setting sun, and began to sway. Then a figure, impossibly large, rose up behind the hills on the far side of the valley. It was massive, mountainous, strange and terrible to behold, all white bone and sinewy tentacles. #figure(image("002_The Lithomancer/04.jpg", width: 100%), caption: [Ulamog, the Infinite Gyre | Art by <NAME>], supplement: none, numbering: none) The earth shook again. The massive thing turned. It was coming toward them. And when it moved, the teeming masses in the valley surged forward, like iron filings aligning with a magnet. "Combat positions!" yelled Nahiri. The refugees were still. They were all staring past her, up, into the infinite distance between what they knew to be true and what their eyes now told them. What use were arms and tactics against an angry and misshapen god? "Move!" yelled Lian. The refugees stirred to action, taking up weapons, breaking camp, preparing to fight or to flee. Parents clutched their children. A man with a broken leg pulled himself upright, leaning on a spear for support. The shaking was constant now, the earth rumbling. Clouds spiraled inward toward the monstrosity on the horizon, and chunks of earth floated into the air around it and began to break apart. The first wave of chittering horrors reached the encampment. They squealed and screamed, mewled and howled, all snapping jaws and swiping claws and flailing tentacles and eyeless, bone-white heads. The smallest were the size of dogs. The largest were as big as buildings, lumbering through the horde. The small ones piled up against the wall, their fellows climbing over them to scale it. Nahiri drew her sword. Sorin took up a position on one side of her, Lian on the other, and they met the onrushing tide of flesh and madness. Sorin waved his hand, and a dozen of the monstrosities withered into dust. Nahiri focused her will, and dozens more sank into the rocky ground. But there were more, always more, and the largest one out there was a vortex that tugged on everything—their bodies, their minds, even their magic. Nahiri could feel her mana spiraling away even as she gathered it. The ground lurched. Nahiri’s hair began to stand on end. The setting sun silhouetted the monster before them—no, more than the sun. Light, a terrible light, like nothing any world should ever see. A chasm opened, splitting Nahiri’s wall, glowing with the same otherworldly light. Nahiri willed it shut, but nothing happened. It wasn’t a crack in the ground. It was a crack in the world. The plane was coming apart. "What is that?" yelled Lian. Her face was bloody, but she still stood, sword in hand. "That," said Sorin, his voice oddly calm, "is the end." The light grew unbearable. Faintly, as though from a great distance, the people they’d spent weeks safeguarding screamed, and stopped screaming, and were swept away. Nahiri felt her body rise upward as the earth itself began to unravel. #figure(image("002_The Lithomancer/06.jpg", width: 100%), caption: [All Is Dust | Art by <NAME>], supplement: none, numbering: none) "Nahiri!" said Sorin. "It’s over!" Beside her, Sorin flashed away into nothingness. She grabbed for Lian’s arm, but the girl was gone, snatched away by shadows in the light. The sword she had carried was still there, floating in the blinding air. Silently cursing herself, Nahiri grabbed the sword and left the world behind. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) #emph[Zendikar] . Home. It had been their agreed-upon rendezvous, a safe place where no other Planeswalker would interfere. This world was under Nahiri’s protection. Sorin hadn’t offered Innistrad as a rendezvous. Probably worried that the monstrosities would follow. He was too cautious, but perhaps caution was the natural result of age. He was at least a thousand years old, and she wondered sometimes what it would have been like to know him when he was young. They sat in silence at the edge of a temporary kor settlement in the rugged highlands of Akoum, resting, restoring the bonds that supplied them with mana. If Sorin felt any trace of regret at how things had gone, none reached his face. Nahiri clutched the sword, the last trace of a now-dead world. #figure(image("002_The Lithomancer/08.jpg", width: 100%), caption: [Mountain | Art by John Avon], supplement: none, numbering: none) "Nahiri," said Sorin. "We’ve got company." She felt it too, a sort of pressure in the air that meant something was emerging from the Æther. She stood, heart racing. "Did they—" "No," said Sorin. "Not big enough. But big." Then he was there with them: a massive, ethereal dragon, shining with blue-white light. Two flat horns curved around and behind his head, mist poured off him, and long wings folded elegantly behind his slender body. He was huge, easily forty feet long, but he had appeared some distance from them, and everything about his posture spoke of peaceful intent. Nonetheless, Nahiri drew her sword. "You have noticed," said the luminous dragon, "that we have a problem." "There’s no ‘we’ here, dragon," said Sorin, rising. "There’s us, and there’s you. And Zendikar is under her protection." "Hello to you, too, Sorin of Innistrad," said the dragon. "And on the contrary, when it comes to this problem, ‘we’ means everyone, everywhere." He turned his great head toward Nahiri. "I am Nahiri, guardian of Zendikar," she said. She looked up into the newcomer’s inscrutable eyes and tried not to seem afraid. "Whoever you are, you’re here at my sufferance." "Of course," said the dragon, bowing. "Well met, Nahiri of Zendikar, and thank you for your hospitality." He turned back to Sorin. Sorin’s scowl deepened. "Nahiri, this is Ugin, called the Spirit Dragon. He’s as old as time, and about as easy to argue with." #emph[Sounds like someone else I know,] thought Nahiri. "I take it you know each other," she said. "We have worked amicably together in the past," said Ugin. "Not recently," said Sorin. "Ugin, what do you want?" "Your help," said Ugin. He raised a hand and conjured a small, ghostly image of the enormous thing they had seen on the horizon of that doomed world. "You were watching us," said Nahiri, realization dawning. "And you didn’t help." "There is a whole Multiverse of people to help," said Ugin, "and a multitude of ways to help them. While you were trying to stage a grand battle, I was watching, and learning, so that these creatures can be stopped in the long run. This is a goal the three of us share." "That’s #emph[my] goal," said Nahiri. "But I question the moral judgment of anyone who views the destruction of an entire world as a research project." "What have you learned about them?" asked Sorin, ignoring her. Wonderful. The grown-ups were talking. He had done this to her before, when meeting with other Planeswalkers. But she trusted Sorin’s judgment, for the most part. She would hear the dragon out. "They’re called the Eldrazi," said Ugin, "and they devour entire worlds. They are not true Planeswalkers, yet they move freely between planes. They are living organisms, apparently native to the Blind Eternities—the only such creatures known to exist. If they are not stopped, they pose a threat to every world." "They cannot threaten every world," said Sorin. "The Multiverse is infinite." "You clearly don’t believe that," said Ugin. "If there are an infinity of worlds, then why save any of them? Why not just move to other worlds, ahead of the Eldrazi? No. The Multiverse is boundless, but its contents are finite. To believe otherwise is to believe that nothing matters at all. And when you are as old as I am, you will understand that nihilism is an indulgence you cannot afford." Sorin frowned, but said nothing. Perhaps he really believed all those things he said about wisdom coming with age. "How do we stop them?" asked Nahiri. "That presents a dilemma," said Ugin. "They are creatures of the Eternities. What you saw ravaging that plane was a projection, a shadow of living Æther cast onto three-dimensional space." Nahiri tried to picture living Æther, but in her mind’s eye saw only the thing that had blotted out the sun. It had seemed solid enough. "Hence the dilemma," Ugin went on. "If we face them in the Blind Eternities, we face their full power in an environment where even we can barely survive. But if we defeat only their physical extensions—no mean feat in itself, as you have seen—still we accomplish nothing, for their true forms reside in the Æther." "We must find a way to destroy them," said Sorin. "That may not be possible," said Ugin, "and it certainly isn’t wise." "Worlds are dying," said Nahiri. She rested her hand on the hilt of her sword. "What wisdom could there be in leaving these things alive?" "Do you know what they are, Nahiri of Zendikar?" asked the dragon. He lowered his enormous head to look her in the eye. "Do you know if they inhabit some unseen ecology, or what will happen if they are destroyed? Do they deserve death? Does your moral judgment extend only to beings you understand? Can you answer any of these questions?" He peered at Sorin. "And Sorin, you of all people understand the necessity of balance." The remark struck her as pointed, but she didn’t know enough of Sorin’s past to say for sure. "You’re speaking in hypotheticals," said Sorin. "I cannot imagine you so sanctimoniously urging caution if your world were in danger." That seemed pointed, too. And Ugin hadn’t said the name of his home world, had he? "What is it you’re suggesting?" asked Nahiri. "You say you want to stop them without destroying them. You must have a plan." "We can imprison them," said Ugin. He conjured another illusion, this one a blueprint of some impossibly complex network of thousands of nodes and hundreds of gently curving lines. "Bind them to one plane using their physical forms as anchors, and force them into dormancy. Unlike killing them, that might actually work. And it would give me time to study them without allowing more worlds to fall." "You think you can imprison all of them?" asked Nahiri. "All three, yes," said Ugin. "Three?" said Sorin. "Update your field notes, dragon. We fought thousands." "You fought extensions," said Ugin with an airy wave of his hand. "Mere organs of a larger being. There are three true Eldrazi loose in the Multiverse. In their absence, their brood will wither and die, as surely as a hand or a foot. We lure those three to one plane and trap them there." "This plane would be sacrificed?" asked Sorin. "Risked, certainly," said Ugin. "But the means by which we cage the Eldrazi will also serve to put them into stasis. If we succeed, the world that imprisons them would be damaged, but not destroyed. If we fail, then yes, it is doomed. But it was doomed anyway." "And what plane do you intend to…risk?" asked Nahiri. Ugin looked around, his horned head sweeping to encompass the rocky vista of Akoum. #figure(image("002_The Lithomancer/10.jpg", width: 100%), caption: [Mountain | Art by Véronique Meignaud], supplement: none, numbering: none) "It should be large," he said. "Rich in mana. Sparsely populated. Preferably a place where we can easily build a base of operations, a world that’s not under the protection of another Planeswalker, and somewhere where one of us can keep watch on the Eldrazi as they slumber." There it was. The ugly truth. After all that talk about doing the right thing… "Innistrad doesn’t meet those criteria," said Sorin. "Why not your home world, wherever it is?" "It is also unsuitable," said Ugin. "We could search for such a plane, but it would take time. Time in which more worlds would fall. It would be better to begin immediately." The two ancient Planeswalkers turned to Nahiri. Ugin was impassive. Sorin blinked his bright orange eyes slowly, like a cat stalking its prey. She gripped the stoneforged sword, pulled from the earth of a fallen world. "No." "Nahiri…" said Sorin, in what she thought of as his aggrieved-parent voice. "You saw what they did to that place. You can keep it from happening again. You heard Ugin. If we succeed, Zendikar survives." "Risked," said Nahiri. "Damaged. What gives me the right to put everyone here in danger?" "What gives you the right not to?" asked Ugin. "I am telling you that we can risk one world to save all others. And all worlds, including that one, are already at risk. The choice is obvious." He lowered his head to look her in the eye. "If you would prefer not to put your own world in danger, we can take the time to find another plane that meets our needs. If it is defended by a Planeswalker, we convince its guardian to cooperate—by force, if necessary. If it is undefended, we simply begin." "And what gives us the right?" Nahiri asked again. "Yes, fine, risk one world to save the others. If we can stop these Eldrazi, maybe…maybe that means we have to. But what gives us the right to choose which world must bear the burden?" "What alternative is there?" asked Sorin. "Shall we take a referendum?" "That is why I chose Zendikar," said Ugin quietly. "Because it does have a protector, someone who has already chosen to take its destiny into her hands. Someone who will do the right thing." "And if I refuse?" asked Nahiri. "Will you ‘convince’ me by force?" "No," said Ugin. "Because I also need your help." Sorin and Nahiri looked up at the luminescent dragon. "The two of you possess skills I lack," said Ugin. "And the job is too big for one Planeswalker alone, no matter how powerful. Three of them, three of us. Together, we can save everything that is." Nahiri knelt and pressed her hand to the ground. Akoum was highly volcanic, and the ground pulsed with the heartbeat of shifting magma. She reached out further, to rolling Ondu and river-crossed Tazeem and boiling, sulfurous Guul Draz. She felt Zendikar, all of it. But its people were mysteries to her, their footprints silent against the rumbling backdrop of the living earth. #figure(image("002_The Lithomancer/12.jpg", width: 100%), caption: [Explore | Art by <NAME>], supplement: none, numbering: none) She thought of those cracks in the world, of white light spilling out of nowhere and nothing to draw all of this into the void. They would come here eventually, if they were not stopped. They would come, and when they did, she would not be able to protect her world. And if she trapped them on some other world, to save her own, how would she forgive herself? The air of her beloved home would hold a guilty tang forever. Zendikar was strong. It could withstand the Eldrazi long enough to trap them. Zendikar would be their prison, Nahiri their jailer, one world and one Planeswalker standing steadfast to protect all others. She stood, gazing out over the rugged beauty of Akoum. "What’s the plan?" #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) Ugin’s preparations had been thorough. He had worked out a way to trap the Eldrazi using a carefully shaped network of leylines and magical nodes. What he needed was someone to build it. Nahiri was very good at building things. It took forty years of near-constant work. One by one, she pulled carefully crafted stone shapes out of the earth—#emph[hedrons] , Ugin had called them, and the name had stuck. She filled the skies of Zendikar with stone, and Ugin etched them with draconic runes that held them in the air and would bind the Eldrazi to this place. The hedrons were lure as well as trap, sending out pulses of magical energy that drew the Eldrazi like the scent of blood draws sharks. Slowly, ponderously—and, Sorin reported, ignoring other worlds along the way—the Eldrazi approached Zendikar. Nahiri spread word throughout the plane of what was coming, to the merfolk, the kor, the humans, the elves, even the vampires. The amphibian surrakar whispered to each other in the bubbling depths of the coming of monstrous gods, and the angels of Zendikar patrolled the skies between the hedrons with watchful eyes. #figure(image("002_The Lithomancer/14.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none) When the Eldrazi came, Zendikar was as ready as any world had ever been. One Eldrazi titan in the distance had been monstrous, an abomination. Three, together, seen up close, were an impossibility. The one Sorin and Nahiri had seen before, the enormous thing that Ugin called Ulamog, was in fact the smallest of the three. The titan called Kozilek picked its way through the hedron fields, great black blades of senseless obsidian floating around what should have been its head. And above them, in every sense, was Emrakul, a hideous tower of latticed flesh and grasping tentacles floating lazily over the shattered earth. Ugin breathed his ghostfire, searing the Eldrazi brood with invisible flame. Sorin countered their life-draining power with his own, leeching their strength before they could take too much of Zendikar’s vitality. Zendikar’s people fought the titans’ brood lineages, but it was clear that if the onslaught continued, they too would be overrun. The titans were heedless, mindless, making their inexorable way to the nexus of the hedron network, the source of the call that pulled them here, the eye of the storm. Nahiri was waiting for them, in the underground chamber that she and Sorin had named the Eye of Ugin. For Sorin, it was likely mockery. For Ugin, it might be pride, although it was difficult to tell. For her, it was a message: #emph[Remember, dragon. This was your idea.] There was a rush of mana, and then Sorin and Ugin were there with her. The earth shook, the crystalline walls of the Eye singing in sympathetic vibration. "They are in position," said Ugin. The three Planeswalkers focused their tremendous power on a single point, a nexus stone linked to every other hedron by invisible lines of force and mana. #figure(image("002_The Lithomancer/16.jpg", width: 100%), caption: [Perilous Vault | Art by Sam Burley], supplement: none, numbering: none) Every single hedron on the plane glowed as they shifted into new positions. The network was taking its final shape. From icy Sejiri to the Silundi Sea, Zendikar quivered with effort. Then it was done. They sealed the chamber with a mystical lock, one that could only be opened by three Planeswalkers together, and made their way to the half-ruined surface. Looming above the highlands of Akoum, the three Eldrazi stood petrified, surrounded by a web of floating hedrons. Nahiri knew the earth here. It was already reacting, growing around the great Eldrazi like a scab over a wound. The teeth of Akoum would swallow them, and the inhabitants of Zendikar would scour the plane of their brood. Zendikar had survived, ravaged but whole, and its people would learn to live in the shadows of the hedrons. "Well done, Nahiri," said Sorin. "This was your work. Your sacrifice." The three of them would test the strength of the lock, make sure the titans were secure. Perhaps Sorin and Ugin would help her scour the land of the Eldrazi broods. She hoped so. And then, sooner or later, the two elder Planeswalkers would depart, and Nahiri—and the Eldrazi—would remain. She stared up at the silent, stony shapes. Ramparts of stone already crept up around them. Perhaps in a thousand years they would be forgotten, their destruction fading into legend. But Nahiri would not forget them, and neither would the land itself. "This was our work," she said. "My work is just beginning." #figure(image("002_The Lithomancer/18.jpg", width: 100%), caption: [Art by <NAME>], supplement: none, numbering: none)
https://github.com/dark-flames/resume
https://raw.githubusercontent.com/dark-flames/resume/main/data/basic.typ
typst
MIT License
#import "../libs.typ": * #import "../chicv.typ": * #let name(env) = { multiLang( env, en: [= Zhan Shi], cn: [= 施展], ) } #let linkList = ( [#fa[#envelope] #link("mailto:<EMAIL>")[<EMAIL>]], [#fa[#github] #link("https://github.com/dark-flames")[github.com/dark-flames]], [#fa[#telegram] #link("https://t.me/Dark_flames")[t.me/Dark_flames]], [#fa[#link-icon]#link("https://dark-flames.com")[dark-flames.com]] ) #let links(env) = { linkList.join([ | ]) }
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/024%20-%20Shadows%20over%20Innistrad/011_Stories%20and%20Endings.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Stories and Endings", set_name: "Shadows Over Innistrad", story_date: datetime(day: 11, month: 05, year: 2016), author: "<NAME>", doc ) #emph[<NAME>'s time on Innistrad has been spent chasing a mystery, from ] Liliana's home#emph[ to ] Markov Manor#emph[ to the ] Drownyard Temple#emph[, then ] back to Liliana#emph[, and finally to Thraben Cathedral. His guide on this journey has been a journal—a bound collection of research notes he found at Markov Manor.] #emph[As it happens, the journal's author, the moonfolk Planeswalker called Tamiyo, is several steps ahead of him....] #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) Despite the fact that her feet never touched the stone floor, Tamiyo thought about tiptoeing as she slowly drifted through the chantry of Thraben Cathedral. Across dozens of planes, she found reference to bipeds tiptoeing, often in an exaggerated or theatrical style, as a method of indicating the intent to behave in a stealthy fashion. Yet, to stand on tiptoe concentrated a creature's weight on a smaller total area; on a wooden floor (a flooring surface common to a plurality of the planes she had surveyed), walking tiptoe would in fact #emph[increase] the likelihood that the floorboards would creak, which was by far the most common form of inadvertent noise to reveal the presence of the tiptoer. Illogic of this nature was something she attributed most commonly to humans, and she took some consistent amusement from documenting it. But there was nothing amusing about Innistrad. The evidence immediately demonstrated something much deeper and more dangerous than illogic. She had already been here longer than she had intended. She had already taken on far too many risks. But this was a world entirely off its axis, and she needed to know why. Several logical lines of inquiry had proven to be dead ends. Some had been promising, but inconclusive. Her astronomical work was near-definitive, but the cause—the first cause—still eluded her. This was a puzzle box with a thousand panels, a riddle of ten thousand lies. She had never solved anything more challenging than this. She had also never quit before finishing her work. #figure(image("011_Stories and Endings/01.jpg", width: 100%), caption: [Tamiyo, the Moon Sage | Art by <NAME>], supplement: none, numbering: none) Her latest line of research had brought her to the cathedral, where the humans of Innistrad housed their oldest histories of Avacyn. The stories she had collected to date, individually, were fragmented and obscured, but she knew the music of stories. She knew which threads to tug upon, which leads to follow, to bring herself—gliding step by gliding step—to a shred of truth. She did not expect to simply discover what she needed written plainly in an old tome. She had heard many stories like that, but never lived one. Still, the oldest histories had the fewest opportunities for distortion; the fewest hands had been given the chance to twist the words toward their own purpose and effect. Avacyn. The world was off its axis, and she was Innistrad's core. The metaphor fit well enough. She whispered a small prayer to the kami. She knew, of course, that there were no kami here—that spirits manifested themselves very differently from plane to plane and that the geists of Innistrad bore no resemblance to the small gods of her home. None of her experiments had indicated that the kami could hear her prayers across the boundaries of planes. But the mere fact of their local immeasurability was no excuse to be rude. Armed cathars patrolled the halls, stoic and vigilant, on the lookout for intruders like her. She had already made more contact with the local population than she was comfortable with, and she was pushing up against the limits of her natural silence and stealth. To penetrate the inner libraries, she would need a story—a story to tell the world around her. An old scroll, one of her first and favorites, floated open from her side. It was a story from her home, and it was precisely the story she needed. #strong[He Who Frightens the Sun] #emph[This is the story of the world gone dark, and He Who Frightens the Sun. His shadow brought night to those in his wake, and his hunger was never sated. The akki knew what the oni concealed, a lifetime of loot and of plunder. But none dared risk the oni's wrath, save one who felt no fear.] #emph[When that akki came upon a long flat stone, she held it above her head. From high up above, when the oni looked down, she seemed no more than such a stone. And so disguised she went to his cave, assured that she was safe.] #figure(image("011_Stories and Endings/02.jpg", width: 100%), caption: [], supplement: none, numbering: none) #emph[But the oni was curious.] #emph["It is strange, little stone, the way that you move! Are you here to steal my riches?"] #emph["I have never heard, great one," the stone replied, "of a stone stealing riches, have you? I promise that if I see any thieves, I will let you know!"] #emph[The oni heard truth in the akki's words, and decided that all was well. He went to sleep, and the akki proceeded to take as much as she could carry. Gold, jewels, and a shining platter, in which her reflection grinned.] #emph[The next day, the akki returned, and the oni confronted the stone.] #emph["Little stone, little stone! Someone has stolen my treasure! Did you see the thief?"] #emph[Remembering her promise, the akki replied, "Yes! I saw the thief, a clever little akki! Perhaps you should go and search for her, and punish her for her wicked ways!"] #emph[The oni agreed, and went off in search, and while he was gone, the akki once more made off with more stolen treasure.] #emph[If she had only ended there!] #emph[The greedy little akki came back to the oni's cave a third time, stone overhead and greed in her heart. The oni's heart held only rage.] #emph["Little stone! It has happened again! I could not find the thief, but once more my treasures vanish! I do not know what to do, except to go to the akki warrens to the west, and devour them all, just to be sure I get the right one!"] #emph[Fearing for her home and friends, the akki replied, "Great one! Akki are tough and bitter, not at all delicious! It is best to leave them be, and continue your search for the thief!"] #emph[But while the oni did not know a stone, he knew a lie quite well. He scooped up the little akki, stone and all, and swallowed her in one bite.] #emph[The akki tell this tale to remember that the truth is a better deception than any lie ever told.] The story invoked, its magic became real, and Tamiyo faded from view. To any who saw her now, she would appear to be something that belonged there—another cathar, or a decorative vase—up until the moment she told a lie, or no longer desired deception. It was a very useful story, but as she did every time with every story, she whispered an apology for using it in this way. Stories were sacred, and to use them as tools felt just a little bit blasphemous every time. She carried twenty-nine story scrolls with her this day, not including the three in iron bands—the ones that must never be used. She walked (feet touching the stones now, quite cold) with purpose past a pair of cathars, who offered a crisp salute. She returned the gesture with less efficiency, and all saw what they needed to see. The central library was just ahead. She started mentally cataloguing the stories she brought with her, trying to determine how best to deal with the locks that would likely be up ahead, when she noticed something amiss. The door was already opened a crack, and candlelight flickered from within. She gestured, and a slight push of wind opened the heavy door a few degrees more. She stepped into a deeper stance, her feet now gripping the stone evenly (though she still #emph[thought] of tiptoeing, for reasons she could not explain), and crept toward the door, equally ready to flee or to pounce. The well-oiled hinges parted further as she heard an unmistakable sound, a moment before her eyes confirmed it: a slumping body striking the ground, as if suddenly asleep. A librarian, aged, unarmed, and unarmored. And standing over him...a Planeswalker. #figure(image("011_Stories and Endings/03.jpg", width: 100%), caption: [Jace, Unraveler of Secrets | Art by <NAME>], supplement: none, numbering: none) She took in as much information as she could in the moments before she needed to decide to fight or flee. Planeswalkers were to be avoided in her work, almost at all costs. They were brash and unpredictable, and could carry the biases of any unknown world or means of thinking—they were, in short, a liability to a truth-seeker. This one appeared human, male, young, though the wisps of mana that surrounded him smelled of deception. He had acquired some local clothing, but decorated them with sigils that were clearly not of Innistrad—a curiously poor disguise. His eyes glowed, panicked, wild, possibly afflicted (a thought she had not considered—if a Planeswalker contracted this plane's madness, could they spread it to other worlds?!), and in his hands...her field notes. Another complication. She waited two more heartbeats and resolved to let him make the first move, though a scroll had already drifted from her belt and begun to unfurl. His eyes were confused. Furious, terrified, curious, then they settled on something like recognition and relief. "You! It's you! You brought me here. No, not you, this, this journal. Your journal! You brought me here to meet? No, but how could you?" He trailed off, his eyes drifted toward the ground again, then snapped back to her, accusing. "You were watching me? You knew!" Then they softened again, now sad, pleading. "Help me. Can you? I think...can you help me? #emph[Help me.] " The last words were not a plea at all. A command, oppressively powerful, battering at her mind like wind at the shutters. But her mind withdrew to a far-off castle, and the winds could not reach her. Four more heartbeats to think, then she smiled as peacefully as she could manage. With a thought, she covered the Planeswalker in her veiling spell and removed a different scroll from her satchel. She slipped into the library and closed the door quietly behind her. She had never used this story in precisely this way, but a mad planeswalking telepath was a danger of the sort she had never contemplated. The story was one she gathered many, many years ago, from a world with five moons and gleaming metal as far as the eye could see. #strong[Original] #strong[With their creator gone, the creatures known as the myr were lost.] #strong[Some continued with their last known instructions, repeating their tasks without direction or purpose, while others simply shut down to await commands that would never come. The loss of Memnarch did not kill them, but with no true consciousness within them, their continued life was scarcely life at all.] #strong[Some of the myr had been tasked to monitor the myr population, and create new myr to replace those that had been damaged or destroyed. One of those had been in hibernation for months when its instructions demanded that it act—myr of its kind were too few, and it needed to make another.] #figure(image("011_Stories and Endings/04.jpg", width: 100%), caption: [], supplement: none, numbering: none) #strong[However, without its maker to guide it, it did not have clear instructions as to how to proceed. It did what it knew to do—it gathered the proper materials, took those materials to the crafting chamber, a small spherical room, and assembled a myr, completely identical to itself.] #strong[This was the point in the process when the Master would gift the new myr with life and a mind, such as it was. But the Master was not there. Still, his instructions persisted. The myr decided to use his own mind as a template, and copied itself into the new myr, creating a being completely identical to itself in every way. Its instructions satisfied, the myr went to leave the chamber...and found itself blocked by its duplicate.] #strong[The myr tried to let its duplicate go first—but the duplicate had the same thought at the same time. They waited an identical length of time, and then tried to go again, each colliding into its other self once more. The myr and its duplicate tried everything they could to break this impossible symmetry, but nothing worked. Eventually, in frustration, the two destroyed each other.] #strong[A third myr arrived some time later, being tasked with repair, and restored one of the myr—the restored myr stopped the repair myr before it could repair the duplicate and start the whole problem all over again. Instead, it decided to try something different, and copied its mind over again, but this time left it incomplete.] #strong[The newly awakened myr was able to create others in the same way, and these new myr, created with minds partially unformed, were able to multiply and modify themselves, act autonomously, and ultimately took the myriad forms that they have today.] #strong[The myr celebrate this story as their creation myth, but the reason they celebrate it is curious. There are three theories as to which of the myr in this story was actually the first myr of their kind. Was it the first myr who created another without a specific instruction from their creator? Did the repair myr actually repair the newly created myr first, and thus it was the second myr who made the critical leap that marked the creation of their race? Or was it the first of the myr with an incomplete imprint that was truly the first of their kind? The myr disagree on this point, and they celebrate the disagreement itself—the fact that they can have disagreements on issues of such a fundamental nature, yet still remain in unison, is at the core of what it means to be myr.] The young human's eyes closed, and he took several deep, slow breaths. When his eyes opened again, they were calm. "Thank you. Wow. I...oh. Oh dear. Liliana..." He rubbed his head as if it had been struck, then looked sheepishly up at her. "I'm Jace. And you're Tamiyo, right? Your journal..." He offered it to her with both hands; she raised a thin palm, a gesture of polite refusal. "It led me here. Your calculations, your studies, the moon, it all made sense...or at least it felt like it did. I was affected and you...you fixed it. Somehow. I'm rambling. Probably sound almost as mad as I did before, I just...thank you." Tamiyo smiled serenely. "My field notes. I gave them to someone trustworthy, and now you carry them. Did you bring Jenrik to harm, Jace?" The human shook his head. "No. But whatever happened to Markov Manor, he didn't survive it." She spent a moment in silent remembrance, but let no sorrow show on her face. "You need to leave, Jace. This place is dangerous, but far more so for one like you. Your telepathic powers carry with them a responsibility. If driven mad, the damage you could do across the planes would be immense, and it would be irresponsible of me to allow that." "No, I understand, but..." Jace stopped suddenly. It had taken him a few moments to realize that she had just threatened him. He raised his palms, and took a step back. "Tamiyo, I just want to help. We can save this place. Me and my friends, we can help you solve what's happening here, and help fix it. We've done it before...sort of." Tamiyo raised one white eyebrow and said nothing. "Listen, you and I both know that Avacyn is at the heart of what's happening here. Well, she has a mind, like any other being, and I can find out what's afflicting her. I can stop her, if it comes to that. And then we can move on to the next step in fixing this." #figure(image("011_Stories and Endings/05.jpg", width: 100%), caption: [Pieces of the Puzzle | Art by Magali Villeneuve], supplement: none, numbering: none) Tamiyo's smile disappeared. "You #emph[know ] nothing, Jace. You suspect. You theorize. You have evidence, but it is far from conclusive. How much do you really know about Avacyn? Her purpose? You have no idea what would happen if Avacyn were destroyed. She wards the entire plane—have you ever heard of a planebound being interacting in such a way with the Multiverse? I will tell you this plainly, Jace: you know less than you are ignorant of, and I am not here to fix this world's problem. I am here to understand it. To chronicle it. To know the truth of it, and record that truth for all time. But this plane is likely doomed, and I have no intention of stopping it. It is sad, perhaps, to lose a thing of beauty, but, like the blossoms of an orchard in springtime, it is a temporary beauty. It is just one plane among countless. Planes are lost and renewed all the time. Your premises are flawed." Jace flinched as if struck. "But the people here—there are millions of them! You'd just leave them to their fate? Madness and worse? We have the power, here, to make a difference. You have that power. Will you help me?" Tamiyo's expression was unchanged, but her voice held a little more ice. "I #emph[have ] helped you, Jace. I will offer a compromise. I will share my research with you, and you and your friends can use that information to help avert similar disasters on other planes, if it suits you. But I have recorded ten thousand stories about heroes, and a hero is merely a disaster with a point of view." The young human persisted. "Without conclusive insights from Avacyn herself, your research will be incomplete. Inconclusive. With my help, you will have the story in its entirety. And if I manage to stop Avacyn in the process, it wouldn't harm your work, and it could save countless lives." Curiosity. Just a touch of it. "A definitive understanding of Avacyn's current state would certainly be helpful, but I suspect that even if you were capable of entering such an alien mind..." "I can do it." Tamiyo found the human's arrogance equal parts charming and irritating. "If you try, her madness will consume you, as it did before. But...in theory, I could anchor you. Tether you to your sanity. But if I decide that we are in too much danger, you will break off the connection immediately, and we will retreat. It will also require that we connect minds on a very fundamental level. I will understand you, and you will understand me. And if I do not like what I come to understand, I will alter the terms of this arrangement again. You, for your part, will come to know precisely what I am capable of. Is this acceptable to you?" "I accept." Jace felt something like a chime ringing in his mind. A tone that was clear, serene, and pure. It was an invitation. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) In an instant, she knew him. But it was not a simple thing to know this human. His mind was powerful, but broken. Shattered into a thousand shards, each of them a different man, many of them trying to work together, but some of them... #figure(image("011_Stories and Endings/06.jpg", width: 100%), caption: [Fact or Fiction | Art by <NAME>], supplement: none, numbering: none) He had erased his own memories. He had destroyed his own truth. He had invaded the minds of the innocent, he had killed in anger, he had used his power for petty and selfish ends. Yet. He was capable of sacrifice, of bravery, and of understanding. He was willing to take on responsibilities. Too many responsibilities, perhaps, for one so young. Younger still, if you accounted for the years of his own life that he so roughly erased. His desire for truth was earnest, and his pledge to help the people of this place was pure. And he was about seventy percent certain he could manage to do what he had told her that he could. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) In an instant, he knew her. But knowing is not understanding. Jace had always held the soratami of Kamigawa in high esteem, their minds powerful and disciplined. He saw her life, and the contrast with his own was physically painful. Where he was untethered, she was safely anchored by family, tradition, and home. Home. An endless library, high in the clouds; the place she loved more than any other. The smiles and sweet familiarity of her family. Children. They could not fully understand the places she went when she left them, but their faces lit up so brightly when she brought them stories, impossible stories, told in the voice of truth from places they could never see. He saw her burden. The terrible burden of #emph[knowing] , and the need to protect truths too dangerous to be spoken aloud, yet too important to be forgotten. Three iron-bound scrolls, each with a power... #emph[Jace.] The connection changed, and the two Planeswalkers focused their consciousnesses back to the world they stood in. "Jace, my veiling spell has been pierced. And there is a powerful presence moving this way." The human nodded, and the two Planeswalkers hurried down the hallway into the cathedral's central chapel. "I will attempt to communicate with Avacyn. Distract her. #emph[Emphatically ] distract her if I must. You will not have long to stop her before she kills us both." Jace opened his mouth to reply, as the world became a symphony of howling winds and shattering glass. The angel hovered, her massive wings stained with fresh blood, her spear molten and ablaze. The look on her face was one of restrained amusement. Tamiyo floated up to meet her gaze. The angel's wings displaced a gale; when the moonfolk rose, the air did not so much as whisper. #figure(image("011_Stories and Endings/07.jpg", width: 100%), caption: [Avacyn's Judgment | Art by <NAME>], supplement: none, numbering: none) "Avacyn. I am a visitor to your world, and I have been as respectful a guest as I have been able. I want nothing but peace and wellness for those you protect. As an angel, you can hear the truth of my words. How do you respond?" The angel's face twitched into the poorest mockery of any smile Tamiyo had ever known, and a clicking sort of laughter emanated from her, lips unmoving. Her voice was a pained scratch that brought to mind insects and fingernails. "How...do I respond? I am...to protect. From you. Intruder. Invader. Rotmonger. Impure! IMPURE!" "I see," replied Tamiyo, a waiting scroll unfurling. "That is unfortunate." She did not need to do more than glance at the words on the scroll. It was a lament, a song from an ancient world, where the cold and ice were as dangerous as any beast. A song of loss and regret. She knew each line of the song by heart. #strong[Winter's Howl] A young man took a step through mountain door, A short trip to tend to his fence and farm, The winter's chill and ice beneath the snow, Did bring him to both swift and final harm. #figure(image("011_Stories and Endings/08.jpg", width: 100%), caption: [], supplement: none, numbering: none) His wife, a beauty who loved him so dear, Went through her day not knowing awful truth, That just a hundred yards from mountain door, Her love's own blood did freeze despite his youth. When widow did suspect that she might be, She called with terror's breath from mountain door, The truest cold had risen from the sea. Only his howl of anguish echoed more. Avacyn lunged forward with a massive beat of her wings, and Tamiyo slipped through the air, barely clearing the reach of the angel's burning spear. As Avacyn wheeled around in the eaves of the cathedral, Tamiyo let loose precisely targeted blasts of icy gale; a patch of feathers froze and shattered, white and red, falling like snow to the stone floors below. The angel dove through the air, faster this time, her spear swinging in a wide arc. Tamiyo glided forward, baiting the attack, then tumbled in the opposite direction, more freezing blasts pushing her clear of the spear's tip. She targeted the angel's right wrist, then the joint of the left wing. As she passed behind, again, the spot where the wing met the shoulder. Avacyn was faster, and a single strike of her spear would likely mean Tamiyo's end, but the angel fought enraged, and the soratami moved with deftly calculated precision—Avacyn's face showed no pain, no frustration, but her maneuverability began to suffer. She slowed, and as she did so, the cathedral shook with that impossible laughter, the chattering of dry bones and the clawing of a thousand rats. Tamiyo sent an urgent thought to Jace, hidden down below. #emph[She's adapting. We don't have long.] Avacyn raised her spear, and for a moment, Tamiyo recognized the guardian from the stories, the Avacyn that had been a beacon to the people of Innistrad. A blinding light shone from her, illuminating every corner of the cathedral, and Tamiyo recoiled from its power. The light burned on, pressing on the two Planeswalkers like a physical force, driving Tamiyo back to the ground, driving Jace to his knees. The angel slowly descended, spear lowered at Tamiyo's chest, all her previous rage seemingly vanished—she was the picture of deadly grace. #emph[Almost there...] And then she froze. The light persisted, but her motion stopped—she stood just feet from Tamiyo's motionless form, spear extended...and there she stayed. No breath, no fluttering of feathers, complete stillness. But the immobilizing light kept pressing down upon them. "It's done, Tamiyo. She's, well, not sleeping exactly, but it's the closest thing I could manage." "Jace, perhaps it's slipped your attention..." "Working on that. But listen. She's the source of the madness among the angels. They synchronize with her somehow. And through her, the church. But...she's not the origin. She's being affected by something else, and—you were right! She's still holding something else at bay. I can't see it, but I think if I push a little deeper..." "Jace, that's enough." "Wait. No. That's..." The air filled with the smell of rotting meat. Avacyn's light did not dim, but the sense of glory vanished from it; the light was cold, sickening, oily, and cruel. The angel rounded on Jace, Tamiyo seemingly forgotten, and she walked with purpose over to his crumpled form. "Defiler," she whispered, her voice the sound of skin crackling away to ash in the flame. "Thief. Pustule of corruption." She reached down and placed her hand on his chest. Anything else she might have whispered to him was drowned out by his screams. #figure(image("011_Stories and Endings/09.jpg", width: 100%), caption: [Avacyn, the Purifier | Art by <NAME>], supplement: none, numbering: none) Tamiyo focused on the link between their minds, tried to offer him solace, any relief from the pain before the end came. Layers of his consciousness had already been peeled away, flayed into insensate misery by the angel's agonizing grasp. But his mind was layered, protected, and the pain had not yet penetrated his deepest thoughts. #emph[Tamiyo. The scroll. The iron scroll. You showed it to me. An old story. A powerful story. The survivors of a place that was lost...Serra's realm. That cataclysm, that power...the story fits. You know it does. You can stop this.] Even as she felt his agony, even as she felt him starting to die, with the knowledge that she would be next, she did not hesitate in the slightest in her reply. #emph[And then? She is still defending this world, Jace, despite her madness. Did you ever make a promise, Jace? I made one, long ago. And promises aren't just to be kept when the keeping of them is easy. We make promises for times like this, when we desperately want to break them. No, Jace. The scroll stays closed.] Disbelief. Anger. #emph[I'm sorry, Jace. Sometimes, our stories have to end.]
https://github.com/Miunn/Typst-Template
https://raw.githubusercontent.com/Miunn/Typst-Template/master/README.md
markdown
# Typst-Template Template for [Typst](https://typst.app/) papers with exemple document as `main.typ`. Configuration function has the following definition : ``` conf( title: [], subTitle: [], authors: (), keywords: (), date: auto, imagePath: "no-image.png", professor: none, semester: none, pageTitle: [], outlineTitle: [Table des matières], bibliographyTitle: [Bibliographie], doc, ) ``` - `title` (content): Bold text displayed on cover page and used in document's metadata - `subTitle` (content): Subtitle displayed under title on cover page - `authors` (array): List of authors with name string argument (see the exemple file) - `keywords`: List of keywords strings used in document's metadata - `date`: Date used in document's metadata. Default to auto (compilation date) - `imagePath`: Path to cover image - `professor`: Optionnal, Professor name displayed in cover footer - `semester`: Semester number displayed in cover footer - `pageTitle`: Title displayed in page's header - `outlineTitle`: Title used for outline - `bibliographyTitle`: Title used for bibliography ## Features - Heading numbering is `I.1.a.` - Links are displayed underline - Figures are by default using `kind: figure` and `supplement: [Figure]` - References to titles are displayed with numbering and name (i.e. "I. Title") instead of supplement and numbering (i.e. "Chapitre I") - Pages are numbered "— 1 —" starting after the outline - Outline page count are "1" and not "— 1 —" - Bibliography is referenced with `bib.yaml` containing a defalt entry
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1CF00.typ
typst
Apache License 2.0
#let data = ( ("ZNAMENNY COMBINING MARK GORAZDO NIZKO S KRYZHEM ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK NIZKO S KRYZHEM ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK TSATA ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK GORAZDO NIZKO ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK NIZKO ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK SREDNE ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK MALO POVYSHE ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK POVYSHE ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK VYSOKO ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK MALO POVYSHE S KHOKHLOM ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK POVYSHE S KHOKHLOM ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK VYSOKO S KHOKHLOM ON LEFT", "Mn", 0), ("ZNAMENNY COMBINING MARK GORAZDO NIZKO S KRYZHEM ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK NIZKO S KRYZHEM ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK TSATA ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK GORAZDO NIZKO ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK NIZKO ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK SREDNE ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK MALO POVYSHE ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK POVYSHE ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK VYSOKO ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK MALO POVYSHE S KHOKHLOM ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK POVYSHE S KHOKHLOM ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK VYSOKO S KHOKHLOM ON RIGHT", "Mn", 0), ("ZNAMENNY COMBINING MARK TSATA S KRYZHEM", "Mn", 0), ("ZNAMENNY COMBINING MARK MALO POVYSHE S KRYZHEM", "Mn", 0), ("ZNAMENNY COMBINING MARK STRANNO MALO POVYSHE", "Mn", 0), ("ZNAMENNY COMBINING MARK POVYSHE S KRYZHEM", "Mn", 0), ("ZNAMENNY COMBINING MARK POVYSHE STRANNO", "Mn", 0), ("ZNAMENNY COMBINING MARK VYSOKO S KRYZHEM", "Mn", 0), ("ZNAMENNY COMBINING MARK MALO POVYSHE STRANNO", "Mn", 0), ("ZNAMENNY COMBINING MARK GORAZDO VYSOKO", "Mn", 0), ("ZNAMENNY COMBINING MARK ZELO", "Mn", 0), ("ZNAMENNY COMBINING MARK ON", "Mn", 0), ("ZNAMENNY COMBINING MARK RAVNO", "Mn", 0), ("ZNAMENNY COMBINING MARK TIKHAYA", "Mn", 0), ("ZNAMENNY COMBINING MARK BORZAYA", "Mn", 0), ("ZNAMENNY COMBINING MARK UDARKA", "Mn", 0), ("ZNAMENNY COMBINING MARK PODVERTKA", "Mn", 0), ("ZNAMENNY COMBINING MARK LOMKA", "Mn", 0), ("ZNAMENNY COMBINING MARK KUPNAYA", "Mn", 0), ("ZNAMENNY COMBINING MARK KACHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK ZEVOK", "Mn", 0), ("ZNAMENNY COMBINING MARK SKOBA", "Mn", 0), ("ZNAMENNY COMBINING MARK RAZSEKA", "Mn", 0), ("ZNAMENNY COMBINING MARK KRYZH ON LEFT", "Mn", 0), (), (), ("ZNAMENNY COMBINING TONAL RANGE MARK MRACHNO", "Mn", 0), ("ZNAMENNY COMBINING TONAL RANGE MARK SVETLO", "Mn", 0), ("ZNAMENNY COMBINING TONAL RANGE MARK TRESVETLO", "Mn", 0), ("ZNAMENNY COMBINING MARK ZADERZHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK DEMESTVENNY ZADERZHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK OTSECHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK PODCHASHIE", "Mn", 0), ("ZNAMENNY COMBINING MARK PODCHASHIE WITH VERTICAL STROKE", "Mn", 0), ("ZNAMENNY COMBINING MARK CHASHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK CHASHKA POLNAYA", "Mn", 0), ("ZNAMENNY COMBINING MARK OBLACHKO", "Mn", 0), ("ZNAMENNY COMBINING MARK SOROCHYA NOZHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK TOCHKA", "Mn", 0), ("ZNAMENNY COMBINING MARK DVOETOCHIE", "Mn", 0), ("ZNAMENNY COMBINING ATTACHING VERTICAL OMET", "Mn", 0), ("ZNAMENNY COMBINING MARK CURVED OMET", "Mn", 0), ("ZNAMENNY COMBINING MARK KRYZH", "Mn", 0), ("ZNAMENNY COMBINING LOWER TONAL RANGE INDICATOR", "Mn", 0), ("ZNAMENNY PRIZNAK MODIFIER LEVEL-2", "Mn", 0), ("ZNAMENNY PRIZNAK MODIFIER LEVEL-3", "Mn", 0), ("ZNAMENNY PRIZNAK MODIFIER DIRECTION FLIP", "Mn", 0), ("ZNAMENNY PRIZNAK MODIFIER KRYZH", "Mn", 0), ("ZNAMENNY PRIZNAK MODIFIER ROG", "Mn", 0), (), (), (), (), (), (), (), (), (), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME> GOLUB<NAME>VETLY", "So", 0), ("<NAME> VRAKHIYA PROSTAYA", "So", 0), ("<NAME> VRAKHIYA MRACHNAYA", "So", 0), ("<NAME> VRAKHIYA SVETLAYA", "So", 0), ("<NAME> VRAKHIYA TRESVETLAYA", "So", 0), ("<NAME> VRAKHIYA KLYUCHEVAYA PROSTAYA", "So", 0), ("<NAME> VRAKHIYA KLYUCHEV<NAME>", "So", 0), ("<NAME> VRAKHIYA KLYUCHEVAYA SVETLAYA", "So", 0), ("<NAME> VRAKHIYA KLYUCHEVAYA TRESVETLAYA", "So", 0), ("<NAME> DOUBLE ZAPYATAYA", "So", 0), ("<NAME> CHELYUSTKA", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME> MRACHNAYA", "So", 0), ("<NAME> SKAMEYTSA SVETLAYA", "So", 0), ("<NAME> SKAMEYTSA TRESVETLAYA", "So", 0), ("<NAME> SKAMEYTSA TIKHAYA", "So", 0), ("<NAME>", "So", 0), ("ZNAMENNY NEUME SKAMEYTSA KLYUCHEVAYA SVETLAYA", "So", 0), ("<NAME> SKAMEYTSA KLYUCHENEPOSTOYANNAYA", "So", 0), ("<NAME> SKAMEYTSA KLYUCHEVAYA TIKHAYA", "So", 0), ("<NAME> SKAMEYTSA DVOECHELNAYA PROSTAYA", "So", 0), ("<NAME> SKAMEYTSA DVOECHELNAYA SVETLAYA", "So", 0), ("<NAME>UME SKAMEYTSA DVOECHELNAYA NEPOSTOYANNAYA", "So", 0), ("<NAME> SKAMEYTSA DVOECHELNAYA KLYUCHEVAYA", "So", 0), ("<NAME>", "So", 0), ("<NAME>YATOY", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME>", "So", 0), ("<NAME> STATYA S ZAPYATOY", "So", 0), ("<NAME>UME STATYA S KRYZHEM", "So", 0), ("<NAME>UME STATYA S ZAPYATOY I KRYZHEM", "So", 0), ("<NAME>UME STATYA S KRYZHEM I ZAPYATOY", "So", 0), ("ZNAMENNY NEUME STATYA ZAKRYTAYA", "So", 0), ("ZNAMENNY NEUME STATYA ZAKRYTAYA S ZAPYATOY", "So", 0), ("ZNAMENNY NEUME STATYA S ROGOM", "So", 0), ("ZNAMENNY NEUME STATYA S DVUMYA ZAPYATYMI", "So", 0), ("ZNAMENNY NEUME STATYA S ZAPYATOY I PODCHASHIEM", "So", 0), ("ZNAMENNY NEUME POLKULIZMY", "So", 0), ("ZNAMENNY NEUME STATYA NEPOSTOYANNAYA", "So", 0), ("ZNAMENNY NEUME STRELA PROSTAYA", "So", 0), ("ZNAMENNY NEUME STRELA MRACHNOTIKHAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYZHEVAYA", "So", 0), ("ZNAMENNY NEUME STRELA POLUPOVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA POVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA NEPOSTOYANNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KLYUCHEPOVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KLYUCHENEPOSTOYANNAYA", "So", 0), ("ZNAMENNY NEUME STRELA TIKHAYA PUTNAYA", "So", 0), ("ZNAMENNY NEUME STRELA DVOECHELNAYA", "So", 0), ("ZNAMENNY NEUME STRELA DVOECHELNOKRYZHEVAYA", "So", 0), ("ZNAMENNY NEUME STRELA DVOECHELNOPOVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA DVOECHELNAYA KLYUCHEVAYA", "So", 0), ("ZNAMENNY NEUME STRELA DVOECHELNOPOVODNAYA KLYUCHEVAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMNAYA WITH SINGLE ZAPYATAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMOPOVODNAYA WITH SINGLE ZAPYATAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMNAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMOPOVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMOPOVODNAYA WITH DOUBLE ZAPYATAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMOKRYZHEVAYA", "So", 0), ("ZNAMENNY NEUME STRELA GROMOKRYZHEVAYA POVODNAYA", "So", 0), ("ZNAMENNY NEUME MECHIK", "So", 0), ("ZNAMENNY NEUME MECHIK POVODNY", "So", 0), ("ZNAMENNY NEUME MECHIK KLYUCHEVOY", "So", 0), ("ZNAMENNY NEUME MECHIK KLYUCHEPOVODNY", "So", 0), ("ZNAMENNY NEUME MECHIK KLYUCHENEPOSTOYANNY", "So", 0), ("ZNAMENNY NEUME STRELA TRYASOGLASNAYA", "So", 0), ("ZNAMENNY NEUME STRELA TRYASOPOVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA TRYASOSTRELNAYA", "So", 0), ("ZNAMENNY NEUME OSOKA", "So", 0), ("ZNAMENNY NEUME OSOKA SVETLAYA", "So", 0), ("ZNAMENNY NEUME OSOKA TRESVETLAYA", "So", 0), ("ZNAMENNY NEUME OSOKA KRYUKOVAYA SVETLAYA", "So", 0), ("ZNAMENNY NEUME OSOKA KLYUCHEVAYA SVETLAYA", "So", 0), ("ZNAMENNY NEUME OSOKA KLYUCHEVAYA NEPOSTOYANNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA POVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMNAYA WITH SINGLE ZAPYATAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMOPOVODNAYA WITH SINGLE ZAPYATAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMOPOVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMOPOVODNAYA WITH DOUBLE ZAPYATAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMOKRYZHEVAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA GROMOKRYZHEVAYA POVODNAYA", "So", 0), ("ZNAMENNY NEUME STRELA KRYUKOVAYA TRYASKA", "So", 0), ("ZNAMENNY NEUME KUFISMA", "So", 0), ("ZNAMENNY NEUME OBLAKO", "So", 0), ("ZNAMENNY NEUME DUDA", "So", 0), ("ZNAMENNY NEUME NEMKA", "So", 0), ("ZNAMENNY NEUME PAUK", "So", 0), )
https://github.com/tingerrr/chiral-thesis-fhe
https://raw.githubusercontent.com/tingerrr/chiral-thesis-fhe/main/tests/full/test.typ
typst
#import "/src/lib.typ" as ctf #import ctf.prelude: * #show: doc( kind: masters-thesis( date: datetime(year: 1970, month: 01, day: 01), ), draft: false, abstracts: ( (title: [Abstract], body: lorem(100)), ), outlines: ( (target: image, title: [Abbildungsverzeichnis]), (target: table, title: [Tabellenverzeichnis]), (target: raw, title: [Listingverzeichnis]), ), outlines-position: start, bibliography: bibliography("/tests/bib.yaml"), ) #chapter[Chapter 1] #lorem(10) https://github.com/tingerrr/chiral-thesis-fhe #figure( table(columns: 2, table.header[A][B], [Hello], [World] ), caption: [A table example], ) #chapter[Chapter 2] = Section `inline raw` #lorem(10) #figure( [Hello World], caption: [A figure example], ) == Subsection #lorem(10) #figure( ```rust const CONST: &str = "Hello World"; ```, caption: [A listing example], ) #chapter[Chapter 3] #lorem(10) #quote(attribution: <knuth>)[A quote example] #lorem(10) @knuth[supplement] $ E = m c^2 $
https://github.com/arthurcadore/eng-telecom-workbook
https://raw.githubusercontent.com/arthurcadore/eng-telecom-workbook/main/semester-7/DLP2/project3/project.typ
typst
MIT License
#import "@preview/klaro-ifsc-sj:0.1.0": report #import "@preview/codelst:2.0.1": sourcecode #show heading: set block(below: 1.5em) #show par: set block(spacing: 1.5em) #set text(font: "Arial", size: 12pt) #set highlight( fill: rgb("#c1c7c3"), stroke: rgb("#6b6a6a"), extent: 2pt, radius: 0.2em, ) #set page( footer: "Engenharia de Telecomunicações - IFSC-SJ", ) #show: doc => report( title: "Implementação de FSM para Calculadora", subtitle: "Dispositivos Lógicos Progamáveis II", authors: ("<NAME> e <NAME>",), date: "08 de Agosto de 2024", doc, ) = Introdução: O objetivo deste relatório consiste na implementação de uma calculadora utilizando uma Máquina de Estados Finitos (FSM) para controle do datapath. A calculadora deve ser capaz de realizar operações de soma, subtração, adição de 1 e subtração de 1. = Implementação ASM da FSM: A primeira etapa do projeto é em montar o diagrama ASM da FSM que será responsável por controlar a calculadora. A Figura 1 apresenta o diagrama ASM da FSM que será implementada. #figure( figure( image("./diagrams/diagram.svg", width: 65%), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) A FSM é divida em 4 estados, sendos eles: - *Idle*: Estado inicial da máquina, onda ela fica em loop aguardando um pulso de "Enter" para iniciar a operação. - *Operando1*: Estado após "idle", onde a máquina lê habilita o datapath para leitura do primeiro operando utilizando o sinal "Enable1". Neste ponto, o estado também valida a operação a se realizada através de um vetor de 2bits, sendo possivel aplicar 00, 01, 10 e 11, oque corresponde respectivamente á soma, subtração, adição+1 e subtração-1. Nesta verificação, apenas o bit mais significativo 0X é utilizado, pois o bit de maior ordem define se a operação precisará ou não de um segundo operando. Após a verificação, caso o valor do bit mais significativo seja "0" a máquina irá para o estado "Operando2", caso seja "1" a máquina irá para o estado "Resultado". - *Operando2*: Estado onde a máquina fica em loop aguardando o segundo pulso de "Enter", para receber o segundo operando. - *Resultado*: Estado onde a máquina lê habilita o datapath para processamento do resultado utilizando o sinal "Enable2". = Implementação em VHDL: Uma vez com o diagrama ASM da FSM pronto, é necessário implementar o código VHDL que irá controlar o datapath da calculadora. Além do datapath propriamente. Desta forma, iniciaremos com a implementação da FSM. Note que uma vez com o código implementado, o diagrama FSM obtido no simulador é análogo ao diagrama FSM obtido no diagrama ASM. #figure( figure( image("./pictures/fsm1.png"), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) == Implementação do VHDL da FSM para controle: A implementação da FSM consiste no recebimento de sinais especificos de entrada, e a partir do estado atual e dos sinais recebidos a máquina decide para qual estado irá, e neste, qual saidas devem ser ativadas. #figure( figure( image("./pictures/fsm2.png"), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) == Implementação do VHDL datapath da calculadora: Em seguida, realizamos o desenvolvimento do datapath da calculadora. O datapath da calculadora é responsável por realizar as operações de soma, subtração, adição de 1 e subtração de 1 propriamente ditas. Esse circuito opera recebendo os sinais de controle da FSM, e a partir destes sinais, realiza as operações de acordo com o que foi solicitado. Abaixo podemos ver o RTL correspondente ao datapath da calculadora: #figure( figure( image("./pictures/datapath.png"), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) == Instânciação dos componentes e conexão dos sinais: Em seguida, com os códigos da FSM e do datapath prontos, é necessário instanciar os componentes e conectar os sinais. O objetivo da conexão é permitir que a FSM envie os sinais de controle necessários para o datapath operar corretamente, conforme a ilustração abaixo: #figure( figure( image("./pictures/rtl1.png"), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) Note que tanto a FSM quanto o datapath recebem sinais vindo das entradas para a passagem de dados. Porem, os dados voltados para a operação e mudança de estado passam pela FSM, enquanto os dados em si são encaminhados diretamente para o datapath. Também podemos ver de maneira mais detalhada as conexões da FSM utilizando o diagrama de tecnologia abaixo: #figure( figure( image("./pictures/rtl3.png"), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) == Teste dos sinais: Na sequência, realizamos o teste dos sinais de entrada e saída da FSM e do datapath para garantir que a calculadora está operando corretamente. === Teste da FSM: Inicialmente realizamos o teste dos sinais de entrada e saída da FSM, criando um `.do` para simulação no ModelSim, conforme ilustrado abaixo: #figure( figure( image("./pictures/rtlview1.png"), numbering: none, caption: [Teste dos sinais de entrada e saída da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) Com isso, analisamos as entradas aplicadas e os resultados obtidos, garantindo que a FSM está operando corretamente. === Teste do Datapath: Na sequência, realizamos o teste dos sinais de entrada e saída do datapath, criando um `.do` para simulação no ModelSim, conforme ilustrado abaixo: #figure( figure( image("./pictures/rtlview2.png"), numbering: none, caption: [Teste dos sinais de entrada e saída do Datapath] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) Com isso, analisamos as entradas aplicadas e os resultados obtidos, garantindo que o datapath está operando corretamente. == Aplicação na placa FPGA: Por fim, realizamos a aplicação do código na placa FPGA para verificar o funcionamento da calculadora na placa DE-115, para isso, configuramos um arquivo `.qsf` contendo a pinagem a ser aplicada na placa e realizamos o upload para a mesma: #figure( figure( image("./pictures/pins.png", width: 65%), numbering: none, caption: [Diagrama ASM da FSM] ), caption: figure.caption([Elaborada pelo Autor], position: top) ) Sessão do arquivo `.qsf` utilizada, onde é feita a conexão dos pinos da placa com os sinais do datapath e da FSM: #sourcecode[```conf set_global_assignment -name FAMILY "Cyclone IV E" set_global_assignment -name DEVICE EP4CE115F29C7 set_global_assignment -name TOP_LEVEL_ENTITY topo set_global_assignment -name ORIGINAL_QUARTUS_VERSION 20.1.1 set_global_assignment -name PROJECT_CREATION_TIME_DATE "08:04:36 JULY 23, 2024" set_global_assignment -name LAST_QUARTUS_VERSION "20.1.1 Standard Edition" set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0 set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85 set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1 set_global_assignment -name NOMINAL_CORE_SUPPLY_VOLTAGE 1.2V set_global_assignment -name EDA_SIMULATION_TOOL "ModelSim-Altera (VHDL)" set_global_assignment -name EDA_TIME_SCALE "1 ps" -section_id eda_simulation set_global_assignment -name EDA_OUTPUT_DATA_FORMAT VHDL -section_id eda_simulation set_global_assignment -name EDA_GENERATE_FUNCTIONAL_NETLIST OFF -section_id eda_board_design_timing set_global_assignment -name EDA_GENERATE_FUNCTIONAL_NETLIST OFF -section_id eda_board_design_symbol set_global_assignment -name EDA_GENERATE_FUNCTIONAL_NETLIST OFF -section_id eda_board_design_signal_integrity set_global_assignment -name EDA_GENERATE_FUNCTIONAL_NETLIST OFF -section_id eda_board_design_boundary_scan set_global_assignment -name VHDL_FILE bin2bcd.vhd set_global_assignment -name VHDL_FILE bcd2ssd.vhd set_global_assignment -name VHDL_FILE fsm.vhd set_global_assignment -name VHDL_FILE datapath.vhd set_global_assignment -name VHDL_FILE topo.vhd set_global_assignment -name VHDL_FILE registrador.vhd set_global_assignment -name POWER_PRESET_COOLING_SOLUTION "23 MM HEAT SINK WITH 200 LFPM AIRFLOW" set_global_assignment -name POWER_BOARD_THERMAL_MODEL "NONE (CONSERVATIVE)" set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top set_location_assignment PIN_G18 -to HEX0[0] set_location_assignment PIN_F22 -to HEX0[1] set_location_assignment PIN_E17 -to HEX0[2] set_location_assignment PIN_L26 -to HEX0[3] set_location_assignment PIN_L25 -to HEX0[4] set_location_assignment PIN_J22 -to HEX0[5] set_location_assignment PIN_H22 -to HEX0[6] set_location_assignment PIN_M24 -to HEX1[0] set_location_assignment PIN_Y22 -to HEX1[1] set_location_assignment PIN_W21 -to HEX1[2] set_location_assignment PIN_W22 -to HEX1[3] set_location_assignment PIN_W25 -to HEX1[4] set_location_assignment PIN_U23 -to HEX1[5] set_location_assignment PIN_U24 -to HEX1[6] set_location_assignment PIN_AA25 -to HEX2[0] set_location_assignment PIN_AA26 -to HEX2[1] set_location_assignment PIN_Y25 -to HEX2[2] set_location_assignment PIN_W26 -to HEX2[3] set_location_assignment PIN_Y26 -to HEX2[4] set_location_assignment PIN_W27 -to HEX2[5] set_location_assignment PIN_W28 -to HEX2[6] set_location_assignment PIN_V21 -to HEX3[0] set_location_assignment PIN_U21 -to HEX3[1] set_location_assignment PIN_AB20 -to HEX3[2] set_location_assignment PIN_AA21 -to HEX3[3] set_location_assignment PIN_AD24 -to HEX3[4] set_location_assignment PIN_AF23 -to HEX3[5] set_location_assignment PIN_Y19 -to HEX3[6] set_location_assignment PIN_M23 -to KEY[0] set_location_assignment PIN_M21 -to KEY[1] set_instance_assignment -name IO_STANDARD "2.5 V" -to KEY[0] set_instance_assignment -name IO_STANDARD "2.5 V" -to KEY[1] set_location_assignment PIN_Y2 -to CLOCK_50 set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK_50 ```] == Códigos utilizados: === Datapath: O código do datapath é responsável por realizar as operações de soma, subtração, adição de 1 e subtração de 1, conforme ilustrado abaixo: #sourcecode[```verilog LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; ENTITY datapath IS PORT ( operandos : IN STD_LOGIC_VECTOR (7 DOWNTO 0); reset : IN STD_LOGIC; clk : IN STD_LOGIC; enter : IN STD_LOGIC; enable_1 : IN STD_LOGIC; selecao : IN STD_LOGIC_VECTOR (1 DOWNTO 0); enable_2 : IN STD_LOGIC; disp0 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); disp1 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); disp2 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); bin : OUT STD_LOGIC_VECTOR (7 DOWNTO 0) ); END ENTITY; ARCHITECTURE datapath_arch OF datapath IS COMPONENT registrador IS GENERIC ( N : INTEGER := 7 ); PORT ( d : IN STD_LOGIC_VECTOR(N DOWNTO 0); clk : IN STD_LOGIC; en : IN STD_LOGIC; q : OUT STD_LOGIC_VECTOR(N DOWNTO 0) ); END COMPONENT; COMPONENT bin2bcd IS GENERIC (N : POSITIVE := 16); PORT ( clk, reset : IN STD_LOGIC; binary_in : IN STD_LOGIC_VECTOR(N - 1 DOWNTO 0); bcd0, bcd1, bcd2, bcd3, bcd4 : OUT STD_LOGIC_VECTOR(3 DOWNTO 0) ); END COMPONENT; COMPONENT bcd2ssd IS PORT ( bcd : IN STD_LOGIC_VECTOR(3 DOWNTO 0); ssd_out : OUT STD_LOGIC_VECTOR(6 DOWNTO 0); ac_ccn : IN STD_LOGIC ); END COMPONENT; SIGNAL a, b : STD_LOGIC_VECTOR (7 DOWNTO 0); SIGNAL res : STD_LOGIC_VECTOR(7 DOWNTO 0); SIGNAL res_bcd : STD_LOGIC_VECTOR(12 DOWNTO 0); SIGNAL q_ssd_0 : STD_LOGIC_VECTOR(7 DOWNTO 0); SIGNAL q_ssd_1 : STD_LOGIC_VECTOR(7 DOWNTO 0); SIGNAL q_ssd_2 : STD_LOGIC_VECTOR(7 DOWNTO 0); BEGIN registrador_operandos : registrador GENERIC MAP( N => 7 ) PORT MAP( d => operandos, clk => clk, en => enable_1, q => a ); b <= operandos; WITH selecao SELECT res <= STD_LOGIC_VECTOR(UNSIGNED(a) + UNSIGNED(b)) WHEN "00", STD_LOGIC_VECTOR(UNSIGNED(a) - UNSIGNED(b)) WHEN "01", STD_LOGIC_VECTOR(UNSIGNED(a) + 1) WHEN "10", STD_LOGIC_VECTOR(UNSIGNED(a) - 1) WHEN OTHERS; r_res_inst : registrador GENERIC MAP( N => 7 ) PORT MAP( d => res, clk => clk, en => enable_2, q => bin ); bin2bcd_inst : bin2bcd GENERIC MAP( N => 12 ) PORT MAP( clk => clk, reset => reset, binary_in => "0000" & res, bcd0 => res_bcd(3 DOWNTO 0), bcd1 => res_bcd(7 DOWNTO 4), bcd2 => res_bcd(11 DOWNTO 8), bcd3 => OPEN, bcd4 => OPEN ); -- Display unidade r_ssd0_inst : registrador GENERIC MAP( N => 7 ) PORT MAP( d => "0000" & res_bcd(3 DOWNTO 0), clk => clk, en => enable_2, q => q_ssd_0 ); bcd2ssd_inst0 : bcd2ssd PORT MAP( bcd => q_ssd_0(3 DOWNTO 0), ssd_out => disp0, ac_ccn => '1' ); -- Display dezena r_ssd1_inst : registrador GENERIC MAP( N => 7 ) PORT MAP( d => "0000" & res_bcd(7 DOWNTO 4), clk => clk, en => enable_2, q => q_ssd_1 ); bcd2ssd_inst1 : bcd2ssd PORT MAP( bcd => q_ssd_1(3 DOWNTO 0), ssd_out => disp1, ac_ccn => '1' ); -- Display centena r_ssd2_inst : registrador GENERIC MAP( N => 7 ) PORT MAP( d => "0000" & res_bcd(11 DOWNTO 8), clk => clk, en => enable_2, q => q_ssd_2 ); bcd2ssd_inst2 : bcd2ssd PORT MAP( bcd => q_ssd_2(3 DOWNTO 0), ssd_out => disp2, ac_ccn => '1' ); END ARCHITECTURE; ```] === FSM: O código da FSM é responsável por controlar o datapath da calculadora, conforme ilustrado abaixo: #sourcecode[```verilog LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY fsm IS PORT ( reset : IN STD_LOGIC; clk : IN STD_LOGIC; enter : IN STD_LOGIC; operacao : IN STD_LOGIC_VECTOR (1 DOWNTO 0); enable_1 : OUT STD_LOGIC; selecao : OUT STD_LOGIC_VECTOR (1 DOWNTO 0); enable_2 : OUT STD_LOGIC ); END ENTITY; ARCHITECTURE fsm_arch OF fsm IS TYPE state IS (idle, operando_1, operando_2, resultado); SIGNAL current_state, next_state : state; BEGIN sequential : PROCESS (clk, reset) VARIABLE count : INTEGER := 0; BEGIN IF reset = '1' THEN current_state <= idle; ELSIF rising_edge(clk) THEN current_state <= next_state; END IF; END PROCESS sequential; combinational : PROCESS (operacao, enter, current_state) BEGIN -- Default values enable_1 <= '0'; enable_2 <= '0'; -- State machine next_state <= current_state; CASE current_state IS WHEN idle => IF enter = '1' THEN next_state <= operando_1; ELSE next_state <= idle; END IF; WHEN operando_1 => enable_1 <= '1'; IF operacao(0) = '0' THEN next_state <= operando_2; ELSE next_state <= resultado; END IF; WHEN operando_2 => IF enter = '1' THEN next_state <= resultado; ELSE next_state <= operando_2; END IF; WHEN resultado => enable_2 <= '1'; next_state <= idle; END CASE; END PROCESS combinational; selecao <= operacao; END ARCHITECTURE; ```] === Topo: Por fim, o código topo é responsável por instanciar os componentes e conectar os sinais, conforme ilustrado abaixo: #sourcecode[```verilog LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY topo IS PORT ( CLOCK_50 : IN STD_LOGIC; SW : IN STD_LOGIC_VECTOR (17 DOWNTO 0); KEY : IN STD_LOGIC_VECTOR (1 DOWNTO 0); HEX0 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); HEX1 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); HEX2 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); LEDR : OUT STD_LOGIC_VECTOR (7 DOWNTO 0) ); END ENTITY; ARCHITECTURE topo_arch OF topo IS COMPONENT datapath IS PORT ( operandos : IN STD_LOGIC_VECTOR (7 DOWNTO 0); reset : IN STD_LOGIC; clk : IN STD_LOGIC; enter : IN STD_LOGIC; enable_1 : IN STD_LOGIC; selecao : IN STD_LOGIC_VECTOR (1 DOWNTO 0); enable_2 : IN STD_LOGIC; disp1 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); disp2 : OUT STD_LOGIC_VECTOR (6 DOWNTO 0); bin : OUT STD_LOGIC_VECTOR (7 DOWNTO 0) ); END COMPONENT; COMPONENT fsm IS PORT ( reset : IN STD_LOGIC; clk : IN STD_LOGIC; enter : IN STD_LOGIC; operacao : IN STD_LOGIC_VECTOR (1 DOWNTO 0); enable_1 : OUT STD_LOGIC; selecao : OUT STD_LOGIC_VECTOR (1 DOWNTO 0); enable_2 : OUT STD_LOGIC ); END COMPONENT; SIGNAL operandos : STD_LOGIC_VECTOR (7 DOWNTO 0); SIGNAL reset : STD_LOGIC; SIGNAL enter : STD_LOGIC; SIGNAL operacao : STD_LOGIC_VECTOR (1 DOWNTO 0); SIGNAL enable_1 : STD_LOGIC; SIGNAL selecao : STD_LOGIC_VECTOR (1 DOWNTO 0); SIGNAL enable_2 : STD_LOGIC; BEGIN operandos(7) <= SW(7); operandos(6) <= SW(6); operandos(5) <= SW(5); operandos(4) <= SW(4); operandos(3) <= SW(3); operandos(2) <= SW(2); operandos(1) <= SW(1); operandos(0) <= SW(0); reset <= KEY(0); enter <= KEY(1); operacao(1) <= SW(17); operacao(0) <= SW(16); datapath_inst : datapath PORT MAP( operandos => operandos, reset => reset, clk => CLOCK_50, enter => enter, enable_1 => enable_1, selecao => selecao, enable_2 => enable_2, disp1 => HEX0, disp2 => HEX1, bin => LEDR ); fsm_inst : fsm PORT MAP( reset => reset, clk => CLOCK_50, enter => enter, operacao => operacao, enable_1 => enable_1, selecao => selecao, enable_2 => enable_2 ); END ARCHITECTURE; ```] === Registrador: Além dos códigos apresentados anteriormente, foram utilizados também os códigos abaixo para a implementação da calculadora. O código registrador é responsável por armazenar um valor de 8bits. #sourcecode[```verilog -- register LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; ENTITY registrador IS GENERIC ( N : INTEGER := 7 ); PORT ( d : IN STD_LOGIC_VECTOR(N DOWNTO 0); clk : IN STD_LOGIC; en : IN STD_LOGIC; q : OUT STD_LOGIC_VECTOR(N DOWNTO 0) ); END ENTITY; ARCHITECTURE registrador_arch OF registrador IS BEGIN PROCESS (clk) BEGIN IF clk'EVENT AND clk = '1' THEN IF en = '1' THEN q <= d; END IF; END IF; END PROCESS; END ARCHITECTURE; ```] === bcd2ssd: O código bcd2ssd é responsável por converter um número BCD de 4bits para um display de 7 segmentos. #sourcecode[```verilog library ieee; use ieee.std_logic_1164.all; entity bcd2ssd is port ( BCD : in std_logic_vector (3 downto 0); SSD : out std_logic_vector (6 downto 0) ); end entity; architecture arch of bcd2ssd is begin with BCD select SSD <= "1000000" when "0000", "1111001" when "0001", "0100100" when "0010", "0110000" when "0011", "0011001" when "0100", "0010010" when "0101", "0000011" when "0110", "1111000" when "0111", "0000000" when "1000", "0011000" when "1001", "0111111" when others; end arch; ```] === bin2bcd: O código bin2bcd é responsável por converter um número binário de 8bits para BCD, onde cada dígito é representado por 4bits. #sourcecode[```verilog library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity bin2bcd is port ( A : in std_logic_vector (7 downto 0); sd, su, sc : out std_logic_vector (3 downto 0) ); end entity; architecture ifsc_v1 of bin2bcd is signal A_uns : unsigned (7 downto 0); signal sd_uns, su_uns, sc_uns : unsigned (7 downto 0); begin A_uns <= unsigned(A); sc_uns <= A_uns/100; sd_uns <= A_uns/10; su_uns <= A_uns rem 10; sc <= std_logic_vector(resize(sc_uns, 4)); sd <= std_logic_vector(resize(sd_uns, 4)); su <= std_logic_vector(resize(su_uns, 4)); end architecture; ```] = Conclusão: Com base nos conceitos apresentados e nos resultados obtidos, foi possível implementar uma calculadora utilizando uma Máquina de Estados Finitos (FSM) para controle do datapath. A calculadora é capaz de realizar operações de soma, subtração, adição de 1 e subtração de 1. Podemos concluir que a implementação da calculadora foi bem sucedida, atendendo aos requisitos propostos e demonstrando o funcionamento correto da FSM e do datapath, abaixo está a tabela de resultados da implementação para consumo de hardware: #figure( figure( table( columns: (1fr, 1fr, 1fr), align: (left, center, center), table.header[Implementacao][Área (LE)][Registradores], [Parte 1], [104], [67], ), numbering: none, caption: [Tabela de resultados da implementação] ), caption: figure.caption([Elaborada pelo Autor], position: top) )
https://github.com/darioglasl/Arbeiten-Vorlage-Typst
https://raw.githubusercontent.com/darioglasl/Arbeiten-Vorlage-Typst/main/01_Einleitung/03_rahmenbedingungen.typ
typst
== Rahmenbedingung <headingParameter> Gemäss Modulbeschreibung @modulbeschreibungSA soll die Arbeit den Nachweis der Problemlösungsfähigkeit unter Anwendung ingenieurmässiger Methoden nachweisen und verfügt über einen konzeptionellen, theoretischen und einen praktischen Anteil. Die erfolgreiche Durchführung der Arbeit ergibt 8 ECTS-Punkte, was einem Arbeitsaufwand von ca. 240h pro Person entspricht. Das Startdatum ist der 18. September 2023 und der Abgabetermin ist der 22. Dezember 2023 um 17:00 Uhr. Die genaue Modulbeschreibung ist im @appendixModulbeschreibung zu finden.
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/GR_old/oktoich/Hlas1/6_Sobota.typ
typst
#let V_So = ( "HV": ( ("", "Πανεύφημοι Μάρτυρες", "Ξύλου βρώσει τέθνηκα ποτέ, συμβουλία όφεως, συνεπαρθείς καί εξόριστος, τής θείας δόξης σου, γεγονώς ο τάλας, διό τεθανάτωμαι, υπό τής αμαρτίας ο δείλαιος, λοιπόν Φιλάνθρωπε, σύ ως μόνος ευδιάλλακτος, Παραδείσου, οικήτορα ποίησον."), ("", "", "Πάντα καταλείψασα ψυχή, εννοού τήν ώραν σου, τήν τελευταίαν καί πρόσεχε, σαυτή, πρός έξοδον, ετοιμαζομένη, όπως μή αιφνίδιος, ελθών σε καταλάβη ο θάνατος, ευρών ανέτοιμον, τώ Κυρίω ούν αείποτε, γρηγορούσα, προσεύχου καί δάκρυε."), ("", "", "Νέκρωσον τό φρόνημα παθών, τών παρενοχλούντων με, καί τάς ατάκτους κινήσεις μου, Θεέ προάναρχε, θεία εξουσία, πράϋνον ως εύσπλαγχνος, παρέχων μοι πταισμάτων τήν άφεσιν, ως ευδιάλλακτος, ως οικτίρμων καί φιλάνθρωπος, διά πλούτον, τής σής αγαθότητος."), ("", "Πανεύφημοι Μάρτυρες", "Αγία Θεόνυμφε αγνόν, σεμνόν με καί σώφρονα, πράον ησύχιον κόσμιον, ευθή καί όσιον, αληθή ανδρείον, φρόνιμον μακρόθυμον, χρηστόν επιεική τε καί μέτριον, άμεμπτον άμωμον, ανεπίληπτόν τε ποί ησον, καί πρός τούτοις Παραδείσου μέτοχον."), ("", "", "Υπέκκαυμα γέγονα αισχράς, ασωτίας Άχραντε, εφευρετής παραπτώσεων, παθών διδάσκαλος, οδηγός λαγνείας, ασελγείας πρόξενος, δεινής ακολασίας συνήγορος, καί έτι τούτων γάρ, ταίς εννοίαις ενηδύνομαι, αλλά πάσης απωλείας ρύσαί με."), ("", "", "Δεινώς με χειμάζουσι δεινοί, αμαρτίας χείμαρροι, ωδίνες άδου κυκλούσί με, παγίς θανάτου δέ, ψυχικού προφθάνει, ελεήμον Δέσποινα, βοώ σοι μετ' οδύνης καρδίας μου. Σπεύσον εξάρπασον, εκ θανάτου απογνώσεως, καί εξ άδου, νύν τής απωλείας με."), ("Θεοτοκίον", "", "Τήν παγκόσμιον δόξαν, τήν εξ ανθρώπων σπαρείσαν, καί τόν Δεσπότην τεκούσαν, τήν επουράνιον πύλην, υμνήσωμεν Μαρίαν τήν παρθένον, τών Ασωμάτων τό άσμα, καί τών πιστών τό εγκαλλώπισμα. Αύτη γάρ ανεδείχθη ουρανός, καί ναός τής θεότητος. Αύτη τό μεσότοιχον τής έχθρας καθελούσα, ειρήνην αντεισήξε, καί τό βασίλειον ηνέωξε. Ταύτην ούν κατέχοντες, τής πίστεως τήν άγκυραν, υπέρμαχον έχομεν, τόν εξ αυτής τεχθέντα Κύριον. Θαρσείτω τοίνυν, θαρσείτω λαός τού Θεού, καί γάρ αυτός πολεμήσει τούς εχθρούς, ως παντοδύναμος."), ), "S": ( ("Μαρτυρικὰ", "", "Ἡ ἐν σταδίῳ ὑμῶν ὁμολογία Ἅγιοι, τῶν δαιμόνων κατέπτηξε τὴν δύναμιν, καὶ τῆς πλάνης τοὺς ἀνθρώπους ἠλευθέρωσε· διὸ καὶ τὰς κεφαλὰς ἀποτεμνόμενοι, ἐκράζετε. Γενέσθω, Κύριε, ἡ θυσία τῶν ψυχῶν ἡμῶν, εὐπρόσδεκτος ἐνώπιόν σου, ὅτι σὲ ποθήσαντες, κατεφρονήσαμεν τῆς προσκαίρου ζωῆς φιλάνθρωπε."), ("Μαρτυρικὰ", "", "Ὢ τῆς καλὴς ὑμῶν πραγματείας Ἅγιοι! ὅτι αἵματα ἐδώκατε, καὶ οὐρανοὺς ἐκληρονομήσατε, καὶ πρὸς καιρὸν πειρασθέντες, αἰωνίως ἀγάλλεσθε, ὄντως καλὸν ὑμῶν τὸ ἐμπόρευμα! Φθαρτὰ γὰρ καταλιπόντες, τὰ ἄφθαρτα ἀπελάβετε, καὶ σὺν Ἀγγέλοις χορεύοντες, ὑμνεῖτε ἀπαύστως, Τριάδα ὁμοούσιον."), ("Αὐτόμελον", "", "Πανεύφημοι μάρτυρες υμάς, ουχ η γή κατέκρυψεν, αλλ' ουρανός ύπεδέξατο, υμίν ηνοίγησαν, Παραδείσου πύλαι, καί εντός γενόμενοι, τού ξύλου τής ζωής απολαύετε, Χριστώ πρεσβεύοντες, δωρηθήναι ταίς ψυχαίς ημών, τήν ειρήνην καί τό μέγα έλεος."), ("Νεκρώσιμον", "", "Ποία τοῦ βίου τρυφὴ διαμένει λύπης ἀμέτοχος; ποία δόξα ἕστηκεν ἐπὶ γῆς ἀμετάθετος; πάντα σκιᾶς ἀσθενέστερα, πάντα ὀνείρων ἀπατηλότερα, μία ῥοπή, καὶ ταῦτα πάντα θάνατος διαδέχεται. Ἀλλ' ἐν τῷ φωτὶ Χριστὲ τοῦ προσώπου σου, καὶ τῷ γλυκασμῷ τῆς σῆς ὡραιότητος, οὓς ἐξελέξω ἀνάπαυσον ὡς φιλάνθρωπος."), ("Θεοτοκίον", "", "Χαίροις παρ' ημών αγία Θεοτόκε Παρθένε, τό σεπτόν κειμήλιοναπάσης τής οικουμένης, η λαμπάς η άσβεστος, τό χωρίον τού αχωρήτου, ο ναός ο ακατάλυτος. Χαίροις εξ ής Αμνός ετέχθη, ο αίρων τήν αμαρτίαν τού κόσμου.") ), // -> Ἀπολυτίκιον τοῦ ῆχου β' // Ἀπόστολοι Μάρτυρες, καὶ Προφῆται Ἱεράρχαι, Ὅσιοι καὶ Δίκαιοι, οἱ καλῶς τὸν ἀγῶνα τελέσαντες, καὶ τὴν πίστιν τηρήσαντες, παρρησίαν ἔχοντες πρὸς τὸν Σωτῆρα, ὑπὲρ ἡμῶν αὐτὸν ὡς ἀγαθὸν ἱκετεύσατε, σωθῆναι δεόμεθα τὰς ψυχὰς ἡμῶν. // -> Νεκρώσιμον. // Μνήσθητι, Κύριε, ὡς ἀγαθὸς τῶν δούλων Σου καὶ ὅσα ἐν βίῳ ἥμαρτον συγχώρησον· οὐδεὶς γὰρ ἀναμάρτητος, εἰ μὴ Σὺ ὁ δυνάμενος καὶ τοῖς μεταστᾶσι δοῦναι τὴν ἀνάπαυσιν. // -> Θεοτοκίον // Μήτηρ ἁγία, ἡ τοῦ ἀφράστου φωτός, ἀγγελικοῖς σε ὕμνοις τιμῶντες, εὐσεβῶς μεγαλύνομεν. ) #let U_So = ( "S1": ( ("", "Τοῦ λίθου σφραγισθέντος", "Ὡς καλοὶ στρατιῶται ὁμοφρόνως πιστεύσαντες, τὰς ἀπειλὰς τῶν τυράννων μὴ πτοούμενοι Ἅγιοι, προσήλθετε προθύμως τῷ Χριστῷ, ἀράμενοι τὸν τίμιον Σταυρόν, καὶ τελέσαντες τὸν δρόμον, ἐξ οὐρανοῦ τὴν νίκην ἐλάβετε. Δόξα τῷ ἐνισχύσαντι ὑμᾶς, δόξα τῷ στεφανώσαντι, δόξα τῷ ἐνεργοῦντι δι' ὑμῶν, πᾶσιν ἰάματα."), ("Μαρτυρικὸν", "", "Τὰς ἀλγηδόνας τῶν Ἁγίων, ἃς ὑπὲρ σοῦ ἔπαθον, δυσωπήθητι Κύριε, καὶ πάσας ἡμῶν τὰς ὀδύνας, ἴασαι φιλάνθρωπε δεόμεθα."), ("", "", "Τοὺς μάρτυρας Χριστοῦ, ἱκετεύσωμεν πάντες· αὐτοὶ γὰρ τὴν ἡμῶν, σωτηρίαν αἰτοῦνται, καὶ πόθῳ προσέλθωμεν, πρὸς αὐτοὺς μετὰ πίστεως, οὗτοι βρύουσι, τῶν ἰαμάτων τὴν χάριν, οὗτοι φάλαγγας, ἀποσοβοῦσι δαιμόνων, ὡς φύλακες τῆς πίστεως."), ("Θεοτοκίον", "", "Τοῦ Γαβριὴλ φθεγξαμένου σοι Παρθένε τὸ Χαῖρε, σὺν τῇ φωνῇ ἐσαρκοῦτο, ὁ τῶν ὅλων Δεσπότης, ἐν σοὶ τῇ ἁγίᾳ κιβωτῷ, ὡς ἔφη ὁ δίκαιος Δαυΐδ, ἐδείχθης πλατυτέρα τῶν οὐρανῶν, βαστάσασα τὸν Κτίστην σου. Δόξα τῷ ἐνοικήσαντι ἐν σοί, δόξα τῷ προελθόντι ἐκ σοῦ, δόξα τῷ ἐλευθερώσαντι ἡμᾶς διὰ τοῦ τόκου σου."), ), "S2": ( ("Μαρτυρικὸν", "Τὸν τάφον σου Σωτὴρ", "Ἀθλήσεως καύχημα, καὶ στεφάνων ἀξίωμα, οἱ ἔνδοξοι ἀθλοφόροι, περιβέβληνταί σε Κύριε· καρτερίᾳ γὰρ αἰκισμῶν, τοὺς ἀνόμους ἐτροπώσαντο, καὶ δυνάμει θεϊκῇ, ἐξ οὐρανοῦ τὴν νίκην ἐδέξαντο· αὐτῶν ταὶς ἱκεσίαις, δώρησαι ἡμῖν τὸ μέγα σου ἔλεος."), ("Νεκρώσιμα", "", "Τὸ τοῦ θανάτου κράτος, Χριστὲ κατήργησας, καὶ ἀφθαρσίαν τοὶς ἐπὶ γῆς ἐπήγασας, καὶ οἱ εἰς σὲ πιστεύοντες οὐ θνῄσκουσιν, ἀλλὰ ζῶσιν ἐν σοί. Ἀνάπαυσον οὖν Κύριε, τὰς ψυχὰς τῶν δούλων σου, καὶ κατάταξον αὐτοὺς μετὰ τῶν Ἁγίων σου, πρεσβείαις τῆς Θεοτόκου, χαριζόμενος αὐτοῖς τὰ ἐλέη σου."), ("Νεκρώσιμα", "Τὸν τάφον σου Σωτὴρ", "Ἐν τόπῳ φωτεινῷ, ἐν χορῷ τῶν δικαίων, ἀνάπαυσον Σωτήρ, τοὺς πρὸς σὲ μεταστάντας· εἰς σὲ γὰρ φιλάνθρωπε, τὰς ἐλπίδας ἀνέθεντο. Δέξαι δέησιν, ὑπὲρ πατέρων καὶ τέκνων, καὶ δικαίωσον, ὧν ἐκτελοῦμεν τὴν μνήμην, ὡς ὢν πολυέλεος."), ("Θεοτοκίον", "", "Θαῦμα θαυμάτων, Κεχαριτωμένη, ἐν σοὶ θεωροῦσα ἡ κτίσις ἀγάλλεται· συνέλαβες γὰρ ἀσπόρως, καὶ ἔτεκες ἀφράστως, ὃν ταξιαρχίαι Ἀγγέλων ὁρᾶν οὐ δεδύνηνται, αὐτὸν Θεοτόκε ἱκέτευε, ὑπὲρ τῶν ψυχῶν ἡμῶν."), ), "K": ( "P1": ( "1": ( ("", "", "Σοῦ ἡ τροπαιοῦχος δεξιά, θεοπρεπῶς ἐν ἰσχύϊ δεδόξασται. Αὕτη γὰρ ἀθάνατε, ὡς πανσθενὴς ὑπεναντίους ἔθραυσε, τοῖς Ἰσραηλίταις, ὀδὸν βυθοῦ καινουργὴσασα."), ("", "", "Χερσὶν ὡμοιώθης Προφητῶν, ὁ τῇ χειρί σου συνέχων τὰ πέρατα, τούτων παρακλήσεσι, τὸ τῶν ἐμῶν ἁμαρτιῶν χειρόγραφον, Λόγε διαρρήξας, ἐχθροῦ χειρῶν με ἐξάρπασον."), ("", "", "Θείων ἐπιλάμψεων τὸν νοῦν, προφητικῶς δεκτικὸν ἐργασάμενοι, φῶς ἐχρηματίσατε, τὴν νοητὴν ἀνατολὴν κηρύττοντες, ἔνδοξοι Προφῆται, φωταγωγοὶ τῶν ψυχῶν ἡμῶν."), ("Μαρτυρικὰ", "", "Αἵμασιν ὑμῶν ἀθλητικοῖς, πολυθεΐας ξηράναντες πέλαγος, τῶν ἀνομιῶν ἡμῶν, τοὺς ποταμοὺς ξηράνατε μακάριοι, θείαις ἑπομβρίαις, τῶν ἱερῶν προσευχῶν ὑμῶν."), ("Μαρτυρικὰ", "", "Νέφος ἀθλητῶν φωτοειδές, τὸν ἐκ Παρθένου νεφέλης ἐκλάμψαντα, Ἥλιον δυσώπησον, τὰ σκοτεινὰ νέφη, τῶν καρδιῶν ἡμῶν ἐναποδιῶξαι, καὶ τῆς γεέννης λυτρώσασθαι."), ("Θεοτοκίον", "", "Γνώμῃ ὀλισθαίνοντα ἀεί, καὶ λογισμοῖς πονηροῖς ἐξελκόμενον, καὶ δελεαζόμενον, φρενοβλαβῶς δέ, τοῖς ἐχθροῖς εὐχείρωτον, ὅλον γεγονότα, μὴ ὑπερίδῃς με Δέσποινα."), ), "2": ( ("", "", "Σοῦ ἡ τροπαιοῦχος δεξιά"), ("", "", "Πύλας τοῦ θανάτου καὶ μοχλούς, τῷ σῷ θανάτῳ συντρίψας, ἀθάνατε, πύλας ἀναπέτασον, τῆς ὑπὲρ νοῦν ἀθανασίας Δέσποτα, τοῖς κεκοιμημένοις, πρεσβείαις τῶν ἀθλοφόρων σου."), ("", "", "Ἵνα τῆς ἐνθέου σου ζωῆς, ἀξιωθῶμεν κατῆλθες πρὸς θάνατον, τούτου προνομεύσας δέ, τοὺς θησαυρούς, ἡμᾶς ἐκεῖθεν εἵλκυσας, νῦν δὲ ζωοδότα, τοὺς μεταστάντας ἀνάπαυσον."), ("", "", "Σύ μου τὸ φθαρτόν τε καὶ θνητόν, ἀναλαβὼν ἀφθαρσίαν ἐνέδυσας, καὶ πρὸς ἀτελεύτητον, διαγωγὴν καὶ μακαρίαν ὕψωσας, ἔνθα ὡς οἰκτίρμων, οὓς προσελάβου ἀνάπαυσον."), ("Θεοτοκίον", "", "Τὴν κυοφορήσασαν πιστοί, τὸν ἐκ Θεοῦ Θεὸν Λόγον ὑμνήσωμεν· αὕτη γὰρ ἡ Πάναγνος, ὁδὸς ζωῆς τοὶς τεθνεῶσι γέγονεν, ἣν ὡς θεοδόχον καὶ Θεοτόκον δοξάζομεν."), ), ), "P3": ( "1": ( ("", "", "Ὁ μόνος εἰδὼς τῆς τῶν βροτῶν, οὐσίας τὴν ἀσθένειαν, καὶ συμπαθῶς αὐτὴν μορφωσάμενος, περίζωσόν με ἐξ ὕψους δύναμιν, τοῦ βοᾷν σοι, Ἅγιος, ὁ ναὸς ὁ ἔμψυχος, τῆς ἀφράστου σου δόξης Φιλάνθρωπε."), ("", "", "Δοχεῖα τοῦ Πνεύματος σοφοί, Προφῆται χρηματίσαντες, τὴν πρὸς ἡμᾶς τοῦ Λόγου κατάβασιν, φαεινοτάτως διετρανώσατε· διὸ δυσωπήσατε, φωτισμὸν καὶ ἔλεος, δωρηθῆναι τοῖς πίστει τιμῶσιν ὑμᾶς."), ("", "", "Πλαξὶ καρδιῶν ὑμῶν σοφοί, τὸν νόμον τὸν σωτήριον, ἐγγεγραμμένον πίστει ἐσχήκατε· διὸ τῷ νόμῳ τῆς ἁμαρτίας με, χαλεπῶς τροπούμενον, θείαις παρακλήσεσι, θεηγόροι Προφῆται λυτρώσασθε."), ("Μαρτυρικὰ", "", "Φρύαγμα τυράννων δυσσεβές, γενναίως συνετρίψατε, πρὸς τὸν Θεὸν ὑψούμενοι μάρτυρες· διὸ κραυγάζω, κατεπαιρόμενον, καὶ σοβαρευόμενον, κατ' ἐμοῦ τὸν δράκοντα, ταῖς ὑμῶν ἱκεσίαις συντρίψατε."), ("Μαρτυρικὰ", "", "Θείων παθημάτων κοινωνοί, μελλούσης βασιλείας τε, ἀδιαδόχου μάρτυρες ἔνδοξοι, παθῶν σαρκός με ἀπολυτρώσασθε, καὶ γεέννης ῥύσασθε, καὶ μελλούσης κρίσεως, ταῖς ὑμῶν πρὸς τὸν Κτίστην δεήσεσιν."), ("Θεοτοκίον", "", "Σκηνὴ πλατυτέρα οὐρανῶν, λαόν σου συνερχόμενον, ἐν τῇ σκηνῇ σόυ ταύτῃ ὑμνῆσαί σε, σκηνῶν ἀΰλων μέτοχον ποίησον, τῇ θερμῇ δεήσει σου, τῇ πρὸς Χριστὸν ὅν ἔτεκες, τὸν Δεσπότην ἁπάντων καὶ Κύριον."), ), "2": ( ("", "", "Ὁ μόνος εἰδὼς"), ("", "", "Ὡς μόνος ὑπάρχων ἀγαθός, καὶ μόνος πολυέλεος, τοὺς εὐσεβῶς πρὸς σὲ ἐκδημήσαντας, ἐν οὐρανίαις σκηναῖς ἀνάπαυσον, ἔνθα ἡ ἀνέκφραστος, χαρὰ καὶ ἀπόλαυσις, ἔνθα νέφος Μαρτύρων εὐφραὶνεται."), ("", "", "Σὺ μόνος ἐφάνης ἐπὶ γῆς, Σωτήρ μου ἀναμάρτητος, ὁ ἁμαρτίας αἴρων ὡς εὔσπλαγχνος, τοῦ κόσμου τούτου τῶν μεταστάντων πιστῶς, τὰς ψυχὰς ἀνάπαυσον, ἐν αὐλαῖς Ἁγίων σου, ἐν τρυφῇ Παραδείσου φιλάνθρωπε."), ("", "", "Θανάτου τὸ κράτος καθελών, ζωὴν τὴν ἀτελεύτητον, πᾶσι πιστοῖς ἐπήγασας, Δέσποτα, ἐν ταύτῃ τούτους τοὺς ἐκδημήσαντας, εὐσεβῶς κατάταξον, παρορῶν τὰ πταίσματα, συγχωρῶν ἁμαρτίας Ἀθάνατε."), ("Θεοτοκίον", "", "Ἀσπόρως συνέλαβες Ἁγνή, τὸν Λόγον τὸν ἀΐδιον, σωματικῶς ἡμῖν ὁμιλήσαντα, τὸν τοῦ θανάτου τὴν ἰσχὺν λύσαντα, καὶ ζωὴν πηγάσαντα, καὶ θνητοῖς ἀνάστασιν, τῇ αὐτοῦ εὐσπλαγχνίᾳ παρέχοντα."), ), ), "P4": ( "1": ( ("", "", "Ὄρος σε τῇ χάριτι, τῇ θείᾳ κατάσκιον, προβλεπτικοῖς ὁ Ἀββακούμ, κατανοήσας ὀφθαλμοῖς, ἐκ σοῦ ἐξελεύσεσθαι, τοῦ Ἰσραὴλ προανεφώνει τὸν Ἅγιον, εἰς σωτηρίαν ἡμῶν καὶ ἀνάπλασιν."), ("", "", "Λαμπάδες ἐν Πνεύματι, ζωῆς λόγον φαίνουσαι, καὶ τὰ πληρώματα τῆς γῆς, φωταγωγοῦσαι μυστικῶς, Προφῆται ὡράθητε· διὸ βοῶ· Εὐχαῖς ἡμῶν συντηρήσατε, τὴν τῆς ψυχῆς μου λαμπάδα ἀκοίμητον."), ("", "", "Ὡς πλήρεις ναμάτων, ζωηρρύτων τοῦ Πνεύματος, ἀναφανέντες ποταμοί, καὶ καταρδεύοντες τὴν γῆν, Προφῆται θεσπέσιοι, τὴν τῷ αὐχμῷ κατατακεῖσαν καρδίαν μου, καταδροσίσατε ταύτην πανεύφημοι."), ("Μαρτυρικὰ", "", "Αἱμάτων πανεύφημοι, ῥανίσι τοὺς ἄνθρακας, ἐναποσβέσαντες σοφοί, τῆς ἀθεΐας ἀθληταί, τοῖς πεπυρωμένοις με, τοῦ πονηροῦ καταφλεγόμενον βέλεσι, καταδροσίσατε δρόσῳ τοῦ Πνεύματος."), ("Μαρτυρικὰ", "", "Μαρτύρων Χριστέ μου, τὰς λιτὰς προσδεξαμενος, ἐναθλησάντων ὑπὲρ σοῦ, καὶ νικησάντων τὸν ἐχθρόν, ἐχθρῶν ὀρωμένων με, ὡς ἀγαθός, καὶ ἀοράτων ἐξάρπασον, ἐπιζητούντων ἀεὶ θανατῶσαί με."), ("Θεοτοκίον", "", "Ναὀν σε τῆς δόξης, ἐπιστάμενοι Ἄχραντε, ἐν τῷ ναῷ σου τῷ σεπτῷ, συναθροιζόμενοι πιστῶς, τὴν σὴν ἐξαιτούμεθα, θεοπρεπῶς ἁγνὴ Παρθένε βοήθειαν, καὶ τῇ σεπτῇ σου πρεσβείᾳ σῳζόμεθα."), ), "2": ( ("", "", "Ὄρος σε τῇ χάριτι"), ("", "", "Νεκρώσας τὸν ᾅδην, ἀηττήτῳ δυνάμει σου, ὁ λογισθεὶς ἐν τοῖς νεκροῖς, μόνος ἐλεύθερος Χριστέ, ψυχὰς ἐλευθέρωσον, τῶν εὐσεβῶν τῆς ἐν αὐτῷ κατακρίσεως, ταῖς τῶν ἁγίων μαρτύρων δεήσεσιν."), ("", "", "Ὁ πάντων ὑπάρχων, ὡς Δεσπότης ἀντάξιος, τοὺς ἐξ Ἀδὰμ τῆς σῆς σφαγῆς, λύτρον ἐδέξω καὶ τιμήν· διό σου δεόμεθα, τῶν οἰκτιρμῶν τοὺς μετασταντας ἀνάπαυσον, τὴν τῶν πταισμάτων παρέχων συγχώρησιν."), ("", "", "Ὑπέστης Σωτήρ μου, τὴν ἐν τάφῳ κατάθεσιν, καὶ τοὺς ἐν τάφοις κατοικεῖν, κατακριθέντας γηγενεῖς, νεκροὺς ἐξανέστησας, νῦν δὲ ζωῆς τῆς ἀϊδίου, ἀξίωσον τούς μεταστάντας, ὡς μόνος φιλάνθρωπος."), ("Θεοτοκίον", "", "Σέσωσται τὸ γένος, τῶν ἀνθρώπων τῷ τόκῳ σου· σὺ γὰρ ἐκύησας ἡμῖν, τὴν ἐνυπόστατον ζωήν, θανάτου καθαίρεσιν καὶ πρὸς ζωὴν ἐργαζομένην ἐπάνοδον, Θεογεννῆτορ πανάμωμε Δέσποινα."), ), ), "P5": ( "1": ( ("", "", "Ὁ φωτίσας τῇ ἐλλάμψει, τῆς σῆς παρουσίας Χριστέ, καὶ φαιδρύνας τῷ Σταυρῷ σου, τοῦ κόσμου τὰ πέρατα, τάς καρδίας φώτισον, φωτὶ τῆς σῆς θεογνωσίας, τῶν ὀρθοδόξως ὑμνούντων σε."), ("", "", "Οἱ τοῦ Νόμου τῇ σκιᾷ, εὐσεβῶς διαπρέψαντες, καὶ τὸ φέγγος τῆς ἐνθέου, μηνύσαντες χάριτος, τῆς σκιᾶς με ῥύσασθε, θανατηφόρου ἁμαρτίας, Θεοῦ Προφῆται πανένδοξοι."), ("", "", "Ἐπορθρίσας πρὸς Θεόν, ἐκ νυκτὸς θεαυγέστατε, Ἡσαΐα, ἐφωτίσθης, καὶ φῶς ἐχρημάτισας· διὸ ἱκετεύω σε, τὴν σκοτισθεῖσάν μου καρδίαν, σαῖς προσευχαῖς φωταγώγησον."), ("Μαρτυρικὰ", "", "Τεινόμενοι καὶ τὸ σῶμα, ποιναῖς συντριβόμενοι, πανεύφημοι ἀθλοφόροι, Θεὸν ἐδοξάσατε, τοῖς οἰκείοις μέλεσιν, ὃν ἱκετεύσατε τυχεῖν με, δόξης ἐνθέου μακάριοι."), ("Μαρτυρικὰ", "", "Συλλαβεῖν με ἐν γαστρί, διανοίας τὸν φόβον σου, καὶ κυῆσαι σωτηρίας σου, πνεῦμα ἀξίωσον, διὰ τῶν Μαρτύρων σου, τῶν ὁλικῶς σε ποθησάντων, Λόγε Θεοῦ ὑπεράγαθε."), ("Θεοτοκίον", "", "Μητέρα σε τοῦ τὰ πάντα, βουλήσει ποιήσαντος, γινώσκοντες τῷ ναῷ σου, τῷ θείῳ προστρέχομεν, ἐν αὐτῷ αἰτούμενοι, τῇ μεσιτείᾳ σου Παρθένε, λύσιν σφαλμάτων κομίσασθαι."), ), "2": ( ("", "", "Ὁ φωτίσας τῇ ἐλλάμψει"), ("", "", "Ἰώμενος τὸν ἰὸν τοῦ θανάτου, τὸν θάνατον κατεδέξω, καὶ θανάτου τὸ κέντρον ἠμαύρωσας, ἀλλ' αὐτὸς ἀνάπαυσον, οὓς προσελάβου ζωοδότα, ταῖς τῶν Μαρτύρων δεήσεσιν."), ("", "", "Νεκρώσεως καὶ φθορᾶς, τοὺς ἀνθρώπους ἀπήλλαξας, τὰ πνεύματα τῶν πιστῶς, μεταστάντων κατάταξον, ἐν σκηναῖς Ἁγίων σου· ὅθεν ἀπέδρα πᾶσα λύπη, καὶ εὐφροσύνη πεφύτευται."), ("", "", "Παράδεισον τῷ σὺν σοί, κρεμασθέντι ὡς ἤνοιξας, νῦν προσδέχου τὰς ψυχάς, τῶν πρὸς σὲ διὰ πίστεως, μεταστάντων Δέσποτα, διδοὺς αὐτοῖς ἐν Ἐκκλησίᾳ, τῶν πρωτοτόκων αὐλίζεσθαι."), ("Θεοτοκίον", "", "Ῥυομένη τοὺς ἐν σοί, τῆς ἐλπίδος τὴν ἄγκυραν, κατέχοντας, πρὸς λιμένα τοῦ θείου θελήματος, εὐμενῶς ὁδήγησον, τῇ μητρικῇ σου παρρησίᾳ, εὐλογημένη Πανάμωμε."), ), ), "P6": ( "1": ( ("", "", "Ἐκύκλωσεν ἡμᾶς ἐσχάτη ἄβυσσος, οὔκ ἐστιν ὁ ῥυόμενος, ἐλογίσθημεν ὡς πρόβατα σφαγῆς, σῶσον τὸν λαόν σου ὁ Θεὸς ἡμῶν·"), ("", "", "σὺ γὰρ ἰσχύς, τῶν ἀσθενούντων καὶ ἐπανόρθωσις."), ("", "", "Πελάγει με τοῦ βίου κινδυνεύοντα, καὶ κήτει προσριπτούμενον ἁμαρτίας, ἀναμάρτητε Χριστέ, ὡς τὸν Ἰωνᾶν ἐκ φθορᾶς ἐξάρπασον, καὶ πρὸς ζωῆς γαληνοτάτους, λιμένας ἴθυνον."), ("", "", "Χορὸς προφητικὸς καθικετεύει σε, οἱ Νόμῳ διαλάμψαντες, τὸν πρὸ Νόμου θεραπεύσαντες Χριστόν, σὲ τὸν ἐν αὐτοῖς ἀναπαυόμενον, ἁμαρτιῶν πᾶσι παράσχου, λύσιν ὡς εὔσπλαγχνος."), ("Μαρτυρικὰ", "", "Κυκλούμενοι ποιναῖς καὶ μαστιγώσεσι, Χριστὸν οὐκ ἐξηρνήσασθε, παμμακάριστοι· διό με τοῦ ἐχθροῦ, ταῖς ἐπαγωγαῖς περικυκλούμενον, ταὶς πρὸς Θεὸν ὑμῶν πρεσβείαις, ἀπολυτρώσασθε."), ("Μαρτυρικὰ", "", "Τῶν ἄθλων καλλοναῖς ὡραϊζόμενοι, τῇ πάντων ὡραιότητι, πλησιάζετε ὁπλῖται τοῦ Χριστοῦ· ὅθεν δυσωπῶ τῆς διανοίας μου, τὸ ἀκαλλὲς καθωραΐσαι, θείαις δεήσεσιν."), ("Θεοτοκίον", "", "Μαρία καθαρὸν τοῦ Λόγου σκήνωμα, παθῶν ἐναποκάθαρον, τὴν καρδίαν μου καὶ σκεῦος καθαρόν, Πνεύματος τοῦ θείου ἀποτέλεσον, ἵνα ὑμνῶ καὶ μεγαλύνω, σὲ τὴν Πανύμνητον."), ), "2": ( ("", "", "Ἐκύκλωσεν ἡμᾶς ἐσχάτη ἄβυσσος"), ("", "", "Ὡς εὔπλαγχνος τοῖς μεταστᾶσι δώρησαι, πταισμάτων τὴν συγχώρησιν, τὴν αἰώνιον ἀπόλαυσιν διδούς, ἔνθα καταλάμπει τοῦ προσώπου σου, ὁ φωτισμός, καὶ καταυγάζει, τοὺς ἀθλοφόρους σου."), ("", "", "Τῷ αἵματι τῷ ἐκ πλευρᾶς σου ῥεύσαντι, τὸν κόσμον ἠλευθέρωσας, τοὺς ἐν πίστει μεταστάντας οὖν πρὸς σέ, ῥῦσαι τῇ δυνάμει τῶν παθημάτων σου· σὺ γὰρ τιμήν, τὴν ὑπὲρ πάντων, σεαυτὸν δέδωκας."), ("", "", "Ὁ πλάσας με χερσὶν ἀχράντοις πρότερον, καὶ πνεῦμα χαρισάμενος, καὶ πρὸς γῆν καταπεσόντα χαλεπῶς, πάλιν ἀναπλάσας ὡραιότερον, νῦν τὰς ψυχάς, τῶν μεταστάντων, αὐτὸς ἀνάπαυσον."), ("", "", "Νυμφῶνά σου τὸν φωτοφόρον Κύριε, σκηνῶσαι καταξίωσον, τοὺς ἐν πίστει κοιμηθέντας τῇ εἰς σέ, τούτων παρορῶν τὰ ἁμαρτήματα, ὡς ἀγαθός, καὶ ἐλεήμων, καὶ πολυέλεος."), ("Θεοτοκίον", "", "Ὑμνοῦμέν σε, εὐλογημένη Ἄχραντε, δι' ἧς ἡμῖν ἀνέτειλε, τοῖς ἐν σκότει τοῦ θανάτου καὶ σκιᾷ, τῆς δικαιοσύνης ἄδυτος Ἥλιος· σὺ γὰρ ἡμῖν τῆς σωτηρίας, πρόξενος γέγονας."), ), ), "P7": ( "1": ( ("", "", "Σὲ νοητήν, Θεοτόκε κάμινον, κατανοοῦμεν οἱ πιστοὶ ὡς γὰρ Παῖδας ἔσωσε τρεῖς, ὁ ὑπερυψούμενος, ὅλον με τὸν ἄνθρωπον, ἐν τῇ γαστρί σου ἀνέπλασεν, ὁ αἰνετὸς τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("", "", "Τῶν Προφητῶν, δυσωπεῖ σε Κύριε, ὁ ἱερώτατος χορός, εὐλογίαις πνευματικαῖς, πάντας ἐπευλόγησον τοὺς δοξολογοῦντας σε, καὶ ἐν αἰνέσει κραυγάζοντας· ὁ αἰνετός τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("", "", "Οἱ τοῦ πυρός, φύσιν ἐκνικήσαντες, ἐπουρανίῳ δροσισμῷ, θεῖοι Παῖδες ἐκ τοῦ πυρός, τοῦ διαιωνίζοντος, ῥύσασθέ με ψάλλοντα, καὶ ἐν αἰνέσει κραυγάζοντα, ὁ αἰνετός τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("Μαρτυρικὰ", "", "Μαρτυρικαῖς, νίκαις κλεϊζόμενοι, δόξης ἐτύχετε Θεοῦ, αἰωνίου δόξης ἡμᾶς· ὅθεν ἀξιώσατε, Μάρτυρες πανένδοξοι, τοὺς εὐσεβῶς ἀναμέλποντας, ὁ αἰνετὸς τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("Μαρτυρικὰ", "", "Οἱ τὰς ὁρμάς, τῶν λεόντων παύσαντες, τῇ πρὸς τὸν Κύριον ὁρμῇ, τὸν ὁρμῶντα νῦν κατ΄ ἐμοῦ, δράκοντα πατάξατε Μάρτυρες, καὶ σώσατε εὐσεβοφρόνως βοῶντά με· ὁ αἰνετὸς τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("Θεοτοκίον", "", "Πρὸς τὸν ἐκ σοῦ, γεννηθέντα Κύριον, γενοῦ μεσίτης Ἀγαθή, τῆς γεέννης καὶ τοῦ πυρός, ὅπως με λυτρώσηται, καὶ καταξιώσῃ με τῆς βασιλείας κραυγάζοντα· ὁ αἰνετός τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ), "2": ( ("", "", "Σὲ νοητήν"), ("", "", "Μαρμαρυγαῖς, τῆς ἀχράντου δόξης σου, περιαυγάζεσθαι Χριστέ, τοὺς ἐκ ζάλης τῆς κοσμικῆς, πρὸς σὲ ἐκδημήσαντας, πάντας καταξίωσον, μετὰ Μαρτύρων κραυγάζειν σοι· ὁ αἰνετὸς τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("", "", "Νέος Ἀδάμ, ἀληθῶς γενόμενος, ὁ τοῦ Ἀδὰμ δημιουργός, τὴν κατάραν τὴν τοῦ Ἀδάμ, μόνος ἐξηφάνισας· ὅθεν σου δεόμεθα, τοὺς μεταστάντας ἀνάπαυσον, ἐν τῇ τρυφῇ τοῦ Παραδείσου Χριστέ, ὡς μόνος ἐϋσπλαγχνος."), ("", "", "Ὁ τὴν ἡμῶν, φυσικὴν ἀσθένειαν, μόνος γινώσκων ὡς Θεός, ἀγαθός τε καὶ συμπαθής, πάντας οὓς μετέστησας, ἔνθα φῶς τὸ ἄδυτον, ἐπισκοπεῖ τοῦ προσώπου σου, τάξον Χριστέ, ὁ τῶν Πατέρων, Θεὸς καὶ ὑπερένδοξος."), ("Θεοτοκίον", "", "Νόμου σκιαί, καὶ τὰ πρὶν αἰνίγματα, τῷ σῷ παρῆλθον τοκετῷ Θεομῆτορ· σὺ γὰρ ἡμῖν τὸ τῆς θείας χάριτος, φέγγος ἐξανέτειλας, δι' οὗ τῆς πρὶν ἐκλυτρούμεθα, ἀρᾶς, Ἁγνή, ἀνυμνοῦντες, Θεὸν τὸν ὑπερένδοξον."), ), ), "P8": ( "1": ( ("", "", "Ἐν καμίνῳ Παῖδες Ἰσραήλ, ὡς ἐν χωνευτηρίῳ, τῷ κάλλει τῆς εὐσεβείας, καθαρώτερον χρυσοῦ, ἀπέστιλβον λέγοντες· Εὐλογεῖτε πάντα τὰ ἔργα Κυρίου, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε, εἰς πάντας τοὺς αἰῶνας."), ("", "", "Πειρασθέντες καὶ διὰ Χριστόν, ἀδίκως διωχθέντες Προφῆται, ἐκ πειρασμῶν τε καὶ κολάσεων ἡμᾶς, λυτρώσασθε μέλποντας· Εὐλογεῖτε πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε εἰς πάντας τοὺς αἰῶνας."), ("", "", "Ὡς δοχεῖα θείων δωρεῶν, Προφῆται θεηγόροι πρεσβεύσατε, καταγώγια ἡμᾶς γενέσθαι τοῦ Πνεύματος, τοὺς βοῶντας· Πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε, εἰς πάντας τοὺς αἰῶνας."), ("Μαρτυρικὸν", "", "Δεσμευθέντες πᾶσαν τοῦ ἐχθροῦ, ἐλύσατε κακίαν· διό με πεπεδημένον, ἁμαρτήμασι σοφοί, λυτρώσατε Μάρτυρες, μελῳδοῦντα· Πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε εἰς πάντας τοὺς αἰῶνας."), ("Θεοτοκίον", "", "Φωτοδότην τέξασα Θεόν, ὁλόφωτε Παρθένε, τὰ ὄμματα τῆς καρδίας μου, καταύγασον φωτί, Θεοῦ ἐπιγνώσεως, εἰς τὸ μέλπειν· Πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε εἰς πάντας τοὺς αἰῶνας."), ), "2": ( ("", "", "Ἐν καμίνῳ Παῖδες"), ("", "", "Παραστάτας Σῶτερ δεξιούς, τῇ πίστει δικαιώσας, πρεσβείαις τῶν ἀθλοφόρων, οὓς μετέστησας πιστούς, ἀνάδειξον μέλποντας· Εὐλογεῖτε πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε εἰς πάντας τοὺς αἰῶνας."), ("", "", "Ῥύπον πάντα τῶν σῶν οἰκετῶν, τῆς σῆς φιλανθρωπίας, τῇ δρόσῳ τῶν κοιμηθέντων, ἀποπλύνας σε ὑμνεῖν, ἀξίωσον ψάλλοντας· Εὐλογεῖτε πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε εἰς πάντας τοὺς αἰῶνας."), ("", "", "Ὁ θανάτου ἔχων καὶ ζωῆς, πᾶσαν τὴν ἐξουσίαν, τοὺς πίστει κεκοιμημένους, σῆς ἐλλάμψεως τυχεῖν, εὐδόκησον κράζοντας· Εὐλογεῖτε πάντα τὰ ἔργα, τὸν Κύριον ὑμνεῖτε, καὶ ὑπερυψοῦτε εἰς πάντας τοὺς αἰῶνας."), ("Θεοτοκίον", "", "Σωτηρίας πρόξενος ἡμῖν, καὶ τῆς εἰς ἀπεράντους αἰῶνας, διαμονῆς τε καὶ λαμπρότητος, Ἁγνὴ ἐγένου Πανάμωμε. Σὲ ὑμνοῦμεν πάντα τὰ ἔργα, καὶ ὑπερυψοῦμεν εἰς πάντας τοὺς αἰῶνας."), ), ), "P9": ( "1": ( ("", "", "Τύπον τῆς ἁγνῆς λοχείας σου, πυρπολουμένη βάτος ἔδειξεν ἄφλεκτος, καὶ νῦν καθ' ἡμῶν, τῶν πειρασμῶν ἀγριαίνουσαν, κατασβέσαι αἰτοῦμεν τὴν κάμινον, ἵνα σε Θεοτόκε, ἀκαταπαύστως μεγαλύνωμεν."), ("", "", "Ἵνα ἱεροῖς σκηνώμασι, προδηλωθῇ Χριστέ, σοῦ ἡ συγκατάβασις, σκεύη ἐκλεκτὰ τοὺς σοὺς Προφήτας ἀνέδειξας, δι' αὐτῶν προδηλῶν τὰ ἐσόμενα, δι' ὧν σε δυσωποῦμεν, τοὺς οἰκτιρμούς σου ἡμῖν δώρησαι."), ("", "", "Ὤφθης τοῖς Προφήταις Δέσποτα, καθὼς ἐχώρουν βλέπειν σου τὴν λαμπρότητα, τούτων προσευχαῖς, χωρητικοὺς ἡμᾶς ποίησον, τῶν ἐν σοὶ καθαρῶν ἐπιλάμψεων, παθῶν ἐξ ἁμαρτίας, ἀποκαθάρας τὰς ψυχὰς ἡμῶν."), ("Μαρτυρικὰ", "", "Σῶμα παραδόντες μάστιξι, τὰ τῶν δαιμόνων στίφη κατεμαστίξατε, ἄπληγον τὸν νοῦν, διατηρήσαντες Μάρτυρες· πληγωθεῖσαν διὸ τὴν καρδίαν μου, τῷ βέλει τῆς κακίας, ταῖς προσευχαῖς ὑμῶν ἰάσασθε."), ("Μαρτυρικὰ", "", "Ἤλγει διωκτῶν κακόνοια, τὰς ἐκ πληγῶν ὀδύνας ὑμῖν προσφέρουσα, Μάρτυρες σεπτοί, τῆς εὐσεβείας ὑπέρμαχοι· τῆς ψυχῆς μου διὸ θεραπεύσατε, τὰς χαλεπὰς ὀδύνας, καὶ τῆς καρδίας μου τὰ τραύματα."), ("Θεοτοκίον", "", "Φρίττει νοερὰ στρατεύματα, τὸ τοῦ Πατρὸς ὁρῶντα θεῖον ἀπαύγασμα, σοῦ ἐν ταῖς χερσίν, ἀνερμηνεύτως κρατούμενον, καὶ τὸ σὸν κεκτημένον ὁμοίωμα, ἵνα βροτούς θεώσῃ, Παρθενομῆτορ Παναμώμητε."), ), "2": ( ("", "", "Τύπον τῆς ἁγνῆς"), ("", "", "Φεῖσαι ὡς Θεὸς φιλάνθρωπος, καὶ ἐλεήμων τοῦ ἰδίου σου πλάσματος, καὶ ἀνάπαυσον, ἐν ταῖς σκηναῖς τῶν Ἁγίων σου, ἔνθα Μάρτυρες πάντες ἀγάλλονται, τοὺς πίστει μεταστάντας, ἐκ τῶν προσκαίρων Πολυέλεε."), ("", "", "Ἔχων τοῦ ἐλέους ἄβυσσον, ὑπερνικῶσαν τὰ τῶν δούλων σου πταίσματα, προσδεξάμενος, οὓς ἐξελέξω ἀνάπαυσον, Ἀβραὰμ ἐν τοῖς κόλποις φιλάνθρωπε, καὶ μετὰ τοῦ Λαζάρου, ἐν τῷ φωτί σου κατασκήνωσον."), ("", "", "Ῥύστης καὶ Σωτὴρ γενόμενος, τοῦ τῶν ἀνθρώπων γένους διὰ σταυρώσεως, οὓς νῦν ἐξ ἡμῶν, ὡς εὐεργέτης μετέστησας, ἀπολαύσεως θείας ἀξίωσον, καὶ ζωῆς ἀκηράτου, καὶ εὐφροσύνης καὶ λαμπρότητος."), ("Θεοτοκίον", "", "Ὢ τῶν ὑπὲρ νοῦν θαυμάτων σου! σὺ γὰρ Παρθένε μόνη, ὑπὲρ τὸν ἥλιον, πᾶσι δέδωκας, κατανοεῖν τὸ καινότατον, θαῦμα Πάναγνε, τῆς σῆς γεννήσεως, τὸ τῆς ἀκαταλήπτου· διό σε πάντες μεγαλύνομεν."), ), ), ), "CH": ( ("Μαρτυρικὰ", "", "Τοὺς ἀθλοφόρους τοῦ Χριστοῦ, δεῦτε λαοὶ ἅπαντες τιμήσωμεν, ὕμνοις καὶ ᾠδαῖς πνευματικαῖς, τοὺς φωστῆρας τοῦ κόσμου, καὶ κήρυκας τῆς πίστεως, τὴν πηγὴν τήν ἀέναον, ἐξ ἧς ἀναβλύζει τοῖς πιστοῖς τὰ ἰάματα. Αὐτῶν ταῖς ἱκεσίαις, Χριστὲ ὁ Θεὸς ἡμῶν, τὴν εἰρήνην δώρησαι τῷ κόσμῳ σου, καὶ ταῖς ψυχαῖς ἡμῶν τὸ μέγα ἔλεος."), ("", "", "Οὗτοι οἱ Στρατιῶται τοῦ Βασιλέως τοῦ μεγάλου, ἀντέστησαν τοῖς δόγμασι τῶν τυράννων, γενναίως κατεφρόνησαν τῶν βασάνων, καὶ τὴν πλάνην πᾶσαν πατήσαντες, ἀξίως στεφανωθέντες, αἰτοῦνται παρὰ τοῦ Σωτῆρος εἰρήνην, καὶ ταῖς ψυχαῖς ἡμῶν τὸ μέγα ἔλεος."), ("", "", "Ὑμᾶς πανεύφημοι Μάρτυρες, οὐ θλίψις, οὐ στενοχωρία, οὐ λιμός, οὐ διωγμός, οὐδὲ μάστιγες, οὐ θυμὸς θηρῶν, οὐ ξίφος, οὐδὲ πῦρ ἀπειλοῦν, χωρίσαι Θεοῦ δεδύνηνται, πόθῳ δὲ μᾶλλον τῷ πρὸς αὐτόν, ὡς ἐν ἀλλοτρίοις ἀγωνισάμενοι σώμασι, τὴν φύσιν ἐλάθετε, θανάτου καταφρονήσαντες· ὅθεν καὶ ἐπαξίως τῶν πόνων ὑμῶν, μισθόν ἐκομίσασθε, οὐρανῶν βασιλείας κληρονόμοι γεγόνατε, ἀπαύστως πρεσβεύσατε ὑπὲρ τῶν ψυχῶν ἡμῶν."), ("", "", "Ἀγαλλιᾶσθε Μάρτυρες ἐν Κυρίῳ, ὅτι τὸν ἀγῶνα τὸν καλὸν ἠγωνίσασθε, ἀντέστητε βασιλεῦσι, καὶ τυράννους ἑνικήσατε, πῦρ καὶ ξίφος οὐκ ἐπτοήθητε, θηρῶν ἀγρίων κατεσθιόντων τὰ σώματα ὑμῶν, Χριστῷ μετὰ Ἀγγέλων τὴν ὑμνῳδίαν ἀναπέμποντες, τοὺς ἀπ' οὐρανῶν στεφάνους ἐκομίσασθε, αἰτήσασθε δωρηθῆναι εἰρήνην τῷ κόσμῳ, καὶ ταῖς ψυχαῖς ἡμῶν τὸ μέγα ἔλεος."), ("Νεκρώσιμον", "", "Ἔργῳ Σωτήρ μου δεικνύς, ὅτι σὺ εἶ ἡ πάντων ἀνάστασις, λόγῳ Λόγε Λάζαρον ἐκ νεκρῶν ἐξανέστησας. Τότε μοχλοὶ συνετρίβησαν, πύλαι δὲ ᾅδου συνεταράχθησαν, τότε ὕπνος ὁ τῶν ἀνθρώπων θάνατος ἀπεδείκνυτο, ἀλλ' ὁ εἰς τὸ σῶσαι τὸ πλάσμα σου, καὶ οὐκ εἰς τὸ κρῖναι παραγενόμενος, οὓς ἐξελέξω ἀνάπαυσον, ὡς φιλάνθρωπος."), ("Θεοτοκίον", "", "Χαῖρε Μαρία Θεοτόκε, ὅτι ἔτεκες τὸν Βασιλέα, τὸν Σωτῆρα καὶ φωστῆρα πάντων τῶν αἰώνων."), ), "ST": ( ("", "Πανεύφημοι Μάρτυρες ὑμᾶς", "Σοῦ Σῶτερ δεόμεθα τῆς σῆς, γλυκείας μεθέξεως, τοὺς μεταστάντας ἀξίωσον, καὶ κατασκήνωσον, ἐν σκηναῖς Δικαίων, ἐν μοναῖς Ἁγίων σου, καὶ ἐν ἐπουρανίοις σκηνώμασι, τῇ εὐσπλαγχνίᾳ σου, παρορῶν τὰ πλημμελήματα, καὶ παρέχων αὐτοῖς τὴν συγχώρησιν. "), ("", "", "Οὐδεὶς ἀναμάρτητος οὐδείς, τῶν ἀνθρώπων γέγονεν, εἰμὴ σὺ μόνε Ἀθάνατε· διὸ τοὺς δούλους σου, ὡς Θεὸς οἰκτίρμων, ἐν φωτὶ κατάταξον, σὺν ταῖς χοροστασίαις Ἀγγέλων σου, τῇ εὐσπλαγχνίᾳ σου, παρορῶν τὰ ἀνομήματα, καὶ παρέχων αὐτοῖς τὴν συγχώρησιν."), ("", "", "Ὑπὲρ τὰ ὁρώμενα τὰ σά, Σῶτερ ἐπαγγέλματα! ἃ ὀφθαλμὸς οὐ τεθέαται, καὶ οὓς οὐκ ἤκουσε, καὶ ἐπὶ καρδίαν, οὐκ ἀνέβη πώποτε, ἀνθρώπου, δυσωποῦμέν σε Δέσποτα, τυχεῖν εὐδόκησον, τοὺς πρὸς σὲ μεταχωρήσαντας, καὶ παράσχου ζωὴν τὴν αἰώνιον."), ("", "", "Σταυρῷ σου γηθόμενοι Σωτήρ, θαρροῦντες οἱ δοῦλοί σου, πρὸς σὲ μετέστησαν Κύριε, ὃν νῦν ἀντίλυτρον, τῶν αὐτῶν πταισμάτων, ὡς δεσπότης δώρησαι, ἐφ οὗ σου τὸ ζωήρρυτον ἔχεας, αἷμα καὶ τίμιον, καὶ τῆς δόξης ἀνεσπέρου σου, ἀπολαύειν τούτους καταξίωσον."), ("Θεοτοκίον", "Πανεύφημοι μάρτυρες", "Χριστὸν ἐκδυσώπησον τὸν σόν, τόκον Μητροπάρθενε, τὴν τῶν πταισμάτων συγχώρησιν, δοῦναι τοῖς δούλοις σου, τοῖς σὲ Θεοτόκον, εὐσεβῶς κηρύξασι, καὶ λόγῳ ἀληθεῖ δογματίσασι, καὶ τῆς λαμπρότητος, τῶν ἁγίων καὶ φαιδρότητος, ἀξιῶσαι ἐν τῇ βασιλείᾳ αὐτοῦ."), ) ) #let L_So = ( "B": ( ("", "", "Διὰ βρώσεως ἐξήγαγε, τοῦ Παραδείσου ὁ ἐχθρὸς τὸν Ἀδάμ, διὰ Σταυροῦ δὲ τὸν λῃστήν, ἀντεισήγαγε Χριστὸς ἐν αὐτῷ· Μνήσθητί μου κράζοντα, ὅταν ἔλθῃς ἐν τῇ βασιλείᾳ σου."), ("", "", "Ἀθλητῶν πληθὺς ἀμέτρητος, Ἀρχιερέων καὶ σοφῶν γυναικῶν, καὶ Προφητῶν πανευκλεῶν, δυσωπεῖ σε Ἰησοῦ ὁ Θεός, δίδου πᾶσιν ἄφεσιν, τῶν πταισμάτων, ὡς μόνος φιλάνθρωπος."), ("", "", "Οἱ τὸν δρόμον διανύσαντες, τὸν ἱερώτατον Χριστοῦ Ἀσκηταί, σὺν Ἱεράρχαις ἱεροῖς, καὶ Προφήταις ἠξιώθητε, πόλιν τὴν οὐράνιον, σὺν Ἀγγέλοις, οἰκεῖν εὐφραινόμενοι."), ("", "", "Ἐν φωτὶ Χριστὲ κατάταξον, τῷ ἀνεσπέρῳ, οὓς μετέστησας, τὰ παραπτώματα αὐτῶν παραβλέψας, ὡς οἰκτίρμων Θεός, ὅπως σοῦ δοξάζωμεν, Εὐεργέτα, τὸ πλούσιον ἔλεος."), ("", "", "Σὺν Πατρὶ τῷ προανάρχῳ σου, καὶ τῷ ἁγίῳ Πνεύματι Χριστὲ ὁ Θεός, πάντες δοξάζομεν τὴν σήν, φιλανθρωπίαν ἀνακράζοντες· Μνήσθητι τῶν δούλων σου, ἐν τῇ ὥρᾳ τῆς κρίσεως Κύριε."), ("", "", "Ὡς παλάτιον εὐρύχωρον, καὶ θρόνον δόξης καὶ νεφέλην φωτός, ὑμνολογοῦμέν σε Ἁγνή, καὶ δεόμεθα, διάλυσον νέφη τὰ δεινότατα, καὶ τὰ πάθη, Κόρη, τῶν ψυχῶν ἡμῶν."), ) )
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/expr/cond.typ
typst
Apache License 2.0
#if false and true {} #if not false {} #if 1 + 2 != 1 {} #if false and true {} else if false and true {} #if not false {} else if not true {} #if 1 + 2 != 1 {} else if 1 + 2 == 1 {} #while false and true {} #for i in (1, 2) {} #set text(red) if false and true #set text(red) if not true
https://github.com/LDemetrios/ProgLectures
https://raw.githubusercontent.com/LDemetrios/ProgLectures/main/01-kotlin-basics.typ
typst
#import "kotlinheader.typ" : * #show : kt-paper-rule = Основы языка Kotlin #kt-par[ Будем пользоваться нотацией REPL: после `=>` описывается тип результата, затем строковое представление результата. Если код что-то выводит, то это написано после результата. ] #kt-par[ Итак, Котлин. Давайте для начала разберёмся с местными примитивными конструкциями. У нас есть следующие типы данных: ] #let prim(code, repr: none, typ) = { indent(kt-literal(code.text, typ)) kt-res(if (repr == none) { code } else { repr }, typ) } - Логические значения #prim(`true`, KtBool) - Целые числа (32-битные в two's complement) #prim(`566`, KtInt) - Длинные целые числа (64-битные) #prim(`566L`, repr: `566`, KtLong) - Строки #prim(`"Hello"`, KtString) - Символы #prim(`'a'`, KtChar) - Вещественные числа (Стандарт `IEEE-754`, double precision floating point number) #prim(`3.14`, KtDouble) #kt-par[ Все эти типы заимствованы из JVM. Собственно, из неё же заимствованы ещё и типы Byte (8-битное целое), Short (16-битное целое) и Float (single-precision вещественное), но их используют крайне редко (поскольку всё меньше остаётся даже 32-битных процессоров). ] #kt-par[ Зато, для желающих, есть _довольно быстрая_ реализация `unsigned` целых чисел: `UInt`, `ULong` etc. ] #kt-par[ С этими типами можно делать довольно ожидаемые действия: ] - Складывать: #kt-eval(``` 0.1 + 0.2 ```) #kt-res(`0.30000000000000004`, KtDouble) - Умножать: #kt-eval(``` 5 * -2 ```) #kt-res(`-10`, KtInt) - Делить: #kt-eval(``` 1.0 / 0.0 ```) #kt-res(`Infinity`, KtDouble) #kt-par[ Без неожиданных спецэффектов. Автоприведения типов здесь нет, так что #box(raw("\"22\" - \"2\" = 20")), как в JS, не получится. С символами, впрочем, операции производить можно: ] #kt-eval(``` 'c' - 'a' ```) #kt-res(`2`, KtInt) #kt-par[ Также в наличии логические операции ] #kt-eval(``` !false ```) #kt-res(`true`, KtBool) #kt-eval(``` true && false ```) #kt-res(`false`, KtBool) #kt-par[ Ну и так далее. Разберётесь по ходу ведения. ] Ветвление: #kt-eval(``` if (1 + 2 < 4) { println("First") } else { println("Second") } ```) #kt-res(KtUnit, KtUnit) #kt-print(`First`) #kt-par[ О, здесь сразу несколько интересных вещей: println отвечает за вывод строки в stdout (стандартный поток вывода). А Unit --- это тип, который возвращается, если не возвращается ничего. Есть в Котлине два таких интересных типа: Unit --- когда единственное, что нам нужно знать --- это завершилась функция или нет. Если завершилась, то возвращается Unit --- единственное значение типа Unit. Ну, содержательного с ним ничего нельзя сделать --- только сказать, что он есть. Второй --- Nothing --- означает, что функция никогда ничего не вернёт, потому что не завершится успешно. Если у предыдущего типа существует единственное значение, то у типа Nothing нет ни одного значения. ] #kt-par[ Так, погодите. Выходит, у нас if`...`else что-то возвращает? А можно, чтобы он возвращал содержательную информацию? Можно. ] #kt-eval(``` if (1 + 2 < 4) { // Do something 566 } else { // Do some another thing 239 } ```) #kt-res(`566`, KtInt) #kt-par[ Последняя строчка интерпретируется как выражение --- то есть, что-то-таки возвращает наружу. Собственно, привычный многим в Java и в C++ тернарный оператор ` a ? b : c ` здесь так и сделан: если выражение однострочное, то фигурные скобки можно и не ставить.\ ] #kt-eval(``` if (1 + 2 < 4) 566 else 239 ```) #kt-res(``` 566 ```, KtInt) #nobreak[ Теперь циклы. А для циклов сначала нужны переменные. Их есть: #kt-eval(``` var i = 0 while (i < 5) { print(i) i++ } ```) #kt-print(``` 01234 ```) ] #kt-par[ Во-первых, print --- это как println, только без перевода строки. Во-вторых, погодите, а результат? Мы думали, и в магазине можно стеночку приподнять? ] #kt-par[ А нет. Цикл не является выражением, он не возвращает даже Unit. Как, впрочем, и объявление переменной. ] #kt-par[ В-третьих, переменные в Котлине имеют тип. То есть, если у вас про переменную заявлено, что там лежат числа, вы не можете положить туда строку: ] #kt-eval(``` var a : Int = 0 a = 1 a = "2" ```) #kt-comp-err(`Kotlin: Type mismatch: inferred type is String but Int was expected`) #kt-par[ А если вы не заявляли тип явно, то компилятор сам выведет наиболее узкий, который сможет. ] #kt-par[ Кроме переменных, конечно, есть постоянные: ] #kt-eval(``` val a : Int = 0 a = 1 ```) #kt-comp-err(`Kotlin: Val cannot be reassigned`) #kt-par[ Если вы можете использовать val, используйте val, а не var. ] #kt-par[ Есть также циклы do-while: ] #kt-eval-noret(``` do { val line = readln() // Do something with it } while (line != "exit") ```) #kt-par[ Переменная, объявленная внутри цикла, в общем случае снаружи не видна, а вот в случае конкретно do-while видна в условии, что приятно. Кажется, так было не всегда. ] #kt-par[ ... и циклы for: ] #kt-eval(``` for (i in 0 until 5) { print(i) } ```) #kt-print(``` 01234 ```) #kt-par[ until --- это специальная инфиксная функция, которая возвращает арифметическую прогрессию, от первого аргумента включительно, до второго исключительно. Что означает "инфиксная"? Ну, функции в котлине бывают трёх различных вариантов: префиксная (#kt(`cos(1.0)`)), условно-постфиксная (#kt(`566.toString()`)) и инфиксная (#kt(`0 until 5`)). _Условно_-постфиксные они потому, что в скобках могут быть ещё аргументы, например, #kt(`566.toString(3)`), чтобы преобразовать в троичную систему счисления. Все инфиксные функции можно вызывать также и в условно-постфиксной записи: #kt(`0.until(5)`), но не наоборот. ] #nobreak[ #kt-par[ Помимо until есть ещё downTo и rangeTo: ] #table( columns: (auto, auto, auto, auto), rows: 2em, align: center + horizon, [until], kt(`0 until 5`), kt(`0.until(5)`), `[0, 1, 2, 3, 4]`, [rangeTo], kt(`0..5`), kt(`0.rangeTo(5)`), `[0, 1, 2, 3, 4, 5]`, [downTo], kt(`5 downTo 0`), kt(`5.downTo(0)`), `[5, 4, 3, 2, 1, 0]`, ) ] #kt-par[ В экспериментальных на момент написания конспекта версиях Котлина есть ещё вариант #box(kt(`0..<5`)) для until (Точнее, строго говоря, будет вызван метод `rangeUntil`, но делает он то же самое). ] #kt-par[ Как это работает? Э-хе-хе, подождите, давайте сначала научимся префиксные функции писать. ] #kt(``` fun max(a: Int, b: Int): Int ```) #kt-par[ Что бы всё это значило? fun собственно объявляет функцию. `a` и `b` --- это имена параметров, после них написаны их типы (Int), а после двоеточия после всего объявления тип того, что возвращает функция. В нашем случае функция принимает два аргумента типа Int и возвращает тоже Int. Теперь собственно, что делает эта функция? ] #kt-eval(``` fun max(a: Int, b: Int): Int { if (a < b) { return b } else { return a } } ```) #kt-par[ Ну, здесь всё понятно. ] #kt-par[ Проверим, что работает: ] #kt-eval(``` max(239, 566) ```) #kt-res(`566`, KtInt) #kt-par[ Ещё не забыли, что if у нас также является тернарным оператором? ] #kt-eval(``` fun max(a: Int, b: Int): Int { return if (a < b) b else a } ```) #kt-par[ Если тело функции состоит только из return-statement, то фигурные скобки и return не нужны, вместо них пишем ] #kt-eval(``` fun max(a: Int, b: Int): Int = if (a < b) b else a ```) #kt-par[ Здесь уже можно опустить возвращаемый тип, ибо он очевиден компилятору, но лучше всё же писать. ] #kt-par[ Так, кроме того, мы ввели ключевое слово return. Кроме него существуют ещё такие интересные штуки как break, continue и throw, которые делают понятно что. Но их объединяет следующая черта: после них точно будет выполняться уже не эта строка. В некотором смысле, это выражение никогда ничего не возвращает. О, где-то такое уже было. На самом деле на уровне языка оно возвращает тип Nothing. Например, если мы напишем ] #kt(`val x = return`) #kt-par[, то понятно, что до присвоения значения постоянной `x` дело так и не дойдёт. ] #kt-par[ Для понимания следующего сначала рассмотрим обобщающие типы. Так, если мы пишем ] #kt(`if (condition) 1 else 2`) #kt-par[, то понятно, какой тип выведет компилятор --- Int.] #nobreak[ #kt-par[ А если типы возвращаемых данных разные? Ошибка? ] #kt-eval(``` if (1 < 2) 3 else "4" ```) #kt-res(`3`, Comparable(KtStar)) ] #kt-par[ А нет. Что-то мы всё же про это знаем, и числа, и строки можно сравнивать. А значит, мы на выходе получили что-то _сравниваемое_ (#Comparable(KtStar)). Что означает звёздочка в треугольных скобках --- мы потом разберём, сейчас это несущественно. А бывают типы данных, которые нельзя сравнивать? Бывают, например Unit. Ну, его сравнивать довольно бесполезно --- он всегда окажется равен самому себе, поскольку единственное, что существует типа Unit --- это Unit сам по себе. ] #kt-eval(``` if (1 < 2) 3 else Unit ```) #kt-res(`3`, Any) #kt-par[ Вот Any --- это почти самый общий тип. Он означает "ну, что-то там определённо лежит". С ним можно проделать не так много вещей: - потребовать строковое представление - посчитать хэшкод - сравнить на равенство с чем-то другим. В общем-то, всё. ] #kt-par[ Есть ещё значение null, которое не является Any, а о его типе поговорим чуть позже. ] #kt-par[ Так вот, всё, что не null --- является Any, и может быть приведён к типу Any. А тип Nothing --- наоборот, может быть приведён *_к_* любому типу. Потому что на самом деле никогда не понадобится приводить, потому что объектов типа Nothing не существует. ] #kt-par[ Значение null в Котлине несёт тот же смысл, что null в Java, nullptr в С++, None в Python и т.д. Это заглушка, возможность сказать, что здесь могло бы быть значение, но пока его нет. Но хранить их можно только в специальных nullable типах, помечаемых знаком вопроса. ] #strikeleft[ #kt-eval(``` var s : String = "abc" s = null ```) #kt-comp-err(`Null can not be a value of a non-null type String`) #kt-eval(``` var s : String? = "abc" s = null // OK ```) ] #kt-par[ В отличие от Java, nullable типами могут быть и примитивные (Int, Long etc.). ] #comment[ #kt-par[ Впрочем, это довольно неэффективно, так как, в то время как Int, Char, и так далее транслируются в использование примитивов (int, char), nullable типы Int?, Char? --- в объектные Integer, Character и так далее, чтобы можно было присваивать им null. Это занимает больше места, больше времени и прочее. Аналогично происходит с lateinit var, которые под капотом nullable. ] ] #nobreak[ #kt-par[ Поскольку NullPointerException --- одна из самых частых ошибок времени исполнения в Java, в Kotlin добавили специальных операторов для работы с nullable значениями: ] - Non-null assertion #strikeleft[ #kt-par[ Если значение не null, то вернуть его, если null --- бросить ошибку. ] #kt-eval(``` val s : String? = "abacaba" s!! ```) #kt-res(`"abacaba"`, KtString) #kt-eval(``` val s : String? = null s!! ```) #kt-runt-err(``` Exception in thread "main" java.lang.NullPointerException at test.TestKts.main(Test.kts:2) ```) ] ] - Safe call #strikeleft[ #kt-par[ Если значение не null, то вызвать метод, если null --- вернуть null. ] #kt-eval(``` val s : String? = "abacaba" s?.substring(2, 6) ```) #kt-res(`"acab"`, KtString7) #kt-eval(``` val s : String? = null s?.substring(2, 6) ```) #kt-res(`null`, KtString7) ] - Elvis operator #strikeleft[ #kt-par[ Если значение не null, то вернуть его, если null --- то вернуть другое. ] #kt-eval(``` val s : String? = "abacaba" s ?: "by default" ```) #kt-res(`"abacaba"`, KtString7) #kt-eval(``` val s : String? = null s ?: "by default" ```) #kt-res(`"by default"`, KtString) ] #kt-par[ Какой тип имеет сам null? ] #kt-eval(`null`) #kt-res(`null`, KtNothing7) #kt-par[ Почему так? Логично, что если тип `T` приводится к типу `U`, то тип `T?` должен приводиться к типу `U?` (Если там было значение типа `T`, то его можно положить в `U`, а значит, в `U?` тем более. А если там был null, то его всё равно можно положить в `U?`). И логично, чтобы null приводился к любому nullable типу. Nothing приводится к любому `T`, значит, Nothing? приводится к любому `T?`. ] #nobreak[ #kt-par[ Осталось поговорить про массивы. А их здесь несколько разных бывает. ] #kt-eval(``` arrayOf("abc", "def", "ghi") ```) #kt-res(`[Ljava.lang.String;@3b9a45b3`, `Array<String>`) #kt-par[ Будьте здоровы, Вы, кажется, чихнули. ] ] #kt-par[Да, нормального встроенного строкового представления для массивов не подвезли, выводится некая системная информация. Для этого придётся вызвать специальную функцию `joinToString` (на самом деле она гораздо мощнее, но об этом мы поговорим позже).] #kt-eval(``` arrayOf("abc", "def", "ghi").joinToString() ```) #kt-res(`"abc, def, ghi"`, KtString) #kt-par[ Тем не менее, с массивами можно работать, как в любом другом языке. ] #kt-eval(``` val arr = arrayOf("abc", "def", "ghi") arr[1] ```) #kt-res(`"def"`, KtString) #kt-par[ (Да, индексация с нуля) ] #kt-eval-append(``` arr[0] = "magic" arr.joinToString() ```) #kt-res(`"magic, def, ghi"`, KtString) #kt-par[ Массивы типизированы: за это, собственно, отвечает String в треугольных скобках после `Array<`String`>` (как это работает, опять-таки --- позже, сейчас пользуемся как магией). То есть, нельзя просто так взять и положить Int в массив строк: ] #kt-eval-append(``` arr[0] = 1 ```) #kt-comp-err(`The integer literal does not conform to the expected type String`) #kt-par[ Также, если попытаться обратиться за границу массива, получаем ошибку: ] #kt-eval-append(``` arr[3] ```) #kt-runt-err( ``` Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3 at TestsKts.main(Tests.kts:6) ```, ) #kt-par[ Можно создавать и массивы более общих типов. Например, ] #kt-eval(``` arrayOf(1, "2", null) ```) #kt-res(`[Ljava.lang.Object;@3b9a45b3`, `Array<Comparable<*>?>`) #kt-par[ Как мы помним, у Int и String есть нечто общее --- они оба `Comparable<*>`. А у `Comparable<*>` и null общим типом будет, очевидно, `Comparable<*>?`. ] #kt-par[ Можно также задать тип вручную: ] #kt-eval(``` arrayOf<Number>(1, 2, 3) ```) #kt-res(`[Ljava.lang.Number;@3b9a45b3`, `Array<Number>`) #kt-par[ Number --- это обобщение Int, Long, Double и так далее. В `Array<`Number`>` мы можем положить любые числа. И когда мы что-то достаем из массива Number, мы не можем точно быть уверены, какое конкретно это число. ] #nobreak[ #kt-par[ Мы можем выполнять общие операции, определённые для всех чисел, например, привести к типу Double: ] #kt-eval(``` val arr = arrayOf<Number>(1, 2, 3) arr[1].toDouble() ```) #kt-res(`2.0`, KtDouble) ] #kt-par[ Или проверить, какого оно типа: ] #kt-eval-append(``` arr[1] is Long ```) #kt-res(`false`, KtBool) #kt-eval-append(``` arr[1] is Int ```) #kt-res(`true`, KtBool) #kt-par[ После этого, если мы уверены, привести явным образом ] #kt-eval-append(``` arr[1] as Int ```) #kt-res(`2`, KtInt) #kt-par[ Стоит заметить, во-первых, что попытка каста к не тому типу обернётся ошибкой времени исполнения: ] #kt-eval-append(``` arr[1] as Double ```) #kt-runt-err( ``` Exception in thread "main" java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Double (java.lang.Integer and java.lang.Double are in module java.base of loader 'bootstrap') at TestsKts.main(Tests.kts:6) ```, ) #kt-par[ А попытка проверить на is что-то совершенно точно бессмысленное --- ошибкой компиляции: ] #kt-eval-append(``` arr[1] is String ```) #kt-comp-err(` Incompatible types: String and Number `) #kt-par[ ...Так как компилятор считает правильным сообщить вам, что Number совершенно точно никогда строкой не окажется. ] #kt-par[ Так, давайте вернёмся к массивам. Можно ли создавать массивы массивов? Сколько угодно: ] #kt-eval(``` arrayOf(arrayOf("abc", "def"), arrayOf("ghi", "jkl")) ```) #kt-res(`[[Ljava.lang.String;@3b9a45b3`, `Array<Array<String>>`) #kt-par[ Будьте здоровы. ] #kt-eval(``` arrayOf(arrayOf("abc", "def"), arrayOf("ghi", "jkl")).joinToString() ```) #kt-res( `"[Ljava.lang.String;@6d03e736, [Ljava.lang.String;@568db2f2"`, KtString, ) #kt-par[ Будьте здоровы! ] #comment[ #kt-eval(``` val matrix = arrayOf(arrayOf("abc", "def"), arrayOf("ghi", "jkl")) matrix.joinToString(transform = Array<String>::joinToString) ```) #kt-res(`"abc, def, ghi, jkl"`, KtString) #kt-par[ Это ещё куда ни шло, но совершенно непонятно, где кончаются границы одного и другого массива внутри. ] ] #comment[ #kt-eval(``` val matrix = arrayOf(arrayOf("abc", "def"), arrayOf("ghi", "jkl")) matrix.joinToString(", ", "[", "]") { it.joinToString (", ", "[", "]") } ```) #kt-res(`"[[abc, def], [ghi, jkl]]"`, KtString) #kt-par[ Есть, конечно, возможность заставить это работать. Но... вам не надоело? ] ] #kt-par[ Есть несколько причин, почему в Котлине непосредственно массивы используются крайне редко. Во-первых, вышеупомянутые проблемы со строковым представлением. Во-вторых, и это более важно, проблемы с безопасностью. Допустим, вы передали куда-то в функцию массив. ] #kt-eval(``` fun blackBox(data: Array<String>) { data[2] = "flowers" } val array = arrayOf("Some", "important", "data", "here") blackBox(array) array.joinToString() ```) #kt-res(`"Some, important, flowers, here"`, KtString) #indent[ Полундра! Данные скомпрометированы! ] #kt-par[ Проблема в том, что массивы передаются исключительно по ссылке, копирования при передаче не происходит. А значит, отдавая кому-то на сторону данные, вы не можете быть уверены в их сохранности --- фактически вы отдаёте ссылку на область в памяти, где эти данные лежат. ] #kt-par[ Чтобы этого избежать, существуют листы: ] #kt-eval(``` listOf("Some", "important", "data", "here") ```) #kt-res(`[Some, important, data, here]`, `List<String>`) #kt-par[ И строковое представление нормальное, и записать туда что-то нам не дадут: ] #kt-eval(``` val arr = listOf("Some", "important", "data", "here") arr[2] = "flowers" ```) #kt-comp-err( ``` Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline operator fun kotlin.text.StringBuilder /* = java.lang.StringBuilder */.set(index: Int, value: Char): Unit defined in kotlin.text No set method providing array access ```, ) #kt-par[ ... очень много информации. Компилятор попытался найти метод с именем `set`, который отвечал бы за подобное присваивание, и не справился. Содержательная часть здесь `No set method providing array access` --- записывать сюда нам не дадут. ] #kt-par[ Листы и массивы можно превращать друг в друга: ] #nobreak[ #kt-eval(``` val arr = arrayOf("Some", "important", "data", "here") arr.toList() ```) #kt-res(`[Some, important, data, here]`, `List<String>`) ] #nobreak[ #kt-eval(``` val arr = listOf("Some", "important", "data", "here") arr.toTypedArray() ```) #kt-res(`[Ljava.lang.String;@4fca772d`, `Array<String>`) ] #kt-par[ И в том, и в другом случае действительно происходит копирование. ] #kt-par[ Кстати, говорилось про три варианта? Да, есть ещё `MutableList`. ] #kt-eval(` mutableListOf(1, 2, 3) `) #kt-res(`[1, 2, 3]`, `MutableList<Int>`) #kt-par[ В него, как и в массив, можно записывать, из него можно читать, но, что особенно важно, можно его расширять (массивы имеют постоянную длину!): ] #kt-eval(``` val arr = mutableListOf(1, 2, 3) arr.add(566) arr ```) #kt-res(`[1, 2, 3, 566]`, `MutableList<Int>`) #kt-par[ Так вот, `MutableList<T>` в частности, является `List<T>` для любого типа `T`, так как `MutableList<T>` предоставляет те же методы: чтение, проверка длины, некоторые другие; но предоставляет и дополнительные --- изменение, расширение. Так что можно передать `MutableList<T>` в функцию, которая требует `List<T>` и (почти) не бояться, что его изменят. ] #comment[ Почти --- потому что некоторая возможность всё же есть; если вдруг это данные для запуска ядерных ракет и вы передаёте их в функцию --- лучше всё-таки сделайте копию. ] #comment[ #kt-par[ Ну, было бы желание сломать --- сломать получится. Например, до Java версии 1.8 включительно можно было провернуть очень интересный фокус, следите за руками: ] #kt-eval(`1 as Any`) #kt-res(`1`, Any) #kt-par[ Всё, казалось бы, логично, от того, что мы привели к более общему типу, значение-то не поменялось. Да? ] ] #comment[ #indent[ #kt(``` val rnd = Random(56630239) val clazz = Class.forName("java.lang.Integer\$IntegerCache") val field = clazz.getDeclaredField("cache") field.isAccessible = true val cache = field.get(null) as Array<Int> for (i in 0 until cache.size) cache[i] = rnd.nextInt(cache.size) ```) ] #kt-par[ А вот после этого замечательного кода попробуем снова ] #kt-eval(`1 as Any`) #kt-res(`146`, Any) #kt-par[ Э-э-э... Упс? ] ]
https://github.com/SkiFire13/master-thesis
https://raw.githubusercontent.com/SkiFire13/master-thesis/master/preface/acknowledgements.typ
typst
#import "../config/translated.typ": acknowledgements #let acknowledgements-bookmark = context hide(place(dy: -page.margin.top)[ #let acknowledgements = acknowledgements.at(text.lang) = #acknowledgements #label(acknowledgements) ]) #let acknowledgements() = page[ #acknowledgements-bookmark #show quote: box.with(width: 70%) #show quote: align.with(right) #set quote(block: true, quotes: true) #quote(attribution: [<NAME>])[ _Program testing can be used to show the presence of bugs, but never to show their absence_ ] #v(1cm) #heading(outlined: false)[Acknowledgements] #v(1cm) I thank Prof. <NAME>, my thesis supervisor, for his help, mentoring and all the insightful observations he gave me while writing this thesis. #v(0.3cm) I am particularly grateful to my parents Giuseppe and <NAME> and my sister Francesca for their love and support as they allowed me to chase my dreams. #v(0.3cm) I thank all my friends for they company and all the laughs we had together in these years. ]
https://github.com/ShapeLayer/ucpc-solutions__typst__archived
https://raw.githubusercontent.com/ShapeLayer/ucpc-solutions__typst__archived/main/main.typ
typst
Other
#import "theme.typ" #import theme: difficulties as lv #set text(font: ("Gothic A1", "Pretendard","Noto Sans CJK KR"), lang: "ko") #show: doc => theme.conf(doc) // Constants #let primary_color = rgb("#F23D5E"); #let problem_page_config = ( theme_color: primary_color ) // Title Page #show: doc => theme.cover_conf(doc) #rect( fill: primary_color, width: 100%, height: 60%, inset: (left: 4em, bottom: 3.5em), outset: 0% )[ #text(fill: white, size: 32pt)[ #align(bottom)[ = Contest Name \ Description Editorial ] ] ] #rect( width: 100%, height: 30%, stroke: none, inset: (left: 4em), outset: 0% )[ #align(center + horizon)[ #text(size: 2.5em)[Contest Taskforce] /* #text(size: 1.7em)[2024-05-26]*/ ] #text(size: 17pt)[ ] ] #pagebreak() #show: doc => theme.content_conf("Contest Name", doc) #align(center + horizon)[ #text(size: 1.5em)[ #table( columns: 4, inset: (x: .5em, y: .65em), align: horizon, stroke: (x: none), row-gutter: (5.2pt, auto), table.vline(x: 2, start: 0), table.vline(x: 3, start: 0), table.cell(colspan: 2)[문제], [의도한 난이도], [출제자], [A], [Problem A], lv.easy, [Author A], [B], [Problem B], lv.normal, [Author B], [C], [Problem C], lv.hard, [Author C], [D], [Problem D], lv.challenging, [Author D], [E], [Problem E], lv.bronze, [Author E], [F], [Problem F], lv.silver, [Author F], [G], [Problem G], lv.gold, [Author G], [H], [Problem H], lv.platinum, [Author H], [I], [Problem I], lv.diamond, [Author I], [J], [Problem J], lv.ruby, [Author J] ) ] ] #theme.problem("A", "Problem A", ("tag-1", ), lv.easy, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author A] ), problem_page_config)[ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - Viverra tellus in hac habitasse platea dictumst vestibulum rhoncus est. Massa tincidunt nunc pulvinar sapien et. Hendrerit dolor magna eget est lorem. Lectus urna duis convallis convallis tellus id interdum velit laoreet. - Lacus laoreet non curabitur gravida arcu ac tortor. ] #theme.problem("B", "Problem B", ("tag-1", "tag-2"), lv.normal, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author B] ), problem_page_config)[ - Pulvinar sapien et ligula ullamcorper malesuada proin libero nunc. Libero enim sed faucibus turpis in eu mi. Neque viverra justo nec ultrices dui sapien eget mi proin. Volutpat est velit egestas dui id ornare. Faucibus turpis in eu mi bibendum. ] #theme.problem("C", "Problem C", ("tag-1", "tag-2", "tag-3"), lv.hard, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author C] ), problem_page_config)[ - Dolor sit amet consectetur adipiscing elit. Egestas diam in arcu cursus euismod quis viverra. Iaculis urna id volutpat lacus laoreet non curabitur gravida. Sit amet nisl purus in mollis nunc sed id semper. Amet justo donec enim diam vulputate ut. - Lorem sed risus ultricies tristique nulla aliquet enim. Lectus vestibulum mattis ullamcorper velit sed ullamcorper. Nunc consequat interdum varius sit amet. Quis varius quam quisque id diam vel quam. Quis ipsum suspendisse ultrices gravida dictum fusce ut placerat. Risus in hendrerit gravida rutrum quisque non tellus orci ac. Nibh ipsum consequat nisl vel pretium lectus. ] #theme.problem("D", "Problem D", (), lv.challenging, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author D] ), problem_page_config)[] #theme.problem("E", "Problem E", ("tag-1", ), lv.bronze, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author E] ), problem_page_config)[ - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Morbi blandit cursus risus at ultrices mi tempus imperdiet nulla. Tellus mauris a diam maecenas. Pretium quam vulputate dignissim suspendisse in est. Mauris sit amet massa vitae tortor condimentum lacinia quis vel. - Nunc congue nisi vitae suscipit tellus mauris. Tortor at auctor urna nunc. ] #theme.problem("F", "Problem F", ("tag-1", "tag-2", ), lv.silver, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author F] ), problem_page_config)[] #theme.problem("G", "Problem G", (), lv.gold, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Problem G] ), problem_page_config)[] #theme.problem("H", "Problem H", (), lv.platinum, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author H] ), problem_page_config)[] #theme.problem("I", "Problem I", (), lv.diamond, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author I] ), problem_page_config)[] #theme.problem("J", "Problem J", (), lv.ruby, ( submit_count: -1, ac_count: -1, first_solver: "-", first_solve_time: -1, author: [Author J] ), problem_page_config)[]
https://github.com/nathanielknight/tsot
https://raw.githubusercontent.com/nathanielknight/tsot/main/cards/cards.typ
typst
#set page( margin: 6mm, paper: "us-letter", ) #set text( font: "Vollkorn" ) #let cards = cs => { grid( rows: (88.9mm, 88.9mm, 88.9mm), columns: (62.5mm, 62.5mm, 62.5mm), stroke: 1mm + gray, ..cs, ) } #let card = (title, body) => { block(inset: 4mm, [ = #text(font: "Futura", size: 12pt, title) #set text(size: 9pt) #v(1em) #body ]) } #let threat_card = (title, body) => { block(inset: 4mm, [ = #box(fill: black, inset: 1mm, text(font: "Futura", size: 12pt, fill: white, title)) #set text(size: 9pt) #v(1em) #body ]) } // ----------------------------------------------------------------------- // Prelude (up to 2 cards each) #let introduce_yourself = card("Introduce Yourself", [ *Who will you be playing?* Introduce your character. Give their: - Name - Look - Role on the Mission - Trait (pick from *Character Elements* or make up your own) How is this communicated to the audience? ]) #let prelude_cards = ( card("Introduce the Crew", [ *What kind of crew are the characters in?* Choose a concept and a trait *Crew Elements*, or make up your own. How are the crew's specialties, dymaics, and general vibe communicated to the audience? ]), card("Introduce the Mission", [ *What kind of mission are the characters on?* Choose a concept and a trait from *Mission Elements*, or make up your own. How are the missions objectives and stakes communicated to the audience? ]), card("Introduce the Setting", [ *Where is the mission taking place?* Choose a place and a trait from *Setting Elements*, or make up your own. How is are the setting and its challenges communicated to the audience? ]), card("Extra Colour",[ _4+ Players Only_ Add an extra trait to the *Crew*, *Mission*, or *Setting*, choosing from the *Elements* or making up your own. How is this additional detail communicated to the audience? ]), introduce_yourself, introduce_yourself, introduce_yourself, introduce_yourself, introduce_yourself, ) // ----------------------------------------------------------------------- // Encounter (2-4 cards each, 6-20 cards total) #let kbtt = card("Killed by the Threat", [ Your character is killed by the Threat. How does it get you? Discard your hand and draw 3 cards from the Threat deck. ]) // TODO: which cards trigger the struggle? #let encounter_cards = ( kbtt, kbtt, kbtt, kbtt, kbtt, card("Contingency plans", [ The crew makes backup plans, deploys equipment, or otherwise prepares for when things start to go wrong. _Place this card face up in front of you. You may discard it at some point TODO: to what end?_ ]), card("Ominous details", [ As the crew pursues their mission the threat grows. What does the audience see? Do the crew see it too? ]), card("What are we waiting for?", [ Make a bold, possibly foolish move. What made your character act so rashly? How did it turn out for them? ]), card("Work the problem", [ Show your character working to overcome an obstacle or solve a mystery. How do they feel about it? Excited? Nervous? Annoyed? How does the crew feel about it? Inerested? Suspicious? Confident? ]), card("This is mine", [ Show the crew taking something they probably shouldn't. What are they taking? How does the audience know it's a bad idea? ]), card("Anything I can do?", [ // NOTE: could remove You help with something outside your usual duties. How does it go? Are you a fifth wheel? Are you stepping on anyone's toes? Do you earn a little bit of extra respect? ]), card("Perhaps the real monster is...", [ Secretly betray the crew for personal gain. What's in it for you? Do you get caught? _Play this card only if all players consent._ ]), card("It worked!", [ Your character makes a major breakthrough. What did you figure out, discover, or realize? ]), card("Disappear", [ You disappear, fate unknown. What circumstances surround your disappearance? _Put this card in front of you. Instead of playing a card you may discard it to re-appear. What happened to you?_ ]), card("Look on my works", [ Show off the scale, scope, sophistication, or other achievement associated with the mission. How could it all go wrong? ]), card("Quick Exposition", [ Explain a detail about the mission or the crew: a neat piece of equipment, why the environment is challenging, how the crew's corporate employer never pays for propper maintenance, etc. _If you like, add a Tag to the Crew, Mission, or Setting._ ]), card("Quit your whining", [ Somebody is complaining about their situation. Who? Somebody tells them to stop. Who? Is their tone supportive? Serious? Dismissive? Annoyed? ]), card("I'll keep this brief", [ The Crew is given additional briefing on their Mission, explaining the immediate obstacles or objectives. ]), card("By the numbers", [ The crew's mission proceeds easily. Perhaps too easily... Does the camera foreshadow future problems, or is there something else keeping us entertained? ]), card("I don't pay you to think", [ A character has reasonable questions about the feasbility or safety of the mission. Who? They're overruled; by who? On what authority? Rank? Charm? Threats of violence? ]), card("This doesn't bode well", [ Something foreshadows the threat. How does the camera hint at future badness? Is the crew aware? How do they react? Excitement? Resolve? Trepidation? ]), card("I'm not here to make friends", [ // NOTE: could remove A character delivers a harsh order, forcefully overrides an objection, or otherwise acts like a jerk. Who? How does the rest of the crew react? ]), card("Nothing is sacred", [ Someone on the crew takes, destroys, or otherwise ruins something ancient and/or precious. How does the rest of the crew react? How does the camera show the gravity of what they've done? ]), card("Not today!", [ Things start to go wrong, but swift, skillful action from the crew prevents disaster. Who is in danger? Who rescues the situation? The danger doesn't have to be related to the threat. ]), card("I've never seen THAT before", [ The crew encounter a phenomenon, sensor reading, structure, etc. that shouldn't be possible. What do they encounter? How do they react? ]), card("We're gonna be here for a while...", [ Due to a storm, orbital alignment, important repair, etc. the crew is stuck where they are for a while. How is this communicated to the audience? What's the timeline for them to get out? ]), card("We can't turn back now", [ The crew must press on, even if the way forward looks grim. Why? Does anyone want to turn back or give up? Who insists on going forwards? ]), card("Nothing ever happens", [ Somebody complains that their job is boring. What are they doing to try to have fun? ]), card("I'm going alone", [ Strike out on your own. Where are you going? To do what? Why did you go alone? To prove something? To protect someone? ]), card("We can't leave without...",[ You could leave now, but you insist on doing something first. What is it? Do you need to retrieve something or someone? Get a sample, a recording, a payday, revenge? What danger do you put yourself in to get it? ]), card("What happened here?", [ The crew stumbles upon an eerie situation or the aftermath of some grim calamity. Relate the story of what happened. How do your characters know what took place? Do they find a recording? Have a vision? Use forensic know-how? ]), ) // ----------------------------------------------------------------------- // Struggle // have a quiet conversation // lay out the tension/conflict // fight against the threat // work towards escape // make a grim discovery // // TODO: about 12 of these #let crew_struggle_cards = ( card("foo", [#lorem(18)]), ) /* Threat cards: (are these for the encounter and the strugle) Actions: - scry (mess with the crew) - put a card on top of the deck - mark calamity (for secret machination) - roll for calamity (for confrontation with the crew) - let the heroes choose a card to discard - conditions for encounter vs struggle (e.g. "re-roll one die, if they've already rolled mark a calamity") */ // TODO: 16-20 of these #let threat_cards = ( threat_card("Foo", lorem(12)), ) // ----------------------------------------------------------------------- // Synthesis! #cards( prelude_cards + encounter_cards + crew_struggle_cards + threat_cards )
https://github.com/fky2015/resume-ng-typst
https://raw.githubusercontent.com/fky2015/resume-ng-typst/main/template/main.typ
typst
MIT License
#import "@preview/resume-ng:1.0.0": * // Take a look at the file `template.typ` in the file panel // to customize this template and discover how it works. #show: project.with( title: "Resume-ng", author: (name: "冯开宇"), contacts: ( "+86 188-888-8888", link("mailto:<EMAIL>", "<EMAIL>"), link("https://blog.fkynjyq.com", "blog.fkynjyq.com"), link("https://github.com", "github.com/fky2015"), ) ) #resume-section("教育经历") #resume-education( university: "北京理工大学", degree: "学术型硕士研究生", school: "网络空间安全,网络空间安全学院", start: "2021-09", end: "2024-06" )[ *GPA: 3.62/4.0*,主要研究方向为#strong("拜占庭共识算法"),在分布式系统领域方面有一定的研究和工程经验。*2024年应届生*。 ] #resume-education( university: "北京理工大学", degree: "工学学士", school: "计算机科学与技术,计算机学院", start: "2017-09", end: "2021-06" )[ *GPA: 3.7/4.0(专业前 3\%)*,获学业奖学金多次,全国大学生 XYZ 竞赛二等奖(2次),ZYX 竞赛三等奖。 ] #resume-section[技术能力] - *语言*: 编程不受特定语言限制。常用 Rust, Golang, Python,C++; 熟悉 C, #text(fill: gray, "JavaScript");了解 Lua, Java, #text(fill: gray, "TypeScript")。 - *工作流*: Linux, Shell, (Neo)Vim, Git, GitHub, GitLab. - *其他*: 有容器化技术的实践经验,熟悉 Kubernetes 的使用。 #resume-section[工作经历] #resume-work( company: "北京 ABCD 有限公司", duty: "后端开发实习生/XXXX", start: "2020.10", end: "2021.03", )[ - *独立负责XXX业务后端的设计、开发、测试和部署。*通过 FaaS、Kafka 等平台实现站内信模板渲染服务。向上游提供 SDK 代码,增加或升级了多种离线和在线逻辑。完成了业务对站内信的多样需求。 - *参与 XXX 的需求分析,系统技术方案设计;完成需求开发、灰度测试、上线和监控。* ] #resume-section[项目经历] #resume-project( title: "BusTub 基于 C++ 的简易单机数据库", duty: "算法设计与实现 / CMU 15-445 课程", )[ - 实现了基于可扩展哈希表和LRU-K的内存池管理。实现了可并发的B+树,支持乐观加锁的读写操作。 - 采用火山模型实现了查询、修改、连接、聚合等查询执行器,对部分查询进行了改写与下推。 - 采用 2PL 进行并发控制,支持死锁处理、多种隔离级别、表锁和行锁。 - 对数据库系统有了基本的认识和实践。 ] #resume-project( title: "Multi-Raft 分布式 KV 存储系统", duty: "算法设计与实现 / MIT 6.824 课程", )[ - 实现了 Raft 协议的选举、日志复制、持久化、日志压缩等基本功能。 - 基于 Raft 协议实现了满足线性一致性的 KV 数据库。 - 采用 Multi-Raft 架构,支持数据分片,分片迁移,分片垃圾回收和分片迁移时读写优化。 - 对分布式系统的设计考量有了更多的认识。 ] #resume-project( title: "ZYX 平台下的某某共识算法设计与实现", duty: "共识算法设计与实现", start: "2021.11", end: "2022.07", )[ - 根据 ZYX (Rust 实现的开源区块链框架) 的架构,*修改并实现某某某共识算法*。 - 针对系统进行性能测试,分析瓶颈,并优化吞吐量;TPS 由 1K 达到 6K。 - 此项目为实验室研究项目的一部分。 ] #resume-project( title: "BIThesis 北京理工大学毕设模板集合(开源项目)", duty: "主要维护者(开源项目)", start: "2020.04", )[ - 根据相关排版要求,*利用 LaTeX3 (expl3) 设计了同时符合各个学位要求且支持灵活配置的宏包及多套模板*。 - 需求开发和问题修复采用标准工作流,引入了回归测试与基于 GitHub Actions 的测试与持续集成。 - 负责了什么什么;完成了怎样的结果。 ] #resume-section[个人总结] - 本人乐观开朗、在校成绩优异、自驱能力强,具有良好的沟通能力和团队合作精神。 - 可以使用英语进行工作交流(六级成绩 XXX),平时有阅读英文书籍和口语练习的习惯。 - 有六年 Linux 使用经验,较为丰富的软件开发经验、开源项目贡献和维护经验。善于技术写作,持续关注互联网技术发展。
https://github.com/mem-courses/linear-algebra
https://raw.githubusercontent.com/mem-courses/linear-algebra/main/global.typ
typst
#let prob(bgcolor: luma(248), border: luma(88), text) = block( fill: bgcolor, width: 100%, inset: 0.8em, radius: 4pt, stroke: border + 0.5pt, text ) #let note(..x) = { prob(bgcolor: rgb(219, 242, 249), border: rgb(51, 166, 184), ..x) } #let info(..x) = { prob(bgcolor: rgb(210, 247, 253), border: rgb(88, 178, 220), ..x) } #let warn(..x) = { prob(bgcolor: rgb(254, 234, 207), border: rgb(255, 196, 8), ..x) } #let prof(..x) = { prob(bgcolor: luma(252), border: luma(135), ..x) } #let answer(..x) = { prob(bgcolor: rgb(254, 234, 207), border: rgb(255, 196, 8), ..x) } #let badge(content, fill: rgb("#000000")) = box( fill: fill, radius: 4pt, inset: 1pt, outset: 3pt, text( content, weight: "bold", size: 10pt, fill: rgb("#ffffff") ) ) #let ac = badge("Correct", fill: rgb("#25ad40")) #let pc = badge("Partially Correct", fill: rgb("#01bab2")) #let wa = badge("Wrong Answer", fill: rgb("#ff4f4f")) #let un = badge("Unknown", fill: rgb("#5c5c5c")) #let dp = math.display #let sp = math.space #let eps = math.epsilon #let sim = "~ " #let st = "s.t. " #let pm = math.plus.minus #let mp = math.minus.plus #let EEE = math.bold("E") #let AAA = math.bold("A") #let OOO = math.bold("O") #let III = math.bold("I") #let def(x) = { text("【" + x + "】", weight: "bold") } #let deft(x) = { text("【" + x + "】", weight: "bold", fill: rgb("#FFFFFF")) } #let bb(x) = { text(x, weight: "bold") } #let seqn(x,n) = ( math.attach(x, br: math.upright("1")) + math.upright(",") + math.attach(x, br: math.upright("2")) + math.upright(",") + math.dots.c + math.upright(",") + math.attach(x, br: math.italic(n)) ) #let vecn(x,n) = ( math.display(math.mat( math.attach(x, br: math.upright("1")), math.attach(x, br: math.upright("2")), math.dots.c, math.attach(x, br: math.italic(n)) )) )
https://github.com/PabloRuizCuevas/numty
https://raw.githubusercontent.com/PabloRuizCuevas/numty/master/test.typ
typst
MIT License
#import "main.typ" as nt #let M = ((1,3), (3,4)) #let N = ((1,5), (1,4)) #let u = (1,2,3) #let v = (3,2,1) #let a = 1 #let b = 2 = Automatic Tests == Test data: $ u = #u \ v = #v \ a = #a \ b = #b $ === Logic === eq(u,v) Checks element wise equality: // mat mat nt.eq(#nt.p(M),#nt.p(N)) = #nt.p(nt.eq(M,N)) // arr arr nt.eq(#u,#v) -> #nt.eq(u,v) #assert(nt.eq(u,v) == (false, true, false)) #assert(nt.eq(u,u) == (true, true, true)) // arr float #assert(nt.eq(u,a) == (true, false, false)) #assert(nt.eq(a,u) == (true, false, false)) // flt flt #assert(nt.eq(a,b) == false) #assert(nt.eq(a,a) == true) // with nan #assert(nt.eq((float.nan,1),(float.nan,1), equal-nan:true) == (true,true)) #assert(nt.eq((float.nan,1),(float.nan,1)) == (false,true)) === all(u) Check if array only contains true or 1 //mat #nt.all(((true, true),(true,true))) // arr #assert(nt.all((false, true, false)) == false) #assert(nt.all((true, true, true)) == true) #assert(nt.all((1, 1, 1)) == true) #assert(nt.all((0, 0, 0)) == false) // flt #assert(nt.all(true) == true) #assert(nt.all(false) == false) #assert(nt.all(1) == true) === all-eq(u) Checks all element wise equality: //arr #assert(nt.all-eq(u,v) == false) #assert(nt.all-eq(u,u) == true) //flt #assert(nt.all-eq(3,3) == true) === any(u) Checks if any element is true or 1 // arr nt.any(#(false, true, false)) -> #true #assert(nt.any((false, true, false)) == true) #assert(nt.any((false, false, false)) == false) #assert(nt.any((0, 0, 1)) == true) === isna(u) Check if the value is float.na //arr #assert(nt.isna((1,2)) == (false, false)) #assert(nt.isna((1,float.nan)) == (false, true)) === apply(a) Applies a function element-wise without changing the shape === abs(a) Takes the abs of the mat, array, value #assert(nt.abs(((1,-1),(1,-4))) == ((1,1),(1,4))) == Types //arrarr(a,b) === arrarr(u,v) Check if a,b are arrays #assert(nt.arrarr(u,v) == true) #assert(nt.arrarr(a,b) == false) === arrflt(u,a) check if u is array and a is float #assert(nt.arrflt(u,b) == true) #assert(nt.arrflt(b,u) == false) #assert(nt.fltarr(b,u) == true) #assert(nt.fltarr(b,b) == false) #assert(nt.fltflt(b,b) == true) == Operators === add(u,v) Adds matrices vectors numbers // mat mat #nt.add( ((1,3),(1,3)), ((1,1),(1,1)) ) // mat flt #assert(nt.add( ((1,3),(1,3)), 2 ) == ((3,5),(3,5))) // arr arr #assert(nt.add((1,3),(1,3)) == (2,6)) // arr float #assert(nt.add((1,3),1) == (2,4)) #assert(nt.add(1,(1,3)) == (2,4)) // float float #assert(nt.add(1,2) == 3) === sub(u,v) Substracts matrices // arr arr #assert(nt.sub((1,3),(1,3)) == (0,0)) // arr flt #assert(nt.sub((1,3),2) == (-1,1)) //#assert(nt.sub(2,(1,3)) == (1,-1)) #nt.sub(2,(1,3)) // flt flt #assert(nt.sub(2,3) == -1) === mult(u,v) Multiply two matrices // arr arr #assert(nt.mult((1,3),(1,3)) == (1,9)) // arr flt #assert(nt.mult((1,3),2) == (2,6)) #assert(nt.mult(2,(1,3)) == (2,6)) // flt flt #assert(nt.mult(2,3) == 6) === div(u,v) divide two matrices // arr arr #assert(nt.div((1,3),(1,3)) == (1,1)) #assert(nt.div((1,3),(1,0)).at(0) ==1) #assert(nt.div((1,3),(1,0)).at(1).is-nan()) // arr flt #assert(nt.div((1,3),2) == (1/2,3/2)) #assert(nt.div(2,(1,3)) == (2,2/3)) // flt flt #assert(nt.div(2,3) == 2/3) === pow(u,v) exponentiation of matrices // arr arr #assert(nt.pow((1,3),(1,3)) == (1,27)) // arr flt #assert(nt.pow((1,3),2) == (1,9)) #assert(nt.pow(2,(1,3)) == (2,8)) // flt flt #assert(nt.pow(2,3) == 8) == Algebra // arr #assert(nt.log((1,10, 100)) == (0,1,2)) //#assert(nt.log((0,10, 100)) == (float.nan,1,2)) // others: #assert(nt.linspace(0,10,3) == (0,5,10)) #assert(nt.geomspace(1,100,3) == (1,10,100)) #assert(nt.logspace(1,3,3) == (10,100,1000)) == Print #nt.print(M) #nt.print(u)
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/053_Wilds%20of%20Eldraine.typ
typst
#import "@local/mtgset:0.1.0": conf #show: doc => conf("Wilds of Eldraine", doc) #include "./053 - Wilds of Eldraine/001_Episode 1: Pure of Heart.typ" #include "./053 - Wilds of Eldraine/002_Episode 2: Wandering Knight, Budding Hero.typ" #include "./053 - Wilds of Eldraine/003_Episode 3: Two Great Banquets.typ" #include "./053 - Wilds of Eldraine/004_Episode 4: Ruby and the Frozen Heart.typ" #include "./053 - Wilds of Eldraine/005_Episode 5 Broken Oaths.typ"
https://github.com/jmuchovej/typst-iconify
https://raw.githubusercontent.com/jmuchovej/typst-iconify/main/readme.md
markdown
# Iconify, for Typst! Iconify is a pretty sweet project used in web development, but since they provide SVGs of all icon sets, we can integrate these into Typst documents! 🥰 ## Usage ## High-level Roadmap - [x] Support `<icon-set>:<icon-name>` lookups from Typst. - [ ] Split the package into something like `typst-iconify-core` and `typst-iconify-<icon-set>` so the core remains small (and relatively stagnant once stable) while icon sets can receive updates as-needed. - [ ] Support dynamic specification/importing of icons (e.g. say the use doesn't load the `phosphor` icons but wants to use `ph:app-window-duotone`, we should be able to lookup/load this icon for them) -- at least while `typst-iconify` is a monolithic package. - [ ] Support configuration of icon sizes, either per-icon or globally with something like a `#show iconify...` rule. - [ ] Perhaps natively support inline-icons via `#box[#icon(...)]`, as mentioned [here](https://github.com/jgm/pandoc/pull/9149)? ## Development
https://github.com/glambrechts/slydst
https://raw.githubusercontent.com/glambrechts/slydst/main/slydst.typ
typst
MIT License
#let default-color = blue.darken(40%) #let header-color = default-color.lighten(75%) #let body-color = default-color.lighten(85%) #let layouts = ( "small": ("height": 9cm, "space": 1.4cm), "medium": ("height": 10.5cm, "space": 1.6cm), "large": ("height": 12cm, "space": 1.8cm), ) #let slides( content, title: none, subtitle: none, date: none, authors: (), layout: "medium", ratio: 4/3, title-color: none, ) = { // Parsing if layout not in layouts { panic("Unknown layout " + layout) } let (height, space) = layouts.at(layout) let width = ratio * height // Colors if title-color == none { title-color = default-color } // Setup set document( title: title, author: authors, ) set page( width: width, height: height, margin: (x: 0.5 * space, top: space, bottom: 0.6 * space), header: context { let page = here().page() let headings = query(selector(heading.where(level: 2))) let heading = headings.rev().find(x => x.location().page() <= page) if heading != none { set align(top) set text(1.4em, weight: "bold", fill: title-color) v(space / 2) block(heading.body + if not heading.location().page() == page [ #{numbering("(i)", page - heading.location().page() + 1)} ] ) } }, header-ascent: 0%, footer: [ #set text(0.8em) #set align(right) #counter(page).display("1/1", both: true) ], footer-descent: 0.8em, ) set outline( target: heading.where(level: 1), title: none, ) set bibliography( title: none ) // Rules show heading.where(level: 1): x => { set page(header: none, footer: none) set align(center + horizon) set text(1.2em, weight: "bold", fill: title-color) v(- space / 2) x.body } show heading.where(level: 2): pagebreak(weak: true) show heading: set text(1.1em, fill: title-color) // Title if (title == none) { panic("A title is required") } else { if (type(authors) != array) { authors = (authors,) } set page(footer: none) set align(horizon) v(- space / 2) block( text(2.0em, weight: "bold", fill: title-color, title) + v(1.4em, weak: true) + if subtitle != none { text(1.1em, weight: "bold", subtitle) } + if subtitle != none and date != none { text(1.1em)[ \- ] } + if date != none {text(1.1em, date)} + v(1em, weak: true) + align(left, authors.join(", ", last: " and ")) ) } // Content content } #let frame(content, counter: none, title: none) = { let header = none if counter == none and title != none { header = [*#title.*] } else if counter != none and title == none { header = [*#counter.*] } else { header = [*#counter:* #title.] } set block(width: 100%, inset: (x: 0.4em, top: 0.35em, bottom: 0.45em)) show stack: set block(breakable: false) show stack: set block(breakable: false, above: 0.8em, below: 0.5em) stack( block(fill: header-color, radius: (top: 0.2em, bottom: 0cm), header), block(fill: body-color, radius: (top: 0cm, bottom: 0.2em), content), ) } #let d = counter("definition") #let definition(content, title: none) = { d.step() frame(counter: d.display(x => "Definition " + str(x)), title: title, content) } #let t = counter("theorem") #let theorem(content, title: none) = { t.step() frame(counter: t.display(x => "Theorem " + str(x)), title: title, content) } #let l = counter("lemma") #let lemma(content, title: none) = { l.step() frame(counter: l.display(x => "Lemma " + str(x)), title: title, content) } #let c = counter("corollary") #let corollary(content, title: none) = { c.step() frame(counter: c.display(x => "Corollary " + str(x)), title: title, content) } #let a = counter("algorithm") #let algorithm(content, title: none) = { a.step() frame(counter: a.display(x => "Algorithm " + str(x)), title: title, content) }
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/PPT/typst-slides-fudan/themes/polylux/book/src/themes/gallery/metropolis.typ
typst
#import "../../../../polylux.typ": * #import themes.metropolis: * #show: metropolis-theme.with( footer: [Custom footer] ) #set text(font: "Fira Sans", weight: "light", size: 20pt) #show math.equation: set text(font: "Fira Math") #set strong(delta: 100) #set par(justify: true) #title-slide( author: [Authors], title: "Title", subtitle: "Subtitle", date: "Date", extra: "Extra" ) #slide(title: "Table of contents")[ #metropolis-outline ] #slide(title: "Slide title")[ A slide with some maths: $ x_(n+1) = (x_n + a/x_n) / 2 $ #lorem(200) ] #new-section-slide("First section") #slide[ A slide without a title but with #alert[important] infos ] #new-section-slide([Second section]) #focus-slide[ Wake up! ]
https://github.com/lucannez64/Notes
https://raw.githubusercontent.com/lucannez64/Notes/master/SimpleOrdinaryDE.typ
typst
#import "template.typ": * // Take a look at the file `template.typ` in the file panel // to customize this template and discover how it works. #show: project.with( title: "SimpleOrdinaryDE", authors: ( "<NAME>", ), date: "30 Octobre, 2023", ) #set heading(numbering: "1.1.") #align(center)[#table( columns: 1, align: (col, row) => (auto,).at(col), inset: 6pt, [- link: https:\/\/www.youtube.com/watch?v\=BjvkBLfvkqY&list\=PLMrJAkhIeNNTYaOnVI3QpH7jgULnAmvPA&index\=4], ) ] = Simple Ordinary Differential Equation <simple-ordinary-differential-equation> == First Order Linear Ordinary D.E <first-order-linear-ordinary-d.e> Let’s say that bunnies are procreating \ let x \= bunny population \ and the population grows at a rate $lambda$ $dot(x) eq frac(d x, d t) eq lambda x comma x lr((0)) med i n i t i a l med p o p med s i z e$ We ask the question what is the population as a function of time ? \ x(t) ? === Method 1: <method-1> $frac(d x, d t) eq lambda x$ \ \ $frac(d x, x) eq lambda d t$ \ \ $integral frac(d x, x) eq integral lambda d t$ \ \ \=\> $l n lr((x lr((t)))) eq lambda t plus C$ \ \=\> $x lr((t)) eq e^(lambda t plus C)$ we know that $e^(a plus b) eq e^a e^b$ \ \=\> $x lr((t)) eq e^(lambda t) plus K$ \ K ? $X lr((0)) eq e^0 K arrow.r.double K eq x lr((0))$ == Second Order ODE <second-order-ode> === Example <example> The differential equation you’ve written down is a second-order linear differential equation with constant coefficients, which can be written in the standard form $frac(d^2 x, d t^2) plus k / m frac(d x, d t) plus g / m x eq 0$. To solve this type of differential equation, you can use the characteristic equation, which is given by the equation $lambda^2 plus k / m lambda plus g / m eq 0$. The solutions to this equation are the so-called characteristic roots, which are the values of $lambda$ that satisfy the equation. In this case, the characteristic roots are given by the quadratic formula: $ lambda eq frac(minus k / m plus.minus sqrt(lr((k / m))^2 minus 4 dot.op g / m), 2) dot.basic $ Once you have the characteristic roots, you can find the general solution to the differential equation by writing it in the form $x lr((t)) eq c_1 e^(lambda_1 t) plus c_2 e^(lambda_2 t)$, where $c_1$ and $c_2$ are constants and $lambda_1$ and $lambda_2$ are the characteristic roots. To find the specific solution to the equation, you need to use initial conditions, which specify the values of $x$ and $dot(x)$ at a particular time $t_0$. Using these initial conditions, you can solve for the constants $c_1$ and $c_2$ and obtain the specific solution to the differential equation. #link("Maths.pdf")[Maths]
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/051%20-%20March%20of%20the%20Machine/011_Episode%206%3A%20The%20Last%20to%20Leave.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Episode 6: The Last to Leave", set_name: "March of the Machine", story_date: datetime(day: 23, month: 04, year: 2023), author: "<NAME>", doc ) Fear is the first thing she remembers. Next comes the smell of the thing: burning pitch, ozone. It sticks to the roof of her mouth, and there is nowhere she can go to escape it. By the time she hears the skittering of its claws against the stone her eyes fly open, and she reaches for her sword. There: the monster with talons as long as a hunting hound, hundreds of sharp teeth, sightless vestigial sockets. A girl cowers opposite the beast, pressing herself to the cold stone wall. Between the girl and the monster there is a body curled on its side: an older woman, her throat torn open. Her blood slicks the monster's chittering jaw as it lunges for the girl. What strikes her then—beyond the fact that she has eyes and can see—is that none of this is new to her. She knows this place. She was here, once. This mildewed dungeon is only a stone's throw from her old family home. She knows that the girl has been here for a week, possibly more—that she is hungry and thirsty and has lost all hope. She knows that the woman on the ground is the girl's mother. This time, she does what the girl could only dream of doing. This time, she has a sword. The creature lunges for the girl, but she steps between the beast and the child. Claws rake against armor as it closes in. Just as it opens its jaws to bite at her, she drives her sword through the roof of its mouth. Black tar bubbles from the wound and drips down the length of her blade. She withdraws it. The creature, rasping, curls up on the ground. Another cut sees its head separated from its body. She kicks it away. So easy. It had been so easy. Had she ever found this sort of thing difficult? Memories knock about in her head. The girl needs to go somewhere. There is something else she should be doing. The woman needs a proper burial, but she will never have one, and it is best not to dwell on such thoughts. And~ wasn't there something else? What is it she's forgetting? She shakes her head. The girl has thrown her arms around her in embrace. She tousles the girl's hair. "You're safe now." "Thank you," answers the girl, in a voice without any trace of youth. "You did the right thing." She looks between the creature's body, and the dead woman. "Keeping people safe is what I do." "So it is. But keep in mind that you are seeing this with new eyes. Once, this was difficult for you." Steps down the hall—heel, click, heel, click. The girl's eyes begin to glow. She points to the door. "A splicer is coming." The word tugs at something in her mind—the thing she's meant to remember. It occurs to her that she should find a girl with glowing eyes strange, but she doesn't. There's something familiar about her, too—so she kneels to get a better look. Two thick black brows, with the glossy hair to match—hair that never stayed put in anything but the sturdiest of braids. Round cheeks her mother used to pinch. A scar along her jaw from a fall she'd taken. What was it her mother had said then? Wounds like that belonged only to the flesh; to wear a scar was a choice. At the time she'd liked that choice. It made her feel braver, even if the cause wasn't so brave at all. A sword sliding into a sheath. She understands now. The girl nods. "Elspeth, it's time to wake up." The floor gives out from under them, the walls fly away, the moldy ceiling is flung into another dimension. Around them the stars whisper their eternal secrets. The girl's face—her own face, but younger—shifts into her mother's. Blood drips from her torn throat onto her cloak. "You have a choice to make." Once more, she drops. All around her the world starts to change. This village she was in—her village—is sealed beneath stone. Blocks build upon it bit by bit, assembled as if by some unseen child at play, while the trees rapidly fruit and wither, fruit and wither. The air begins to shimmer. "Do you remember what you're becoming?" A young girl's shadow. A face amidst the shimmering, beaming at her. Elspeth looks down at her own hands. They, too, are opalescent in the light of this place. A curious sensation prickles along her shoulder blades; a glittering feather falls from nowhere to float before her. "Just so," says her mother. "You've done so well to get here, but there's one last step to take. You first must leave your old self behind." "Is that why you brought me here?" she asks. "You came here of your own volition. When presented with the impossible, you made a choice where others balked. You rewrote fate. Part of you knew it was time to awaken. The consequences of that choice are unfolding—and we are just ahead of its author, waiting for your chance to join the tale." In killing the Phyrexian beast? No~ another memory wells up: the sylex, her friends arguing, a way that seemed clear and right if not easy. Didn't it explode? Maybe she's dead. Maybe all of this is a hallucination. "It isn't." "I don't like having someone read my thoughts," Elspeth says. "You think loudly," answers the voice. She sighs, or thinks she does, in this strange body. Before her the stones are stacking themselves higher and higher—a needle against the sky. As it reaches its peak she begins to recognize it. New Capenna. "What do I have to do?" "You must make one more choice—and you have little time to make it. Your mortal wants and desires must not enter into the equation." It sounded simple enough, but she had the feeling it wouldn't be. "What do I have to choose?" "All the planes are aflame. You've seen some of what's happened, but not all. Soon, you'll see the rest. You must choose where to intervene," says the voice. What did she mean by~ ? Ah. A cabin, an old friend in tears outside it; a woman in a ship swaying uneasily through the sky; a young man at war with something that was once a dragon. The fragments come together in her mind like a blasphemous sheet of stained glass. Phyrexia. This is about Phyrexia. The moment she has the thought, the world above her shatters. New Capenna's skies go red as a pomegranate; a massive white structure pierces through the clouds. The structure—something like the tendril of a god—wraps about the city. Windows shatter, monuments tumble, girders snap. Cracks run up the side of the tower. Oil spills from the tendril, coating the surface in glistening black. Pods like carrion insects descend on the city. But New Capenna isn't dead. Not yet. It can't be—the whole city is fortified against attack. She learned that herself. Elspeth wants to see more. Soon she's surrounded by fire and rubble. The blood is ankle deep on the streets of New Capenna. It takes her a moment to realize the piles of leather along the curbs are the shucked skins of too slow citizens. There are more Phyrexians around her than there are people. And worse: floating above them all is something that once was an angel. The sight makes her feel sick in ways she cannot express. #figure(image("011_Episode 6: The Last to Leave/01.jpg", width: 100%), caption: [Art by: Gaboleps], supplement: none, numbering: none) "They call her Atraxa." The voice is different, now, yet not unknown. Her mother's. It isn't a convincing mimicry—but there is some warmth in Elspeth's heart at the sound, nonetheless. "An angel corrupted by the hands of four praetors. One of their most fanatical generals." A whistle in the air. Something explodes against Atraxa's helm, but in its wake~ nothing. Not a crack. She sweeps her scythe through a cluster of survivors as easily as a farmer reaping wheat. Elspeth has seen war before. It is familiar to her, if never quite comfortable, to be in the thick of the melee. On Alara, Theros, and Mirrodin, she raised her sword to protect the innocent, to find peace. But this place is different. There isn't anything she can do. The quill of a Phyrexian beast shoots clean through her body. A faint tingle is all she feels—but behind her, its prey sinks dead to the ground. A bat-winged creature that might have once been a Maestro descends on a fleeing man. She tries to save the man only for her hands to fade through him. "Remember what you've been told, El," says her mother. "You have to choose where to help." Elspeth swallows. As she looks up, Atraxa sweeps the plaza once more. Heads and torsos fall to the ground beneath the watchful eye of the seraphs. "This place used to be home. I never imagined it'd grow to this size, of course, but it was home all the same," says her mother. "The Capennan people welcomed us with open arms. Decades later, they welcomed you, again." Atraxa lets out a horrific screech. In the skies, the winged creatures array themselves into a grid. "The invader has been given strict orders. There are to be no survivors on New Capenna. Only our organs and bones will live on." Like arrows, the winged beasts descend upon the upper levels of Park Heights. And it seems they have reason to. Riveteers dangle precariously from whatever holds they can find, red-hot tools in hand. Bolts and nuts drop from the surface of the place like falling petals. "There are some who fight," says her mother. "There are more who have given themselves over to corruption. Power's voice is booming, isn't it? But there are always some who fight against impossible odds. People who need help. Inspiration." Closer still. Within the belly of Park Heights, orders are shouted to and fro, a cacophony of engineering. Gouts of steam melt the invaders' armor as they reach for those inside. Yet they cannot protect everyone—for every Riveteer that is saved, two more are carried away between metal jaws. They don't have long. "You could be that for them. This was our home once. You could save it with your own two hands. Build something new." Could it be? Although she'd met kind people who did welcome her, there were those who'd take any excuse to see her fall. Could she spend the rest of her days here? The woman's words echo in her mind: she must make the right choice. She must do what's needed. Elspeth turns. She catches sight of the seraphs once more and nods to them. As dire as things seem, New Capenna had its defenders. "This isn't the place," she says. A thundering sound. The walls fly out again, becoming as flat as paintings before fading into the black. The longer she falls the more of them she sees. Students slinking down corridors, away from their changed professors; a woman in a black bridal dress singing above a horde of zombies; kor flying on mantas toward a great white structure. She jerks to a stop between a red sky and a red sea. Overhead the fine fabric of stars ripples. The air tastes of salt. Theros. "Welcome home." Elspeth's mouth opens. At once she is turning about in the void, searching for the speaker. "Daxos?" "So you've not forgotten me, even with the new station," he says. His voice is warm and honey sweet. Hearing it is enough to work loose the tension in her soul. "I'll take it as a compliment." "Don't be ridiculous," she says. "I couldn't forget you if I tried." Yet there is a tightness in her chest, too, when she realizes she cannot see him. And when her eyes land on Meletis. Here, too, there is fire; here, too, there is rubble and ruin. Houses in which she'd taken tea are smashed to the ground. The market is little more than a smoldering heap. "It is our time of need," he says. "And it is #emph[his ] time of need." The view around them shifts again—though this time without Elspeth's say-so. They've left Meletis in favor of a temple's belly. Bright white statues are now slick with oil, their faces painted with Phyrexian masks. Thick, dark smoke chokes the inner chamber. Within, people are packed so tight none can move. Porcelain masks and bony protrusions speak to their state. A leonin stands atop the altar. "The gods of Theros exist because we will it to be so. They serve at our behest. You know now the glory of Phyrexia, the glory of true unity—an unending bond between all that lives. Is that not a greater divinity?" "Persuasive as ever, isn't he?" Daxos says. Elspeth's throat threatens to close. "Do you see the cup in his hands? It's full of oil. And the woman there, kneeling next to him?" The sight of Ajani disturbed her so much she'd missed the woman. From the smooth fabric she's wearing, and the gold jewelry adorning it, she must be a priestess. #figure(image("011_Episode 6: The Last to Leave/02.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none) Realization like a knife in the back. "He's trying to convert the gods?" "Trying is putting it lightly. He's already changed three of them. Didn't even have to try. The Phyrexians are so fervent in their beliefs the gods have little hope of fighting back," Daxos answers. "Phyrexian gods," she repeats. "With that sort of power, it'd be easy to~" "There wouldn't be many places to hide," Daxos agrees. "But do you know where we are? Whose temple this is? Look carefully." A statue's severed head among the wreckage. The moment she turns her attention to it, she feels like a fool. Heliod. Of course. This is meant to be a test for her—and what better way to test her than these two? On Theros, Elspeth found a new light to guide her. They'd parted on bad terms—but could she stand back and watch as Ajani anointed him in this foul oil? The whistle of an arrow kills her thoughts. The bowl in Ajani's hand shatters; falling shards cut the priestess's face. As Ajani turns toward the shooter, the priestess tries to get away. Two in the crowd hold her aloft. Another arrow slams into Ajani's shoulder. He pulls it out, snaps it in annoyance. "Find them!" "So there are still heroes on Theros," Elspeth observes. Somehow, she feels Daxos's hand on her shoulder. "Keep watching." Darkness swallows them an instant, only to return them to a slightly different part of the temple. Hunters pursue a youth down one of the halls. Their leader—bearing multiple metallic heads—flings a net over him. One of the others takes the captured youth back to the altar. Ajani holds aloft the net with a single hand. "Behold, one who turns away from the pack! One who plots against us!" The youth is screaming. Ajani cuts him loose, only to catch him by the hair. "What use is a mind that plots to sow dissent?" Elspeth can't bear to look. She turns away—but there is no escaping the sound of crushed bone, or the cheers that follow. How could that be Ajani? How could he do such a thing? "He was forced," Daxos says. "You could save him from this. If he were here—the real him—he'd welcome release." "I'm not sure it's so simple." She forces herself to look once more. The priestess is kneeling, again, and he is forcing her to drink the oil. Light is coming to the temple. But it is not rosy-fingered dawn, nor violet-cloaked dusk—it is the searing white light of the forge. The burning sun. Despite the fiery corona in the temple the faithful do not look away. Plumes of smoke rise from what remains of their skinless flesh. "You're the bravest woman I've ever known, and you've always tried to do the right thing. If I were to trust anyone with saving Theros—it would be you." She turns away again. Her thoughts race. If she chooses Theros, she must fight Ajani. If she fights him—there's likely no way to save him anymore. Once the corruption's taken root like this, there's little to be done. Yes, she's killed gods. Yes, she's loved this place, called it home. And yes, she longs to see Daxos again. But this isn't meant to be about her own wants and needs. What good does saving Theros do? The thought should pain her and yet it doesn't. What good does it do? If Ajani falls here, the invasions continue. Phyrexian gods will wreak havoc on Theros—but are the people here any more worthy of salvation than the people of New Capenna? Her mind's split in two. On one side her emotions rage like the seas outside the temple. On the other, only the waters of ablution. Daxos's arms wrap around her waist. "I think you know what you have to do." "Don't make me say it," she says, leaning back against him. But there isn't anyone there. The world falls away again. She falls into a landscape where a lizard the size of a mountain fights its quilled silver counterpart. The oil and blood from their wounds form rivers along the lush green earth. She falls into a castle, once shining, now reduced to rubble. A young man rifles through the broken remains of an armory. The plate covering him is cobbled together from these remains, and already pitted with black. When he finds a sigil among the dreck, he exclaims happily. Now, he thinks, he will be able to defend his family. But he hasn't so much as secured that armor properly, and his sword is of ill size for his body; he will fall. She tries to call out to him to find a proper Sigiled knight, but he does not hear her, as she has already begun to fall again. Through ranks of horsemen beating war drums, their hounds on the hunt for Phyrexian enemies; through a neon city protected by towering mechanical guardians; through strange swamps and twisted hills, she falls and falls. Until she lands in a place she hoped never again to see. The Invasion Tree stands as proud testament to the unending triumphs of Elesh Norn. Red pulses from beneath its clean white plates as it reaches for the heavens—and, indeed, pierces them. An undulating army packs one of the bridges before it. Their banner and their forms—strangely curved, rife with tubes and vats—mark them as Jin-Gitaxias's creations. There must be thousands of them. How many are newly formed? How many come from the places she's just seen? "You have a choice to make." Desperation drives her closer to the base of the tree. She left—but the others must have stayed. They wouldn't abandon such an important fight. Surely there'd be someone. But when she arrives at the base of the tree, <NAME> is the first creature she sees. Sat upon a porcelain throne, its sides uncomfortably close to spines, she surveys her creation. Before her, Urabrask is lashed to a machine. Two centurions on either side wind wheels nearly as large as they are. With every turning of the wheel, Urabrask's limbs are wrenched further away from his body. Now, he is little more than a howling pile of sinew. Flanking Norn are two makeshift choirs—living instruments who sing the glories of Phyrexia. Still, what emerges from their unholy throats can hardly be called a song: they keen, they screech, they double their voices. Not once do they approach anything like a melody. Urabrask's dying screams do little to add harmony. "There is no room for error." Norn snaps her fingers. The choir stops. With another snap she dismisses Urabrask—the centurions chop him into quarters and carry him off. With a third, she summons a group of flying creatures carrying great cargo between them. It isn't until they land that Elspeth recognizes Karn's ravaged body. Somehow, his eyes still show signs of life—but the pain within them is far stronger. #figure(image("011_Episode 6: The Last to Leave/03.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none) Even more so when he, like Elspeth, beholds what Norn is celebrating. So small are the mortals before her that Elspeth hadn't noticed them at first: Mirrans, shackled together, their heads bowed. Blood slicks the faces of many. Some have already lost limbs. Splicers attend to those, grafting unwanted limbs onto unwilling recipients. Elspeth knows them. She's fought side by side with them. None deserve a fate like this. "We understand that your minds cannot comprehend the glory that awaits you," Norn speaks, "and for that we offer our eternal pity. You have your skin's treachery to blame. Without it you will find yourself free of all burdens." Elspeth reaches for her sword. "Think about what you're doing. You only have one opportunity to choose." It's the woman's voice again. "Choose falsely and everything ends here." "Norn has to die," Elspeth answers. "Once, long ago, there was a beneficent woman in white who created a world all her own," the voice begins. She remembers now. There was a god, wasn't there? One whose name was forbidden within the dungeon. One she prayed to, as a child. "A beautiful place—bright, peaceful. A place where angels dwelled. She made it so pleasant that she never had any thought to leave or look beyond it. Years passed, and a wizard came to her for aid. She never imagined the kind of threat that would follow in his wake." She gestures around them. "This threat. And it is not carried on by Norn alone. She believes herself to be the beginning and end of Phyrexia, but she is wrong. Killing her will not end this." Centurions bring three more prisoners before Elesh Norn. They're tossed onto the ground. Two can't stand under their own power, or even kneel. Elspeth's stomach sinks as she recognizes them: a beaten Koth; the dryad Wrenn, torn from her tree; and a bloody Chandra Nalaar. "Behold the traitors," speaks one of the centurions—and it's then that Elspeth recognizes her as Nissa. Or, at least, someone who once was Nissa Revane. Parts of her new body have melted down to slag. "Mother of Machines, we await your righteous judgment upon them." "We applaud your work in apprehending them, Nissa," Norn speaks. "The trials and tribulations you faced have only served to scour all traces of your old life away. When you look upon them now, what do you feel?" "Contempt. Pity." "As it should be. But you needn't pity them for long. Soon they shall be reshaped and made whole. Compleation's rapture shall cleanse them as it has cleansed you." Hovering behind them, Karn groans. Elspeth's hand twitches around the pommel of her blade. "Let our embrace of these rebels prove to all Phyrexia that we are not without mercy toward lesser beings. Phyrexia embraces all. Phyrexia perfects all. With your individuality flayed from your mind, you will come to understand what a blessing you've been given." Norn's smile is all sharp teeth. "Jin-Gitaxias. Come harvest what is left of Koth's little rebellion. You shall be the architect of their perfection." The army parts. A figure slithers between them, tubes swaying from its maw. Jin-Gitaxias is soon at Norn's side. He bows. "As the Grand Praetor speaks, so Phyrexia wills." He takes a step toward the gathered—and stops. Everything stops. The rebels are frozen mid-breath; the army no longer teems. Time comes to a standstill. Part of her wonders if it's Teferi's doing—if she will see him atop the tree, staff in hand. When it comes to Phyrexia, Elspeth knows better than to nurse such hopes. "Why have we stopped?" "The time has come," says the woman. A shimmering shape coalesces between Jin-Gitaxias and Koth, his first target. She is a serene-looking woman, her features kind. Still, there is a certain sadness weighing down her shoulders. "I must hear your decision." "Who are you?" It slips out without her thinking. "My name hardly matters anymore, but you once knew it," she says. She walks between the prisoners, stopping now at Chandra. The Pyromancer cannot even kneel under her own power—the woman steadies her. "Think carefully. Do you still think Norn must be killed?" Try as she might, Elspeth cannot imagine the Multiverse at peace so long as Norn lives. "When a limb's gone sour, you have to cut it off," she says. "Strange. We heard something similar once, didn't we?" the woman says. She moves to Wrenn—kneels to prop her up. The dryad is looking toward the Invasion Tree. "Do you remember, Elspeth?" Now that she mentions it—it was familiar. Where had she heard that before? She racks her memory, sifting through all that she's seen, until at last the voice comes back to her. #emph[When a branch has gone rotten . . .] Wrenn. They'd said the same thing, the two of them, separated by time and place. Just as Elspeth knew what had to be done, so did Wrenn. That must have been why she came here. And if she's looking at the tree~ Something shifts. When she looks on the scene, Norn's gone translucent, like a spirit. So too has Jin-Gitaxias. The more she looks around the more ghosts she sees. Only Nissa and Wrenn remain themselves. Were they the key players? Wrenn must be tied to her earlier revelation—but why Nissa? Beyond their excursion to New Phyrexia, Elspeth hadn't spoken to her much. By the time Elspeth arrived Nissa was already gone. "We cannot stay here forever," she says. "You must answer." "I know," Elspeth says. "It's just~ give me a moment to think." Why Nissa? If it was someone who'd already lost—why not Ajani? Why not repay her old mentor for everything he'd done for her? Maybe there was still a way to save him. And for that matter, why not take to the field in New Capenna? If she struck down Atraxa, perhaps the angels there could return—and perhaps their returning might cleanse the plane. As much as she doesn't want to read them, the answers are plain across her heart: if she saves Ajani, she will only be saving a single person. Alone he isn't enough to turn the tide. New Capenna can save itself. Which leaves Wrenn, and Nissa, and the glowing thread tying them together. Yes—she understands. The decision isn't whether to save Nissa or save Wrenn. It's to keep Nissa occupied long enough for Wrenn to reach the tree. "You're certain?" the woman asks. Elspeth nods. Her body feels strange, as if every nerve is alight at once. "This is the right thing to do." "So it is. I cannot fight this threat alongside you, much as I wish I could. But I can forge you into what you were always meant to be." Elspeth looks down at her hand, forming itself anew from the ether of this place. Here are her nails, here are her calluses, here are the lines of her palm. Fortune tellers said they could read fate in those lines. She wonders if any of them knew where she'd end up. "I'm afraid," Elspeth says. Once more it simply slips out of her. She didn't even know she was afraid until she spoke—but she is. There's a numbness creeping into the back of her mind. She thinks of Daxos, of Theros, of the home she once imagined. It all seems like a pleasant dream. The woman embraces her. "Fear is always the last thing to leave," the woman says. "You've slain it time and time again. Do not falter now, Elspeth." It is the last thing she hears before Serra fades away. What an odd sensation it is to be reborn—to feel yourself being stripped away and changed. The wings on her back are heavy as plate mail, yet she cannot remember a time she was ever without them. This body of hers is different—and yet it is as it has always been. She is Elspeth, and she is not. There is no more room for indecision. The Multiverse hangs in the balance. #figure(image("011_Episode 6: The Last to Leave/04.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none) All her life she has been asleep. It's time to wake up, time to become what she was always meant to be. Jin-Gitaxias raises his claws. Elspeth's sword is there to meet them.
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-10A80.typ
typst
Apache License 2.0
#let data = ( ("OLD NORTH ARABIAN LETTER HEH", "Lo", 0), ("OLD NORTH ARABIAN LETTER LAM", "Lo", 0), ("OLD NORTH ARABIAN LETTER HAH", "Lo", 0), ("OLD NORTH ARABIAN LETTER MEEM", "Lo", 0), ("OLD NORTH ARABIAN LETTER QAF", "Lo", 0), ("OLD NORTH ARABIAN LETTER WAW", "Lo", 0), ("OLD NORTH ARABIAN LETTER ES-2", "Lo", 0), ("OLD NORTH ARABIAN LETTER REH", "Lo", 0), ("OLD NORTH ARABIAN LETTER BEH", "Lo", 0), ("OLD NORTH ARABIAN LETTER TEH", "Lo", 0), ("OLD NORTH ARABIAN LETTER ES-1", "Lo", 0), ("OLD NORTH ARABIAN LETTER KAF", "Lo", 0), ("OLD NORTH ARABIAN LETTER NOON", "Lo", 0), ("OLD NORTH ARABIAN LETTER KHAH", "Lo", 0), ("OLD NORTH ARABIAN LETTER SAD", "Lo", 0), ("OLD NORTH ARABIAN LETTER ES-3", "Lo", 0), ("OLD NORTH ARABIAN LETTER FEH", "Lo", 0), ("OLD NORTH ARABIAN LETTER ALEF", "Lo", 0), ("OLD NORTH ARABIAN LETTER AIN", "Lo", 0), ("OLD NORTH ARABIAN LETTER DAD", "Lo", 0), ("OLD NORTH ARABIAN LETTER GEEM", "Lo", 0), ("OLD NORTH ARABIAN LETTER DAL", "Lo", 0), ("OLD NORTH ARABIAN LETTER GHAIN", "Lo", 0), ("OLD NORTH ARABIAN LETTER TAH", "Lo", 0), ("OLD NORTH ARABIAN LETTER ZAIN", "Lo", 0), ("OLD NORTH ARABIAN LETTER THAL", "Lo", 0), ("OLD NORTH ARABIAN LETTER YEH", "Lo", 0), ("OLD NORTH ARABIAN LETTER THEH", "Lo", 0), ("OLD NORTH ARABIAN LETTER ZAH", "Lo", 0), ("OLD NORTH ARABIAN NUMBER ONE", "No", 0), ("OLD NORTH ARABIAN NUMBER TEN", "No", 0), ("OLD NORTH ARABIAN NUMBER TWENTY", "No", 0), )
https://github.com/kalintas/resume
https://raw.githubusercontent.com/kalintas/resume/master/resume.typ
typst
#import "template.typ": * #let info = align(center,table( columns: (auto, auto, auto, auto, auto), rows: (auto), gutter: auto, stroke: none, align: center, [Paris, France], link("tel:+33 7 67 16 78 28"), link("mailto:<EMAIL>"), link("https://github.com/kalintas")[github], link("https://www.linkedin.com/in/kerem-kal%C4%B1nta%C5%9F-844a0b254")[linkedin], )) #show: template.with("<NAME>", info) == Profile An undergraduate Computer Engineering student at Dokuz Eylül University, currently participating in the Erasmus+ student exchange program at Université Paris-Est Créteil. I excel in handling complex tasks, taking on responsibilities, and thriving in team environments. Values clean and elegant solutions to problems and knows the elegant solutions are only good if they are delivered without a compromise to the results. With over six years of passionate programming experience, I continue to expand my knowledge daily and am enthusiastic about learning even more. == Education #experience[*BSc in Computer Engineering* - Dokuz Eylül University (*GPA: 3.12 / 4*)][2022 - present] == Interests Interested in nearly every topic of programming. This includes emulation, operating systems, computer architecture, machine learning, virtual machines, distributed systems, reverse engineering, 3D rendering, parallel and concurrent programming, compilers. == Volunteer Experience Ground Control System Team Member — Dokuz Eylül Aerial Vehicles (DEHA) — September 2023 \ • Parcipated in the devolopment of Eyrie, a custom *GCS* for DEHA drones, built upon Nightingale, written in *Rust*.\ Drone Barcode Reader Team Lead - Dokuz Eylül Aerial Vehicles (DEHA) — September 2023 present\ • Led the development of a barcode reader software that does *image processing* using *OpenCV* for processing drone camera input and recognizing barcodes written in *Phyton*.\ == Projects #project("gameboy")[gameboy][ A gameboy *emulator* and a *debugger* written in *Rust*, using *ImGui*, *OpenGL* and *SDL2* for rendering. Used *Javascript* and *Regex* for code generation with fetching instructions from the *opcode table*. ] #project("chip8")[chip8][ A complete Chip8 and SuperChip *interpreter* written in *Rust*. ] #project("aoc-2023")[aoc-2023][ Advent Of Code 2023 solved only using Gameboy *assembly*. ] #project("cppturko")[cppturko][ A fast, *parallel* port of Deniz Yuret's *turkish deasciifier* that uses *gperf* for generating *perfect hash functions* under the hood, written in *C++*. ] #project("mnist")[mnist][ Real time digital *character recognition* implementation with *neural networks* written from scratch in *C++*, using *stochastic gradient descent*. ] #project("num")[num][ The num mobile game implementation that is written in *React Native*. ] #project("deu_ceng")[deu ceng][ Solutions of the projects and homeworks that is given in 2022-present written in *Java*, *C\#* and *Phyton*. ] #project("schess")[schess][ A chess implementation with *Minimax* algorithm for the *AI* of the opponent that is written from scratch in *C++*, that uses *OpenGL* and *GLFW* for rendering. ] Other projects: Created fully changeable *QR menus* using *React* and *Firebase* for small businesses. For example #link("https://www.sonsetbiga.com")[Sonset] and #link("https://www.obayoreselkoykahvaltisi.com")[Oba]. Wrote a courier management system for a startup project using *React*, *NodeJs* and *ExpressJs*.
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/004%20-%20Dragon's%20Maze/008_The%20One%20Hundred%20Steps.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "The One Hundred Steps", set_name: "Dragon's Maze", story_date: datetime(day: 22, month: 05, year: 2013), author: "<NAME>", doc ) They were trapped. Jek knew the key was critical but he didn't realize to what lengths the Dimir would go to get it back. Now, he and his sister, Vinni, crouched within the walls of the small apartment; they both knew help was not coming—not this far into the Ninth District. They were on their own. He could see the motes of dust as they floated through the tiny shaft of sunlight that pierced the dark crawlspace. Alongside Jek was Vinni, her face a mixture of fear and hope. Out there were the mad albino and his warped henchmen, who slobbered like rabid dogs. Rakdos thrill-killers. Jek was fresh out of the Azorius Academy, but his instructors hadn't prepared him for a situation like this. Jek had easily dispatched a host of gore-house thugs—too easily—when he realized they were only sacrificial swine used to drain his Azorius magic. Now the albino had come to do the real job. "Jek, Jek, Jek, Jek!" The albino screeched as he dragged his flayer's knife along the floor, leaving a ragged trail of splintered wood. "Wakey, wakey!" #figure(image("008_The One Hundred Steps/01.jpg", width: 100%), caption: [], supplement: none, numbering: none) A spike jester cackled and cartwheeled. As he ripped a hole in the wall, plaster and dust rained down and filled Jek's nose and eyes with grit. Vinni reflexively flinched and clapped her hands tight over her ears. Jek's mind raced. It was only a matter of time before the albino brought in a ragemutt to sniff them out. They had to move. Now. Beneath the din of the albino's taunts, Jek carefully slid over to Vinni and whispered in her ear. "He'll bring dogs. We have to move." #figure(image("008_The One Hundred Steps/02.jpg", width: 100%), caption: [], supplement: none, numbering: none) Vinni nodded. She loved her brother. When he returned from the Academy, she thought there wasn't a nobler person on Ravnica. He was on the path to becoming a hieromancer—a protector of people and the law—and she wanted to follow in his footsteps. They'd be safe. Jek would get them out of this. Jek slowly drew his short sword and took his dagger, the one with Azorius sigils etched into its blade, and pressed it into his sister's hand. Vinni closed her fingers around the leather-bound handle. It felt heavy and dangerous, which made her feel a bit better. She set her jaw and nodded. Jek took a deep breath and waited by the crack in the wall, his eye illuminated by the slim shaft of light. The spike jester was in a glee-filled rampage—dangerous, but distracted—but Jek couldn't see the albino anymore, which worried him. They'd have to chance it. Jek slowly slid back the panel and whispered a spell. Crackling blue energy flared out and shackled the spike jester with glowing Azorius glyphs. #figure(image("008_The One Hundred Steps/03.jpg", width: 100%), caption: [], supplement: none, numbering: none) The jester opened his mouth to bleat some obscenity but Jek's boot collided with his head, making the bells on his hat jingle and his teeth rattle. The jester flew across the room and crumpled in a corner. Vinni ran for the door and paused as Jek slashed two other chainwalkers who had rushed into the room, left them slumped on the floor. Jek and Vinni ran down the slick, cobbled street and turned a corner, only to face the massive silhouette of an ogre blocking their path. Jek made a sharp turn and put his shoulder into a door. The jamb splintered and Jek pushed Vinni into the room. The ogre's chain whirred and caught Jek on the shoulder, sending his sword clattering down the alley. Two more barbed chains followed that slashed and entangled Jek. He struggled and fell to the stones, reaching for his sword. #figure(image("008_The One Hundred Steps/04.jpg", width: 100%), caption: [], supplement: none, numbering: none) Out of the corner of his eye he saw a pale fist strike out like a snake to send Vinni sprawling onto the threshold. From the shadows, Jek saw the mad albino smirk with gleeful malice as he stepped over Vinni and nonchalantly drew his blade. "Jek, Jek, Jek. You have something that my master wants," the albino hissed. Jek sent a bolt of blue energy at the albino, but it fizzled and popped. The air smelled like ozone as the albino made a mock face of shock and disbelief. "Ooooh? What happened?" The albino danced around as Jek tried to escape the ogre's chains and shredded his cloak and skin in the process. "I'll bet you practiced that little spell for months." Then, as quick as a silver serpent, the albino plunged his flayer blade into Jek's helpless body. "Aww. Did that hurt?" The albino sneered as he knelt down and whispered to Jek's face. "I'll bet it did." "Shall I tear up the other one, Boss?" the ogre asked. "The girl won't pose much of a prob—" A slender blade with Azorius sigils appeared from the mad albino's throat like a silvery tongue that spat jets of crimson across his pale flesh. The albino's expression of smug confidence turned to shock as he struggled to stand up on legs that wouldn't work. He tried to laugh but all that came out was a watery croak. He clutched at his gaping wound with numb fingers. The albino collapsed, face first, in a heap at Vinni's feet The ogre looked shocked and quickly tried to collect his chains, but they were snarled around Jek's body. Vinni heard her brother weakly chant a spell with the last of his strength. The dagger she held burst into blue fire. Another pulsating wave struck the ogre, making his knees buckle. She lunged at the weakened ogre and peppered him with jabs from her dagger until the brute ceased to move. #figure(image("008_The One Hundred Steps/05.jpg", width: 100%), caption: [], supplement: none, numbering: none) Vinni rushed over to Jek, kneeled beside him, and gently cradled his head in her arms. She started to say something but Jek weakly raised his hand and then fumbled in his tunic. "Vinni. Take this. It's evidence. Give it to Halok." Jek placed an ornate key into her hand. It felt cold and had a Dimir guild seal on it. Jek's breath came in ragged gasps between words. "Go to the Jelenn column, the school of the hieromancers. They'll take care of you now." Vinni sniffed back a tear. "Jek." "Be strong." Jek's hand slid to the floor. His eyes slowly unfocused as his last breath slipped away. "Jek." #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) Vinni stalked through the dangerous streets of the Ninth, bloodstained, disheveled, and grief-stricken. But something within her began to transform. Inside her, a steel spring slowly uncoiled, unwinding into a relentless determination that fortified her being and focused her will like a razor blade. #emph[Nobody. Better. Get. In. My. Way.] She took alleyways and side streets, tears streaming down her face. A part of her hoped she would run into some gap-toothed Rakdos goon. Especially one who thought she'd make an easy target. She visualized unloading all her pain right into that goon's belligerent face. The image kept her going through the dangerous journey out of the Ninth. She eventually came to the base of the One Hundred Steps, the ancient, stone staircase that was the gateway out of the Ninth. Vinni climbed the stairs, slowly. It felt like she left some old part of her behind with each step she took—weakness, uncertainty, doubt. On every step, she left an old part of her being that didn't serve her anymore. Every step was a hammer blow, shaping her will in a spiritual forge, until her mind lit up with purpose and clarity. She climbed up past the unguilded neighborhoods to the top of the steps, where before her stood the Azorius Guildgate. Beyond it was the wide avenue that ran for miles across New Prahv, eventually terminating into the Forum of Azor. #figure(image("008_The One Hundred Steps/06.jpg", width: 100%), caption: [], supplement: none, numbering: none) She stood at the top of the steps and walked across the threshold of the ancient gate to emerge on the other side, no longer a child. Even miles away, she could feel the power of the Forum of Azor. It called to her, as if millions of Azorians before her chanted her name in recognition. As if they had waited for untold millennia for this moment. "I will not fail you," she said to them. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) The sun had just risen. #figure(image("008_The One Hundred Steps/07.jpg", width: 100%), caption: [], supplement: none, numbering: none) Rays of light hit the massive towers of New Prahv and they shone like white fire. Vinni walked past the Jelenn Column, past the hieromancer academy where her brother had studied for the past years. She headed straight for the Lyev Column, straight for the recruitment center of those who enforce the law—those who investigated Ravnica's worst cases, who had their hands on the throat of lawlessness. She wanted the hardest training, the most feared sergeant, the most elite corps. And, most of all, she wanted to be assigned to the most dangerous districts. She walked through the tall doors of the Lyev Column and strode across the vast marble hall, up the staircase to the third tier and straight to the Office of Admissions. The lines of applicants and assistants moved aside instinctively, as if pushed by her will. She slammed the bloody dagger on the desk, looked the Clerk of Submissions in the eye, and spoke in a voice that filled the chamber: "My name is Lavinia. I want to be an arrester." #figure(image("008_The One Hundred Steps/08.jpg", width: 100%), caption: [], supplement: none, numbering: none)
https://github.com/j10ccc/algorithm-analysis-homework-template-typst
https://raw.githubusercontent.com/j10ccc/algorithm-analysis-homework-template-typst/main/layout/headers/introduction.typ
typst
#import "../../constants/fonts.typ": font_family #import "../../config.typ": frontmatter #let introduction(date, homework_id) = [ #align(left, text(font: font_family.kaiti)[ 算法分析与设计 _2023_ 秋 ]) #grid( columns: (1fr, 1fr), align(left, [ *浙江工业大学* \ *教师:* 程振波 \ ]), align(right, [ #date \ 习题 #homework_id ]) ) ]
https://github.com/rinmyo/ruby-typ
https://raw.githubusercontent.com/rinmyo/ruby-typ/main/readme.md
markdown
MIT License
# ruby-typ A library for typst to implement ruby just like this <center> とある科学の<ruby>超電磁砲 <rp>(</rp><rt>レールガン</rt><rp>)</rp> </ruby> </center> for more information. please read the manual.pdf at first. ## thanks this project is based on [@Saito Atsush](https://github.com/SaitoAtsush)’s great idea and the [original source codes](https://zenn.dev/saito_atsushi/articles/ff9490458570e1) posted on their blog. --- 組版プログラミング言語Typstのためのルビライブラリーです。下記のような効果が実現可能です <center> とある科学の<ruby>超電磁砲 <rp>(</rp><rt>レールガン</rt><rp>)</rp></ruby> </center> 使い方などは manual.pdf で紹介するので、ぜひ読んでください ## 感謝 このプロジェクトは[@齊藤敦志](https://github.com/SaitoAtsush)さんのブログで[掲載されたバージョン](https://zenn.dev/saito_atsushi/articles/ff9490458570e1)に基づいて機能を拡張したものです --- ruby-typ 係爲 Typst 開發底 ruby 庫. 可以實現如下效果 <center> 某科学的<ruby>超電磁砲<rp>(</rp><rt>レールガン</rt><rp>)</rp></ruby> </center> 欲知詳情, 請閱 manual.pdf 檔 ## 感謝 本案由[@齊藤敦志](https://github.com/SaitoAtsush)先生所著之[原案](https://zenn.dev/saito_atsushi/articles/ff9490458570e1)增補而得.
https://github.com/Champitoad/typst-slides
https://raw.githubusercontent.com/Champitoad/typst-slides/main/notations.typ
typst
Creative Commons Zero v1.0 Universal
/********** Symbols **********/ #let thus = [ #sym.arrow.curve #h(5pt) ] #let limp = $=>$ #let ent = math.class("relation", sym.tack.r) #let kent = math.class("relation", sym.tack.r.double) #let csup = math.class("relation", "⫐") #let eqdef = math.class("relation", sym.eq.delta) #let simeq = scale(x: 150%, y: 150%, reflow: true, math.class("relation", sym.tilde.eq)) #let eqq = math.class("relation", sym.colon.double.eq) #let nature = text(font: "DejaVu Sans", size: 26pt, "❀") #let culture = text(font: "DejaVu Sans", size: 26pt, "✂") #let hole = sym.square /********** Operations **********/ #let cfill(ctx, content) = { ctx h(1pt) square(inset: 5pt, content) } #let subst(vt, vu, vx) = { $vt[vu\/vx]$ } #let interp(x) = $bracket.l.double #x bracket.r.double$ /********** Notions **********/ // Proof system #let sys(name) = text(font: "Fira Code", name) // Inference rule name #let irule(name) = text(font: "New Computer Modern Sans", name)
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/041.%20mac.html.typ
typst
mac.html Return of the Mac March 2005All the best hackers I know are gradually switching to Macs. My friend Robert said his whole research group at MIT recently bought themselves Powerbooks. These guys are not the graphic designers and grandmas who were buying Macs at Apple's low point in the mid 1990s. They're about as hardcore OS hackers as you can get.The reason, of course, is OS X. Powerbooks are beautifully designed and run FreeBSD. What more do you need to know?I got a Powerbook at the end of last year. When my IBM Thinkpad's hard disk died soon after, it became my only laptop. And when my friend Trevor showed up at my house recently, he was carrying a Powerbook identical to mine.For most of us, it's not a switch to Apple, but a return. Hard as this was to believe in the mid 90s, the Mac was in its time the canonical hacker's computer.In the fall of 1983, the professor in one of my college CS classes got up and announced, like a prophet, that there would soon be a computer with half a MIPS of processing power that would fit under an airline seat and cost so little that we could save enough to buy one from a summer job. The whole room gasped. And when the Mac appeared, it was even better than we'd hoped. It was small and powerful and cheap, as promised. But it was also something we'd never considered a computer could be: fabulously well designed.I had to have one. And I wasn't alone. In the mid to late 1980s, all the hackers I knew were either writing software for the Mac, or wanted to. Every futon sofa in Cambridge seemed to have the same fat white book lying open on it. If you turned it over, it said "Inside Macintosh." Then came Linux and FreeBSD, and hackers, who follow the most powerful OS wherever it leads, found themselves switching to Intel boxes. If you cared about design, you could buy a Thinkpad, which was at least not actively repellent, if you could get the Intel and Microsoft stickers off the front. [1]With OS X, the hackers are back. When I walked into the Apple store in Cambridge, it was like coming home. Much was changed, but there was still that Apple coolness in the air, that feeling that the show was being run by someone who really cared, instead of random corporate deal-makers.So what, the business world may say. Who cares if hackers like Apple again? How big is the hacker market, after all?Quite small, but important out of proportion to its size. When it comes to computers, what hackers are doing now, everyone will be doing in ten years. Almost all technology, from Unix to bitmapped displays to the Web, became popular first within CS departments and research labs, and gradually spread to the rest of the world.I remember telling my father back in 1986 that there was a new kind of computer called a Sun that was a serious Unix machine, but so small and cheap that you could have one of your own to sit in front of, instead of sitting in front of a VT100 connected to a single central Vax. Maybe, I suggested, he should buy some stock in this company. I think he really wishes he'd listened.In 1994 my friend Koling wanted to talk to his girlfriend in Taiwan, and to save long-distance bills he wrote some software that would convert sound to data packets that could be sent over the Internet. We weren't sure at the time whether this was a proper use of the Internet, which was still then a quasi-government entity. What he was doing is now called VoIP, and it is a huge and rapidly growing business.If you want to know what ordinary people will be doing with computers in ten years, just walk around the CS department at a good university. Whatever they're doing, you'll be doing.In the matter of "platforms" this tendency is even more pronounced, because novel software originates with great hackers, and they tend to write it first for whatever computer they personally use. And software sells hardware. Many if not most of the initial sales of the Apple II came from people who bought one to run VisiCalc. And why did Bricklin and Frankston write VisiCalc for the Apple II? Because they personally liked it. They could have chosen any machine to make into a star.If you want to attract hackers to write software that will sell your hardware, you have to make it something that they themselves use. It's not enough to make it "open." It has to be open and good.And open and good is what Macs are again, finally. The intervening years have created a situation that is, as far as I know, without precedent: Apple is popular at the low end and the high end, but not in the middle. My seventy year old mother has a Mac laptop. My friends with PhDs in computer science have Mac laptops. [2] And yet Apple's overall market share is still small.Though unprecedented, I predict this situation is also temporary.So Dad, there's this company called Apple. They make a new kind of computer that's as well designed as a Bang & Olufsen stereo system, and underneath is the best Unix machine you can buy. Yes, the price to earnings ratio is kind of high, but I think a lot of people are going to want these. Notes[1] These horrible stickers are much like the intrusive ads popular on pre-Google search engines. They say to the customer: you are unimportant. We care about Intel and Microsoft, not you.[2] Y Combinator is (we hope) visited mostly by hackers. The proportions of OSes are: Windows 66.4%, Macintosh 18.8%, Linux 11.4%, and FreeBSD 1.5%. The Mac number is a big change from what it would have been five years ago.Italian TranslationRussian TranslationChinese Translation
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/042%20-%20Strixhaven%3A%20School%20of%20Mages/001_Episode%201%3A%20Class%20Is%20in%20Session.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Episode 1: Class Is in Session", set_name: "Strixhaven: School of Mages", story_date: datetime(day: 23, month: 03, year: 2021), author: "<NAME>", doc ) In the seemingly endless halls of the Biblioplex, where arcane knowledge from countless worlds lined shelves that had seen the rise and fall of empires, it seemed as though the only sound on the whole plane of Arcavios was the #emph[click ] of heel on stone. Professor Onyx, as she was known here, took a deep breath as she walked, inhaling the smell of old paper and the familiar ozone that always seemed to accompany magic. She needed a break from yet another insufferable meeting. For all the wisdom and learning in this place, it was populated with some remarkably thickheaded individuals. #figure(image("001_Episode 1: Class Is in Session/01.jpg", width: 100%), caption: [Professor Onyx | Art by: <NAME>], supplement: none, numbering: none) Case in point: despite her considerable renown throughout the Multiverse, the other professors of Strixhaven hadn't recognized <NAME> when she introduced herself by an entirely different name. That hadn't surprised her. The school had always been that way, even since she'd been a student so many years ago; always wrapped up in its own little problems. There was something calming about the weight of all those books, tomes, and scrolls around her. They seemed to wrap the place in a kind of hush. When the students arrived, the campus wouldn't be nearly so quiet—but for the moment, she savored the sense of solitude as she wandered the stacks. A rustling sounded from up ahead. With a twinge of annoyance, Liliana pictured that perpetually chattering Codex; it most likely would be coming around the corner any minute now. As she rounded the next bend, though, it wasn't the school's magically animated book she saw in the stacks. "What are you doing?" she said. The figure froze, their hand still reaching for another book to add to the pile at their feet. Liliana stepped forward. "Students aren't to arrive for another—" The words fell away as a streak of purplish light flew from the figure's hand. It grazed her arm, and the room suddenly seemed to buckle and sway as a sickening sensation spread throughout her body. With a gesture of will, she isolated the spell's effects, then quashed it. An amateur's work, yes—but none of the five colleges of Strixhaven taught magic of that nature. "So," she said, a swirling current of deathly energy wreathing her hand as she called up her own magic, "you're not just here for summer sessions, I take it." The figure was masked, she could see now—the space where the eyes should be were covered only with smooth, flat metal. She'd heard of the Oriq, of course. The school was full of concerned whispers about the secret society of mages, the ones obsessed with forbidden magics and power at any cost. She hadn't expected to see one so soon, though. "I know what you are," she said. The intruder looked toward the hall, then back at Liliana. "Then you know that your days are numbered." "<NAME>?" A vaguely familiar voice called from one of the nearby halls. Liliana spun in the direction of the sound, spell-charged hand raised. <NAME> stood at the end of the hall, frowning. "Are you alright?" When she turned back, the intruder was gone. Only the pile of books and scrolls on the floor showed that they had even been there. Liliana collected herself, letting the magic dissipate. This was no time to draw more attention to herself. "Yes, I just—thought I saw something in the stacks. Have the faculty moved on to the next topic at hand?" <NAME> clicked her beak, her huge dark eyes filled with annoyance. "<NAME> is insisting on lengthening this year's season of Mage Tower." Liliana frowned as she touched her arm where the spell had grazed her. Following Dean Talonrook back toward the Hall of Oracles, she glanced toward the books. "Surely we have bigger problems than Mage Tower." "Quite right, quite right!" crooned Dean Talonrook. Liliana hardly heard anything else she said. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) In his chambers on Kylem, <NAME> stared helplessly at the towering stack of books on his bed. He'd been trying to choose which one to bring with him; at first, it seemed certain that the tome regarding the Molten Prophecy was the best bet, but then he had remembered his favorite historical text, the accounting of Thadus the Healer. It was now an hour later, and he was no closer to deciding. He ran a hand through his short blond hair and glanced around the room, his eye catching on the glowing owl-shaped card on the table before he shook his head. There was no way to know how long it would be before they returned to Kylem. If they ever did. The front door banged open, making Will flinch, and <NAME> strutted inside. Will's sister was just as tall as him, golden hair flowing down the red cape thrown over her shoulder. She frowned at Will, her gaze flicking to the books still spread out in front of him. "How are you still not ready?" "Just~give me a minute," he said. The Molten Prophecy. Definitely the Molten Prophecy. Rowan picked up the invitation from the table across the room. Golden sparks floated up from it, the owl-shaped card glowing slightly in her hand. "You've had two weeks, Will. We need to get going." "The histories say Strixhaven has existed there for millennia. I'm sure it can wait a few more minutes for us." He glanced back at the stack. How could he make do without the accounting of Thadus? "Or, possibly hours." Rowan groaned. "Kasmina is probably waiting on us right now." Will sighed. Kasmina. The woman had told them plenty about all the things that Strixhaven had to offer. But her invitation had come out of nowhere, arriving only a few days after Garruk had been satisfied enough in their security to leave them on their own. They hadn't spent that much time with her on Kylem, yet now they were supposed to go to an entirely new world on her word alone? Will turned back to his books. "I'm sure she'll be fine." "We are #emph[leaving] ." "Yes, I know. Today, certainly. I just need to—" "No, Will." Rowan crumpled the invitation in her hand. "Now." Will started to speak, but light burst through the room, tendrils of shadows swirling through the air. He squinted against it as it spread out to surround his sister. Behind her, specks of a bright blue sky shone in a web of verdant green leaves. Rowan grinned and waved as she stepped into the light and disappeared. Will clenched his jaw, fighting the pull at his core. But his connection to his sister was too strong. Soon the same tendrils of light and shadow erupted around him, washing the bed in its ethereal glow. Desperately, he grabbed the #emph[Memoirs of Thadus the Healer] before the light could pull him to a new plane. All around him, then, was light and color and sound unlike any in Kylem. He was hurtling through nothing, through everything. The first thing Will heard, wherever Rowan had taken them, was a high-pitched screech. It was coming from a blur of feathers and talons—a blur that was headed right for him. Will yelped, raising the #emph[Memoirs ] as a shield. The bird cut up into the air just before impact, whirling in a wide arc overhead. They were in a clearing, surrounded by dwarfish, gentle-looking trees. At the edge of it stood a familiar figure carrying a crooked staff. After a moment, the bird dropped out of the sky and landed on the woman's shoulder. "Hello, <NAME>." A spear of sunlight shone over her, setting her red hair alight. Kasmina gave something of a small smile, nodding to him. "I see you've both made it. And just in time. Classes will be starting soon." Will looked around. He couldn't see anything but wilderness. "So, um. The school's nearby, then?" "That's right." Kasmina turned and stepped toward the edge of the clearing. "Just beyond the forest. We'll see the first torch soon." #emph[The first torch? ] Will wondered what that could mean. "So what's this place like?" asked Rowan, breaking from Will's side to follow her. "Are there others like us? People who can move between worlds?" "It's a very large campus," Kasmina said. "I'm sure there are others from different planes. Are you coming, Will?" Will clenched his jaw, then marched along behind them. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) There was, as Kasmina had said, a torch. What she hadn't said was that it was #emph[massive] —more like a tower, really. The silver column rose high above the trees, piercing the brilliant blue sky. Even from the ground, Will could see the dancing flame at the top of the structure, its light rivaling that of the two suns that shone above it. As they reached the base, Will brushed a hand against the smooth metal. "How do they keep this thing lit?" "Like most things on Arcavios," Kasmina said. "With magic." Will glanced at the woman, annoyed. "Is this your home world?" "I have been with the university for a long time, but no." Kasmina looked toward the horizon. "The next torch should be that way." Will looked in the same direction, but all he could see were the green fields stretching out before them, broken only by a foot-worn path. "If there are more torches, you'll have time to admire them later, Will. Come on," said Rowan, running ahead. "Rowan, slow down," said Will. "We don't know who or what could be out here." "Exactly!" she said, laughing. They walked for a few miles before they reached the next torch. Will wondered how many of them there were across this plane—and what other, stranger lands they might tower over. "The #emph[Stormwright Texts] were a lot more thorough," Kasmina said, idly. Will started at Kasmina's nearness. He frowned, then followed her gaze to the book at his side. He slid his hand over it, the worn cover giving him a sense of security. "I haven't heard of that one." "Well, you can always consult it at the Biblioplex, once we reach Strixhaven." "The what?" Rowan asked. "The Biblioplex," Kasmina replied. "Home to the most extensive collection of knowledge regarding magic on any plane, anywhere." "Oh," Rowan said, not bothering to hide her disappointment. "More books. Who cares?" "Are you #emph[joking] ?" exclaimed Will. "We could learn anything! Everything! We've got to pick up the pace!" Rowan rolled her eyes. "Now who needs to slow down, hm? Didn't you say there could be beasties out there?" "My owl would alert me to any approaching danger," said Kasmina. "Neither of you have anything to fear." Will glanced at the bird. It flexed its white wings as the light of the suns bounced off its round eyes. In a halting motion, it turned its head to look directly at him. Will frowned. "What's wrong with it?" Kasmina looked ahead. "Nothing at all. Although she is getting a bit long in the tooth." They walked the rest of the way in silence, with Will sneaking glances at the owl and her owner. But the bird always seemed to know when he was looking and stared right back until Will couldn't keep himself from looking away. He noted the changing landscape as they moved, spotting a range of reddish-gray mountains in the distance. Finally, Kasmina broke the silence as they passed another torch. "Welcome to Strixhaven." As the trio crested the ridge, Will almost fell on his face at the sight before him. The campus stretched across the horizon, an intricate tangle of gleaming towers and flattened rooftops. A massive arch of jagged stones floated over what must have been the center of the institution, the ends of each stone pointing toward the ground smooth and flat, as if a giant blade had sheared away the bottoms. Will stepped over to Rowan's side. "This is~" "Bigger than our castle," Rowan said, her voice low. That was one way to put it. The expanse of Strixhaven was bigger than all five castles on Eldraine put together. At the center of it, an enormous building rose above the rest. Sunlight glinted on its pointed arches while large orbs floated over the shorter buildings. "That's the Biblioplex," Kasmina said, coming to stand next to them. Will nodded absently, still speechless as he gazed out over the campus. Rowan let out a short laugh, jolting him from his reverie. "This is going to be good." Will smiled as he followed his sister toward the looming gates. They were massive enough to seem close, even though it would probably take them another hour of walking to arrive. He'd only taken a few steps when he abruptly realized Kasmina wasn't following them. He and Rowan turned and looked back, curious. "Aren't you coming?" #figure(image("001_Episode 1: Class Is in Session/02.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none) "Oh, no," Kasmina said, shaking her head. She looked to her owl, and the bird took off, flying toward the Biblioplex. "I have other matters to attend to. Look for an owlin called <NAME>. She will help you get settled in." "Oh." Rowan cleared her throat. "Well, uh, thanks, then." Will bowed. "What my sister said. Thank you for bringing us here." "No need for such formality," Kasmina said, smiling. "But you are most welcome." Will straightened and glanced at the woman once more before going to join his sister. "Rowan," he whispered. "What do you think an 'owlin' is?" #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) On the other side of the gates, the campus bustled with activity as people hurried along the wide stone paths of Strixhaven. Some of the younger students wore identical uniforms, their gray cloaks fluttering behind them as they hurried along. The older ones were each garbed in unique outfits and moved in groups, like colors staying together. Red and blue ruffles and frills stood in stark contrast with the angles and swirls of the black and white coats and spats. Green and black overcoats and heavy boots seemed the complete opposite of the elegant, narrow red and white waistcoats and high collars. Will turned on his heels, taking in the kaleidoscope of moving colors and shapes. "She's strange, isn't she?" said Rowan, absently. She didn't seem nearly as bowled over by the spectacle all around them—if anything, she seemed lost in thought. "Who?" "Kasmina. Her and that owl." She shrugged. "I guess it doesn't matter anymore. She got us here, right?" Before Will could form a response, shouts rang out from farther inside the campus. In an instant, Rowan was off, running toward the voices. "Hey!" called Will, starting after her. "Wait up!" #figure(image("001_Episode 1: Class Is in Session/03.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none) They raced around a corner only to skid to a stop at the entrance to a smaller courtyard. Inside, a crowd watched as two groups of students flung spells across a grassy field, the bolts of light and color zipping and spiraling through the air as they narrowly missed their targets. One spell impacted a girl in red and blue and she started to float, kicking her legs helplessly and waving her arms. Laughter and applause rose up from the crowd. Will stared in horror. "I thought this was supposed to be a #emph[school] . This is—" "Brilliant!" Rowan finished, grinning. She tugged on the sleeve of a nearby student, a young dryad in black and green. "Who's winning?" "So far, Prismari seems to have the advantage," said the student. "But I wouldn't get too comfortable if I were them. Those Silverquills can be a vicious lot." "Bloodthirsty battling, in the middle of the campus?" sputtered Will. The dryad frowned. "This is just a duel. No one's actually going to get hurt. Not too badly, anyway." "Okay, enough of this," said Will, trying to sound forceful. "Rowan, come on. We need to speak to—well, some kind of administrator. A schoolmaster, perhaps. There are classes to join, and surely books we need to acquire, and—" Rowan stepped forward, ignoring him completely. Out on the field, a student had fixed his eyes on one of the Prismari in red and blue. His hands were raised, and his lips moved as he spoke in a low, focused tone. Between his fingers, curls of black ink began to form. "Watch out!" shouted Rowan. She sent a jolt of electricity at the one preparing the ink spell. He yelped as it zapped him, causing the black ink he was conjuring to splash all over his uniform. More laughter and applause from the crowd. The Prismari student turned and looked to Rowan, surprised. "Thanks!" Rowan grinned and started to respond; before Will could warn her, a coil of living ink swept her feet out from under her. She landed on her back, coughing as the air rushed out of her chest for a moment, and peered up to see who had hit her—a student in black and white robes, same as the one she'd shocked. "Stay out of this, first-year," hissed the student. The air around Rowan snapped and crackled with electricity as she called up another charge. "Want to try that again?" Back on the sidelines, the dryad leaned over to Will. "So, that's your sister?" "I'm afraid so," he said, grimacing. He had been hoping for quiet, for learning—so far, this was just as bad as Kylem. "Looks like she's chosen her house." It was true—Rowan was standing on the side of the Prismari students now, hurling sparks across at the others. Reluctantly, Will stepped onto the field, picking his way through the battle, dodging gouts of flame and arrows of light as they flew back and forth. When he finally managed to reach her, he grabbed her arm. "Rowan, this isn't our fight. Let's go." She just laughed. "Will, you'd have some fun if you actually tried it!" "We're not here to have #emph[fun] , Rowan! We're here to become better mages!" "Stand aside, first-year!" came a shout from behind him. He turned just in time to catch an orb of ink in the chest, which exploded and sent him crashing into Rowan. Together, they picked themselves off the ground, coughing, and Will looked down in horror: the copy of #emph[Memoirs of Thadus ] that he'd had in his traveler's pack had fallen out and was dripping with black ink. He knew at once that it was ruined. "Okay," Will growled, clenching his jaw. "Maybe it is our fight." Rowan tugged him to his feet. "Remember the match against Vitrus and Gorm?" Will nodded, calling up the energy to cast magic. Instantly the air around him dropped several degrees; he let out a breath, which fogged in the air. "Let's do it." Rowan turned and lifted her hand, calling forth a sphere of lightning that popped and sizzled as it stretched and snaked into the air. Will counted as he sent a wave of cold wind and ice to swirl around Rowan's lightning. "One~two~THREE!" Will and Rowan moved as one, their magic combining as it arced toward the other students. They didn't seem to be grinning too smugly anymore—but just before it hit the Silverquills, Rowan's lightning flared and snapped, cutting through the ribbons of Will's ice magic. Will frowned, but it was too late to adjust. Rowan's attack was strong, at least; it pierced the shield of light the older Silverquill student had conjured, sending her stumbling backward. Rowan whooped next to him, but the celebration was short-lived as she spun and used a lash of lightning to knock away another mage's barbs. Will stared at the spot where their combined magic—the interweaving of spells they had always been able to do—had failed. Something wasn't right. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) Liliana stood outside the Biblioplex, watching the bright parade of students as they passed. She could almost feel the weight of her old Witherbloom uniform and pulled absently at the collar of her professor's coat. Across the way, <NAME> strutted through the Biblioplex doors, with <NAME> next to them. Liliana fell into step alongside the deans. "Professor Onyx." <NAME> nodded in greeting. "How are you settling in with your classes?" "Just fine," Liliana said. "Though I've been hearing some disturbing rumors from the students." <NAME> laughed. It was an odd sound, from an efreet, like water streaming over crystals. "Well, young minds are wont to create elaborate tales. I think it's a good sign. Active imaginations, and all that." Liliana forced a smile, trying to keep her tone light. "Unless they're also playing dress-up and skulking through the halls, I would say this is a little more than innocent play." "Skulking?" Dean Lisette arched a brow. "And you've seen one of these people?" She paused. How to answer this? "I saw a stranger in a mask on campus. Whether this was one of these Oriq, however~" "That word again. It always sounds so serious. We really don't know if these rumors are more than a harmless prank," said Dean Lisette. That magic the masked stranger had slung at her was far from a harmless prank. "We shouldn't underestimate them, in any case. The other deans and professors should be warned. Surely the school has some line of defense that we can employ." "You mean, other than Alibou?" <NAME> huffed. "I'm sure he would love to actually have something to do for a change. Maybe then he'll let go of his grudge against me." "I was thinking something more than a single golem." "Even if these whatever-you-call-them do present some risk—our students are hardly helpless lambs," said Lisette. "They can defend themselves." "But who's going to protect them from each other?" said Nassari, gesturing at a nearby courtyard. Liliana could see errant spells sailing into the sky as cheering and shouting filled the air; another duel. Lisette sighed while Nassari laughed. "See? With such talent, I don't think they have anything to fear from the Oriq." "De<NAME>," started Liliana. "We should really—" "Fine, fine." Together, they moved to break up the battle. Nassari sent a wide swath of water through the crowd, corralling Prismari students. Vines and roots shot forth from the ground under Dean Lisette's command, pulling children away from each other and binding their hands before they could send any more magic flying. A young boy grumbled as he followed a blond girl off the field. "This isn't Kylem, Rowan." Liliana frowned, her gaze sweeping over their clothes. They were out of uniform, and swords hung from their belts. His short hair was just as bright as hers, their eyes and noses mirrors of each other. Kylem, he'd said. She knew of a place called Kylem—but it wasn't located on Arcavios. The girl frowned. "I know that, Will. But this isn't Eldraine, either. And you can't tell me what to do." "Can we please just go? Before we get into trouble." Liliana watched as the twins passed her, briefly meeting the boy's gaze. He shot her a nervous smile, then hurried past, pulling his sister along with him. They probably weren't Oriq agents. But if they were planeswalkers, then maybe they could be useful if—#emph[when] , she corrected herself—trouble arrived at Strixhaven. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) Will marveled at the walls inside of the student dormitories. Intricate lines raced along the stone, glowing with a soft light. He reached out and traced one of them, the magic tingling against his fingertip. "This is it," Rowan said from down the hall. She waved Will over before pushing in the door. Going in after her, Will took in the sturdy walls and the glass window. Sunlight streamed in, filling the space with a warm glow. Two beds stood on either side of the room, each neatly made with gray blankets covered in intersecting golden lines. On the wall behind the door, two uniforms hung on racks, matching shoes sitting on the floor beneath them. Rowan dropped onto the bed closest to the door. "This is nice. Much better than those rocks they called beds on Kylem." Will chuckled as he set his books down on the other bed. He sat down, sinking into the plush mattress, and ran his hands along the gleaming stitches. The same glowing lines flowed across the stone walls. Carved symbols nestled in at the corners, stone flames and trees and stars marching along the ceiling. His attention snagged on the flames, reminding him of the fierce duel outside. He looked down at his hands. "Did that spell we cast together seem~off to you?" Rowan looked over from the other bed. "What do you mean?" "I don't know. It just wasn't the same as on Kylem." "Well, we're not on Kylem, remember?" Rowan shrugged and planted her feet on the blanket. "Besides, it worked, didn't it? What's the big deal?" Will shook his head. "Yes, it worked, but~it should have been smoother. More cohesive. We've done spells together dozens of times, but this time, it was as if our magic wasn't cooperating. I wonder if the Biblioplex will have some answers." "Well, you have fun with all that reading," Rowan said. She pulled herself up and headed toward the door. "This isn't just my problem, Rowan," protested Will. "What if being on this world is doing something to affect our magic?" "My magic was just fine." "No, it wasn't." Will stepped toward his sister. "But here, we can figure out why. You heard Kasmina—this is the most extensive collection of magical knowledge in the Multiverse! We didn't come here to get in some stupid school feud." Rowan rolled her eyes. "Oh, really? And what did we come here for?" "To learn. To get stronger. To take advantage of the knowledge and wisdom that Strixhaven has to offer." Will dropped his hands to his side. "We could take all of that back to Eldraine and help our own people." Rowan only shook her head. "That's what you came here for, Will. But I'm not you. We may be twins, but I'm allowed to live my own life." "Of course you are." Will sighed. "That's not what I meant." After a moment, Rowan turned and left. Will grabbed his books and hurried after her. But as Rowan moved farther down the hall, Will's steps slowed. Maybe he would have to find answers on his own. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) #figure(image("001_Episode 1: Class Is in Session/04.jpg", width: 100%), caption: [Art by: <NAME>], supplement: none, numbering: none) On a bench along a scenic campus courtyard, Kasmina watched her owl returning from the dormitories. She could still see the twins in her mind, their images a bit warped from the shape of those avian eyes. Strixhaven would offer many possibilities for them both. She just needed to see which ones they would take. Something pulled at her attention, and Kasmina closed her eyes. But instead of darkness, her mind filled with red. Another of her owls flew through the air, soaring over a rocky desert. Movement below snagged her gaze. A man climbed the rocks, the reds and browns of his clothes helping him blend into the landscape. Beside him, a foxlike creature leapt nimbly up the side of the formation, only to suddenly stop and drop into a defensive stance. There was a rush of air as several figures seemed to slide from the shadows, stepping out of the surrounding mesas at impossible angles. They were dressed in dark clothes, metal masks hovering where their faces should be. A sickly purple light coalesced in each of their raised hands—all of which were pointed at the man with the fox-thing. Slowly, he raised his hands in surrender. Kasmina sent a mental command, and her owl followed high overhead as the mages bound the man's arms and dragged him toward a yawning cave mouth waiting ahead. #v(0.35em) #line(length: 100%, stroke: rgb(90%, 90%, 90%)) #v(0.35em) Lukka grunted as the mages shoved him into the cave. Mila prowled at his side, her teeth bared and hackles raised. Silently, he reached out through their link to soothe her. If she attacked, the mages would think he was an enemy. And while he was sure he'd win the fight, that wasn't what he had come here for. Mila looked up at him, then slowly settled back into wariness. She kept in step with Lukka, stepping over aged, moldering books that spilled over from the bare stacks along the wall. The mages brought him into a larger chamber. Stalagmites and stalactites cut through the space like jagged teeth, the ceiling bathed in shadows. Lukka stumbled on a loose stone, sending a small shower of pebbles skittering down the slope behind him. "Quiet," one of the masked mages hissed at him. He shoved at Lukka's shoulder. "Keep moving." Lukka took a breath, trying to smother his own annoyance. Then one of the stalagmites moved. At first, he thought he was imagining things, the darkness playing tricks with his mind. Then Lukka extended his senses and froze—the pebbly, ridged texture wasn't stone, but some kind of shell. Slowly, whatever it was seemed to unfold, stretching long and spindly legs into the darkness. Behind him, another stalactite shifted in place, making a low chittering sound as it did. They were surrounded. "Keep. Moving," said the masked mage. They picked their way through the space, every skittering stone sending their gazes up to the ceiling. Lukka tried to envision what the creatures looked like when they were active. The thought of facing one of them in the flesh brought back memories of the many crawling nightmares that lurked in the cave systems under Ikoria. Accompanying the horror, though, was an odd familiarity—he couldn't help but feel as though he had encountered their kind before. The mages yanked Lukka to a stop, forcing him to his knees. Mila turned toward the far side of the cavern, dropping low with a snarl. Lukka glanced down at her. "Hey. Quiet." The crunching of bones punched through the silence. Footsteps approached, and out of the shadows came a tall thin figure. Swirling around the long, almost bird-like mask hiding his face were currents of dark, coruscating energy. Lukka tried to keep his own expression neutral as the man approached one of the creatures hanging from the ceiling, pausing to caress its shell. "Welcome to Arcavios, Lukka of Ikoria." "You know me?" "I know many things. Things that I could teach you." The masked man stepped away from the strange creature, toward Lukka. "And in exchange, I believe there are things #emph[you ] could do for me."
https://github.com/DieracDelta/presentations
https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/utils/fit-to-height-width.typ
typst
#import "../../../polylux.typ": * #set page(paper: "presentation-16-9") #set text(size: 40pt) #polylux-slide[ #fit-to-height(5cm, prescale-width: 300%, width: 50%)[ #set par(justify: true) #lorem(200) ] ]
https://github.com/sitandr/typst-examples-book
https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/snippets/demos.md
markdown
MIT License
# Demos ## Resume (using template) ```typ #import "@preview/modern-cv:0.1.0": * #show: resume.with( author: ( firstname: "John", lastname: "Smith", email: "<EMAIL>", phone: "(+1) 111-111-1111", github: "DeveloperPaul123", linkedin: "Example", address: "111 Example St. Example City, EX 11111", positions: ( "Software Engineer", "Software Architect" ) ), date: datetime.today().display() ) = Education #resume-entry( title: "Example University", location: "B.S. in Computer Science", date: "August 2014 - May 2019", description: "Example" ) #resume-item[ - #lorem(20) - #lorem(15) - #lorem(25) ] ``` ## Book cover ```typ // author: bamdone #let accent = rgb("#00A98F") #let accent1 = rgb("#98FFB3") #let accent2 = rgb("#D1FF94") #let accent3 = rgb("#D3D3D3") #let accent4 = rgb("#ADD8E6") #let accent5 = rgb("#FFFFCC") #let accent6 = rgb("#F5F5DC") #set page(paper: "a4",margin: 0.0in, fill: accent) #set rect(stroke: 4pt) #move( dx: -6cm, dy: 1.0cm, rotate(-45deg, rect( width: 100cm, height: 2cm, radius: 50%, stroke: 0pt, fill:accent1, ))) #set rect(stroke: 4pt) #move( dx: -2cm, dy: -1.0cm, rotate(-45deg, rect( width: 100cm, height: 2cm, radius: 50%, stroke: 0pt, fill:accent2, ))) #set rect(stroke: 4pt) #move( dx: 8cm, dy: -10cm, rotate(-45deg, rect( width: 100cm, height: 1cm, radius: 50%, stroke: 0pt, fill:accent3, ))) #set rect(stroke: 4pt) #move( dx: 7cm, dy: -8cm, rotate(-45deg, rect( width: 1000cm, height: 2cm, radius: 50%, stroke: 0pt, fill:accent4, ))) #set rect(stroke: 4pt) #move( dx: 0cm, dy: -0cm, rotate(-45deg, rect( width: 1000cm, height: 2cm, radius: 50%, stroke: 0pt, fill:accent1, ))) #set rect(stroke: 4pt) #move( dx: 9cm, dy: -7cm, rotate(-45deg, rect( width: 1000cm, height: 1.5cm, radius: 50%, stroke: 0pt, fill:accent6, ))) #set rect(stroke: 4pt) #move( dx: 16cm, dy: -13cm, rotate(-45deg, rect( width: 1000cm, height: 1cm, radius: 50%, stroke: 0pt, fill:accent2, ))) #align(center)[ #rect(width: 30%, fill: accent4, stroke:none, [#align(center)[ #text(size: 60pt,[Title]) ] ]) ] #align(center)[ #rect(width: 30%, fill: accent4, stroke:none, [#align(center)[ #text(size: 20pt,[author]) ] ]) ] ```
https://github.com/lucifer1004/leetcode.typ
https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/solutions/s0011.typ
typst
#import "../helpers.typ": * #let container-with-most-water-ref(height) = { let n = height.len() let l = 0 let r = n - 1 let ans = 0 while l < r { ans = calc.max(ans, calc.min(height.at(l), height.at(r)) * (r - l)) if height.at(l) < height.at(r) { l += 1 } else { r -= 1 } } ans }
https://github.com/hekzam/typst-lib
https://raw.githubusercontent.com/hekzam/typst-lib/main/lib.typ
typst
Apache License 2.0
#import "@preview/tiaoma:0.2.0" #let atomic-boxes = state("atomic-boxes", (:)) #let page-state = state("page-state", (:)) #let copy-counter = counter("copy-counter") #let generating-content = state("generating-content", true) #let rect-box(id, width, height, fill-color: white, stroke-width: 0.25mm, stroke-color: black, inner-content: []) = { assert.eq(type(fill-color), color, message: "fill-color must be a color") assert.eq(rgb(fill-color).components().at(3), 100%, message: "fill-color must be fully opaque (no alpha or alpha=100%)") assert.eq(type(stroke-color), color, message: "stroke-color must be a color") assert.eq(rgb(stroke-color).components().at(3), 100%, message: "stroke-color must be fully opaque (no alpha or alpha=100%)") assert.eq(type(stroke-width), length, message: "stroke must be a length") set align(left+top) rect(width: width, height: height, fill: fill-color, stroke: stroke-width + stroke-color, radius: 0mm, inset: 0mm, outset: 0mm, { context if copy-counter.get().at(0) == 0 { layout(size => { set align(left+top) let pos = here().position() let box = ( page: pos.page, x: pos.x.mm(), y: pos.y.mm(), width: if type(width) == length { width.mm() } else if type(width) == ratio { (width * size.width).mm() }, height: if type(height) == length { height.mm() } else if type(height) == ratio { (height * size.height).mm() }, stroke-width: stroke-width.mm(), stroke-color: stroke-color.to-hex(), fill-color: fill-color.to-hex(), ) atomic-boxes.update(x => { x.insert(str(id), box) ; x }) inner-content }) } else { inner-content } }) } #let finalize-states() = context [ #metadata(atomic-boxes.final()) <atomic-boxes> #metadata(page-state.final()) <page> ] #let gen-copies( exam-id, copy-content, exam-content-hash: "qhj6DlP5gJ+1A2nFXk8IOq+/TvXtHjlldVhwtM/NIP4=", nb-copies: 1, duplex-printing: true, page-width: 210mm, page-height: 297mm, barcode-height: 12.5mm, margin-x: 10mm, margin-y: 10mm, barcode-content-gutter: 2.5mm, ) = { assert.eq(type(exam-id), str, message: "exam-id must be a string") assert(not exam-id.contains(","), message: "exam-id cannot contain comma ','") assert.eq(type(page-width), length, message: "page-width must be a length") assert.eq(type(page-height), length, message: "page-height must be a length") assert.eq(type(barcode-height), length, message: "barcode-height must be a length") assert.eq(type(margin-x), length, message: "margin-x must be a length") assert.eq(type(margin-y), length, message: "margin-y must be a length") assert.eq(type(barcode-content-gutter), length, message: "barcode-content-gutter must be a length") let sep = "," set page( width: page-width, height: page-height, margin: ( x: margin-x, y: margin-y + barcode-height + barcode-content-gutter, ), header-ascent: 0mm, header: { set align(top) context if generating-content.get() { v(margin-y) grid( columns: 2, column-gutter: 1fr, { let page-i = counter(page).get().at(0) let barcode = tiaoma.qrcode(("hztl", exam-id).join(sep), height: barcode-height) rect-box("marker barcode tl page" + str(page-i), barcode-height, barcode-height, stroke-width: 0mm, inner-content: barcode) }, { let page-i = counter(page).get().at(0) let barcode = tiaoma.qrcode(("hztr", exam-id).join(sep), height: barcode-height) rect-box("marker barcode tr page" + str(page-i), barcode-height, barcode-height, stroke-width: 0mm, inner-content: barcode) }, ) } else [] }, footer-descent: 0mm, footer: { set align(bottom) context if generating-content.get() { grid( columns: 3, column-gutter: 1fr, { let copy-i = copy-counter.get().at(0) let page-i = counter(page).get().at(0) let barcode = tiaoma.qrcode(("hzbl", str(copy-i), str(page-i)).join(sep), height: barcode-height) rect-box("marker barcode bl page" + str(page-i), barcode-height, barcode-height, stroke-width: 0mm, inner-content: barcode) }, { grid( columns: 1, row-gutter: 2mm, align: center, [ #exam-id #copy-counter.display() ], [ page #counter(page).display() / #context counter(page).final().at(0) ], ) }, { let copy-i = copy-counter.get().at(0) let page-i = counter(page).get().at(0) let barcode = tiaoma.qrcode(("hzbr", str(copy-i), str(page-i), exam-content-hash, exam-id).join(sep), height: barcode-height) rect-box("marker barcode br page" + str(page-i), barcode-height, barcode-height, stroke-width: 0mm, inner-content: barcode) }, ) v(margin-y) } else [] }, ) page-state.update(x => { x.insert("width", page-width.mm()) ; x }) page-state.update(x => { x.insert("height", page-height.mm()) ; x }) let pagebreak_to = if duplex-printing { "odd" } else { none } let n = 0 while n < nb-copies { copy-counter.update(n) n = n + 1 counter(page).update(1) copy-content if n < nb-copies { pagebreak(to: pagebreak_to) // as typst-0.11.0, the page added by pagebreak(to:"odd") contains header/footer // this is annoying as it means all these empty pages will be kept by the scanner since they have header/footer // this code creates a special page without footer instead of using pagebreak in this case. // this code hinders layout converging so is not used for now /*context if duplex-printing and calc.odd(here().position().page) { page(header: none, footer: none)[] } else { pagebreak() }*/ } } finalize-states() }
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/shape-fill-stroke_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page #let variant = rect.with(width: 20pt, height: 10pt) #let items = for (i, item) in ( variant(stroke: none), variant(), variant(fill: none), variant(stroke: 2pt), variant(stroke: eastern), variant(stroke: eastern + 2pt), variant(fill: eastern), variant(fill: eastern, stroke: none), variant(fill: forest, stroke: none), variant(fill: forest, stroke: conifer), variant(fill: forest, stroke: black + 2pt), variant(fill: forest, stroke: conifer + 2pt), ).enumerate() { (align(horizon)[#(i + 1).], item, []) } #grid( columns: (auto, auto, 1fr, auto, auto, 0fr), gutter: 5pt, ..items, )
https://github.com/kamack38/cram-snap
https://raw.githubusercontent.com/kamack38/cram-snap/main/lib.typ
typst
MIT License
#let cram-snap( title: none, icon: none, column-number: 2, subtitle: none, doc, ) = { let table_stroke(color) = ( (x, y) => ( left: none, right: none, top: none, bottom: if y == 0 { color } else { 0pt }, ) ) let table_fill(color) = ( (x, y) => { if calc.odd(y) { rgb(color) } else { none } } ) set table( align: left + horizon, columns: (2fr, 3fr), fill: table_fill(rgb("F2F2F2")), stroke: table_stroke(rgb("21222C")), ) set table.header(repeat: false) show table.cell.where(y: 0): set text(weight: "bold", size: 12pt) columns(column-number)[ #align(center)[ #box(height: 20pt)[ #if icon != none { set image(height: 100%) box(icon, baseline: 25%) } #text(17pt, title) ] #text(10pt, subtitle) ] #doc ] } #let theader(..cells, colspan: 2) = table.header( ..cells.pos().map(x => if type(x) == content and x.func() == table.cell { x } else { table.cell(colspan: colspan, x) }), ..cells.named(), )
https://github.com/exusiaiwei/My-brilliant-CV
https://raw.githubusercontent.com/exusiaiwei/My-brilliant-CV/main/letter.typ
typst
Apache License 2.0
#import "brilliant-CV/template.typ": * #show: layout #set text(size: 12pt) //set global font size #letterHeader( myAddress: [730030 , China], recipientName: [Saarland University], recipientAddress: [Department of Language Science and Technology], date: [01/01/2024], subject: "Subject: Personal Statement for LST program" ) Dear Admissions Committee, I am excited to submit my application for the Language Science and Technology M.Sc. program at Saarland University. My name is <NAME> , a graduate from the School of Chinese Language and Literature at Wuhan University. Herein, I aim to demonstrate to the committee that I am a qualified candidate for this program. As a child yearning to be a scientist, my unintentional choice of humanities back in high school created a seemingly insurmountable gap between me and science. My fascination with computer tech, historical scientific breakthroughs, reading about scientists, became merely leisure pursuits. Following my major in high school, I chose to study Chinese Language and Literature at university, considered a conventional humanities major. Surprisingly, through this path, I stumbled upon Linguistics---a field nestled under my major due to China's education structure. After a few basic linguistics courses, I realized its strong tether to the science I'd always admired. As I delved deeper, my fascination with Linguistics as a science overshadowed the less appealing literature courses. This dichotomy reinforced my allegiance to linguistics--the more I wrestled with the literature, the more I felt drawn to linguistics. In the labyrinth of humanities, I'm grateful to linguistics for leading me back to my original desire---science. In my academic journey, I noticed that modern linguistics seems detached from the wider scientific landscape. There was a time when the prosperity of linguistics benefited from cross-pollination with various scientific disciplines. The influence of Saussure's structuralist thinking across many disciplines, as well as Noam Chomsky's use of formal methods, bears witness to this interwoven history. Nevertheless, I doubt if today's linguistics keeps pace with the scientific frontier. Progress in cognitive understanding of linguistic phenomena and neuroscience's tracking of physiological language responses are advancing swiftly. Moreover, Natural Language Processing's achievements, particularly underlined by OpenAI's GPT, herald a new era in linguistics. These AI systems exemplify an "intelligence" with non-human physiological structures mastering human language. Unfortunately, traditional linguistics, often unable to understand or even recognize these advancements, risks stagnation. Gradually, I discovered other dimensions to linguistics: Computational Linguistics, Cognitive Neurolinguistics, and Quantitative Linguistics. Computer science and cognitive neuroscience serve as exemplary scientific frameworks, worth emulating. Statistical approaches offered by quantitative linguistics seem promising, particularly given the inherent variability and complexity of linguistic systems. After hearing about these disciplines, I began to approach them and learn relevant knowledge and methods. This process was not easy because the teachers at school could hardly offer the kind of hand-holding teaching as when imparting traditional linguistic knowledge. I had to search for papers myself, personally try out new programs and codes, and seek help online based on the error messages of the code. Fortunately, I have a strong learning ability, and I am indeed talented in these computer-related content. I proceeded with self-learning, rummaging for relevant papers, experimenting with new programs and adjusting code based on arising errors. During my junior year, I spearheaded the utilization of an underused eye-tracking device in our school. Dedicating a whole term, I mastered its operation, from design to data visualization. I completed a research study on linguistic landscapes using eye-tracking, submitted and awaiting review. In my senior year, I undertook a graduation thesis to analyze network language differences utilizing quantitative linguistic text features. This challenged my technical abilities as I had little hands-on programming experience. Moreover, I had never engaged in package or environment management, and my understanding of version control was limited to creating new Notepad files. While working on the thesis, I substantially improved my skills. I learned to use Anaconda for Python environment management, IDE's for efficient code writing and running, and Git for version control. My successful completion of the project, which involved a quantitative feature analysis of a self-crawled corpus, revealed that text feature differences across various Chinese Internet platforms are more pronounced than those within the same platform. Post-graduation, I increasingly applied my skills towards self-interest projects. I bought a VPS and deployed multiple services like personal academic homepages, blogs, RSS and network disk services, and developed mirror sites. I also continued working on my linguistic landscape paper, acquainting myself with LaTex and paper submission procedures. My recent work involves analyzing generated language models (LLMs) for differences from human language. Preliminary findings suggest that a significant portion of the LLM corpus doesn't align with Zipf's law, potentially a captivating discovery. Following my experiences, my future ambitions revolve around further exploring the intersections of Computational Linguistics, Cognitive Neurolinguistics, and Quantitative Linguistics. I seek deeper understanding and innovative insights from this interdisciplinary perspective. Earlier, I alluded to the Bourbaki school---The collective represented by the pseudonym <NAME> underscores the essence of scientific collaboration. As science has grown complex, no longer can a single mind, such as <NAME>'s, galvanize a new period. Progress dictates interdisciplinary cooperation. I aspire to be the Nicolas Bourbaki of this era.In the realm of interdisciplinary scientific cooperation, my aim is to act as a bridge connecting disparate disciplines, and with my team, accomplish a profound impact akin to Nicolas Bourbaki's influence on mathematics. I hope we can reshape linguistics into a field deeply rooted in statistics, capable of fluid interactions with other scientific domains, and fostering mutual insights. Linguistics needs its Nicolas Bourbaki, and I aim to play a part in that. The LST program perfectly fits my needs, not only with fruitful outcomes in the field of computational linguistics but also many research groups involve psycholinguistics. I have seen some groups doing eye-tracking research---if they are also using the EyeLink system, I could almost immediately participate in these studies. In addition, I believe there aren't many students with my background from the humanities. The LST program, organized in small learning groups, allows me to discuss a more personalized study plan with my mentors. I believe I meet your requirements for master's applicants, and I am eager to get one step closer to my dream in the LST program at Saarland University. Sincerely, #letterSignature("/src/signature.png") #letterFooter()
https://github.com/Lucas-Wye/tech-note
https://raw.githubusercontent.com/Lucas-Wye/tech-note/main/src/matlab.typ
typst
= Matlab #label("matlab") #link("https://github.com/Lucas-Wye/Share/blob/master/matlab_share.pptx")[Click here]
https://github.com/Arsenii324/matap-p2
https://raw.githubusercontent.com/Arsenii324/matap-p2/main/t-repo/macros.typ
typst
#let sumin = $limits(sum)_(i = 1)^n$ #let sumii = $limits(sum)_(i = 1)^infinity$ #let liminf = $limits(lim)_(n -> infinity)$ #let sm = $limits(sum)$ #let int = $limits(integral)$
https://github.com/CedricMeu/ugent-typst-template
https://raw.githubusercontent.com/CedricMeu/ugent-typst-template/main/0.1.0/lib/utils.typ
typst
/// get the current academic year, assuming that the academic year starts in September /// /// this function will return somthing like `[2023-2024]` #let current-academic-year() = { let today = datetime.today() let year = today.year() let month = today.month() if month < 9 { let first-year = year - 1 let second-year = year [#first-year\-#second-year] } else { let first-year = year let second-year = year + 1 [#first-year\-#second-year] } }
https://github.com/wflixu/typster
https://raw.githubusercontent.com/wflixu/typster/main/README.md
markdown
MIT License
![typster](./app-icon.png) # [WIP] typster A W.I.P desktop application for a new markup-based typesetting language, [typst](https://github.com/typst/typst). Typster is built using [Tauri](https://tauri.app/). # features - [ ] - [ ] ## screenshot ![typster](./public/imgs/screen_projects.png) ![typster](./public/imgs/screen_editing.png) ![typster](./public/imgs/screen_preview.png) # Download [download link](https://github.com/wflixu/typster/releases) ### MacOS ``` xattr -c /Applications/typster.app ``` ### rebuild app icon ``` pnpm tauri icon ``` ## Other similar projects: - https://github.com/Cubxity/typstudio - https://github.com/Enter-tainer/typst-preview ## Related projects - https://github.com/Enter-tainer/typstyle - https://github.com/nvarner/typst-lsp
https://github.com/Myriad-Dreamin/shiroa
https://raw.githubusercontent.com/Myriad-Dreamin/shiroa/main/github-pages/docs/format/book.typ
typst
Apache License 2.0
#import "/github-pages/docs/book.typ": book-page, cross-link #show: book-page.with(title: "book.typ") = book.typ * Note: This main file must be named `book.typ`. * The `book.typ` consists of many meta sections describing your book project. If you are familiar with `mdbook`, the `book.typ` file is similar to the `book.toml` with `summary.md` file. The main file is used by `shiroa` to know what chapters to include, in what order they should appear, what their hierarchy is and where the source files are. Without this file, there is no book. Since the `book.typ` is merely a typst source file, you can import them everywhere, which could be quite useful. For example, to export project to a single PDF file, an #link("https://github.com/Myriad-Dreamin/shiroa/blob/b9fc82b0d7f7009dfcaaf405d32f8ab044960e4f/github-pages/docs/pdf.typ")[ebook] file can aggregate all source files of this project according to the imported `book-meta.summary` metadata from `book.typ`. == book-meta #let type-hint(t) = text(fill: red, raw(t)) Specify general metadata of the book project. For example: ```typ #book-meta( title: "shiroa", authors: ("Myriad-Dreamin", "7mile"), summary: [ // this field works like summary.md of mdbook #prefix-chapter("pre.typ")[Prefix Chapter] = User Guide - #chapter("1.typ", section: "1")[First Chapter] - #chapter("1.1.typ", section: "1.1")[First sub] - #chapter("2.typ", section: "1")[Second Chapter] #suffix-chapter("suf.typ")[Suffix Chapter] ] ) ``` In this example, you specify following fields for the book project: - title #type-hint("string") (optional): Specify the title of the book. - authors #type-hint("array<string>") (optional): Specify the author(s) of the book. - summary #type-hint("content") (required): Summarize of the book. See #cross-link("/format/book-meta.typ")[Book Metadata] for more details. == build-meta Specify build metadata of the book project. For example: ```typ #build-meta( dest-dir: "../dist", ) ``` When you set `build-meta.dest-dir` to `../dist`, `shiroa` will output the generated content to `parent/to/book.typ/../../dist` or `parent/dist`. See #cross-link("/format/build-meta.typ")[Build Metadata] for more details.
https://github.com/TechnoElf/mqt-qcec-diff-thesis
https://raw.githubusercontent.com/TechnoElf/mqt-qcec-diff-thesis/main/content/implementation/visualisation.typ
typst
#import "@preview/tablex:0.0.8": tablex, rowspanx, colspanx, cellx #import "@preview/unify:0.6.0": qty == Visualisation A visualisation of the diff algorithms applied to quantum circuits was created to assess their usefulness in equivalence checking. Specifically, the tool was meant to demonstrate that diff algorithms produce meaningful output when applied to the same circuit at different optimisation levels. Additionally, this served as exercise to better understand the algorithms to be used for the implementation in @qcec. The tool is named Kaleidoscope and consists of a framework for loading quantum circuit file formats and manipulating them and a @gui for displaying comparisons between circuits. For the implementation, Rust was chosen as the programming language and Dear ImGUI as the user interface framework. No additional libraries (called "crates" in the Rust language) are used. While crates for quantum computation do exist (for instance, `qoqo` @bark2021qoqo or `qasm` @kelly2018qasm), these are unsuitable due to their inflexibility and a lack of a suitable representation to apply diff algorithms to. Instead, a representation of quantum circuits based on sequences of gates was developed specifically for the Kaleidoscope framework. Using this representation, a parser for the OpenQASM 2.0 format @cross2017qasm, which is also used by @qcec and @mqt bench, was developed to allow interoperability with these tools. The parser does not implement the full OpenQASM 2.0 specification and instead focuses on a subset of operations found in the circuits generated by @mqt bench. Additionally, a visual representation of the circuit was developed. This allows the exploration of the varying properties that different diff algorithms may have. @kaleidoscope_grover shows a sample circuit loaded into Kaleidoscope. #figure( image("../../resources/kaleidoscope-grover.png", width: 80%), caption: [A quantum circuit implementing Grover's algorithm loaded into Kaleidoscope. If a gate has parameters, these are shown when hovering over it.] ) <kaleidoscope_grover> The framework also includes a general representation of an edit graph built from two quantum circuits, to allow simple adaptation of existing diff algorithms. Using this framework, Djikstra's algorithm was implemented @djikstra1959shortest. @kaleidoscope_diff_grover demonstrates the application of the algorithm to a small instance of Grover's algorithm with 3 qubits, mapped to the native gate set of the IBM Washington target using Qiskit at optimisation levels 0 and 3. #figure( image("../../resources/kaleidoscope-diff-grover.png", width: 80%), caption: [Kaleidoscope showing the diff of two optimisation levels of a circuit implementing Grover's algorithm. The lower window shows the edit script to transform circuit A into circuit B. Red gates (those that are present in A, but not B) are removed and green gates (those that are present in B, but not A) are added.] ) <kaleidoscope_diff_grover> Djikstra's algorithm does not scale well to practical quantum circuits, however. The quadratic growth in runtime proved to make comparing even circuits on the order of thousands of gates take multiple seconds. Considering that the calculation of the edit script would only be a pre-processing step to the actual equivalence check, this is unacceptable. Subsequently, three different versions of Myers' algorithm were implemented, each with a progressively lower level of abstraction. This approach was taken to make the functionality of the algorithm easier to follow as the relation of the pseudocode given in Myers' paper to the abstract algorithm is not immediately clear @myers1986diff. Version 1 is thus closest to the abstract algorithm and version 3 is closest to Myers' pseudocode. Each of these versions was benchmarked using randomly generated sequences consisting of alphanumeric characters. The benchmarks were built and run on a NixOS 24.11 system with rustc 1.81.0. The system consists of an Intel Core i5-1240P with 32 GiB of RAM. @kaleidoscope_runtime shows a comparison between the results for the different diff algorithm implementations in Kaleidoscope. #figure( tablex( columns: (2fr, 1fr, 1fr, 1fr), rowspanx(2)[*Algorithm*], colspanx(3)[*Run time for an $n$ by $n$ edit graph*], (), (), (), [$n=10$], [$n=100$], [$n=1000$], [Djikstra's], cellx(align: right)[$qty("3979", "ns")$], cellx(align: right)[$qty("2352516", "ns")$], cellx(align: right)[$qty("2230049065", "ns")$], [Myers' (Version 1)], cellx(align: right)[$qty("3396", "ns")$], cellx(align: right)[$qty("907375", "ns")$], cellx(align: right)[$qty("1163141162", "ns")$], [Myers' (Version 2)], cellx(align: right)[$qty("1994", "ns")$], cellx(align: right)[$qty("236898", "ns")$], cellx(align: right)[$qty("124349238", "ns")$], [Myers' (Version 3)], cellx(align: right)[$qty("1784", "ns")$], cellx(align: right)[$qty("88573", "ns")$], cellx(align: right)[$qty("21964467", "ns")$] ), caption: [Run time of different diff Algorithm implementations on random sequences of gates with varying lengths.] ) <kaleidoscope_runtime> @kaleidoscope_runtime also highlights the trade off between abstraction and performance. Version 3 of Myers' algorithm is able to process circuits on the order of 10000 gates in just a few seconds, an improvement of two orders of magnitude over the initial implementation of Djikstra's algorithm. Version 3 is, however, still not an optimal solution. It makes heavy use of dynamically allocated memory, as this is more convenient to implement. It also uses a 2D array of the entire edit graph in order reconstruct the edit script, which requires an unreasonable amount of memory for larger circuits. Despite this, the approach was now sufficient to find the diff between two instances of Shor's algorithm, as demonstrated in @kaleidoscope_diff_shor. #figure( image("../../resources/kaleidoscope-diff-shor.png", width: 80%), caption: [Kaleidoscope showing the diff of two circuits implementing two different instances of Shor's algorithm.] ) <kaleidoscope_diff_shor> Using the tool, it is possible to compare practical quantum circuits and analyse their edit scripts. This was deemed sufficient evidence that an implementation of the algorithm in @qcec would be viable.
https://github.com/dismint/docmint
https://raw.githubusercontent.com/dismint/docmint/main/networks/pset6.typ
typst
#import "template.typ": * #show: template.with( title: "PSET 6", subtitle: "<NAME>", pset: true ) = Problem 1 == (a) #align(center)[ #table( columns: 3, [], [`W`], [`R`], [`W`], [$100, 100$], [$50, 125$], [`R`], [$125, 50$], [$75, 75$] ) ] === Pure When we fix the other player's strategy, it becomes incentivized to pick `R` regardless of the other player's choice. Therefore: / `(W, W)`: Is *not* a pure strategy. / `(R, R)`: *Is* a pure strategy. / `(R, W)`: Is *not* a pure strategy. / `(W, R)`: Is *not* a pure strategy. === Mixed We want to choose probabilities such that the other player is indifferent. Let $p$ be the probability of choosing `W` for P1 and $q$ be the probability of choosing `W` for P2. $ u_2(W) &= p dot 100 + (1 - p) dot 50 = 50 + 50 p\ u_2(R) &= p dot 125 + (1 - p) dot 75 = 75 + 50 p $ There is no way to satisfy $u_2(W) = u_2(R)$, so the only NE is the pure strategy of `(R, R)`. == (b) #align(center)[ #table( columns: 3, [], [`S`], [`H`], [`S`], [$100, 100$], [$0, 10$], [`H`], [$10, 0$], [$10, 10$] ) ] === Pure Both players are incentivized to pick the same choice as the other player, since it will always strictly be a better choice. Therefore: / `(S, S)`: *Is* a pure strategy. / `(H, H)`: *Is* a pure strategy. / `(H, S)`: Is *not* a pure strategy. / `(S, H)`: Is *not* a pure strategy. === Mixed Let $p$ be the probability of choosing `S` for P1 and $q$ be the probability of choosing `S` for P2. #twocol( [ $ u_2(S) &= p dot 100 + (1 - p) dot 0 = 100 p\ u_2(H) &= p dot 10 + (1 - p) dot 10 = 10\ 100 p &= 10\ p &= 0.1 $ ], [ $ u_1(S) &= q dot 100 + (1 - q) dot 0 = 100 q\ u_2(S) &= q dot 10 + (1 - q) dot 10 = 10\ 100 q &= 10\ q &= 0.1 $ ] ) Thus our mixed strategy NE is $(1 / 10 S + 9 / 10 H, 1 / 10 S + 9 / 10 H)$ == (c) #align(center)[ #table( columns: 3, [], [`C`], [`S`], [`C`], [$-10, -10$], [$1, 0$], [`S`], [$0, 1$], [$0, 0$] ) ] === Pure If one player picks `C`, the other is incentivized to pick `S` as well to avoid the large negative payoff. If one player picks `S`, the other is incentivized to pick `C`. Therefore: / `(C, C)`: Is *not* a pure strategy. / `(S, S)`: Is *not* a pure strategy. / `(S, C)`: *Is* a pure strategy. / `(C, S)`: *Is* a pure strategy. === Mixed Let $p$ be the probability of choosing `C` for P1 and $q$ be the probability of choosing `C` for P2. #twocol( [ $ u_2(C) &= p dot -10 + (1 - p) dot 1 = 1 - 11 p\ u_2(S) &= p dot 0 + (1 - p) dot 0 = 0\ 0 &= 1 - 11 p\ p &= 1 / 11 $ ], [ $ u_1(C) &= q dot -10 + (1 - q) dot 1 = 1 - 11 q\ u_1(S) &= q dot 0 + (1 - q) dot 0 = 0\ 0 &= 1 - 11 q\ q &= 1 / 11 $ ] ) Thus our mixed strategy NE is $(1 / 11 C + 10 / 11 S, 1 / 11 C + 10 / 11 S)$ == (d) #align(center)[ #table( columns: 4, [], [`R`], [`P`], [`S`], [`R`], [$0, 0$], [$-1, 1$], [$1, -1$], [`P`], [$1, -1$], [$0, 0$], [$-1, 1$], [`S`], [$-1, 1$], [$1, -1$], [$0, 0$] ) ] === Pure There are no pure strategies that are NE in this game. Suppose P1 chooses option `A`. Then P2 is incentivized to choose the complement of `A`. However, P1 is then incentivized to choose the complement of P2's choice which is not `A`. === Mixed Because all choices are equal, the best way to make players feel indifferent in a mixed strategy is to give equal weights to all options. Thus, the mixed strategy NA is $(1 / 3 R + 1 / 3 P + 1 / 3 S, 1 / 3 R + 1 / 3 P + 1 / 3 S)$ == (e) #align(center)[ #table( columns: 4, [], [`R`], [`P`], [`S`], [`R`], [$0, 0$], [$-2, 2$], [$10, -10$], [`P`], [$2, -2$], [$0, 0$], [$-5, 5$], [`S`], [$-10, 10$], [$5, -5$], [$0, 0$] ) ] === Pure There are no pure strategies that are NE in this game. Suppose P1 chooses option `A`. Then P2 is incentivized to choose the complement of `A`. However, P1 is then incentivized to choose the complement of P2's choice which is not `A`. There is nothing here that has changed from *(d)* that would allow for a pure strategy NE. === Mixed Suppose a player chooses `R` with probability $p$ and `P` with probability $q$, and `S` with probability $1 - p - q$. $ u_2(R) &= q dot -2 + (1 - q - p) dot 10 = 10 - 12 q - 10 p\ u_2(P) &= p dot 2 + (1 - q - p) dot -5 = - 5 - 5 q - 3 p\ u_2(S) &= p dot -10 + q dot 5 = 5 q - 10 p\ $ These equations hold true when $p = 5 / 17, q = 10 / 17$. Thus our mixed NE is held at $(5 / 17 R + 10 / 17 P + 2 / 17 S, 5 / 17 R + 10 / 17 P + 2 / 17 S)$ = Problem 2 == (a) The NE is for a candidate to choose $x = 0.5$ all the time. This will result in both candidates splitting the vote, and one of them being elected with probability $1 / 2$ There is no other pure strategy, as any other choice results in a $< 1 / 2$ chance of winning the election. Similarly, there is no mixed strategy that will result in a higher probability of winning the election, as we can always swap over to $x = 0.5$ to increase our chances. Because there are two candidates, the probability of winning the election is always capped at $1 / 2$, assuming that the other candidate is playing optimally as well. == (b) In order to maximize the payoff, each candidate wants to get as close to their side as possible. However, if they get too close, they will lose the election. Thus, the optimal strategy is to choose $x = 0.5$ all the time. This will result in a $1 / 2$ chance of winning the election. If we were to choose any other value rather than $x = 0.5$, the other candidate still holds the $0.5$ position, meaning the actual payoff does not change. Moving from the center does not incur any payoff benefits, and only serves to decrease the probability of winning the election. == (c) Because there are three candidates, there are many such cases where we reach a NE. One such case might be if $(x_1, x_2, x_3) = (0.2, 0.3, 0.6)$ In this case, fixing P1 and P2, P3 will always win if they choose $0.6$, so they are at an equilibrium. P1 and P2 are incentivized not to move, as moving to the right of P3 will result in the other of P1 or P2 winning. If the move to the center of the other two, they can earn at most $0.2$ of the vote, and if they move to the far left, the most they can earn is $0.3$ of the total vote. Therefore, there is no possible scenario where any of the players want to move from the given NE. = Problem 3 == (a) We reach equilibrium when all players take link 1. There is no reason to take the second link, as the cost of link 1 is then $x^k$, which is guaranteed to be less than $1$, meaning they will switch. The socially optimal routing happens on depth $x$ when: $ min x dot x^k + (1 - x) $ Where $x$ is an indicator variable of whether we choose to take link 1 or not (2). We can take the derivative of this function to get the min condition: $ k + x^k - 1 = 0 $ Which is achieved when: $ x = (1 / (k + 1))^(1 / k) $ The total cost can be represented by $1 + x dot (x^k - 1)$, meaning our overall cost is: (1 / (k + 1))^(1 / k) $ 1 + (1 / (k + 1))^(1 / k) dot (((1 / (k + 1))^(1 / k))^k - 1) &=\ &= 1 + (1 / (k + 1))^(1 / k) dot ((1 / (k + 1))^(1 / k) - 1)\ &= 1 - 1 / (k + 1) dot (1 / (k + 1))^(1 / k)\ $ In this scenario, the price of anarchy and stability are the same, and equal to the inverse of the last computed value. $ boxed((1 - 1 / (k + 1) dot (1 / (k + 1))^(1 / k))^(-1)) $ == (b) Our new minimization function is: $ min x dot x^k + (2 - x) $ This gives the same first order minimization condition as before in *(a)*. The optimal answer is still therefore: $ x = (1 / (k + 1))^(1 / k) $ But our cost now changes, as the overall cost increases by 1. The new cost is: $ 2 - 1 / (k + 1) dot (1 / (k + 1))^(1 / k) $ And then price of anarchy and stability is: $ boxed((2 - 1 / (k + 1) dot (1 / (k + 1))^(1 / k))^(-1)) $ == (c) We would like to prove the following: $ 1 < 2 - 1 / (k + 1) dot (1 / (k + 1))^(1 / k) $ Note that it must be the case $(1 / (k + 1))^(1 / k) < 1$ since $k > 0$, meaning $1 / (k + 1) < 1$. Therefore, we can say that: $ 1 = 2 - 1 < 2 - 1 / (k + 1) dot (1 / (k + 1))^(1 / k) $ Thus, *halving* the traffic will result in a better equilibrium cost. This could be achieved through ridesharing in Uber or Lyft, or getting bigger cars to transport more people at once. = Problem 4 == (a) In any case, it is the best policy to always choose the car. Even if everyone takes a car, the commuting time is fixed at $1$. If people take the train, it will take at least one hour, with a possibility of two hours. The payoff for everyone is therefore $-1$ == (b) All the people with strict deadlines should use a car, since the worst case assumption will hurt if they take the train. If they don't have a strict deadline, then we should split it based on $epsilon$. Want want to minimize the expression $(1 / 2 + f)^2 + 2(1-f)(epsilon)(1 / 2) + (1-f)(1-e)(1 / 2)$, where $f$ is the proportion of flexible schedule havers who use a car. To accomplish this, we should pick $f = epsilon$, and thus $epsilon/2$ flexible people take a car, and the rest $1/2-epsilon/2$ take the train. == (c) No, everyone will want to take a car greedily, even those who have a flexible schedule. There is no way to enforce this policy if people can lie. == (d) We could possibly set the cap to the $1/2+epsilon/2$ number discussed in *(b)*, but there is no guarantee that the people we want will take those slots. For example, we intended for the hard deadline havers to get all car slots, but if it is first come first served, there is no guarantee that this will happen. We would need some additional way of enforcing this guarantee, so this approach is not feasible. == (e) On the opposite side of the argument from *(c)* and *(d)*, there is also no guarantee that we can force $epsilon/2$ of the flexible schedule havers to take a car. Even if it is the better option, we have no way of enforcing this policy, and so unless the government actively enforces this ratio, there is no world where even a toll can be enforced if people with flexible schedules choose to take the train when conditions are semi equal to the road. Either all flexible schedule havers will want to take the train, or all of them will want to take the car. There is no way to enforce a particular ratio.
https://github.com/fenjalien/metro
https://raw.githubusercontent.com/fenjalien/metro/main/src/defs/prefixes.typ
typst
Apache License 2.0
// SI prefixes #let quecto = $q$ #let ronto = $r$ #let yocto = $y$ #let zepto = $z$ #let atto = $a$ #let femto = $f$ #let pico = $p$ #let nano = $n$ #let micro = $mu$ #let milli = $m$ #let centi = $c$ #let deci = $d$ #let deca = $d a$ #let deka = deca #let hecto = $h$ #let kilo = $k$ #let mega = $M$ #let giga = $G$ #let tera = $T$ #let peta = $P$ #let exa = $E$ #let zetta = $Z$ #let yotta = $Y$ #let ronna = $R$ #let quetta = $Q$ // Binary prefixes #let kibi = $K i$ #let mebi = $M i$ #let gibi = $G i$ #let tebi = $T i$ #let pebi = $P i$ #let exbi = $E i$ #let zebi = $Z i$ #let yobi = $Y i$ #{ quecto = math.class("unary", quecto) ronto = math.class("unary", ronto) yocto = math.class("unary", yocto) zepto = math.class("unary", zepto) atto = math.class("unary", atto) femto = math.class("unary", femto) pico = math.class("unary", pico) nano = math.class("unary", nano) micro = math.class("unary", micro) milli = math.class("unary", milli) centi = math.class("unary", centi) deci = math.class("unary", deci) deca = math.class("unary", deca) deka = math.class("unary", deka) hecto = math.class("unary", hecto) kilo = math.class("unary", kilo) mega = math.class("unary", mega) giga = math.class("unary", giga) tera = math.class("unary", tera) peta = math.class("unary", peta) exa = math.class("unary", exa) zetta = math.class("unary", zetta) yotta = math.class("unary", yotta) ronna = math.class("unary", ronna) quetta = math.class("unary", quetta) kibi = math.class("unary", kibi) mebi = math.class("unary", mebi) gibi = math.class("unary", gibi) tebi = math.class("unary", tebi) pebi = math.class("unary", pebi) exbi = math.class("unary", exbi) zebi = math.class("unary", zebi) yobi = math.class("unary", yobi) } #let _dict = ( quecto: quecto, ronto: ronto, yocto: yocto, zepto: zepto, atto: atto, femto: femto, pico: pico, nano: nano, micro: micro, milli: milli, centi: centi, deci: deci, deca: deca, deka: deka, hecto: hecto, kilo: kilo, mega: mega, giga: giga, tera: tera, peta: peta, exa: exa, zetta: zetta, yotta: yotta, ronna: ronna, quetta: quetta, kibi: kibi, mebi: mebi, gibi: gibi, tebi: tebi, pebi: pebi, exbi: exbi, zebi: zebi, yobi: yobi, ) #let _power-tens = ( quecto: -30, ronto: -27, yocto: -24, zepto: -21, atto: -18, femto: -15, pico: -12, nano: -9, micro: -6, milli: -3, centi: -2, deci: -1, deca: 1, deka: 1, hecto: 2, kilo: 3, mega: 6, giga: 9, tera: 12, peta: 15, exa: 18, zetta: 21, yotta: 24, ronna: 27, quetta: 30 ) // #let _dict = ( // quecto: (quecto, -30), // ronto: (ronto, -27), // yocto: (yocto, -24), // zepto: (zepto, -21), // atto: (atto, -18), // femto: (femto, -15), // pico: (pico, -12), // nano: (nano, -9), // micro: (micro, -6), // milli: (milli, -3), // centi: (centi, -2), // deci: (deci, -1), // deca: (deca, 1), // deka: (deka, 1), // hecto: (hecto, 2), // kilo: (kilo, 3), // mega: (mega, 6), // giga: (giga, 9), // tera: (tera, 12), // peta: (peta, 15), // exa: (exa, 18), // zetta: (zetta, 21), // yotta: (yotta, 24), // ronna: (ronna, 27), // quetta: (quetta, 30) // ) // #{ // for (k, v) in _dict { // _dict.insert(k, (symbol: v.first(), power: v.last())) // } // } // #{ // quecto += sym.zws // ronto += sym.zws // yocto += sym.zws // zepto += sym.zws // atto += sym.zws // femto += sym.zws // pico += sym.zws // nano += sym.zws // micro += sym.zws // milli += sym.zws // centi += sym.zws // deci += sym.zws // deca += sym.zws // deka = deca // hecto += sym.zws // kilo += sym.zws // // kilo = $k#sym.zws$ // mega += sym.zws // giga += sym.zws // tera += sym.zws // peta += sym.zws // exa += sym.zws // zetta += sym.zws // yotta += sym.zws // ronna += sym.zws // quetta += sym.zws // }
https://github.com/SillyFreak/typst-packages-old
https://raw.githubusercontent.com/SillyFreak/typst-packages-old/main/scrutinize/gallery/question-types.typ
typst
MIT License
#import "@preview/scrutinize:0.2.0": grading, question, questions // #import "../src/lib.typ" as scrutinize: grading, question, questions #import question: q #import questions: free-text-answer, single-choice, multiple-choice // make the PDF reproducible to ease version control #set document(date: none) // toggle this comment or pass `--input solution=true` to produce a sample solution // #questions.solution.update(true) #set table(stroke: 0.5pt) = Question Write an answer. #free-text-answer[ An answer ] = Question Which of these is the fourth answer? #single-choice( ( [Answer 1], [Answer 2], [Answer 3], [Answer 4], [Answer 5], ), // 0-based indexing 3, ) = Question Which of these answers are even? #multiple-choice( ( ([Answer 1], false), ([Answer 2], true), ([Answer 3], false), ([Answer 4], true), ([Answer 5], false), ) )
https://github.com/teamdailypractice/pdf-tools
https://raw.githubusercontent.com/teamdailypractice/pdf-tools/main/typst-pdf/examples/example-04.typ
typst
+ The climate + The topography + The geology
https://github.com/claudiomattera/typst-modern-cv
https://raw.githubusercontent.com/claudiomattera/typst-modern-cv/master/docs/example-lighten.typ
typst
MIT License
// Copyright <NAME> 2023-2024. // // Distributed under the MIT License. // See accompanying file License.txt, or online at // https://opensource.org/licenses/MIT #import "../src/lib.typ": configure_theme #set document( title: "<NAME> - Curriculum Vitæ", author: "<NAME>", ) #set page( paper: "a4", margin: (x: 1.5cm, y: 1.5cm), ) #configure_theme(style: "lighten") #include "example.typ"
https://github.com/rabotaem-incorporated/algebra-conspect-1course
https://raw.githubusercontent.com/rabotaem-incorporated/algebra-conspect-1course/master/sections/03-polynomials/04-subs-homomorphism.typ
typst
Other
#import "../../utils/core.typ": * == Гомоморфизм подстановки #def[ Пусть $R, S$ --- кольца. Гомоморфизм из кольца $R$ в кольцо $S$ называется отображение $phi: R -> S$, такое что: + $phi(a + b) = phi(a) + phi(b)$, $forall a, b in R$; + $phi(a b) = phi(a) phi(b)$ + $phi(1_R) = 1_S$ ] #pr(name: [свойства гомоморфизма])[ + $phi(0_R) = 0_S$ + $forall a in R: phi(-a) = -phi(a)$ + $forall a, b in R: phi(a - b) = phi(a) - phi(b)$ ] #proof[ + $0_R = 0_R + 0_R ==> phi(0_R) = phi(0_R) + phi(0_R)\ ==> underbrace(phi(0_R) + (-phi(0_R)), 0_S) = phi(0_R) + underbrace(phi(0_R) + (-phi(0_R)), 0_S)\ ==> 0_S = phi(0_R) + 0_S ==> phi(0_R) = 0_S$ + $a + (-a) = 0_R ==> phi(a) + phi(-a) = phi(0_R) = 0_S ==> phi(-a) = -phi(a)$ + $phi(a - b) = phi(a) + phi(-b) = phi(a) - phi(b)$ ] #def[ Пусть $S$ --- кольцо, $R subset S$. $R$ называется подкольцом $S$, если: + $forall a, b in R: a - b in R$ + $forall a, b in R: a b in R$ + $1_S in R$ ] #notice[ Этих условий достаточно (остальные выражаются) $1 in R ==> 0 = 1 - 1 in R$ $a in R ==> -a = 0 + (-a) = 0 - a in R$ $a, b in R ==> a + (-(-b)) = a - (-b) in R$ ] #examples[ + Пусть $R$ --- подкольцо в $S$. Тогда $i_R: R -> S$ --- гомоморфизм, $a maps a$. + $ZZ -> factor(ZZ, n ZZ)$ --- гомоморфизм, $a maps overline(a)$ + $CC -> CC$ --- гомоморфизм, $z maps overline(z)$ ] #th[ Пусть $B$ --- кольцо, $A$ --- подкольцо такое что, $forall a in A space forall b in B: a b = b a$ Зафиксируем $b in B$. Тогда отображение $phi_b: A[x] -> A[b]$ $a_n X^n + ... + a_1X + a_0 maps a_n b^n + ... + a_1 b + a_0$ является гомоморфизмом колец. (Смысл этой теоремы в том, что подставить элементы надкольца в сумму/произведение многочленов, это тоже самое, что подставить элементы надкольца в многочлены, а потом сложить/умножить) ] #proof[ Если $f = a_n X^n + ... + a_1 X + a_0$, то $f(b) = a_n b^n + ... + a_1 b + a_0 = phi_b(f)$ Нужно проверить: $(f + g)(b) = f(b) + g(b)$ и $(f g)(b) = f(b) g(b)$ $1(b) = 1$ --- тривиально $(f + g)(b) = f(b) + g(b)$ --- очевидно из определения $f + g$. Осталось проверить, что $(f g)(b) = f(b) g(b)$: $f = limits(sum)_(i = 0)^n a_i X^i, space g = limits(sum)_(i = 0)^m c_i X^i$ $f g = limits(sum)_(k = 0)^(n + m) d_k X^k, space d_k = limits(sum)_(i + j = k) a_i c_j$ $(f g)(b) = limits(sum)_(k=0)^(n + m) d_k b^k$ $f(b) g(b) = ( limits(sum)_(i = 0)^n a_i b^i ) ( limits(sum)_(j = 0)^m c_j b^j ) = limits(sum)_(i = 0)^n limits(sum)_(j = 0)^m a_i b^i c_j b^j limits(=)^("коммут.")$ $limits(sum)_(i = 0)^n limits(sum)_(j = 0)^m a_i c_j b^(i + j) = limits(sum)_(k = 0)^(n + m) underbrace((limits(sum)_(i, j >= 0, space i + j = k) (a_i c_j)), d_k) b^k = (f g)(b)$ ] #examples[ + #[ $A$ --- любое коммутативное кольцо, $B = A[x]$ $A$ --- подкольцо в $B = A[x] ==>$ можно рассмотреть $f(g)$, где $f, g in A[x]$ ] + #[ $RR[x] limits(-->)^(phi) RR[x]$, $f maps f(5)$ $Im phi = RR eq.not RR[x]$ ] + #[ $A -> A$ $f limits(maps)^(alpha) f(x_2, x_3, x_4, ...)$ --- инъективный, но не сюръективный $f limits(maps)^(beta) f(0, x_1, x_2, x_3, ...)$ --- сюръективный, но не инъективный ] ] #exercise[ + Найти все автоморфизмы $QQ$ + Найти все автоморфизмы $RR$ + Найти все автоморфизмы $RR[x]$ ] #th(name: [Безу])[ Пусть $f in R[X], space c in R$. Тогда остаток при делении $f$ на $X - c$ есть $f(c)$. ] #proof[ $f = (X - c) dot q + r$, по теореме о делении с остатком $deg r < deg (X - c) = 1 ==>$ $f(c) = (c - c) dot q(c) + r(c) = r(c)$ ] #follow[ Пусть $f in R[X], space c in R$. Тогда $f(c) = 0 <==> (X - c) divides f$ ] #def[ Пусть $R$ --- подкольцо $S$, элементы $R$ коммутируют с элементами $S$. Тогда $s in S$, такой что $f(s) = 0$, где $f in R[x]$ --- называется корнем из $f$ в $R$. ] #example[ $f = x^4 - 2$ в $ZZ[x]$ $f$ не имеет корней в $ZZ$ $f$ имеет $2$ корня в $RR$ $f$ имеет $4$ корня в $CC$ ] #pr[ Пусть $R$ -- область целостности, $f in R[x], space deg f = d >= 0$. Тогда число корней $f$ в $R$ не превосходит $d$. ] #proof[ Индукция по $d$ "База:" $d = 0 ==> f$ ненулевой $d ==>$ корней нет "Переход": $d > 0$ У $f$ нет корней в $R ==>$ утверждение выполнено У $f$ есть корни в $R$, пусть $c in R$ --- какой-либо из корней $f$ $f(c) = 0 ==> f = (X - c) dot g$, где $g in R[x]$ $deg f = deg (X - c) + deg g ==> deg g = d - 1$ Пусть $c_1, ..., c_l$ --- все корни $g$ в $R$ По предположению индукции: $l <= d - 1$ Утверждение: $\{c_1, ... c_l, c\}$ --- все корни $f$ в $R$ $f(c_1) = ... = f(c_l) = f(c) = 0$ Предположим $exists c' in.not \{c_1, ..., c_l, c\}$, такой что $f(c') = 0$ $==> (c' - c) dot g(c') = 0$ --- противоречие с тем, что $R$ -- область целостности $==>$ у $f$ не более $l + 1 <= d$ корней в $R$. ] #example[ $x^2 - 1$ имеет $4$ корня в $factor(ZZ, 8 ZZ)$ или в $factor(ZZ, 5 ZZ)$ $ x^2 equiv_(77) 1 <==> display(cases( x^2 equiv_(7) 1, x^2 equiv_(11) 1 )) <==> display(cases( x equiv_(7) 1 " или " x equiv_(7) -1, x equiv_(11) 1 " или " x equiv_(11) -1 )) $ ] #pr(name: [формальное и функциональное равенство многочленов])[ Пусть $R$ --- бесконечная область: $f, g in R[x]$ таковы, что $forall a in R: f(a) = g(a)$ Тогда $f = g$ ] #proof[ $h = f - g$, предположим, что $h eq.not 0 ==> deg h = d >= 0 ==>$ у $h$ есть $<= d$ корней. Но $forall a in R: h(a) = f(a) - g(a) = 0$, $R$ --- бесконечная область, противоречие. Так как их не больше чем $d$, но $R$ бесконечно. ] #example[ $R = factor(ZZ, 3 ZZ)$, $f = X, g = X^3$ $forall A in ZZ: a^3 equiv_(3) a ==> forall alpha in factor(ZZ, 3 ZZ): f(alpha) = g(alpha)$ ]
https://github.com/CHHC-L/ciapo
https://raw.githubusercontent.com/CHHC-L/ciapo/master/examples/example.typ
typst
MIT License
#import "../template.typ": diapo, transition #show: diapo.with( title: "My last vacations", author: "<NAME>", date: "2023-04-20", // display_lastpage: false, ) = Introduction It was great! #lorem(20) #transition[Day one] = Travelling #lorem(30) #lorem(30) = Relax #align(horizon)[ #set text(size: 28pt) $ e^(i pi) + 1 = 0 $ ] = The journey back home It was exhausting. = Conclusion That was short.
https://github.com/Area-53-Robotics/53E-Notebook-Over-Under-2023-2024
https://raw.githubusercontent.com/Area-53-Robotics/53E-Notebook-Over-Under-2023-2024/giga-notebook/entries/decide-driver-control/entry.typ
typst
Creative Commons Attribution Share Alike 4.0 International
#import "/packages.typ": notebookinator #import notebookinator: * #import themes.radial.components: * #show: create-body-entry.with( title: "Decide: Driver Control", type: "decide", date: datetime(year: 2023, month: 08, day: 20), author: "<NAME>", witness: "<NAME>", ) The driver's preferred method of controlling the robot is a subjective decision rather than an objective one. While the different methods do have concrete differences, the decision usually comes down to personal preference rather than objective reasons. Due to this we've designed this testing procedure in order to find our driver's preferred control method. = Testing Procedure 1. Place the robot on the green circle in the diagram below. #set align(center) #image("./test.svg", height: 35%) #set align(left) 2. Load a program onto the robot's brain that contains one of the control schemes detailed in the previous entry. The implementation section of this entry will cover what are code for this looked like. 3. Have the driver follow the path marked in green. 4. Repeat the last step 3 more times. 5. Repeat steps 1 - 4 for the other 2 control schemes. 6. Repeat steps 1 - 4, changing the drive curve constant each time. = Implementation == Drive Curve The drive curve is a powerful concept that can be applied to every control scheme. It gives the driver much more control over the robot at lower speeds. Typically the output of the controller and input to the motor's move method is linear. If the output of the joystick is 50, the input to the move method is also 50. If we're using a drive curve we pass the value outputted by the controller into a exponential function first before passing into the move method. This means that a larger part of the joystick axis outputs a lower value, giving the driver more control over the robot without compromising on the maximum speed of the robot. #set align(center) #image("./drive-curve.svg", width: 50%) #set align(left) #admonition( type: "warning", )[ The drive curve must intersect with the normal behavior at three points: - the maximum output of the joystick axis: (127, 127) - (0,0) - the minimum output of the joystick axis: (-127, -127) ] The function we use was created by team 5225, the E-bots $pi$lons. #footnote(link("https://www.desmos.com/calculator/rcfjjg83zx")) It looks like this: #admonition(type: "equation")[ Assuming these variables: - $x$ is the current value of the joystick axis - $t$ is a constant that controls the steepness of the curve #text(size: 15pt)[ \ $ ( e^(-t/10) + e^( (abs(x)-127)/10) * (1-e^(t/10)) )x $ \ ] ] In code it looks like this: ```cpp double calcDriveCurve(double input, double scale) { if (scale != 0) { return (powf(2.718, -(scale / 10)) + powf(2.718, (fabs(input) - 127) / 10) * (1 - powf(2.718, -(scale / 10)))) * input; } return input; } ``` == Tank Drive The tank drive implementation is very simple. The values of the joysticks are passed into the calcDriveCurve function, and the into the move method of our motor groups. ```cpp void tank(int left, int right, float curveGain) { leftMotors.move(calcDriveCurve(left, curveGain)); rightMotors.move(calcDriveCurve(right, curveGain)); }; ``` == Arcade Drive The arcade drive implementation is slightly more complicated. The power of the left and right motors has to be calculated by add or subtracting the turn value from the value of the throttle value. ```cpp void arcade(int throttle, int turn, float curveGain) { int leftPower = calcDriveCurve(throttle + turn, curveGain); int rightPower = calcDriveCurve(throttle - turn, curveGain); leftMotors.move(leftPower); rightMotors.move(rightPower); }; ``` == Curvature Drive The curvature drive implementation is easily the most complicated of the three. The calculation for the curve breaks down if the turn value is zero, so the code defaults to arcade drive if the turn value is zero. The code after that is very similar to arcade drive, except instead throttle has $abs("throttle")*"turn"/127$ added or subtracted from it, rather than turn by itself. ```cpp void curvature(int throttle, int turn, float curveGain) { // If we're not moving forwards change to arcade drive if (throttle == 0) { arcade(throttle, turn, curveGain); return; } double leftPower = throttle + (std::abs(throttle) * turn) / 127.0; double rightPower = throttle - (std::abs(throttle) * turn) / 127.0; leftPower = calcDriveCurve(leftPower, curveGain); rightPower = calcDriveCurve(rightPower, curveGain); leftMotors.move(leftPower); rightMotors.move(rightPower); }; ``` = Results After running our test our driver decided on - Tank drive - Drive curve t value of 5
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/03-unicode/case.typ
typst
Other
#import "/template/template.typ": web-page-template #import "/template/components.typ": note #import "/template/lang.typ": greek, german #import "/lib/glossary.typ": tr #show: web-page-template // ## Case conversion == 大小写转换 // We've seen that N'Ko is a unicase script; its letters have no upper case and lower case forms. In fact, only a tiny minority of writing systems, such as those based on the Latin alphabet, have the concept of upper and lower case versions of a character. For some language systems like English, this is fairly simple and unambiguous. Each of the 26 letters of the Latin alphabet used in English have a single upper and lower case. However, other languages which use cases often have characters which do not have such a simple mapping. The Unicode character database, and especially the file `SpecialCasing.txt`, provides machine-readable information about case conversion. 我们已经知道,N'ko 是一种不分大小写的#tr[script]。事实上只有很小一部分书写系统拥有大小写的概念,比如那些基于拉丁字母表的#tr[scripts]。对于类似英语的一些语言来说,大小写的概念很清晰:英语中的26个拉丁字母各自都只有一个大写形式和一个小写形式。但是其他的语言不一定也遵循这样简单的映射。Unicode#tr[character]数据库中的 `SpecialCasing.txt` 文件以机器可读的格式表述了关于大小写转换的信息。 // The classic example is German. When the sharp-s character U+00DF (ß) is uppercased, it becomes the *two* characters "SS". There is clearly a round-tripping problem here, because when the characters "SS" are downcased, they become "ss", not ß. For more fun, Unicode also defines the character U+1E9E, LATIN CAPITAL LETTER SHARP S (ẞ), which downcases to ß. 一个非常经典的例子是,德语中有一个被称为sharp s的字母#german[ß],位于 `U+00DF`。当进行大写转换时,需要将它变成*两个*#tr[character]SS。这里显然会存在一个逆向转换的问题,因为当SS转换为小写时会是ss,而不再是#german[ß]。更有趣的是,Unicode也定义了`U+1E9E LATIN CAPITAL LETTER SHARP S`(拉丁文大写字母 Sharp S),写作 #german[ẞ]。这个#tr[character]转换成小写是#german[ß]。 #note[ // > During the writing of this book, the Council for German Orthography (*Rat für deutsche Rechtschreibung*) has recommended that the LATIN CAPITAL LETTER SHARP S be included in the German alphabet as the uppercase version of ß, which will make everything a lot easier but rob us of a very useful example of the difficulties of case conversion. 在本书编写过程中,德语正写法协会(#german[Rat für deutsche Rechtschreibung])建议将`LATIN CAPITAL LETTER SHARP S`作为#german[ß]的大写形式纳入德文字母表中。这会使上述难题变得简单很多,但这样也会让我们失去一个能直观感受到大小写转换的困难程度的绝佳例子。 ] // The other classic example is Turkish. The ordinary Latin small letter "i" (U+0069) normally uppercases to "I" (U+0049) - except when the document is written in Turkish or Azerbaijani, when it uppercases to "İ". This is because there is another letter used in those languages, LATIN SMALL LETTER DOTLESS I (U+0131, ı), which uppercases to "I". So case conversion needs to be aware of the linguistic background of the text. 另一个经典例子是传统拉丁字母i(`U+0069`)。通常来说,这个字母转换为大写时会是I(`U+0049`),但在土耳其语或阿塞拜疆语的环境下,其大写却是İ。<position:turkish-i-uppercase>这是因为这些语言中还有另一个字母 ı(`U+0131 LATIN SMALL LETTER DOTLESS I`,拉丁文小写字母无点I),这个字母的大写才是 I。所以,大小写转换也需要考虑文本所处的语言环境。 // As well as depending on language, case conversion also depends on context. GREEK CAPITAL LETTER SIGMA (Σ) downcases to GREEK SMALL LETTER SIGMA (σ) except at the end of a word, in which case it downcases to ς, GREEK SMALL LETTER FINAL SIGMA. 除了和语言有关之外,大小写转换还需要结合上下文。#greek[Σ](`GREEK CAPITAL LETTER SIGMA`,希腊文大写字母 Sigma)通常的小写形式为#greek[σ](`GREEK SMALL LETTER SIGMA`,希腊文小写字母 Sigma)。但如果其出现在词尾,则小写形式会变为#greek[ς](`GREEK SMALL LETTER FINAL SIGMA`,希腊文小写字母词尾 Sigma)。 // Another example comes from the fact that Unicode may have a *composed form* for one case, but not for another. Code point U+0390 in Unicode is occupied by GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS, which looks like this: ΐ. But for whatever reason, Unicode never encoded a corresponding GREEK CAPITAL LETTER IOTA WITH DIALYTIKA AND TONOS. Instead, when this is placed into upper case, three code points are required: U+0399, GREEK CAPITAL LETTER IOTA provides the Ι; then U+0308 COMBINING DIAERESIS provides the dialytika; and lastly, U+0301 COMBINING ACUTE ACCENT provides the tonos. 还有一种情况是,某些字符的一种形态的是*#tr[compose]形式*的,但另一种却不是。比如字母#greek[ΐ](`U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS`,带Dialytika和Tonos的希腊文小写字母 Iota),Unicode中没有某个单一#tr[character]对应的它的大写形态。当我们需要它的大写时,得用上三个#tr[codepoint]:`U+0399 GREEK CAPITAL LETTER IOTA`(希腊文大写字母 Iota)提供主体;`U+0308 COMBINING DIAERESIS`(组合用分音符)提供分音符(字母上方的两个点);`U+0301 COMBINING ACUTE ACCENT`(组合用锐音符)提供声调。它们合起来才能组成大写的#greek[\u{0399}\u{0308}\u{0301}/* Ϊ́ */]。
https://github.com/YonniGashu/resume
https://raw.githubusercontent.com/YonniGashu/resume/main/template.typ
typst
#let resume(body) = { set list(indent: 1em) show list: set text(size: 0.92em) show link: underline show link: set underline(offset: 3pt) set page(paper: "us-letter", margin: (x: 0.5in, y: 0.5in)) set text(size: 12pt, font: "New Computer Modern") body } #let name_header(name) = { set text(size: 2.25em) [*#name*] } #let header( name: "<NAME>", phone: "123-456-7890", email: "<EMAIL>", linkedin: "linkedin.com/in/johndoe", site: "github.com/johndoe", ) = { align(center, block[ #name_header(name) \ #phone | #link("mailto:" + email)[#email] | #link("https://" + linkedin)[#linkedin] | #link("https://" + site)[#site] ]) v(5pt) } #let resume_heading(txt) = { show heading: set text(size: 0.92em, weight: "regular") block[ = #smallcaps(txt) #v(-4pt) #line(length: 100%, stroke: 1pt + black) ] } #let edu_item( name: "Sample University", degree: "", location: "Foo, BA", date: "Aug. 1600 - May 1750", ..points, ) = { set block(above: 0.5em, below: 0.75em) pad(left: 0.5em, right: 0.5em, box[ #grid(columns: (3fr, 1fr), align(left)[ *#name* \ _#degree _ ], align(right)[ #location \ _#date _ ]) #list(..points) ]) } #let exp_item( name: "<NAME>", role: "Worker", date: "June 1837 - May 1845", location: "Foo, BA", ..points, ) = { set block(above: 0.5em, below: 0.75em) pad(left: 0.5em, right: 0.5em, box[ #grid(columns: (3fr, 1fr), align(left)[ *#role* \ _#name _ ], align(right)[ #date \ _#location _ ]) #list(..points) ]) } /** RETIRED BULLET POINTS "Contribute to advancements in novel alogrithms for identifying contradictions within KGs" "Participated in scrum Agile development methodology, including all ceremonies", **/ #let exp_item_DOD() = { set block(above: 0.5em, below: 0.5em) pad( left: 0.5em, right: 0.5em, box[ #grid(columns: (3fr, 1fr), align(left)[ *#"Department of Defense (DoD)"* \ _#"Artificial Intelligence Research Intern" _ ], align(right)[ #"May 2024 - Aug. 2024" \ _#"Washington, DC" _ ]) #list( "Worked alongside senior researchers on a project investigating how knowledge graphs (KGs) can be extracted from unstructured text", "Collaborated with researchers on the development of a KG-RAG system to enable Knowledge Graph Question Answering (KGQA)", "Developed methodologies for Named Entity Recognition (NER) and Relationship Extraction (RE) to populate the KGs", "Wrote " + [_#"Python"_] + " scripts using pandas & numpy for efficient processing of data from PDF to KG format", ) ], ) set block(above: 0.7em, below: 0.5em) pad( left: 0.5em, right: 0.5em, box[ #grid(columns: (3fr, 1fr), align(left)[ _#"Software Engineer Intern" _ ], align(right)[ #"Sep. 2022 - Aug. 2023" ]) #list( "Member of the government development team in the Data Targeting Solutions division. This team is essential for the creation of enterprise applications in support of targeting using Cloud Native techniques", "Utilized " + [_#"Java"_] + " to develop backend database management features for internal web application, and successfully integrated those functionalities into the frontend interface using " + [_#"VueJS"_], "Created a developer-sided API to allow for more efficient creation of test agreements/datafeeds", "As part of a DevOps team, supported project from requirements gathering, development, unit testing, integration testing to deployment and maintenance", ) ], ) } #let project_item( name: "<NAME>", skills: "Programming Language 1, Database3", date: "May 1234 - June 4321", ..points, ) = { set block(above: 0.5em, below: 0.75em) pad(left: 0.5em, right: 0.5em, box[ *#name* | _#skills _ #h(1fr) #date #list(..points) ]) } #let skill_item(category: "Skills", skills: "Balling, Yoga, Valorant") = { set block(above: 0.5em) set text(size: 0.91em) pad(left: 0.5em, right: 0.5em, block[*#category*: #skills]) }
https://github.com/yasemitee/Teoria-Informazione-Trasmissione
https://raw.githubusercontent.com/yasemitee/Teoria-Informazione-Trasmissione/main/2023-10-24.typ
typst
#import "@preview/lemmify:0.1.4": * #let ( theorem, lemma, corollary, remark, proposition, example, proof, rules: thm-rules ) = default-theorems("thm-group", lang: "it") #show: thm-rules #show thm-selector("thm-group", subgroup: "proof"): it => block( it, stroke: green + 1pt, inset: 1em, breakable: true ) = Primo teorema di Shannon Il prossimo risultato rivela che i codici di Shannon forniscono una descrizione delle realizzazioni di X di lunghezza media quasi ottimale rispetto a tutti i codici istantanei. == Introduzione #lemma(numbering: none)[Per ogni sorgente $angle.l Chi, p angle.r$ con $Chi = {x_1, dots, x_m}$ e $p = {p_1, dots, p_m}$. Dato il codice istantaneo di Shannon $c$ con lunghezze $l_i = l_c (x_i)$ tali che $l_i = ceil(log_D 1/p_i)$ per $i = 1,dots, m$, vale $ EE[l_c] < H_D (Chi) + 1 $ ]<thm> Quindi con questo teorema, Shannon capisce che il suo codice paga al più 1 bit in più di informazione aggiuntivo. #proof[ $ EE[l_c] = sum_(i=1)^n p_i ceil(log_D 1/p_i) < sum_(i=1)^n p_i (log_D 1/p_i + 1) $ $ = H_D(XX) + 1 $ ]<proof> Quindi, combinando questo risultato con $EE[l_i] >= H_D (XX)$ _che vale per ogni codice istantaneo $c$_, otteniamo che il codice di Shannon utilizza un numero di bit che è compreso tra l'entropia e una variabile additiva di 1 bit, in altre parole si avvicina al codice teorico migliore (entropia) sprecando nel caso peggiore un simbolo in più del necessario. Tuttavia sorge un problema, perché l'inefficienza dei codici di Shannon cresce linearmente con la lunghezza del messaggio da codificare. Infatti, la lunghezza della codifica di Shannon di un messaggio $(x_1,dots, x_n)$, generato con $n$ estrazioni da una sorgente $angle.l Chi, p angle.r$, è pari a $ sum_(i=1)^n ceil(log_D 1 / p(x_i)) $, che cresce linearmente con $n$. Per risovere questa situazione possiamo usare una tecnica nota come *codifica a blocchi* == Codifica a blocchi === Definizione La codifica a blocchi suddivide ogni messaggio in blocchi di simboli sorgente dove ogni blocco ha la stessa lunghezza. I blocchi vengono quindi codificati con un codice per la sorgente i cui simboli sono tutti i possibili blocchi di lunghezza data. Quindi a partire dalla nostra sorgente $angle.l Chi, p angle.r$ avendo $C: Chi -> D^+$ _estensione del codice_, vale che $l_c (x_1,dots, x_n)$ = $sum_(i = 1)^n ceil(log_D 1/p_i) = log_D ceil(1/(product_(i = 1)^n p(x_i)))$ quindi in $l_c (x_1,dots, x_n) = log_D ceil(1 / P(x_i, dots, x_n))$, Questo definisce il modello $angle.l Chi^n, P_n angle.r$ con codice $C_n: Chi^n -> D^n$, dove $Chi^n$ è l'insieme di $n"-uple" (x_1,dots, x_n)$ di simboli di $Chi$ e $P_n$ è la distribuzione su $Chi^n$ associata a $n$ estrazioni identicamente distribuite secondo $p$. Quindi Shannon sta spostando il problema alla sorgente, da $angle.l Chi, p angle.r$ a $angle.l Chi^n, P_n angle.r$. === Entropia su $P_n$ Sia $Chi$ una variabile casuale con distribuzione $p$,lavorando con la codifica a blocchi abbiamo $Chi_1,dots, Chi_n$ variabili casuali anch'esse con distribuzione $p$. Abbiamo che $P_n (x_1, dots, x_n) = product_(i = 1)^n p(x_i)$ definiamo l'entropia $ H(XX_1, dots, XX_n) = sum_(x_1, dots, x_n) P_n (x_1,dots, x_n)log_2 1/(P_n (x_1, dots, x_n)) $ _notiamo che il primo termine della moltiplicazione è un produttoria e il secondo possiamo ridurlo a $sum_(i = 1)^n log_2 1/(p(x_i))$_, quindi ricavo che $ H(Chi_1, dots, Chi_n) = sum_x_1, dots, sum_x_n (product_(i=1)^n p(x_i))sum_(i=1)^n log_2 1/(p(x_i)) $ $ = sum_(i=1)^n sum_x_i p(x_i) log_2 1/p(x_i) $ $ = n H(XX) $ Quindi sto sommando la stessa entropia, cioè l'entropia della sorgente a blocchi di $n$ simboli è $n$ volte l'entropia della sorgente base. Siamo ora pronti per enunciare e dimostrare il vero primo teoreama di Shannon o _source coding_. == Teorema (Primo teorema di Shannon) #theorem(name: "Primo teorema di Shannon", numbering: none)[ Sia $C_n: Chi^n -> D^+$ un codice di Shannon D-ario a blocchi per la sorgente $angle.l Chi, p angle.r$, ossia $l_c (x_1, dots, x_n) = ceil(log 1/P(x_1, dots, x_n))$ allora $ lim_(n->oo) 1/n EE[l_C_n] = H_D (XX) $ ]<thm> Questo risultato dimostra che se codifichiamo con Shannon a blocchi, allora la lunghezza media della parola di codice per simbolo sorgente è asintotica all'entropia quando la lunghezza del blocco cresce all'infinito, _in altre parole il codice di Shannon diventa asintoticamente ottimo_. #proof[ Osserviamo che vale $ H_D (XX_1, dots, XX_n) <= EE[l_C_n] <= H_D (XX_1, dots, XX_n) + 1 $ $ = n H_D (XX) <= EE[l_C_n] <= n H_D (XX) + 1 $ _Dividendo entrambi i mebri per n otteniamo_ $ H_D (XX) <= 1/n EE[l_C_n] <= H_D (XX) + 1/n $ Da quest'ultima relazione ricaviamo l'enunciato del teorema, infatti per $n -> oo$ abbiamo che $1/n -> 0$ e quindi $1/n EE[l_C_n] -> H_D (XX)$ ]<proof> Quindi Shannon dimostra che in assenza di rumore, codificando a blocchi $EE$ si "schiaccia" verso l'entropia, _quindi più grande è il blocco più grande è il vantaggio_. == Significato operativo all'entropia relativa Un fatto che per ora non abbiamo mai considerato è che in realtà il modello teorico di Shannon $angle.l Chi, p angle.r$ è un modello (troppo) ideale, nella realtà $p$ non la conosciamo (nella maggior parte dei casi), quindi è necessario fare una stima usando un altro modello $angle.l Y, q angle.r$ che simula il modello $Chi$. Quindi ora che abbiamo associato l’entropia alla lunghezza minima media di codici istantanei, diamo un analogo significato operativo all’entropia relativa, mostrando che essa corrisponde alla differenza fra la lunghezza media di un codice di Shannon costruito sul modello di sorgente $Chi$ e quello di un codice di Shannon costruito su un diverso modello di sorgente $Y$. #theorem()[ Dato un modello sorgente $angle.l Chi, p angle.r$, se $c: Chi -> D^+$ è un codice di Shannon con lunghezze $l_c (x) = ceil(1/q(x))$, dove $q$ è una distribuzione arbitraria su $XX$, allora $ EE [l_c] < H_D (XX) + D(X||Y) + 1 $ dove $XX$ ha distribuzione $p$ e $Y$ ha distribuzione $q$. ]<thm> #proof[ Osserviamo che $ EE[l_c] = sum_(x in Chi) p(x) ceil(log_D 1/q(x)) < sum_(x in Chi) p(x) log_D 1/q(x) + 1 $ $ = sum_(x in Chi) p(x) log_D (1/q(x) p(x)/p(x)) +1 = sum_(x in Chi) p(x) log_D (p(x)/p(x) 1/p(x)) + 1 $ $ = sum_(x in Chi) p(x) log_D p(x)/q(x) + sum_(x in Chi) p(x) log_D 1/p(x)+1 $ $ = D(Chi || Y) + H_D (Chi)+1 $ ]<proof>
https://github.com/felsenhower/kbs-typst
https://raw.githubusercontent.com/felsenhower/kbs-typst/master/examples/15.typ
typst
MIT License
#let count = 8 #let nums = range(1, count + 1) #let fib(n) = { if n <= 2 { 1 } else { fib(n - 1) + fib(n - 2) } } The first #count Fibonacci Numbers are: #align(center)[ #table( columns: count, ..(nums.map(n => $F_#n$)), ..(nums.map(n => str(fib(n)))), ) ]
https://github.com/ymgyt/techbook
https://raw.githubusercontent.com/ymgyt/techbook/master/math/matrix/linear_transformation.typ
typst
== 線形変換の表現行列 線形変換 $f$ がどのような変換かは行列で表現できる。 \ 座標 $vec(x,y)$ の変換を考える。\ $ f vec(x,y) &= f brace.l vec(x,0) + vec(0,y) brace.r \ &= f brace.l x vec(1,0) + y vec(0,1) brace.r \ &= f x vec(1,0) + f y vec(0,1) ("線形性") \ &= x f vec(1,0) + y f vec(0,1) $ と表せる。\ したがって、$f vec(1,0)$と$f vec(0,1)$が決まれば$f vec(x,y)$も決まる。\ ここで \ $ f vec(1,0) = vec(a,c), f vec(0,1) = vec(b,d) $ と仮定する。すると $ f vec(x,y) &= x f vec(1,0) + y f vec(0,1) \ &= x vec(a,c) + y vec(b,d) \ &= vec(a x, c x) + vec(b y, d y) \ &= vec(a x + b y, c x + d y) \ &= mat( a, b; c, d; ) vec(x,y) $ よって \ $ f vec(1,0) = vec(a,c), f vec(0,1) = vec(b,d) $ の場合、線形変換$f$は行列を用いて以下のように表せる。 $ f vec(x,y) = mat(a,b; c,d;) vec(x,y) $
https://github.com/pank-su/report_2
https://raw.githubusercontent.com/pank-su/report_2/main/main.typ
typst
#import "templates/index.typ": * #import "templates/utils.typ": * #import "libs/tablex.typ": * // Тут указываем только авторов [authors] и название работы [title] #show: index.with(authors: ("<NAME>", ), title: [ОТЧЁТ О ПРАКТИКЕ]) // ch -- center heading #ch("Введение") Производственная практика проходила на предприятии ООО “ВАЛДАЙ РОБОТЫ”. Основной вид деятельности предприятия: «Производство промышленных роботов и робототехнических устройств» Структура предприятия представлена на рисунке @org_structure. #figure( image(ip("org_structure.png")), caption: "Структура организации" ) <org_structure> Практика будет проходить в отделе разработки ПО, в подотделе разработки ПО высокого уровня. Перед отделом стоят цели разработки автономной работы роботизированных устройств, а также разработки связанного с этим ПО, например, программ для операторов устройств. Отдел не имеет фиксированных требований к конкретному программному обеспечению, что позволяет использовать наиболее подходящие инструменты для каждой задачи. В настоящий момент работа ведется с помощью следующих программ: \1. Редактор исходного кода Visual Studio Code: Описание: Популярный редактор с открытым исходным кодом, разработанный Microsoft. Преимущества: | Поддержка подсветки синтаксиса для различных языков программирования. | Множество расширений, добавляющих дополнительные функции, такие как отладка, автодополнение кода и интеграция с системами контроля версий. | Кроссплатформенность (доступен для Windows, macOS и Linux). Использование: В отделе используется для написания кода на различных языках программирования, таких как C++, Python, JavaScript и Go. \2. IDE Keil µVision: Описание: Интегрированная среда разработки (IDE) для микроконтроллеров семейства ARM Cortex-M. Преимущества: | Встроенный компилятор, отладчик и симулятор. | Поддержка различных отладочных инструментов, таких как J-Link и ULINK. | Библиотека готовых к использованию программных модулей. Использование: В отделе используется для разработки программного обеспечения для микроконтроллеров, используемых в различных проектах. \3. Git: Описание: Система контроля версий, позволяющая отслеживать изменения в файлах и коде. Преимущества: | Позволяет работать над проектами совместно с другими разработчиками. | Помогает отслеживать историю изменений и откатывать к предыдущим версиям. | Обеспечивает децентрализованное хранение кода. Использование: В отделе используется для контроля версий исходного кода, документации и других файлов. \4. Gitea: Описание: Локальный Git-сервер, позволяющий хранить и управлять Git-репозиториями. Преимущества: | Позволяет работать с Git-репозиториями в локальной сети без доступа к интернету. | Обеспечивает более высокий уровень безопасности и контроля над кодом. | Прост в установке и использовании. Использование: В отделе используется для хранения Git-репозиториев, доступ к которым требуется только сотрудникам отдела. Задачей на производственную практику является разработка требований к программным модулям, их интеграция, отладка и тестирование приложения по работе с картой в RMS (Robot Management System). = Описание требование к программным модулям Для уже разработанной информационной системы будет разработан дополнительный программный модуль для отображения карты в режиме реального времени. В данном модуле необходимо реализовать: | Размещение и настройка масштаба карты: посредством жестов, с помощью элементов управления и с помощью нативных контроллеров (например с помощью мыши); | Корректное отображение проходимой и непроходимой зоны для робота. | Корректная работа модуля на операционных системах: Windows, Linux, macOS, Android, а также иметь реализацию в виде веб-приложения. При этом должна обеспечиваться мультиплатформенность приложения и удобный визуальный и понятный интерфейс. Данный модуль должен успешно работать с разработанными модулями: | map_helper -- это приложение, представляющее собой REST-API для загрузки карты в map_server ROS2 посредством HTTP-запросов, что позволяет загружать карты извне. Для более удобной интеграции, необходимо доработать или изменить данный модуль. | map_server ROS2 -- это приложение, которое помогает роботам, понимать своё положение пространстве и пространство в целом (куда они могут двигаться). = Интеграция программных модулей == Построение UML-диаграммы компонентов ПП На рисунке @components представлена UML-диаграмма компонентов информационной системы. Описание некоторых частей диаграммы: map_kmp -- разрабатываемый модуль карты, который включает в себя общую часть кода, которая запускается на всех платформах (commonMain) нативные части: | desktopMain -- код, который будет запускаться только на компьютере; | wasmJsMain -- код, который будет запускаться только в веб-приложениями; | androidMain -- код, который работает только на операционных системах Android. На диаграмме жёлтым закрашены модули, которые будут разработаны и изменены для удобной интеграции в ходе выполнения задания практики. #rotate(-90deg, reflow: true)[ #figure( image(ip("components3.png")), caption: "Диаграмма компонентов" ) <components> ] == Технологии, используемые для интеграции Для создания и интеграции разработанных модулей были использованы следующие инструменты. ROS2 (Robot Operating System 2) - это следующее поколение гибкой и расширяемой платформы для разработки программного обеспечения роботов. Он предоставляет набор инструментов, библиотек и конвенций для управления роботами, включая коммуникацию между различными компонентами робота, управление устройствами, обработку данных сенсоров, планирование движения и многое другое. Плюсы ROS2: | Мультиплатформенность: ROS2 поддерживает различные операционные системы, такие как Linux, Windows и macOS, что позволяет разработчикам использовать их предпочитаемые операционные системы для разработки робототехнических приложений. | Повышенная надежность: ROS2 предлагает улучшенную систему управления памятью, механизмы обработки ошибок и более надежные способы коммуникации между узлами, что способствует повышению стабильности и надежности робототехнических систем. | Поддержка реального времени: В ROS2 внедрены механизмы, позволяющие управлять робототехническими системами в реальном времени, что делает его более подходящим для широкого спектра приложений, включая критичные по времени задачи. | Улучшенная безопасность: ROS2 включает в себя механизмы аутентификации, авторизации и шифрования, что повышает уровень безопасности системы, особенно в контексте применения роботов в чувствительных областях, таких как медицина или автономные автомобили. | Масштабируемость и расширяемость: ROS2 предлагает гибкую архитектуру, которая позволяет разработчикам создавать модульные системы, легко масштабируемые для различных типов роботов и задач. | Активное сообщество: ROS2 поддерживается широким сообществом разработчиков и исследователей, что обеспечивает доступ к богатому набору инструментов, библиотек и документации, а также возможность сотрудничать и обмениваться знаниями с другими участниками сообщества. @ros2 ROSbridge - это программное обеспечение, которое обеспечивает коммуникацию между ROS (Robot Operating System) и другими системами и платформами через веб-интерфейс. Он предоставляет мост между ROS и веб-технологиями, позволяя взаимодействовать с робототехническими приложениями ROS через веб-интерфейс, включая веб-браузеры и приложения на различных платформах. Плюсы ROSbridge: | Универсальность: ROSbridge обеспечивает универсальное взаимодействие с системой ROS, позволяя использовать различные платформы и технологии для взаимодействия с робототехническими приложениями. | Простота интеграции с веб-технологиями: ROSbridge упрощает интеграцию ROS с веб-технологиями, такими как HTML, JavaScript и WebSocket, что делает возможным управление и мониторинг роботов через интернет и веб-браузеры. | Расширяемость: ROSbridge может быть расширен и адаптирован для поддержки различных протоколов и форматов данных, что делает его гибким инструментом для взаимодействия с различными системами и платформами. | Поддержка множества приложений: ROSbridge позволяет создавать различные приложения, включая удаленное управление роботами, визуализацию данных, мониторинг и отладку, что делает его полезным инструментом для разработчиков и исследователей в области робототехники. @rosbridge WebSockets - это протокол веб-коммуникации, который обеспечивает постоянное соединение между клиентом и сервером веб-приложения. Он позволяет двум сторонам взаимодействовать между собой, отправляя данные в реальном времени без необходимости постоянного обновления страницы. Плюсы WebSockets: | Двустороннее взаимодействие: WebSockets поддерживает двустороннюю связь между клиентом и сервером, что позволяет как клиенту, так и серверу отправлять и получать данные в режиме реального времени. | Малая нагрузка на сеть: WebSockets использует одно постоянное соединение, что уменьшает нагрузку на сеть и снижает задержку в передаче данных по сравнению с традиционными HTTP-запросами. | Низкая задержка: Поскольку соединение постоянно открыто, WebSockets обеспечивает низкую задержку и быстрое обновление данных между клиентом и сервером, что делает его идеальным для приложений, требующих мгновенной обратной связи. Kotlin - это статически типизированный язык программирования, разработанный компанией JetBrains. Он предназначен для создания приложений как для JVM (Java Virtual Machine), так и для других платформ, включая Android, JavaScript, Native и другие. Плюсы Kotlin: | Безопасность типов: Kotlin предоставляет статическую типизацию, что помогает предотвратить ошибки типов во время компиляции. Это делает код более безопасным и надежным. | Удобство синтаксиса: Синтаксис Kotlin чистый, лаконичный и более выразительный по сравнению с Java. Он уменьшает количество кода и делает его более читабельным. | Null-безопасность: Kotlin имеет встроенную поддержку null-безопасности, что помогает предотвращать NullPointerException, что является распространенной проблемой в Java. | Расширения функциональности: Kotlin предлагает множество улучшенных функций по сравнению с Java, таких как лямбда-выражения, расширения функций, инлайн-функции и многое другое, что способствует более эффективной разработке. @kotlin Kotlin Multiplatform - это технология в языке программирования Kotlin, которая позволяет разработчикам создавать общий код, который может быть использован на различных платформах, таких как JVM, Android, iOS, JavaScript и другие. Суть Kotlin Multiplatform заключается в возможности разработки приложений с общим кодом, который можно использовать на различных целевых платформах, минимизируя дублирование кода и упрощая его поддержку. Плюсы Kotlin Multiplatform: | Общий код: Kotlin Multiplatform позволяет разработчикам писать общий код для различных платформ, таких как JVM, Android, iOS и JavaScript, что сокращает время разработки и минимизирует дублирование кода. | Улучшенная поддержка для множества платформ: Kotlin Multiplatform поддерживает широкий спектр платформ, включая мобильные устройства (Android и iOS), веб (JavaScript), серверные приложения (JVM) и другие, что делает его универсальным инструментом разработки. | Интеграция с существующим кодом: Kotlin Multiplatform позволяет интегрировать общий код с существующими проектами на различных платформах, включая проекты на Java, Swift, Objective-C и JavaScript. | Удобство использования средств разработки: Kotlin Multiplatform интегрируется с различными средствами разработки, такими как IntelliJ IDEA, Android Studio и Xcode, что обеспечивает удобство использования и отладки общего кода на различных платформах. | Повышенная переносимость кода: Благодаря Kotlin Multiplatform разработчики могут создавать приложения с общим кодом, который можно легко переносить между различными платформами, что повышает гибкость и масштабируемость проектов. @kmp IntelliJ IDEA - это интегрированная среда разработки (IDE) для языков программирования Java, Kotlin, Groovy, Scala, и других. Разработана компанией JetBrains и предоставляет разработчикам широкий набор инструментов для эффективной работы над проектами. Плюсы IntelliJ IDEA: | Мощный инструментарий: IntelliJ IDEA предоставляет широкий спектр инструментов для разработки, включая редактор кода с подсветкой синтаксиса, автодополнение, рефакторинг, отладчик, систему контроля версий и многое другое. | Поддержка множества языков: Помимо Java, IntelliJ IDEA поддерживает также Kotlin, Groovy, Scala, JavaScript, TypeScript и другие языки программирования, что делает его универсальным инструментом для разработки различных типов приложений. | Интеграция с фреймворками и технологиями: IntelliJ IDEA обладает интеграцией с популярными фреймворками и технологиями, такими как Spring, Hibernate, Android SDK, Maven, Gradle и другими, что упрощает создание и развертывание приложений. | Удобство использования: Интерфейс IntelliJ IDEA интуитивно понятен и удобен в использовании, что позволяет разработчикам сосредотачиваться на написании кода, а не на поиске и настройке инструментов. | Богатый набор плагинов: IntelliJ IDEA поддерживает богатый экосистему плагинов, которые позволяют расширить его функциональность и адаптировать под конкретные потребности разработчика. @idea Jetpack Compose - это современная библиотека для разработки пользовательских интерфейсов (UI) на языке Kotlin для платформы Android. Она предоставляет декларативный подход к созданию пользовательских интерфейсов, что позволяет разработчикам описывать внешний вид приложения как набор компонентов и их свойств, а не через императивные последовательности операций. Плюсы Jetpack Compose: | Декларативный подход: Jetpack Compose использует декларативный подход к созданию пользовательских интерфейсов, что делает код более читабельным, понятным и легким в поддержке. | Упрощение разработки: Благодаря декларативному подходу, Jetpack Compose значительно упрощает разработку пользовательских интерфейсов, сокращая количество кода, необходимого для описания интерфейса. | Интерактивность и анимация: Jetpack Compose обеспечивает простое добавление интерактивности и анимации в пользовательские интерфейсы, что делает приложения более привлекательными для пользователей. | Совместимость с существующим кодом: Jetpack Compose может быть легко интегрирован с существующим кодом на платформе Android, что позволяет постепенно внедрять его в существующие проекты. | Поддержка разработки для различных устройств: Jetpack Compose предоставляет инструменты для создания адаптивных пользовательских интерфейсов, которые могут эффективно работать на различных устройствах и экранах. | Совместимость с Android-стандартами: Jetpack Compose интегрируется с существующими инструментами и стандартами разработки Android, такими как Android Studio и AndroidX, что обеспечивает удобство использования и поддержки. | Активная поддержка и развитие: Jetpack Compose активно поддерживается и развивается командой Google, что обеспечивает доступность к обновлениям, исправлениям ошибок и новым возможностям для разработчиков. @jetpack-compose = Тестирование и отладка программных модулей Тестирование программного обеспечения - это метод контроля качества ПО, направленный на: | Выявление и исправление ошибок: поиск и устранение дефектов, влияющих на функциональность, производительность и безопасность ПО; | Подтверждение соответствия требованиям: проверка соответствия ПО спецификациям, техническим заданиям и ожиданиям пользователей; | Оценка надежности и производительности: измерение и анализ показателей производительности, таких как скорость работы, время отклика и потребление ресурсов. В ходе интеграции, для более простой работы с модулем map_helper, были написаны UNIT-тесты для проверки корректной роботоспособности модуля. Код unit-тестов представлен в приложении Б. На рисунке @complete представлено прохождение всех тестов. #figure( image(ip("test_complete.png")), caption: "Пройденные тесты" ) <complete> В ходе создании и его последующей интеграции модуля map_kmp, было проведено ручное тестирование. Аннотация к тестам приведена в таблице @anotation2. #figure( table(columns: (1fr, 1fr), [Название проекта],[map_kmp], [Рабочая версия],[0.1], [Имя тестирующего], [<NAME>], [Дата теста], [27.03.2024] ), caption: "Аннотация к тестам MapHelper", ) <anotation2> Тесты приложения "MapHelper" представлены в таблице @tests2. #pagebreak() #figure( table(columns: (1.2fr, 1.3fr, 2fr, 3fr, 1.7fr, 1.7fr, 1.4fr), table.header([Тестовый пример №], [Приоритет тестирования], [Краткое изложение теста], [Этапы теста], [Ожидаемый результат], [Фактический результат], [Статус]), [ТП-01], [Высокий], [Запуск приложения на всех операционных системах], [ -- Запуск приложения на Android; -- Запуск приложения на Linux; -- Запуск приложения в веб. ],[Отображение карты на всех устройствах, как на рисунке @map_on_device],[Отображение карты на всех устройствах, как на рисунке @map_on_device],[Пройден], [ТП-02],[Средний] ,[Корректное обновление карты при её изменение на сервере], [Сменить карту с помощью map_helper], [Отображение карты на которую сменили], [Отображение карты на которую сменили], [Пройден], [ТП-03], [Высокий], [Перемещение с помощью жеста], [Потянуть за карту и переместить на определённый промежуток], [Перемещение на указанный промежуток], [Перемещение на указанный промежуток], [Пройден], [ТП-04], [Высокий],[Приближение карты с помощью двух жестов], [Приближение с помощью стандартного жеста двумя пальцами или с помощью колеса прокрутки], [Приближение на указанное расстояние],[Приближение на указанное расстояние],[Пройден], [ТП-05], [Средний], [Поворот карты с помощью жестов], [ Повернуть карту с помощью жеста (двумя пальцами) или с помощью зажатия левой кнопки мыша ], [Поворот в заданном направлении], [Поворот в заданном направлении], [Пройден], [ТП-06], [Высокий], [Корректное вычисление масштаба], [ -- Загрузить карту с меткой в один метр; -- Изменить масштаб на один метр; ], [Линейка масштаба чётко совпадает с меткой], [Линейка масштаба чётко совпадает с меткой], [Пройден] ), caption: "Проведённые ручные тесты над модулем map_kmp", ) <tests2> #figure( image(ip("map_on_device.jpg"), height: 90%), caption: "Пройденные тесты" ) <map_on_device> #ch("Заключение") В ходе производственной практики был разработан и успешно интегрирован программный модуль для работы с картой "map_server" в системе ROS2, чей код представлен в приложении А. Полученный опыт включает в себя не только разработку, но и тестирование данного модуля, осуществленное с применением разнообразных подходов и инструментов, включая модульное тестирование с использованием языка программирования Kotlin, а также ручное тестирование функциональности созданного модуля. В перспективе планируется дальнейшее развитие системы с добавлением функционала по загрузке карты напрямую через приложение, что позволит значительно расширить возможности и удобство использования системы. Этот процесс потребует дальнейшей работы над модулем, его оптимизацию и адаптацию к новым требованиям, что представляет собой интересный вызов для дальнейшего профессионального развития. #ch("Список использованных источников") #bibliography("bibliography.yml", title: none, full: true, style: "gost-r-705-2008-numeric") #chn([ПРИЛОЖЕНИЕ А Листинг разработанного модуля]) #show raw: set text(hyphenate: false, size: 10pt) #show raw: set par(justify: false, leading: 1em, first-line-indent: 0em) androidMain/kotlin/Platform.android.kt #raw(read("./src/app/androidMain/kotlin/Platform.android.kt"), lang: "kotlin") androidMain/kotlin/utils/ImageManipulations.android.kt #raw(read("src/app/androidMain/kotlin/utils/ImageManipulations.android.kt"), lang: "kotlin") androidMain/kotlin/utils/Modifiers.android.kt #raw(read("src/app/androidMain/kotlin/utils/Modifiers.android.kt"), lang: "kotlin") androidMain/kotlin/su/pank/rmsui/MainActivity.kt #raw(read("src/app/androidMain/kotlin/su/pank/rmsui/MainActivity.kt"), lang: "kotlin") commonMain/kotlin/App.kt #raw(read("src/app/commonMain/kotlin/App.kt"), lang: "kotlin") commonMain/kotlin/Platform.kt #raw(read("src/app/commonMain/kotlin/Platform.kt"), lang: "kotlin") commonMain/kotlin/utils/ImageManipulations.kt #raw(read("src/app/commonMain/kotlin/utils/ImageManipulations.kt"), lang: "kotlin") commonMain/kotlin/utils/KoinIntegration.kt #raw(read("src/app/commonMain/kotlin/utils/KoinIntegration.kt"), lang: "kotlin") commonMain/kotlin/utils/Modifiers.kt #raw(read("src/app/commonMain/kotlin/utils/Modifiers.kt"), lang: "kotlin") commonMain/kotlin/ui/components/map/MapControllers.kt #raw(read("src/app/commonMain/kotlin/ui/components/map/MapControllers.kt"), lang: "kotlin") commonMain/kotlin/ui/components/map/MapState.kt #raw(read("src/app/commonMain/kotlin/ui/components/map/MapState.kt"), lang: "kotlin") commonMain/kotlin/ui/components/map/MapView.kt #raw(read("src/app/commonMain/kotlin/ui/components/map/MapView.kt"), lang: "kotlin") commonMain/kotlin/ui/di/uiModule.kt #raw(read("src/app/commonMain/kotlin/ui/di/uiModule.kt"), lang: "kotlin") commonMain/kotlin/ui/screens/main/MainScreen.kt #raw(read("src/app/commonMain/kotlin/ui/screens/main/MainScreen.kt"), lang: "kotlin") commonMain/kotlin/ui/screens/main/MainScreenModel.kt #raw(read("src/app/commonMain/kotlin/ui/screens/main/MainScreenModel.kt"), lang: "kotlin") commonMain/kotlin/domain/di/domainModule.kt #raw(read("src/app/commonMain/kotlin/domain/di/domainModule.kt"), lang: "kotlin") commonMain/kotlin/domain/SetImageColorsUseCase.kt #raw(read("src/app/commonMain/kotlin/domain/SetImageColorsUseCase.kt"), lang: "kotlin") commonMain/kotlin/data/RosClient.kt #raw(read("src/app/commonMain/kotlin/data/RosClient.kt"), lang: "kotlin") commonMain/kotlin/data/MapHelperRepository.kt #raw(read("src/app/commonMain/kotlin/data/MapHelperRepository.kt"), lang: "kotlin") commonMain/kotlin/data/MapLoaderRepository.kt #raw(read("src/app/commonMain/kotlin/data/MapLoaderRepository.kt"), lang: "kotlin") commonMain/kotlin/data/model/MapDTO.kt #raw(read("src/app/commonMain/kotlin/data/model/MapDTO.kt"), lang: "kotlin") commonMain/kotlin/data/model/ErrorDTO.kt #raw(read("src/app/commonMain/kotlin/data/model/ErrorDTO.kt"), lang: "kotlin") commonMain/kotlin/data/di/dataModule.kt #raw(read("src/app/commonMain/kotlin/data/di/dataModule.kt"), lang: "kotlin") desktopMain/kotlin/Platform.jvm.kt #raw(read("src/app/desktopMain/kotlin/Platform.jvm.kt"), lang: "kotlin") desktopMain/kotlin/main.kt #raw(read("src/app/desktopMain/kotlin/main.kt"), lang: "kotlin") desktopMain/kotlin/utils/Modifiers.desktop.kt #raw(read("src/app/desktopMain/kotlin/utils/Modifiers.desktop.kt"), lang: "kotlin") nonAndroidMain/kotlin/utils/ImageManipulations.nonAndroid.kt #raw(read("src/app/nonAndroidMain/kotlin/utils/ImageManipulations.nonAndroid.kt"), lang: "kotlin") wasmJsMain/kotlin/utils/Modifiers.wasmJs.kt #raw(read("src/app/wasmJsMain/kotlin/utils/Modifiers.wasmJs.kt"), lang: "kotlin") wasmJsMain/kotlin/Platform.wasmJs.kt #raw(read("src/app/wasmJsMain/kotlin/Platform.wasmJs.kt"), lang: "kotlin") wasmJsMain/kotlin/main.kt #raw(read("src/app/wasmJsMain/kotlin/main.kt"), lang: "kotlin") // #raw(read("./src/lib/Parser.kt"), lang: "kotlin") \ //#allFiles(json("src/app.json").at(0)) #chn([ПРИЛОЖЕНИЕ Б Листинг разработанных UNIT-тестов]) // #show raw: set text(hyphenate: false, size: 10pt) // #show raw: set par(justify: false, leading: 1em, first-line-indent: 0em) MapHelperTest.kt #raw(read("./src/tests/MapHelperTest.kt"), lang: "kotlin") MapDTO.kt #raw(read("./src/tests/MapDTO.kt"), lang: "kotlin") ErrorDTO.kt #raw(read("./src/tests/ErrorDTO.kt"), lang: "kotlin")
https://github.com/RafDevX/NodeBB-DD2391
https://raw.githubusercontent.com/RafDevX/NodeBB-DD2391/master/report/report.typ
typst
#import "@preview/tablex:0.0.5": tablex, colspanx, rowspanx #set page("a4") #set text(12pt) #let kthblue = rgb("#2258a5") #show link: it => underline(stroke: 1pt + kthblue, text(fill: kthblue, it.body)) #show heading: set block(above: 1.4em, below: 1em) #align(center + horizon)[ #heading(outlined: false)[Cybersecurity Project DD2391/DD2394] #heading(outlined: false, level: 2)[Group 2] #v(20pt) #grid(columns: (120pt, 120pt), row-gutter: 20pt, align(center)[ <NAME>\ #link("mailto:<EMAIL>") ], align(center)[ <NAME>\ #link("mailto:<EMAIL>") ], align(center)[ <NAME>\ #link("mailto:<EMAIL>") ], align(center)[ <NAME>\ #link("mailto:<EMAIL>") ]) #v(20pt) #smallcaps[october 2023] Cybersecurity Overview, KTH Royal Institute of Technology ] #pagebreak() #set par(justify: true) #set heading(numbering: "1.1.") #set page(paper: "a4", header: [ #set text(10pt) #smallcaps[Cybersecurity Project DD2391/DD2394] #h(1fr) #smallcaps[Group 2] #line(length: 100%, stroke: 0.5pt + rgb("#888")) ], footer: [ #set align(right) #set text(10pt) #line(length: 100%, stroke: 0.5pt + rgb("#888")) Page #counter(page).display("1 of 1", both: true) ]) #counter(page).update(1) #outline() #pagebreak() = Problems == Database Leakage and Corruption <db-leakage> In today's digital age, it is important to ensure data is secure. It is unfortunately common for databases to be exposed to the internet #cite("shodan-mysql", "shodan-mongodb"), which leaves them vulnerable to remote attacks. If a malicious actor manages to gain access to the database, for example, by brute-forcing the password, it can access, expose and tamper with its content. The default installation of MongoDB listens on all interfaces, which means that if a firewall is not configured, it would be exposed to the internet, leaving it vulnerable. NodeBB uses MongoDB (among other options) to persistently store its data, which includes public information, such as posts and replies, but also personal or sensitive information, like (hashed) passwords, names, email addresses, IP addresses, API keys and so on. If this data were to be accessed or modified by an unauthorized and/or malicious user, it could be used nefariously, and result in spam, identity theft, social engineering attacks, and even being sold to the highest bidder. Depending on the size and reputation of the NodeBB forum in question, all of these could be a blow to its activity. As such, we would like to prevent unauthorized and remote access to the database, securing the data that it stores. === Chosen Countermeasures and Implementations With this threat model in mind, we have devised two strategies to improve the security of the database installation. As opposed to a bare metal installation, we have opted to deploy containerized applications using *Docker* @docker. Firstly, we used *Docker Compose* @docker-compose to deploy our NodeBB and MongoDB instances. With this setup, both applications are run in an isolated network that is not exposed to the internet @docker-networks. It is then possible to expose specific ports of specific containers. We have exposed port `4567` of the NodeBB container to allow access to the forum from the outside world, while keeping port `27017` of the MongoDB container closed. In contrast with spinning up two separate containers and then adding them to the same Docker network, using Docker Compose abstracts this complexity away by automatically creating a network for all the containers defined in `docker-compose.yml`. Additionally, we generate a random 256-bit password for the `nodebb` database user. The `mongo` Docker image supports providing custom scripts that are run when the database is first created (i.e., the first time the container is started) by placing them in the `/docker-entrypoint-initdb.d/` folder inside the container. The script we created, `init_user.js`, adds a new user, `nodebb`, to the `nodebb` database, with full permissions over it, and only it. Its password is then printed to the logs, allowing us to setup the database connection on NodeBB. We have opted to use NodeJS' `crypto` library for the password generation instead of `Math.random`, due to its secure pseudo-randomness. === Difficulties and Solutions During the implementation of these countermeasures, we have stumbled upon a few challenges. The Docker installation method is not listed on NodeBB's documentation @nodebb-docs, which meant we had to figure out how to set it up ourselves. There is, however, both a `Dockerfile` and a `docker-compose.yml` file in NodeBB's repository @nodebb-repo, which we used as a guideline. NodeBB also provides an official image, available as `ghcr.io/nodebb/nodebb`. Nevertheless, we had to find a way to persist the `config.json` file, which stores the database credentials and other configuration, inside the container. We had two requisites for a solution to this problem: firstly, it would need to persist this file if the container is destroyed (i.e., by running `docker compose down`); secondly, we should still be able to run the web installer from a clean install. The first approach we took to fix this problem only satisfied the first requisite, since we stopped being able to do a clean install from an empty database. We had mounted the `config.json` file using Docker bind mounts @docker-bind-mounts, but that meant that the file would have to be created beforehand, (which would not work on a clean database) otherwise Docker would mount it as a directory instead. On our second and final approach, we found out, by inspecting the code, that NodeBB supports passing the path to the `config.json` file in the `config` (lowercase) environment variable. We have then set this variable to `/etc/nodebb/config.json` and persisted the `/etc/nodebb` directory using a Docker volume @docker-volumes. Additionally, for the purpose of this project, we have not persisted files uploaded to the NodeBB forum (e.g., attachments to posts, profile pictures, and more), as they are not needed for the demonstration of the countermeasures. Finally, as can be evidenced by the difficulties mentioned above, the lack of documentation for NodeBB held us back in certain situations, and we had to resort to reading the source code instead. === Final Thoughts To conclude, by avoiding the exposure of the database to the internet we should prevent attacks from remote users. Nevertheless, this does not mean we do not need to supplement this measures with additional precautions, such as monitoring logs and network traffic, rotating passwords regularly, and other security measures, depending on the sensitivity of the information in the forum. #pagebreak() == Unauthorized Access <unauthorized-access> === Possible Attack Scenarios An attacker could target a *specific user* and try to brute-force their password in an online attack. The attacker could use a list of *common passwords* such as from the SecLists project @seclists-common-credentials or may have obtained a *specific list of passwords* that the target user uses on different websites, which could be likely candidates for the user's credentials for the NodeBB instance, or other likely passwords for that specific user. Additionally, the attacker could facilitate a botnet to *distribute* their attack over many IP addresses instead of originating all requests from a single IP. The attacker's goal could be either to compromise *confidentiality* and *integrity* by guessing the user's password and taking over their account, or to compromise *availability* by triggering an account lockout mechanism designed to prevent password guessing. Although compromising availability is strictly speaking not part of somebody gaining "unauthorized access", these two aspects have to be considered together when designing countermeasures, as their effectiveness depends on each other. Alternatively to targeting a specific user, the attacker could also run an *untargeted attack* by brute-forcing passwords of multiple users. All of these different attack variants can be arbitrarily combined. === Taxonomy In order to maintain an overview over the different attack scenarios, we introduce a 4-letter notation to distinguish between the different kinds of attacks, which is outlined in @notation. #figure(table( columns: (auto, auto, auto, auto), inset: 10pt, align: (left, left, left, left), [*Target*], [*Password List*], [*Distributed?*], [*Attacker Goal*], [*`T`*: targeted \ *`U`*: untargeted], [*`C`*: common list \ *`S`*: specific for (each) user], [*`D`*: distributed \ *`N`*: not distributed], [*`O`*: account takeover \ *`L`*: account lockout], ), caption: [Notation for _Unauthorized Access_ Attack Scenarios]) <notation> For example, TSDO denotes the attack scenario in which one specific user account is targeted, using a specific password list tailored for this user, and a distributed botnet, to achieve an account takeover. To describe a set of multiple attack scenarios, any letter can be replaced with `X` to denote "any". For example, UXXL denotes all attack scenarios aiming to lock out as many users as possible from their accounts. We should point out that there is no difference between XCXL and XSXL attacks because any set of passwords can be used to trigger an account lockout if such a system is implemented. Any other combination of attack properties is imaginable and should be subject to consideration. === NodeBB Default Countermeasures Before discussing possible additional countermeasures, we first examined the countermeasures that NodeBB is configured with by default. These countermeasures include a setting of allowing a maximum of 5 login attempts per hour, per user. If this limit is exceeded, the user account is locked for 60 minutes. Successful logins reset the number of login attempts, and so does the 60-minute lockout. Unfortunately, we could not find an explanation of this setting in the NodeBB documentation but it appears in the NodeBB admin panel under `Settings`~#sym.arrow~`Users`~#sym.arrow~`Account`~`Protection`, as can be seen in @account-settings. #figure( image("account_settings.svg", height: 20%), caption: "NodeBB Settings Related to Account Protection", ) <account-settings> The behavior of this account-locking mechanism can be verified in the NodeBB source code @nodebb-src-lockout. A locked account can be recovered by the user themselves by receiving a password reset link via email. For validation and demonstration purposes, we developed a Python script #footnote[available at `unauthorized_access/bruteforce.py` in the project repository submission] that executes a TCNX attack against a specific target user. We could validate that user accounts are indeed locked according to the setting. The script can easily be modified for untargeted attacks, and a modification for individual password lists per user is also possible. We could not identify any additional countermeasures by NodeBB against the threat models outlined in this section of the report, for example automatic IP blocking (manual IP blocking is possible though). Therefore, the default protections do not differentiate between distributed and non-distributed attacks. Since the default account locking settings lead to a maximum of 120 login attempts per day (43.800 per year), they are mostly sufficient when used in combination with a strong password policy (which is configurable with NodeBB)#footnote[For example, there exist $62^16 approx 4 dot 10^28$ different alphanumeric passwords of length 16.]. Therefore, NodeBB by default effectively protects against TCXO attacks. For TSXO attacks, it should be noted that a targeted attack with a manageable list of possible password candidates could be run in the background over a long period of time without the user noticing. NodeBB's protection against UXXO attacks are not sufficient because a single attacker can guess 43.800 passwords per year, _per user_. Assuming a large online forum with 100.000 users, this leads to a total amount of 4.4 billion guesses per year, which is not an acceptable risk, even if a strong password policy is employed. It is possible even among long passwords to choose a weak password that is not detectable automatically. Some users will choose these passwords, allowing their account to be taken over with this attack. Finally, NodeBB's countermeasures against XXXL account lockout attacks are effective in the sense that a user can always reset a lockout period by receiving a password reset link via email. However, this comes with two limitations: First, being required to reset your password via email is in some sense a degradation in availability; and second, there is nothing preventing a malicious attacker from spamming a large number of login requests, locking the account again faster than the time it takes the user to log in after unlocking it. Nevertheless, the default solution is better than nothing, and the request spamming could easily be mitigated by, for example, a web proxy in front of the application. The default situation is summarized in @default-mitigations. #let tableColors = ( none, none, none, none, none, none, none, green, red, red, green, none, none, red, red, red, red, none, none, yellow, yellow, yellow, yellow, none, none, none, none, none, none, none, none, none, none, none, none, none, ) #figure( grid( columns: (auto), rows: (auto, auto), gutter: 10pt, tablex( columns: (20pt, 50pt, 50pt, 50pt, 50pt, 20pt), rows: (20pt, 50pt, 50pt, 50pt, 50pt, 20pt), align: horizon + center, fill: (col, row) => tableColors.at(col + 6 * row), [], [*T*], colspanx(2)[*untargeted*], [*T*], [], [*C*], [TCDO], [UCDO], [UCNO], [TCNO], rowspanx(2, rotate(-90deg, text(hyphenate: false)[*takeover*])), rowspanx(2, rotate(-90deg, text(hyphenate: false)[*specific*])), [TSDO], [USDO], [USNO], [TSNO], rowspanx(2)[TXDL], rowspanx(2)[UXDL], rowspanx(2)[UXNL], rowspanx(2)[TXNL], rowspanx(2, rotate(-90deg, text(hyphenate: false)[*lockout*])), [*C*], [], colspanx(2)[*distributed*], colspanx(2)[*not distributed*], ), [Legend: #text(green)[■] good protection, #text(yellow)[■] some protection, #text(red)[■] no protection], v(5pt), ), caption: [NodeBB Default _Unauthorized Access_ Mitigations], ) <default-mitigations> === Countermeasure: Login CAPTCHA To improve the security of the application with regard to the threat models outlined in this chapter, different additional countermeasures were considered. We chose to implement a CAPTCHA challenge that has to be solved for each login attempt to make automated login attempts less feasible. Such a CAPTCHA can be accomplished by installing the NodeBB plugin `nodebb-plugin-spam-be-gone` @nodebb-plugin-spam-be-gone. In addition to executing CAPTCHAs when a new post is created, it also supports Google reCAPTCHA @google-recaptcha on the NodeBB login page. The installation is described in the appropriate README file of our GitHub repository. When setting up the plugin, we experienced issues such as error messages on the login page UI, either indicating a misconfiguration or a failed CAPTCHA, although the CAPTCHA was solved correctly. These issues could be resolved by making sure that a reCAPTCHA "v2" with checkbox "I am not a robot" API key is being used. Other options are not supported by the NodeBB plugin. With the CAPTCHA enabled while assuming that it indeed prevents almost all automated login attempts, the security considerations of our NodeBB instance change. It is no longer feasible to perform untargeted (UXXX) attacks because they require too many login attempts, which would have to be executed manually. Additionally, distributed (XXDX) attacks, as long as we limit our scope to botnets, are no longer feasible for the same reason. Nevertheless, TSNO attacks are still realistic, and it is still possible to force a targeted user into resetting their password with a non-distributed attack - meaning that TXNL attacks are not fully defended against. A full final overview is given in @final-mitigations. #let tableColors = ( none, none, none, none, none, none, none, green, green, green, green, none, none, green, green, green, red, none, none, green, green, green, yellow, none, none, none, none, none, none, none, none, none, none, none, none, none, ) #figure( grid( columns: (auto), rows: (auto, auto), gutter: 10pt, tablex( columns: (20pt, 50pt, 50pt, 50pt, 50pt, 20pt), rows: (20pt, 50pt, 50pt, 50pt, 50pt, 20pt), align: horizon + center, fill: (col, row) => tableColors.at(col + 6 * row), [], [*T*], colspanx(2)[*untargeted*], [*T*], [], [*C*], [TCDO], [UCDO], [UCNO], [TCNO], rowspanx(2, rotate(-90deg, text(hyphenate: false)[*takeover*])), rowspanx(2, rotate(-90deg, text(hyphenate: false)[*specific*])), [TSDO], [USDO], [USNO], [TSNO], rowspanx(2)[TXDL], rowspanx(2)[UXDL], rowspanx(2)[UXNL], rowspanx(2)[TXNL], rowspanx(2, rotate(-90deg, text(hyphenate: false)[*lockout*])), [*C*], [], colspanx(2)[*distributed*], colspanx(2)[*not distributed*], ), [Legend: #text(green)[■] good protection, #text(yellow)[■] some protection, #text(red)[■] no protection], v(5pt), ), caption: [NodeBB _Unauthorized Access_ Mitigations with CAPTCHA enabled], ) <final-mitigations> === Additional Considerations As outlined above, a secure password policy should be in place for the mitigations to be effective. Different approaches such as IP rate limiting and IP address blocking would be appropriate to further improve the security of the application. We also did not evaluate the security of password reset links sent out via email by NodeBB. Using Google reCAPTCHA has privacy implications, since every time a user visits the login site, a request is sent to Google. Evaluating these implications was out of scope for this report. Besides that, CAPTCHAs usually negatively impact the UX of an application. However, when implemented correctly, they generally present a good tradeoff between usability and security, as the security benefits can be immense (as outlined in this chapter). Modern CAPTCHA technologies such as Google reCAPTCHA v3 @recaptcha-docs-v3 (which is unfortunately not supported by `nodebb-plugin-spam-be-gone`) allow verifying the legitimacy of a request without user intervention by collecting data in the background, removing the UX impact. Evaluating these kinds of CAPTCHAs for our application was out of scope for this report. #pagebreak() == Unauthorized Administration <unauthorized-admin> In the default configuration of NodeBB, user accounts are only protected by a username and a password. Even though passwords can be relatively secure if they are long, unique, and randomly generated, *they might still be compromised*, for example, by phishing attacks. This is especially problematic for site administrators, whose accounts can access and modify site settings, forum posts, user information, and other sensitive data. As such, we would like to *lessen the impact in case of compromised administrator credentials*. One way to achieve that goal is through the use of *Two-Factor Authentication*, which is readily available as an official NodeBB plugin, `nodebb-plugin-2factor` @nodebb-plugin-2factor, and is installed by default, though it has to be enabled manually from the administrator panel. Instead of pursuing this approach, however, we *decided to support Passkeys*, a new secure passwordless authentication method developed by the FIDO Alliance, based on public-key cryptography @fido-passkeys. Passkeys rely on an _authenticator_, which might be a secure chip on the user's device (e.g., a mobile phone) or a separate hardware authentication device (such as a security key, like a YubiKey). This authenticator holds private keys for each associated passkey and performs the necessary cryptographic operations to securely identify the user to a _relying party_, such as the NodeBB website: the relying party generates a challenge which the authenticator cryptographically signs, enabling the relying party to verify that the provided challenge response has been signed by the private key associated with the public key that was mapped to the user during registration. Using passkeys also counts as two-factor authentication, completely replacing combinations such as a password + one-time passwords (OTP), since they are validated on-device with biometrics or a PIN code, therefore requiring both a "something you have" factor and a "something you are"/"something you know" factor. They are also phishing resistant, which neither passwords nor OTP are, due to their cryptographic nature: the private key is never sent to the server, and the browser validates that the origin matches the expected value before forwarding the authentication response. Furthermore, they are also more convenient because users do not have to remember passwords, and each passkey is only used in a single site. Additionally, passkeys obsolete the need for users to enter their username, since the authentication challenge response also includes a unique identifier of the user associated with the passkey, and websites store mappings between users and their registered passkey public keys. All of these properties make passkeys a very compelling option for secure authentication. As such, we came to the conclusion that adding passkey support to NodeBB would be the most effective way of mitigating situations where administrator users' passwords are compromised. The downside for passkeys is that support is still being rolled out, which means not every device and operating system supports creating, storing, and using passkeys @passkeys-devices. This is also true for the NodeBB landscape in particular, where there is still no NodeBB plugin for passkeys @nodebb-passkeys, due to the technology being so new, so we had to develop our own. Fortunately, the hardware security keys support in the two-factor plugin for NodeBB @nodebb-plugin-2factor is very similar to what we want to implement, so we used it as inspiration for this proof-of-concept. We extended our `Dockerfile` to copy the plugin's files into the container and automatically install it to NodeBB, so an administrator only needs to activate the plugin in the Admin Control Panel ("Admin" > "Extend" > "Plugins" > "`nodebb-plugin-passkeys`" > "Activate" > "Confirm" > "Rebuild & Restart" > "Confirm"). This simple procedure will instantly enable all users site-wide to register a passkey to their account, by accessing "Settings" > "Passkeys", allowing them to opt-in to a more secure experience. After registering a passkey, users can use it to sign into the website using the "Login with a Passkey" button shown on the regular login page, under "Alternative Logins". In order to support the login flow, we implemented a custom login strategy in accordance with `passport`'s specification @passport. Our plugin supplies this strategy to NodeBB, which invokes it when it is necessary to direct, validate, or support a user sign-in process. There is a plethora of different parameters to tune in relation to WebAuthn @w3c-webauthn (the W3C standard supporting passkeys) operations, so we had to make certain design decisions in accordance with what we believed to be best in terms of security, feasibility, and user experience. Of these design choices, we point out: - We require both user presence and user verification for an authentication attempt to be successful, ensuring that the authenticator makes use of a second authentication factor (i.e., prompts for a PIN code, biometric credentials, or another equivalent method); - In order to simplify the passkey registration process, and to limit the amount of personal identifying information provided to us, we do not require any form of authenticator attestation by a Certificate Authority; - We carefully selected which algorithms @cose-algos to accept, and in which order of preference, having settled on ECDSA, then RSASSA-PSS, and then RSASSA-PKCS1-v1_5, and for each of those suites preferring algorithms using SHA-512, then SHA-384, and then SHA-256. Originally we planned on listing COSE algorithm `-8`, EdDSA, as our preferential algorithm, but one of our dependencies @fido2-lib does not yet support it. Moreover, we implemented a *Per-Group Passwordless Enforcement* feature that allows administrators (through "Admin" > "Plugins" > "Passkeys") to configure passwordless requirements for specific groups of users (such as the `administrators` group, or even all `registered-users`). Any groups selected using this feature will require its members to register a passkey if they have not already (users cannot view any pages or perform any action until they do), and members of such a group can no longer use their password to login after they have registered a passkey, therefore being forced to always login using a passkey, which significantly improves security as outlined above. We believe this feature is essential to help further the site's security, and our implementation supporting enforcement based on arbitrary groups gives administrators enormous flexibility. Evidently, to solve this specific #smallcaps[Unauthorized Administration] problem for this project, we recommend enabling passwordless enforcement for the `administrators` group. In conclusion, we consider that passkeys are a groundbreaking authentication method due to their simplicity, ease of use, and security-centered design, so we decided that their adoption (and, ideally, the enforcement of a policy mandating their adoption) would bring immense benefits to NodeBB's security stage, near-completely eliminating the potential consequences of an administrator account's password being compromised. To this effect, we implemented a new plugin to add passkey support to NodeBB and allow sites to make use of this technology. #pagebreak() = Group Members == <NAME> <diogo> Diogo already had prior experience with Docker and JavaScript, which was a valuable skill in this project. Along with #link(<rafael>)[Rafael], he worked on the #link(<unauthorized-admin>)[Unauthorized Administration] task, deliberating on what was the best course of action for solving the problem at hands. It was first decided that we would implement two-factor authentication, but upon finding out that the plugin already existed, and that a solution only included clicking on a few buttons in the web interface, Diogo decided to suggest *passkeys* as an alternative solution. Therefore, Diogo and Rafael started working on a custom NodeBB plugin for passkeys support, which was based on the already existing two-factor plugin. Diogo mainly adapted the registration of a security key 2FA token to a passkey registration flow, as well as some code cleanup. He also contributed to the passkey login flow, but the bulk of the work for that was done by Rafael. Getting this plugin together involved reading NodeBB's source code, as well as reading FIDO specifications, since there is not a lot of documentation available for the topic. Both Diogo and Rafael worked on the report for this problem, with Diogo doing the introduction to the topic, comparison with two-factor authentication, and the advantages and disadvantages of passkeys. Additionally, Diogo also worked on the #link(<db-leakage>)[Database Leakage] task, by fixing the problem where clean installs stopped being possible after persisting the config file. He also contributed to the respective section of the report. Finally, Diogo setup the document for the report, using Typst, along with the cover page. #pagebreak() == <NAME> <neil> Before this project, Neil had a basic understanding of web applications and database management, but had never worked with NodeBB. Similarly, Docker and containerization were tools/technologies that Neil had extremely limited experience in. Therefore, the learning curve was steep and required him to dive headfirst into technologies that were entirely new to him, but Neil was eager to embrace them. One of the most valuable aspects of this journey for Neil was the opportunity to shadow other group members who had more experience with NodeBB and Docker. Through collaboration and learning from his group members' expertise, Neil gained practical insights into these technologies. The other group mates shared their knowledge about configuring and deploying NodeBB within Docker Compose stacks, managing Docker networks, and maintaining containerized applications. Neil recalls that he was fortunate to have experienced team members to turn to for guidance during the implementation phase. Specifically, Neil remembers struggling with Docker network configurations and compatibility issues with the database management system, and he recollects that it was through the groups' mentorship that he gained a better understanding of how to overcome these hurdles. Specifically, Neil was responsible for persisting the NodeBB configuration since there was no official documentation about how to do that when deploying NodeBB with Docker. Neil created a Docker volume to store the NodeBB data, especially the database configuration. The configuration of the Docker volume is now part of our Docker Compose stack. Consequently, whenever the Docker Compose stack is restarted, NodeBB loads the persisted data from the volume, ensuring that no repeated configuration is necessary. This also works for updates of the NodeBB container. Lastly, Neil was responsible for completing the _Database Leakage and Corruption_ chapter of this report. #pagebreak() == <NAME> <rafael> Having already prior experience with most of the technologies involved in this project, Rafael's skillset and reasoning were crucial for its development. He mainly worked with #link(<diogo>)[Diogo] on the #link(<unauthorized-admin>)[Unauthorized Administration] task, participating in the original discussion that first established our group's point of view regarding passkeys being more relevant for this context than traditional Two-Factor Authentication. He set up the first skeletal structure of our new NodeBB passkeys plugin, and actively reviewed Diogo's contribution of Passkey Registration to that plugin, having refactored small parts. For the most part, however, Rafael developed the login functionality of the passkeys plugin, widely researching the best practices on how one would implement such a feature; and due to NodeBB's poor documentation regarding plugins, this mostly meant reading through several repositories' source code, including NodeBB itself, multiple existing plugins with one or two similar aspects, and some existing `passport` strategies. Browsing through tens of resources at a time, including specification reference guides and implementation libraries' documentation, he wrote and tested the majority of the complex login challenge-response logic (and all the visual page, API endpoints, and routing required to support that), counting also on Diogo's assistance at the end to refactor some parts and fix a few bugs. Additionally, Rafael implemented the per-group passwordless enforcement feature, which is arguably the cornerstone of our solution to the #link(<unauthorized-admin>)[Unauthorized Administration] problem for this project. He also wrote the `README.md` file at the root of the project repository, explaining how to configure and run a NodeBB instance that showcases all the solutions we developed for the three problems we worked on during the course of this project. Diogo and Rafael both worked on @unauthorized-admin of this report, pertaining to the _Unauthorized Administration_ problem, with Rafael having written the entirety of the second half, which outlines the technical details of our solution and details a conclusion of our work on that front. Rafael also introduced the initial `docker-compose.yml` configuration for running NodeBB, which has since been greatly iterated on by #link(<diogo>)[Diogo] and #link(<neil>)[Neil]. Finally, Rafael reviewed every single part of the project, including all lines of code and all parts of this report not authored by him. He provided constructive feedback and requested as many changes as necessary from the remaining group members until he was satisfied with the end product. #pagebreak() == <NAME> While the different attack scenarios and possible mitigations of the #link(<unauthorized-access>, [Unauthorized Access]) chapter were discussed in our group, including the choice of selecting a login CAPTCHA as a countermeasure, Yannik contributed the categorization of possible attack scenarios and their taxonomy to the #link(<unauthorized-access>, [Unauthorized Access]) chapter of this report. Related to this chapter, he also researched the default countermeasures of NodeBB and evaluated their impact on the security of the application within the attack scenario taxonomy. Yannik also developed the password brute-force Python script that can be used to demonstrate the strengths and weaknesses of the default NodeBB countermeasures against _Unauthorized Access_ attack scenarios. Additionally, he was responsible for implementing the login CAPTCHA countermeasure, including the solving of problems that occurred during the setup. Also, Yannik put the entire #link(<unauthorized-access>, [Unauthorized Access]) chapter of this report into actual words. Additionally, Yannik helped other group members with the Docker setup of the application and contributed his knowledge about the initialization of the MongoDB Docker container. Finally, Yannik reviewed every chapter of this report he did not write himself. #pagebreak() #show bibliography: set heading(numbering: "1.") #bibliography("references.yml", title: "References")
https://github.com/christopherkenny/ctk-article
https://raw.githubusercontent.com/christopherkenny/ctk-article/main/_extensions/ctk-article/typst-show.typ
typst
// start typst-show within ctk-article #show: doc => ctk-article( $if(title)$ title: [$title$], $endif$ $if(subtitle)$ subtitle: [$subtitle$], $endif$ $if(running-title)$ runningtitle: [$running-title$], $else$ $if(title)$ runningtitle: [$title$], $endif$ $endif$ $if(by-author)$ authors: ( $for(by-author)$ $if(it.name.literal)$ ( name: [$it.name.literal$], last: [$it.name.family$], $for(it.affiliations/first)$ department: $if(it.department)$[$it.department$]$else$none$endif$, university: $if(it.name)$[$it.name$]$else$none$endif$, location: [$if(it.city)$$it.city$$if(it.country)$, $endif$$endif$$if(it.country)$$it.country$$endif$], $endfor$ $if(it.email)$ email: [$it.email$], $endif$ $if(it.orcid)$ orcid: "$it.orcid$" $endif$ ), $endif$ $endfor$ ), $endif$ $if(date)$ date: [$date$], $endif$ $if(lang)$ lang: "$lang$", $endif$ $if(region)$ region: "$region$", $endif$ $if(abstract)$ abstract: [$abstract$], $endif$ $if(thanks)$ thanks: [$thanks$], $endif$ $if(keywords)$ keywords: ($for(keywords)$"$keywords$",$endfor$), $endif$ $if(margin)$ margin: ($for(margin/pairs)$$margin.key$: $margin.value$,$endfor$), $endif$ $if(papersize)$ paper: "$papersize$", $endif$ $if(mainfont)$ font: ($for(mainfont)$"$mainfont$",$endfor$), $endif$ $if(fontsize)$ fontsize: $fontsize$, $endif$ $if(mathfont)$ mathfont: ($for(mathfont)$"$mathfont$",$endfor$), $endif$ $if(codefont)$ codefont: ($for(codefont)$"$codefont$",$endfor$), $endif$ sectionnumbering: $if(section-numbering)$"$section-numbering$"$else$none$endif$, $if(toc)$ toc: $toc$, $endif$ $if(toc-title)$ toc_title: [$toc-title$], $endif$ $if(toc-indent)$ toc_indent: $toc-indent$, $endif$ toc_depth: $toc-depth$, cols: $if(columns)$$columns$$else$1$endif$, $if(linestretch)$ linestretch: $linestretch$, $endif$ $if(linkcolor)$ linkcolor: "$linkcolor$", $endif$ $if(title-page)$ title-page: $title-page$, $endif$ $if(blind)$ blind: $blind$, $endif$ doc, )
https://github.com/MLAkainu/Network-Comuter-Report
https://raw.githubusercontent.com/MLAkainu/Network-Comuter-Report/main/contents/06_errorhandle/index.typ
typst
Apache License 2.0
= Error Handling == Server not running Khi Client kết nối tới Server, nếu Server không hoạt động, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu khởi động lại Server. #figure(caption: [Server not running], image("../../components/assets/server_not_start.png")) == Connection error Khi một trong hai kết nối giữa Client và Server bị lỗi, hệ thống sẽ hiển thị thông báo lỗi ở mỗi phía. Nếu là lỗi ảnh hưởng đến hệ thống, hệ thống sẽ tự động tắt. Nếu là lỗi không ảnh hưởng đến hệ thống, hệ thống sẽ hiển thị thông báo lỗi và tiếp tục hoạt động. #figure(caption: [Connection error], image("../../components/assets/connection_error.png")) #pagebreak() == Login & Register: Wrong input format Hệ thống sẽ kiểm tra các trường nhập vào có đúng định dạng hay không.\ Nếu không đúng định dạng, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [Wrong input format], image("../../components/assets/format_error.png")) == Register: User already exist Hệ thống sẽ kiểm tra xem username đã tồn tại hay chưa.\ Nếu đã tồn tại, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [User already exist], image("../../components/assets/user_already_exists.png")) == Login: User not found Hệ thống sẽ kiểm tra xem username đã tồn tại hay chưa.\ Nếu chưa tồn tại, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [User not found], image("../../components/assets/user_not_found.png")) == Login: Wrong password Hệ thống sẽ kiểm tra xem password có đúng hay không.\ Nếu không đúng, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [Wrong password], image("../../components/assets/wrong_password.png")) == Login: User already online Hệ thống sẽ kiểm tra xem username đã đăng nhập hay chưa.\ Nếu đã đăng nhập, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [User already online], image("../../components/assets/user_already_online.png")) #pagebreak() == Publish: File not found Hệ thống sẽ kiểm tra xem file có tồn tại hay không. Nếu không tồn tại, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [File not found], image("../../components/assets/file_doesnot_exists.png")) == Publish: File already published Hệ thống sẽ kiểm tra xem file đã được Publish hay chưa. Nếu đã được Publish, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [File already published], image("../../components/assets/user_already_published.png")) #pagebreak() == Fetch: File not found Hệ thống sẽ kiểm tra xem file có tồn tại hay không. Nếu không tồn tại, hệ thống sẽ hiển thị thông báo lỗi và yêu cầu nhập lại.\ #figure(caption: [File not found], image("../../components/assets/fetch_not_found.png")) == Fetch: File already fetched Hệ thống sẽ kiểm tra xem file đã được Fetch hay chưa. Nếu đã được fetch, hệ thống sẽ tự động duplicate file cho người dùng.\ #figure(caption: [File already fetched], image("../../components/assets/fetch_duplicate.png")) #pagebreak()
https://github.com/mem-courses/discrete-mathmatics
https://raw.githubusercontent.com/mem-courses/discrete-mathmatics/main/homework/week1.typ
typst
MIT License
#import "../template.typ": * #import "../functions.typ": * #show: project.with( course: "Discrete Mathmatics", course_fullname: "Discrete Mathematics and Application", course_code: "211B0010", title: "Homework #1: Propositional Logic", authors: (( name: "<NAME>", email: "<EMAIL>", id: "A10", ),), semester: "Spring-Summer 2024", date: "February 27, 2024", ) #let T = [T] #let F = [F] = 1.1 Propositional Logic #hw("2")[ Which of these are propositions? What are the truth values of those that are propositions? (a) Do not pass go. (b) What time is it? (d) $4 + x = 5$. (e) The moon is made of green cheese. (f) $2^n >= 100$. ][ (e) and (f) are propositions, and the truth values of them are false and true. ] #hw("10")[ Let $p$ and $q$ be the propositions $p$: I bought a lottery ticket this week. $q$: I won the million dollar jackpot. Express each of these propositions as an English sentence. (e) $p<->q$ (f) $not p -> not q$ (g) $not p and not q$ (h) $not p or (p and q)$ ][ These propositions can be expressed as follows: (e) I brought a lottery ticket this week is and only if I won the million dollar jackpot. (f) if I didn't buy a lottery ticket this week, then I will not win the million dollar jackpot. (g) I didn't buy a lottery ticket this week and I didn't win the million dollar jackpot. (h) I didn't buy a lottery ticket this week or I bought a lottery ticket this week but won the million dollar jackpot. ] #hw("16")[ let $p$, $q$, and $r$ be the propositions $p$: You get an A on the final exam. $q$: You do every exercise in this book. $r$: You get an A in this class. Write these propositions using $p$, $q$, and $r$ and logical connectives (including negations). (a) You get an A in this class, but you do not do every exercise in this book. (b) You get an A on the final, you do every exercise in this book, and you get an A in this class. (c) To get an A in this class, it is necessary for you to get an A on the final. (d) You get an A on the final, but you don’t do every exercise in this book; *nevertheless(尽管)*, you get an A in this class. (e) Getting an A on the final and doing every exercise in this book is *sufficient(足够的;充分的)* for getting an A in this class. (f) You will get an A in this class if and only if you either do every exercise in this book or you get an A on the final. ][ These propositions can be written as follows: (a) $r and not q$ (b) $p and q and r$ (c) $r -> p$ (d) $p and not q and r$ (e) $(p and q) -> r$ (f) $r <-> (p or q)$ ] #hw("18")[ Determine whether these biconditionals are true or false. (a) 2 + 2 = 4 if and only if 1 + 1 = 2. (b) 1 + 1 = 2 if and only if 2 + 3 = 4. (c) 1 + 1 = 3 if and only if monkeys can fly. (d) $0 > 1$ if and only if $2 > 1$. ][ The value of these four biconditionals is TFTF. ] #hw("20(c)")[ Determine whether each of these conditional statements is true or false. (c) If $1 + 1 = 2$, then dogs can fly. ][ The proposition $1+1=2$ is true, but the proposition "dogs can fly" is false. So this conditional statement is false. ] #hw("24")[ Write each of these statements in the form "if p, then q" in English. [Hint: Refer to the list of common ways to express conditional statements provided in this section.] (a) It is necessary to wash the boss’s car to get promoted. (b) Winds from the south imply a spring thaw. (c) A *sufficient(充分的)* condition for the warranty to be good is that you bought the computer less than a year ago. (d) Willy gets caught whenever he cheats. (e) You can access the website only if you pay a subscription fee. (f) Getting elected *follows from(由……引起)* knowing the right people. (g) Carol gets seasick whenever she is on a boat. ][ (a) If someone washes the boss's car, then he is able to get promoted. (b) If there are winds from the south, then the spring is going to be thaw. (c) If you bought the computer more than a year ago, then your warranty is not good. (d) If Willy cheats, then he will be caught. (e) If you pay a subscription fee, then you can access the website. (f) If someone gets elected, then he or she has known the right people. (g) If Carol is on a boat, then she will get seasick. ] #hw("30")[ State the converse, contrapositive, and inverse of each of these conditional statements. (a) If it snows tonight, then I will stay at home. (b) I go to the beach whenever it is a sunny summer day. (c) When I stay up late, it is necessary that I sleep until noon. ][ For the statement (a): - converse: If I stay at home, then it will snow tonight. - inverse: If it doesn't snow tonight, then I will not stay at home. - contrapositive: If I don't stay at home, then it will not snow tonight. The the statement (b) can be represent as "If it is a sunny summer day, then I will go to beach", and its - converse: If I go to beach, then it will be a sunny summer day. - inverse: If it isn't a sunny summer day, then I will not go to beach. - contrapositive: If I don't go to beach, then it will not be a sunny summer day. The the statement (c) can be represent as "If I stay up late, then I will sleep until noon." - converse: If I sleep until noon, then I stayed up late (last night). - inverse: If I don't stay up late, then I will not sleep until noon. - contrapositive: If I don't sleep until noon, then I didn't stay up late (last night). ] #hw("34(f)")[ Construct a truth table for each of the compound propositions $(p ↔ q) ⊕ (p ↔ ¬q)$. ][ The truth table is as follows: #table( columns: (1fr, 1fr, 2fr, 2fr, 4fr), align: horizon + center, inset: 5pt, stroke: 0.5pt, $p$, $q$, $p<->q$, $p<->not q$, $(p ↔ q) ⊕ (p ↔ ¬q)$, T, T, T, F, T, T, F, F, T, T, F, T, F, T, T, F, F, T, F, T, ) ] #hw("39(c)")[ Construct a truth table for each of this compound proposition: $ (p -> q) or (not p -> r) $ ][ The truth table is as follows: #table( columns: (1fr, 1fr, 1fr, 2fr, 2fr, 3fr), inset: 5pt, stroke: 0.5pt, align: horizon + center, $p$, $q$, $r$, $p -> q$, $not p -> r$, $(p -> q) or (not p -> r)$, T, T, T, T, T, T, T, T, F, T, T, T, T, F, T, F, T, T, T, F, F, F, T, T, F, T, T, T, T, T, F, T, F, T, F, T, F, F, T, T, T, T, F, F, F, T, F, T, ) ] #hw("46")[ What is the value of $x$ after each of these statements is encountered in a computer program, if $x = 1$ before the statement is reached? (c) if ($2x+3=5$) AND ($3x+4=7$) then $x:=x+1$ (d) if ($x+1=2$) XOR ($x+2=3$) then $x:=x+1$ ][ After the program terminated, the $x$ will be: (c) $2$ (d) $1$ ] \ *Fuzzy logic* is used in artificial intelligence. In fuzzy logic, a proposition has a truth value that is a number between 0 and 1, inclusive. A proposition with a truth value of 0 is false and one with a truth value of 1 is true. Truth values that are between 0 and 1 indicate varying degrees of truth. For instance, the truth value 0.8 can be assigned to the statement “Fred is happy,” because Fred is happy most of the time, and the truth value 0.4 can be assigned to the statement “John is happy,” because John is happy slightly less than half the time. Use these truth values to solve Exercises 49–51. #hw("50")[ The truth value of the conjunction of two propositions in fuzzy logic is the minimum of the truth values of the two propositions. What are the truth values of the statements "Fred and John are happy" and "Neither Fred nor John is happy"? ][ Let $x$ denotes the truth value of "Fred is happy", and $y$ denotes the truth value of "John is happy". So the statement "Fred and John are happy" can be represent as $ x and y, $ so its truth value is $min(x,y) = 0.4$. And the statement "Neither Fred nor John is happy" can be represent as $ not x and not y, $ so its truth value is $min(1-x,1-y) = 0.2$. ] #hw("52")[ Is the assertion "This statement is false" a proposition? ][ Let's assume it is a proposition. If it holds true, then "this statement is false" is false. So this is a paradox and cannot be referred to as a proposition. ] = 1.2 Application of Propositional Logic #hw("6")[ You can upgrade your operating system only if you have a 32-bit processor running at 1 GHz or faster, at least 1 GB RAM, and 16 GB free hard disk space, or a 64-bit processor running at 2 GHz or faster, at least 2 GB RAM, and at least 32 GB free hard disk space. Express your answer in terms of $u$: "You can upgrade your operating system," $b_32$: "You have a 32-bit processor," $b_64$: "You have a 64-bit processor," $g_1$: "Your processor runs at 1 GHz or faster," $g_2$: "Your processor runs at 2 GHz or faster," $r_1$: "Your processor has at least 1 GB RAM," $r_2$: "Your processor has at least 2 GB RAM," $h_16$: "You have at least 16 GB free hard disk space," and $h_32$: "You have at least 32 GB free hard disk space." ][ The proposition can be expressed as follows: $ u -> (b_32 and g_1 and r_1 and h_16) or (b_64 and g_2 and r_2 and h_32) $ ] #hw("9")[ Are these system specifications consistent? "The system is in multiuser state if and only if it is operating normally. If the system is operating normally, the kernel is functioning. The kernel is not functioning or the system is in interrupt mode. If the system is not in multiuser state, then it is in interrupt mode. The system is not in interrupt mode." ][ Let's assume these logical variables to represent original sentence parts: - $p$ denotes "The system is in multiuser state," - $q$ denotes "The system if operating normally," - $r$ denotes "The kernel is functioning," - $s$ denotes "The system is in interrupt mode." Then, the specifications can be written as a proposition: $ (p <-> q) and (q -> r) and (not r or s) and (not p -> s) and not s $ As this proposition holds true, each part of this proposition should also be true. So we soon obtain that $s$ is false. And since the implication $not p -> s$ holds, $p$ should be true. Next, notice that $not r or s equiv not r or FF equiv not r equiv TT$, so $r$ is false. And also, $q$ is false. After that, based on $p <-> q$ holding true, we can infer that $p$ shoule be false, which is a contradiction. So we can conclude that the system specifications are not consistent. ] \ Exercises 28–35 relate to inhabitants of an island on which there are three kinds of people: knights who always tell the truth, knaves who always lie, and spies (called normals by Smullyan [Sm78]) who can either lie or tell the truth. You encounter three people, A, B, and C. You know one of these people is a knight, one is a knave, and one is a spy. Each of the three people knows the type of person each of other two is. For each of these situations, if possible, determine whether there is a unique solution and determine who the knave, knight, and spy are. When there is no *unique(唯一的)* solution, list all possible solutions or state that there are no solutions. #hw("28")[ $A$ says "$C$ is the knave," $B$ says "$A$ is the knight," and $C$ says "I am the spy." ][ Let's make these assumptions: - $a_1$ denotes "$A$ is knight," and $a_2$ denotes "$A$ is knave;" - $b_1$ denotes "$B$ is knight," and $b_2$ denotes "$B$ is knave;" - $c_1$ denotes "$C$ is knight," and $c_2$ denotes "$C$ is knave." Then, we can translate their statements to these logical propositions: $ a_1 -> c_2\ a_2 -> not c_2\ b_1 -> a_1\ b_2 -> not a_1\ c_1 -> not c_1 and not c_2\ c_2 -> not (not c_1 and not c_2)\ $ Regarding the last two propositions, we can perform some simple *derivations(推导)*: $ not c_1 or (not c_1 and not c_2) &equiv (not c_1 or not c_1) and (not c_1 or not c_2)\ &equiv not c_1 and (not c_1 or not c_2)\ &equiv not c_1\ &equiv TT $ $ not c_2 or not (not c_1 and not c_2) &equiv not c_2 or c_1 or c_2\ &equiv TT $ So we obtain that $c_1$ is false. Let's discuss the cases: - If $c_2$ is true, which means $C$ is a knave. We can infer that $a_2$ must be false, and we need to discuss the cases again: - If $a_1$ is true, which means $A$ is a knight. So $B$ could only be a spy, which is valid. - If $a_1$ is false, which means $A$ is a spy. So $B$ could only be a knight. In this case, we obtain that $b_1$ is true, and so that $a_1$ is also true, meaning both $A$ and $B$ are knights, which is a contradiction. - If $c_2$ is false, which means $C$ is a spy. We can infer that $a_1$ must be false. Similarly, we proceed by discussing different cases: - If $a_2$ is true, which means $A$ is a knave. Then $B$ could only be a knight, which is a contradiction, as we discussed before. - If $a_2$ is false, which means $A$ is a spy. But we have just assumed that $C$ is a spy. Since there is only one spy, so this situation is invalid. Finally, we can conclude that the only solution is $A$ is a knight, $B$ is a spy and $C$ is a knave. ] #hw("39")[ A *detective(侦探)* has interviewed four witnesses to a crime. From the stories of the witnesses the detective has concluded that - if the *butler(管家)* is telling the truth then so is the cook; - the cook and the gardener cannot both be telling the truth; - the gardener and the handyman are not both lying; - and if the handyman is telling the truth then the cook is lying. For each of the four witnesses, can the detective determine whether that person is telling the truth or lying? Explain your reasoning. ][ Let $b$ denotes the butler is telling the truth. Similarly, we use $c,g,h$ to represent the cook, gardener and handyman respectively. Then we can translate the detective's conclusion to these logical propositions: $ b -> c equiv not b or c\ not (c and g) equiv not c or not g\ not (not g and not h) equiv g or h\ h -> not c equiv not h or not c $ Notice that the logical variables $c$ appeared in three of these propositions, so let's discuss the value of $c$ firstly: - If $c$ is true, the value of $b$ is not limited; and the value of $g$ and $h$ must be false, since $not c$ is false. But as the value of proposition $g or h$ is false, this situation is invalid. - If $c$ is false, the value of $b$ must be true; and the value of $g$ and $h$ are not limited as long as $g and h$ is true holds. We can conclude that the cook is lying, the butler is always telling the truth, one of the gardener and the handyman is telling the truth (since $g or h$ is true), but we can't determine whether he is the gardener or the handyman. ] = 1.3 Propositional Equivalences #hw("6")[ Use a truth table to verify the first De Morgan law $not (p and q) equiv not p or not q$. ][ The truth table is as follows: #table( columns: (1fr, 1fr, 2fr, 2fr), $p$, $q$, $not (p and q)$, $not p or not q$, T, T, F, F, T, F, T, T, F, T, T, T, F, F, T, T, ) From this, we can prove that De Morgan's Laws are correct. ] #hw("8")[ Use De Morgan’s laws to find the negation of each of the following statements. (a) Kwame will take a job in industry or go to graduate school. (b) Yoshiko knows Java and calculus. ][ The negation of these two statements are: (a) Kwame will not take a job in industry and will not go to graduate school. (b) Yoshiko doesn't know Java or calculus. ] #hw("12(d)")[ Show that the conditional statement is a tautology by using truth tables. $ [(p or q) and (p->r) and (q->r)] -> r $ ][ The truth table is as follows: #let T = [T] #let F = [F] #table( columns: (1fr, 1fr, 1fr, 2fr, 2fr, 2fr, 5fr), $r$, $p$, $q$, $p->r$, $q->r$, $p or q$, $(p or q) and (p->r) and (q->r)$, T, T, T, T, T, T, T, T, T, F, T, T, T, T, T, F, T, T, T, T, T, T, F, F, T, T, F, F, F, T, T, F, F, T, F, F, T, F, F, T, T, F, F, F, T, T, F, T, F, F, F, F, T, T, F, F, ) As the truth table shows, the compound proposition $[(p or q) and (p->r) and (q->r)] -> r$ always holds, so it is a tautology. ] #hw("16(b)")[ Show that each conditional statement in Exercise 12 is a tautology by applying a chain of logical identities as in Example 8. (Do not use truth tables.) \* The conditional statement from Exercise 12 is: $ [(p -> q) and (q -> r)] -> (p -> r) $ ][ $ [(p -> q) and (q -> r)] -> (p -> r) &equiv not [(not p or q) and (not q or r)] or (not p or r)\ &equiv not (not p or q) or not (not q or r) or (not p or r)\ &equiv (p and not q) or (q and not r) or not p or r\ &equiv [(p and not q) or not p] or [(q and not r) or r]\ &equiv (not q or not p) or (q or r)\ &equiv not p or (q or not q) or r\ &equiv not p or TT or r\ &equiv TT $ So the given conditional statement is a tautology. ] #hw("28")[ Show that $(p->q) and (p->r)$ and $p->(q and r)$ are logically equivalent. ][ $ (p->q) and (p->r) &equiv (not p or q) and (not p or r)\ &equiv not p or (q and r)\ &equiv p->(q and r) $ Overall, logical propositions $(p->q) and (p->r)$ and $p->(q and r)$ are logically equivalent. ] #hw("34")[ Show that $(p or q) and (not p or r) -> (q or r)$ is a tautology. ][ $ (p or q) and (not p or r) -> (q or r) &equiv not (p or q) or not (not p or r) or (q or r)\ &equiv (not p and not q) or (p and not r) or q or r\ &equiv ((not p or p) and (not q or p) and (not p or not r) and (not q or not r)) or q or r\ &equiv (TT and (not q or p) and (not p or not r) and (not q or not r)) or q or r\ &equiv ((not q or p) and (not p or not r) and (not q or not r)) or q or r\ &equiv (not q or p or q or r) and (not p or not r or q or r) and (not q or not r or q or r)\ &equiv TT and TT and TT\ &equiv TT $ So this compound proposition is a tautology. ] #hw("36")[ Show that $(p ∧ q) → r$ and $(p → r) ∧ (q → r)$ are not logically equivalent. ][ On the one hard, $ (p and q) -> r &equiv not (p and q) or r\ &equiv not p or not q or r\ $ On the other hand, $ (p->r) and (q->r) &equiv (not p or r) and (not q or r)\ &equiv (not p and not q) or r\ &equiv not (p or q) or r\ $ It's obvious that when $p$ is true, $q$ is false and $r$ is false, the proposition $not p or not q or r$ holds true while $not (p or q) or r$ holds false. So the given two logical propositions are not logically equivalent. ] #hw("44")[ Find a compound proposition involving the propositional variables $p$, $q$, and $r$ that is true when $p$ and $q$ are true and $r$ is false, but is false otherwise. [Hint: Use a conjunction of each propositional variable or its negation.] ][ The answer is $ p and q and not r $ ] #hw("45")[ Find a compound proposition *involving(包含)* the propositional variables $p$, $q$, and $r$ that is true when exactly two of $p$, $q$, and $r$ are true and is false otherwise. Hint: Form a disjunction of conjunctions. Include a conjunction for each combination of values for which the compound proposition is true. Each conjunction should include each of the three propositional variables or its negations. ][ Here my answer is: $ not (p and q and r) and [(p and q) or (p and r) or (q and r)] $ ] #let NAND = math.italic("NAND") #let NOR = math.italic("NOR") \ We now present a group of exercises that involve the logical operators $NAND$ and $NOR$. The proposition $p NAND q$ is true when either $p$ or $q$, or both, are false; and it is false when both $p$ and $q$ are true. The proposition $p NOR q$ is true when both $p$ and $q$ are false, and it is false otherwise. The propositions $p NAND q$ and $p NOR q$ are denoted by $p|q$ and $p arrow.b q$, respectively. (The operators and $arrow.b$ are called the Sheffer stroke and the Peirce arrow after <NAME> and <NAME>, respectively.) #hw("55")[ Find a compound proposition logically equivalent to $p -> q$ using only the logical operator $arrow.b$. ][ Since $p equiv p or p$, we have $not p equiv p arrow.b p$. So there is: $ p->q &equiv not p or q\ &equiv not ((p arrow.b p) arrow.b q)\ &equiv ((p arrow.b p) arrow.b q) arrow.b ((p arrow.b p) arrow.b q) $ ] #hw("63")[ How many of the disjunctions $p or not q or s$, $not p or not r or s$, $not p or not r or not s$, $not p or q or not s$, $q or r or not s$, $q or not r or not s$, $not p or not q or not s$, $p or r or s$, and $p or r or not s$ can be made *simultaneously(同时地)* true by an assignment of truth values to $p$, $q$, $r$, and $s$? ][ Let's discuss in cases: - #[ If $s$ is true, there are three propositions in the given statement always hold true. Only $not p or not r$, $not p or q$, $q or r$, $q or not r$, $not p or not q$, and $p or r$ need to be considered. We can list a truth table: #table( columns: (1fr, 1fr, 1fr, 2fr, 2fr, 2fr, 2fr, 2fr, 2fr), $p$, $q$, $r$, $not p or not r$, $not p or q$, $q or r$, $q or not r$, $not p or not q$, $p or r$, T, T, T, F, T, T, T, F, T, T, T, F, T, T, T, T, F, T, T, F, T, F, F, T, F, T, T, T, F, F, T, F, F, T, T, T, F, T, T, T, F, T, T, T, T, F, T, F, T, F, T, T, T, F, F, F, T, T, T, T, F, T, T, F, F, F, T, T, F, T, T, F, ) From the truth table, we can observe that at most 5 logical propositions can be true at the same time. So there are $8=3+5$ logical propositions hold true in total when $p,q,s$ is true and $r$ is false. ] - #[ If $s$ is false, there are six propositions in the given statement always hold true. Only $p or not q$, $not p or not r$ and $p or r$ need to be considered. ] ]
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/3-state/current-studies.typ
typst
Augmented Reality erweitert die Grenzen traditioneller Anwendungen und erstreckt sich zunehmend auf diverse Bereiche. Die spezifischen Anforderungen an AR-Technologien variieren stark je nach Anwendungsbereich. In dieser Arbeit liegt der Fokus auf der Untersuchung relevanter Bereiche für die Arbeit. Hierbei werden sowohl aktuelle Entwicklungen als auch zukünftige Trends beleuchtet werden. Des Weiteren sollen neue WebXR APIs vorgestellt werden. === Augmented Reality als Entscheidungshilfe <ar-helper-chapter> Augmented Reality bietet neue Möglichkeiten der Visualisierung und Interaktion, die in verschiedenen Bereichen eingesetzt werden können. <NAME> führte eine systematische Übersichtsarbeit durch, um den Einfluss von Augmented Reality im Online-Einzelhandel zu untersuchen. Die Analyse ergab, dass Augmented Reality signifikante Vorteile für den Online-Einzelhandel bietet. Die Untersuchung identifizierte mehrere Schlüsselmerkmale von AR, die die Kundenerfahrung verbessern, darunter Interaktivität, Lebendigkeit und Augmentation. Diese Merkmale tragen maßgeblich dazu bei, den Entscheidungskomfort zu erhöhen und die Kaufabsicht sowie das Engagement der Kunden zu fördern @ar-online-review. Darüber hinaus stellte Kumar fest, dass AR nicht nur die Entscheidungsfindung erleichtert, sondern auch die Zufriedenheit der Kunden steigert, indem es ein immersives und interaktives Einkaufserlebnis schafft. AR ermöglicht es den Kunden, Produkte virtuell auszuprobieren und eine realistische Vorstellung davon zu bekommen, wie diese in ihrem Alltag funktionieren könnten. Dies reduziert Unsicherheiten und das wahrgenommene Risiko, was letztendlich zu einer höheren Kaufbereitschaft führt @ar-online-review. Die systematische Literaturübersicht zeigt jedoch auch, dass AR-Technologien im Online-Einzelhandel weiterhin Herausforderungen begegnen, insbesondere in Bezug auf Datenschutzbedenken und die wahrgenommene Eindringlichkeit @ar-online-review. Eine weitere Studie von Aemmer, D. et al. untersucht den Einfluss von Augmented Reality auf den Kaufentscheidungsprozess von Möbeln. Hierbei wurde die Anwendung FURNIT-AR als Beispiel für eine AR-App zur Visualisierung von Möbeln in der eigenen Umgebung verwendet. Diese Anwendung ermöglicht das Platzieren von virtuellen Möbelstücken in der realen Umgebung @ar-helper. Die Studie zeigt, dass AR-Anwendungen wie FURNIT-AR die Konversionsrate positiv beeinflussen können, indem sie als nützliches Hilfsmittel zur Bewertung von Alternativen wahrgenommen werden. Insbesondere in Verbindung mit Onlineshops und dem stationären Handel kann AR dazu beitragen, fundierte Bewertungen vorzunehmen und Dritte in den Entscheidungsprozess einzubeziehen, was die Sicherheit beim Möbelkauf erhöht. Es gibt jedoch kritische Stimmen zur aktuellen Qualität der App. Die grafische Darstellung der Möbelstücke ist oft unzureichend, was den Mehrwert der App mindert. Zudem wird die App bisher nur als unterstützendes Hilfsmittel und nicht als transformative Lösung gesehen @ar-helper. Insgesamt kommen beide Studien zum Ergebnis, dass sich Augmented Reality einen positiven Einfluss auf den Entscheidungsprozess besitzt, jedoch die technische Umsetzung und Qualität sowie Sicherheit der Anwendung eine entscheiden<NAME> spielen @ar-helper @ar-online-review. === User Experience in Augmented Reality Augmented Reality stellt neue Herausforderungen für die User Experience dar. Konventionelle Methoden und Techniken der Interaktion oder Informationsdarstellung lassen sich nur begrenzt oder gar nicht auf AR übertragen. <NAME> und <NAME> haben die Herausforderungen und Chancen von Augmented Reality für die User Experience von mobilen AR-Anwendungen untersucht. Diese umfassen technische, konzeptionelle sowie physische und mentale Aspekte. Die Nutzung von AR-Technologien erfordert häufig eine höhere körperliche und geistige Anstrengung im Vergleich zu herkömmlichen Anwendungen. Körperlich wird dies durch die Notwendigkeit von Bewegungen und Interaktionen mit dem Raum bedingt, um beispielsweise virtuelle Objekte zu platzieren. Geistige Anstrengung entsteht durch die Neuartigkeit und Unvertrautheit mit der Technologie @ar-ux-mobile. Auch auf technischer Seite gibt es Herausforderungen. Obwohl die Tracking-Technologien mit der steigenden Leistungsfähigkeit der Geräte immer besser werden, sind sie nach wie vor anfällig für Fehler. In Kombination mit einer möglichen Unvertrautheit mit dieser Technologie kann dies zu Frustrationen führen @ar-ux-mobile. Die Studie von <NAME> et al. untersucht den Vergleich verschiedener AR-Frameworks mit besonderem Fokus auf mobile Augmented Reality. Dabei wird die Fragmentierung der AR-Technologie hervorgehoben. Es existiert eine Vielzahl an AR-Frameworks, die sich in Funktionalität und Kompatibilität unterscheiden. Technische Aspekte, wie beispielsweise Lichtschätzung und die Anpassung von Registrierungsfehlern, werden als vorteilhaft und entscheidend für die User Experience betrachtet @ar-ui-frameworks. Diese Ergebnisse korrelieren mit den Erkenntnissen der Studie von <NAME> Laine, die ebenfalls die technische Umsetzung als kritischen Faktor für die User Experience hervorheben. Die Darstellung detaillierter und realistischer Objekte kann die Immersion und Interaktivität steigern, was wiederum die Benutzerzufriedenheit erhöht. Die Toleranz gegenüber Fehlern, wie beispielsweise Registrierungsfehlern, wird ebenfalls als wichtiger Faktor genannt @ar-ux-mobile, @ar-ui-frameworks. Zusammenfassend lässt sich feststellen, dass AR-Anwendungen eine hohe Immersion und Interaktivität bieten können, die das Engagement und die Zufriedenheit der Benutzer steigern. Durch die Integration von AR in mobile Anwendungen können neue Formen der Interaktion und Informationsdarstellung geschaffen werden, die die Benutzererfahrung verbessern. Dies reflektiert die im AR Helper Chapter beschriebenen Vorteile von AR im Entscheidungsprozess.
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion/completion_title3.typ
typst
Apache License 2.0
// path: references.yaml harry: type: Book title: Harry Potter and the Order of the Phoenix author: <NAME>. volume: 5 page-total: 768 date: 2003-06-21 electronic: type: Web title: Ishkur's Guide to Electronic Music serial-number: v2.5 author: Ishkur url: http://www.techno.org/electronic-music-guide/ ----- // contains:harry,Harry Potter and the Order of the Phoenix,electronic,Ishkur's Guide to Electronic Music // compile:true #cite(<harry>) /* range -2..-1 */ #bibliography("references.yaml")
https://github.com/rijuyuezhu/latex-typst-template
https://raw.githubusercontent.com/rijuyuezhu/latex-typst-template/main/art-typst-eng/template.typ
typst
/////////////////////////////// // This Typst template is for working paper draft. // It is based on the general SSRN paper. // Copyright (c) 2024 // Author: <NAME> // License: MIT // Version: 0.5.0 // Date: 2024-04-04 // Email: <EMAIL> /////////////////////////////// #import "@preview/ctheorems:1.1.2": * #import "@preview/mitex:0.2.4": * #import "@preview/cetz:0.2.2" #import "@preview/tablex:0.0.8": tablex, rowspanx, colspanx, hlinex #import "@preview/tablem:0.1.0": tablem #let paper( font: "Georgia", fontsize: 11pt, title: none, subtitle: none, maketitle: true, authors: (), date: none, abstract: none, keywords: none, JEL: none, acknowledgments: none, bibliography: none, doc, ) = { show: thmrules set math.equation(numbering: "(1)", supplement: auto) set par(leading: 1em) // Set and show rules from before. set text( font: font, size: fontsize ) set page(numbering: "1") set document( title: title, author: authors.map(author => author.name), ) if maketitle == true { set footnote(numbering: "*") set footnote.entry( separator: line(length: 100%, stroke: 0.5pt) ) set footnote.entry(indent: 0em) set align(left) if acknowledgments != none { text(17pt, align(center,{title;footnote(acknowledgments)})) } else { text(17pt, align(center,{title})) } v(15pt) let count = authors.len() let ncols = calc.min(count, 3) set footnote.entry(indent: 0em) for i in range(calc.ceil(authors.len() / 3)) { let end = calc.min((i + 1) * 3, authors.len()) let is-last = authors.len() == end let slice = authors.slice(i * 3, end) grid( columns: slice.len() * (1fr,), gutter: 24pt, ..slice.map(author => align(center, { text(14pt, {author.name; { if "note" in author { footnote(author.note) } } } ) if "department" in author [ \ #emph(author.department) ] if "affiliation" in author [ \ #emph(author.affiliation) ] if "email" in author [ \ #link("mailto:" + author.email) ] })) ) if not is-last { v(16pt, weak: true) } } v(20pt) if date != none { align(center,[This Version: #date]) v(25pt) } if abstract != none { par(justify: true)[ #align(center, [*Abstract*]) #abstract ] v(10pt) } if keywords != none { par(justify: true)[ #set align(left) #emph([*Keywords:*]) #keywords ] v(5pt) } if JEL != none { par(justify: true)[ #set align(left) #emph([*JEL Classification:*]) #JEL ] v(5pt) } pagebreak() } else { set align(left) text(18pt, align(center,{strong(title)})) if subtitle != none { text(12pt, align(center,{subtitle})) } let count = authors.len() let ncols = calc.min(count, 3) set footnote.entry(indent: 0em) for i in range(calc.ceil(authors.len() / 3)) { let end = calc.min((i + 1) * 3, authors.len()) let is-last = authors.len() == end let slice = authors.slice(i * 3, end) grid( columns: slice.len() * (1fr,), gutter: 24pt, ..slice.map(author => align(center, { text(14pt, {author.name; { if "note" in author { footnote(author.note) } } } ) if "department" in author [ \ #emph(author.department) ] if "affiliation" in author [ \ #emph(author.affiliation) ] if "email" in author [ \ #link("mailto:" + author.email) ] })) ) if not is-last { v(16pt, weak: true) } } v(20pt) if date != none { align(center,[This Version: #date]) v(25pt) } } v(10pt) set heading(numbering: "1.",) set math.equation(numbering: "(1)") set footnote(numbering: "1") set footnote.entry(separator: line(length: 100%, stroke: 0.5pt)) set footnote.entry(indent: 0em) set align(left) set heading(numbering: "1.") show heading: it => [ #set align(left) #counter(heading).display( it.numbering ) #it.body #v(10pt) ] set text(spacing: 100%) set par( leading: 1.2em, first-line-indent: 0em, justify: true, ) columns(1, doc) set par(leading: 1em) if bibliography != none { colbreak() show heading: it => [ #set align(left) #it.body #v(10pt) ] bibliography } } #let _treemap(is-root: false, max-columns: 3, is-child-of-root: false, tree) = { if is-root { table( inset: (x: 0.2em, y: 0.6em), columns: calc.min(tree.children.len(), max-columns), ..tree.children.map(_treemap.with(is-child-of-root: true)), ) } else { if tree.children == () { box(inset: (x: 0.2em, y: 0em), rect(tree.title)) } else { let res = stack( { set align(center) set text(size: 1.25em, weight: "bold") tree.title }, v(0.8em), { tree.children.map(_treemap).sum() }, ) if is-child-of-root { res } else { box( inset: (x: 0.2em, y: 0em), rect( width: 100%, inset: (x: 0.2em, y: 0.6em), res, ), ) } } } } #let _list-title(cont) = { let res = ([],) for child in cont.children { if child.func() != list.item { res.push(child) } else { break } } res.sum() } #let _treemap-converter(cont) = { if not cont.has("children") { if cont.func() == list.item { (title: cont.body, children: ()) } else { (title: cont, children: ()) } } else { ( title: _list-title(cont), children: cont.children .filter(it => it.func() == list.item) .map(it => _treemap-converter(it.body)) ) } } #let treemap(cont) = _treemap(is-root: true, _treemap-converter(cont)) #let theorem = thmbox( "theorem", "Theorem", base_level: 1, separator:none ) #let corollary = thmplain( "corollary", "Corollary", base: "theorem", base_level: 1, titlefmt: strong ) #let definition = thmbox( "definition", "Definition", base_level: 1, separator:none ) #let lemma = thmbox( "theorem", "Lemma", base: "theorem", base_level: 1, titlefmt: strong, separator:none) #let example = thmplain("example", "Example") #let proof = thmplain( "proof", "Proof", base: "theorem", bodyfmt: body => [ #body #h(1fr) $square$ ] ).with(numbering: none) #let remark = thmplain( "remark", "Remark" ).with(numbering: none) #let eq(content) = math.equation( block: true, numbering: none, supplement: auto, content, )
https://github.com/fabian1409/typst-iaik-thesis-template
https://raw.githubusercontent.com/fabian1409/typst-iaik-thesis-template/master/lib.typ
typst
// acronyms #let prefix = "acronym-state-" #let acros = state("acronyms", none) #let init-acronyms(acronyms) = { acros.update(acronyms) } // Display acronym #let display(acr, text) = { link(label(acr), text) } // Display acronym in short form. #let acrs(acr, plural: false) = { if plural { display(acr, acr + "s") } else { display(acr, acr) } } // Display acronym in short plural form #let acrspl(acr) = { acrs(acr, plural: true) } // Display acronym in long form. #let acrl(acr, plural: false) = { acros.display( acronyms => { let def = acronyms.at(acr) assert(type(def) == "string") if plural { display(acr, def + "s") } else { display(acr, def) } }, ) } // Display acronym in long plural form. #let acrlpl(acr) = { acrl(acr, plural: true) } // Display acronym for the first time. #let acrf(acr, plural: false) = { if plural { display(acr, [#acrlpl(acr) (#acr\s)]) } else { display(acr, [#acrl(acr) (#acr)]) } state(prefix + acr, false).update(true) } // Display acronym in plural form for the first time. #let acrfpl(acr) = { acrf(acr, plural: true) } // Display acronym. Expands it if used for the first time. #let acr(acr, plural: false) = { state(prefix + acr, false).display(seen => { if seen { if plural { acrspl(acr) } else { acrs(acr) } } else { if plural { acrfpl(acr) } else { acrf(acr) } } }) } // Display acronym in the plural form. Expands it if used for the first time. #let acrpl(acronym) = { acr(acronym, plural: true) } // Print an index of all the acronyms and their definitions. #let list-of-acronyms( title: "List of Acronyms", delimiter: none, acr-col-size: 20%, level: 1, outlined: false, ) = { context if acros.get() != none { heading(level: level, outlined: outlined, numbering: none)[#title] acros.display( acronyms=>{ for acr in acronyms.keys() { table( columns: (acr-col-size, 100% - acr-col-size), stroke: none, inset: 0pt, [*#acr#label(acr)#delimiter*], [#acrl(acr)], ) } }, ) } } #let in-outline = state("in-outline", false) // Display long caption in figure and short caption in list of figures #let captions(long, short) = context if in-outline.get() { short } else { long } #let listing(caption: none, label: none, body) = [ // show line numbers #show raw.where(block: true): it => { set par(justify: false) show raw.line: it => { text(fill: gray)[#if it.number < 10 { text(" ") }#it.number] h(1em) it.body } box(width: 100%, align(left, it)) } #figure( box(body, stroke: 0pt, radius: 5pt, inset: 10pt, fill: white.darken(3%)), caption: caption, kind: "listing", supplement: [Listing], ) #label ] // thesis template #let thesis( title: "Title and\nSubtitle\nof the Thesis", author: "<NAME>, BSc", curriculum: "Curriculum", supervisors: (), date: datetime.today(), acknowledgments: none, abstract: none, abstract_de: none, acronyms: none, body ) = { if type(supervisors) != array { panic("supervisors must be an array") } set document(title: title.split("\n").join(" "), author: author) set text(size: 11pt, font: "New Computer Modern", hyphenate: false) set cite(style: "alphanumeric") // title page set page(margin: (bottom: 2.75cm)) set align(center) image("logo.svg", width: 20%) v(2cm) block(text(size: 14pt, author), below: 1.75cm) block(text(size: 16pt, weight: "bold", title)) set align(center + bottom) block(par(leading: 9pt, [ #text(size: 12pt, weight: "bold", "MASTER'S THESIS") \ #text("to achieve the university degree of\nDiplom-Ingenieur") \ #text("Master's degree programme: " + curriculum) ])) v(1cm) block(text(size: 10pt, "submitted to")) block(text(weight: "bold", "Graz University of Technology")) v(1.1cm) block(text(size: 10pt, weight: "bold", "Supervisor" + if supervisors.len() > 1 { "s" })) text(size: 10pt, supervisors.join("\n")) block(text(size: 10pt, "Institute of Applied Information Processing and Communications"), below: 1.75cm) box(text(size: 8pt, [Graz, #date.display("[month repr:long] [year]")],)) // style rules set align(top + left) set page(margin: (left: 3cm, right: 3cm, top: 3.7cm, bottom: 5.6cm)) set par(justify: true, leading: 0.6em) set block(below: 16pt) set math.equation(numbering: "(1.1)") set figure(gap: 15pt) set enum(indent: 1em, numbering: "1)a)i)") set list(indent: 1em) set heading(numbering: "1.1 ") set page(header: context { // find heading of level 1 on current page let chapter = query(heading.where(level: 1), here()).find(h => h.location().page() == here().page()) // if not chapter begin print current chapter in header if chapter == none { let elems = query(selector(heading.where(level: 1)).before(here())) let counter = counter(heading.where(level: 1)) if elems.len() != 0 { if counter.get().first() == 0 or elems.last().body == [Bibliography] { // dont print chapter + counter for outline align(center, text(style: "italic", elems.last().body)) } else { align(center, text(style: "italic", "Chapter " + counter.display("1") + " " + elems.last().body)) } } v(-.25cm) } }) // set ref of level 1 heading to Chapter show heading.where(level: 1): set heading(supplement: [Chapter]) show heading.where(level: 1): it => { pagebreak() v(2cm) let count = counter(heading).get() if it.body != [Bibliography] and count.first() > 0 { par(leading: 22pt, text(size: 20pt, "Chapter " + counter(heading).display("1") + linebreak() + it.body)) } else { text(size: 20pt, it) } v(25pt) } show heading.where(level: 2): it => { v(10pt) text(size: 14pt, it) v(10pt) } show heading.where(level: 3): it => { v(8pt) text(size: 12pt, it) v(8pt) } show heading.where(level: 4): it => { v(8pt) text(size: 11pt, it.body) v(8pt) } pagebreak() // affidavit align(horizon)[ #align(center, text(size: 12pt, weight: "bold", "AFFIDAVIT")) #v(0.5cm) #block(inset: (left: 1cm, right: 1cm))[ I declare that I have authored this thesis independently, that I have not used other than the declared sources/resources, and that I have explicitly indicated all material which has been quoted either literally or by content from the sources used. The text document uploaded to TUGRAZonline is identical to the present master’s thesis. #v(2.5cm) #line(length: 100%, stroke: .5pt) #v(-.5cm) #align(center, text(size: 8pt, "Date, Signature")) ] ] set page(numbering: "i") init-acronyms(acronyms) // acknowledgements heading(level: 1, outlined: false, numbering: none, "Acknowledgements") acknowledgments // abstract heading(level: 1, outlined: false, numbering: none, "Abstract") abstract heading(level: 1, outlined: false, numbering: none, "Kurzfassung") abstract_de // outline in-outline.update(true) show outline.entry.where(level: 1): it => { if it.body != [References] { v(14pt, weak: true) link(it.element.location(), strong([#it.body #h(1fr) #it.page])) } else { it } } show outline.entry.where(level: 2): it => { link(it.element.location(), [ #it.body #box(width: 1fr, inset: (right: .4cm), repeat[~.]) #it.page ]) } show outline.entry.where(level: 3): it => { link(it.element.location(), [ #it.body #box(width: 1fr, inset: (right: .4cm), repeat[~.]) #it.page ]) } outline(indent: auto, depth: 3) // list of figures context if query(figure.where(kind: image)).len() > 0 { show outline.entry: it => { link(it.element.location(), [ #it.body #box(width: 1fr, inset: (right: .4cm), repeat[~.]) #it.page ]) } outline(title: "List of Figures", target: figure.where(kind: image)) } // list of tables context if query(figure.where(kind: table)).len() > 0 { show outline.entry: it => { link(it.element.location(), [ #it.body #box(width: 1fr, inset: (right: .4cm), repeat[~.]) #it.page ]) } outline(title: "List of Tables", target: figure.where(kind: table)) } // list of listings context if query(figure.where(kind: "listing")).len() > 0 { show outline.entry: it => { link(it.element.location(), [ #it.body #box(width: 1fr, inset: (right: .4cm), repeat[~.]) #it.page ]) } outline(title: "List of Listings", target: figure.where(kind: "listing")) } list-of-acronyms() in-outline.update(false) set page(numbering: "1") counter(page).update(1) body }
https://github.com/hongjr03/shiroa-page
https://raw.githubusercontent.com/hongjr03/shiroa-page/main/DIP/chapters/1导论.typ
typst
#import "../template.typ": * #import "@preview/fletcher:0.5.0" as fletcher: diagram, node, edge #import fletcher.shapes: house, hexagon, ellipse #import "@preview/pinit:0.1.4": * #import "@preview/cetz:0.2.2" #import "/book.typ": book-page #show: book-page.with(title: "导论 | DIP") = 导论 == 数字图像处理的基本步骤 Fundmental Steps in DIP + 图像获取 Image Acquisition + 图像增强 Image Enhancement + 图像复原 Image Restoration + 彩色图像处理 Color Image Processing + 小波变换和多分辨率处理 Wavelet and Multiresolution Processing + 压缩 Compression + 形态学处理 Morphological Processing ~ #pin(1) #h(1fr) #pin(2) ~ 以上输出主要为*图像*,以下主要为图像*属性* + 分割 Segmentation + 代表与描述 Representation and Description + 目标检测与识别 Object Recognition #pinit-line(1, 2, end-dy: -3pt, start-dy: -3pt)
https://github.com/barddust/Kuafu
https://raw.githubusercontent.com/barddust/Kuafu/main/src/Analysis/sequence.typ
typst
#import "/mathenv.typ": * = Sequences
https://github.com/sebaseb98/clean-math-thesis
https://raw.githubusercontent.com/sebaseb98/clean-math-thesis/main/meta.typ
typst
MIT License
// personal/subject related stuff #let author = "<NAME>" #let title = "My Very Fancy and Good-Looking Thesis About Interesting Stuff" #let supervisor1 = "Prof. Dr. <NAME>" #let supervisor2 = "Prof. Dr. <NAME>" #let degree = "Example" #let program = "Example-Studies" #let university = "Example University" #let institute = "Example Institute" #let deadline = datetime.today().display() #let city = "Example City" // file paths for logos etc. #let uni_logo_path = "images/logo_placeholder.svg" #let institute_logo_path = "images/logo_placeholder.svg" // formatting settings #let citation-style = "ieee" #let body-font = "Libertinus Serif" #let sans-font = "Libertinus Serif"
https://github.com/CL4R3T/GroupTheory-I-_homework
https://raw.githubusercontent.com/CL4R3T/GroupTheory-I-_homework/main/HW1/HW1_Sol.typ
typst
#import "@preview/problemst:0.1.0": pset #show: doc => pset( doc, class: "Group Theory I", student: read("../.authorinfo"), title: "Homework 1", date: datetime(year: 2024, month: 9, day: 29), ) = 对于某个三阶群 $G={e,a,b}$, 由于 $a e=e a=a$, 所以 $a^2!=a$. 若 $a^2=e$, 那么只有 $a b=b a=b$, 这与 $e b=b e=b$ 矛盾. 所以假设不成立, 这个群必须满足 $a^2=b$, 同理 $b^2=a$, $a b=b a=e$. 那么三阶群 $G={e,a,b}$ 只能为 $Z_3$: #align( center, table( align: center, columns: 4, [/], $e$, $a$, $b$, $e$, $e$, $a$, $b$, $a$, $a$, $b$, $e$, $b$, $b$, $e$, $a$, ), ) = 对于群 $G$, 设其有子群 $A$, $B$, 由于 $A sect B subset A,A sect B subset B$, 根据子群 $A,B$ 的性质有 - 逆元: $forall g in A sect B$, $g$ 的逆 $g^(-1) in A, g^(-1) in B => g^(-1) in A sect B$ - 封闭性: $forall f,g in A sect B, f g in A, f g in B => f g in A sect B$ 这足以证明集合 $A sect B$ 在群 $G$ 的乘法下也是群 $G$ 的子群. = 对于四阶群 $G$, 其任意一个非幺群元 $forall a in G$ 的阶只能为 $2,4$. 如果其阶为4, 那么 $G$ 本身就是这个群元生成的循环群 $Z_4={e,a,a^2,a^3}$, 这个循环群群显然是交换群. 如果所有群元的阶都为2, 也就是对于三个非幺群元 $a,b,c$ 有 $a^2=b^2=c^2=e$, 这使得$a b!=e$, 同时由于非幺, $a b!=a,a b!= b$, 这使得 $a b=c$. 同理我们有 $a b = b a = c, b c = c b =a, c a = a c = b$. 这说明群 $G={e,a,b,c}=Z_2 times.circle Z_2$ 是一个交换群. 所以四阶群只有2个, 且都是交换群. = 群 $G={1,i,-1,-i}$ 具有不变子群 $H={1,-1}$, 商群 $G\/H={H,i H}$ = 记 $A=mat(0,1;-1,0),B=mat(0,1;1,0)$ $ A^2 = mat(-1,0;0,-1) = -I, A^3 = -I A = -A, A^4 = I $ 所以 $mat(0,1;-1,0)$ 是4阶群元. $ B^2 = I $ 所以 $mat(0,1;1,0)$ 是2阶群元. $ A B=mat(1,0;0,-1), B A=mat(-1,0;0,1) = A^3 B $ 那么乘法表就能直接得出了, 这是一个 $D_4$ 群, 阶为8 #align( center, table( align: center, columns: 9, [/], $I$, $A$, $A^2$, $A^3$, $B$, $A B$, $A^2 B$, $A^3 B$, $I$, $I$, $A$, $A^2$, $A^3$, $B$, $A B$, $A^2 B$, $A^3 B$, $A$, $A$, $A^2$, $A^3$, $I$, $A B$, $A^2 B$, $A^3 B$, $B$, $A^2$, $A^2$, $A^3$, $I$, $A$, $A^2 B$, $A^3 B$, $B$, $A B$, $A^3$, $A^3$, $I$, $A$, $A^2$, $A^3 B$, $B$, $A B$, $A^2 B$, $B$, $B$, $A^3 B$, $A^2 B$, $A B$, $I$, $A^3$, $A^2$, $A$, $A B$, $A B$, $B$, $A^3 B$, $A^2 B$, $A$, $I$, $A^3$, $A^2$, $A^2 B$, $A^2 B$, $A B$, $B$, $A^3 B$, $A^2$, $A$, $I$, $A^3$, $A^3 B$, $A^3 B$, $A^2 B$, $A B$, $B$, $A^3$, $A^2$, $A$, $I$, ), ) 共轭类有 ${I}, {A^2}, {A, A^3},{B,A^2 B},{A B,A^3 B}$ = (该题以及之后所有涉及 $D_3$ 的题目均使用书上的记号) $D_3={e,d,f,a,b,c}$ 的子群为 ${e,d,f},{e,a},{e,b},{e,c},{e},{e,d,f,a,b,c}$, 其中不变子群为 ${e},{e,d,f},{e,d,f,a,b,c}$ = 设群 $H$ 是群 $G$ 的子群, 对于非子群本身的左陪集 $g H != H, g in G$, 假设 $exists h in H, h in g H$, 这说明 $exists h' in H, g h' = h$ 这使得 $g = h (h')^(-1) in H$, 从而 $g H = H$, 这与$g H != H$矛盾. 故任意非子群本身的左陪集 $g H$ 都不包含子群的元. 对于任意两个 $g H!=H$ 中的元素 $g h_1,g h_2$, $(g h_1)(g h_2)=g (h_1 g h_2)$, 而由于 $g in.not H$, 所以 $h_1 g h_2 in.not H$, 也即 $g(h_1 g h_2) in.not g H$. 这说明 $g H$ 不满足封闭性, 不能为群. 同理任意非子群本身的右陪集 $H g$ 也不包含子群的元, 也不能为群. = 可以, 因为这个群本身 $G$ 和群的幺元构成的群 ${e}$ 都是不变子群. = 对于这样的群 $G$, 任取其中两个元素 $a,b$, 有 $a^(-1)=a, b^(-1)=b$, 那么 $a b=a b a^(-1) b^(-1) b a = a b a b b a = (a b)^2 b a = b a$, 这说明群 $G$ 为Abel群. = 记 $ mat(1,0,0,0;0,1,0,0;0,0,1,0;0,0,0,1)=e,mat(0,0,0,1;1,0,0,0;0,1,0,0;0,0,1,0)=a $ 则很容易发现 $ a^2=mat(0,0,1,0;0,0,0,1;1,0,0,0;0,1,0,0), a^4=e $ 那么只需要补一个 $ a^3=mat(0,1,0,0;0,0,1,0;0,0,0,1;1,0,0,0) $ 这样就能构成一个4阶循环群了. 共轭类为 ${e},{a},{a^2},{a^3}$ = 乘法表为 #align( center, table( align: center, columns: 7, [/], $f_1$, $f_2$, $f_3$, $f_4$, $f_5$, $f_6$, $f_1$, $f_1$, $f_2$, $f_3$, $f_4$, $f_5$, $f_6$, $f_2$, $f_2$, $f_1$, $f_5$, $f_6$, $f_3$, $f_4$, $f_3$, $f_3$, $f_6$, $f_1$, $f_5$, $f_4$, $f_2$, $f_4$, $f_4$, $f_5$, $f_6$, $f_1$, $f_2$, $f_3$, $f_5$, $f_5$, $f_4$, $f_2$, $f_3$, $f_6$, $f_1$, $f_6$, $f_6$, $f_3$, $f_4$, $f_2$, $f_1$, $f_5$, ), ) 这说明这六个函数能够构成一个群, 且与群 $D_3={e,d,f,a,b,c}$ 满足同构关系 $f_1->e,f_5->d,f_6->f,f_2->a,f_3->b,f_4->c$ = 记这些共轭类所在的群为$G$, 对于任意的$a in C_i,g in G$, 必有 $g a g^(-1) = b in C_i$, 则$g a^(-1) g^(-1) = (g a g^(-1))^(-1) = b^(-1) in C_i^*$ 也就是说 $a^(-1)$ 所在的共轭类中的元素必在 $C_i^*$中, 且有一一对应关系. 那么 $C_i^*$ 就是 $a^(-1)$ 所在的共轭类本身, 所以它是一个共轭类. = $ p_1^(-1) = mat(3,5,7,1,2,8,4,6;1,2,3,4,5,6,7,8) = mat(1,2,3,4,5,6,7,8;4,5,1,7,2,8,3,6)\ p_2^(-1) = mat(2,5,6,8,1,7,4,3;1,2,3,4,5,6,7,8) = mat(1,2,3,4,5,6,7,8;5,1,8,7,2,3,6,4) $ $ (p_1 p_2)^(-1) &= [mat(1,2,3,4,5,6,7,8;3,5,7,1,2,8,4,6) mat(1,2,3,4,5,6,7,8;2,5,6,8,1,7,4,3)]^(-1)\ &= [mat(1,2,3,4,5,6,7,8;3,5,7,1,2,8,4,6)mat(3,5,7,1,2,8,4,6;6,1,4,2,5,3,8,7)]^(-1)\ &= mat(1,2,3,4,5,6,7,8;6,1,4,2,5,3,8,7)^(-1)\ &= mat(1,2,3,4,5,6,7,8;2,4,6,3,5,1,8,7) $ $ p_2^(-1)p_1^(-1) &= mat(1,2,3,4,5,6,7,8;5,1,8,7,2,3,6,4)mat(1,2,3,4,5,6,7,8;4,5,1,7,2,8,3,6)\ &= mat(1,2,3,4,5,6,7,8;5,1,8,7,2,3,6,4)mat(5,1,8,7,2,3,6,4;2,4,6,3,5,1,8,7)\ &=mat(1,2,3,4,5,6,7,8;2,4,6,3,5,1,8,7)\ $ 所以$(p_1 p_2)^(-1) = p_2^(-1) p_1^(-1)$ = $ S_3 = {mat(1,2,3;1,2,3),mat(1,2,3;2,3,1),mat(1,2,3;3,1,2),mat(1,2,3;1,3,2),mat(1,2,3;3,2,1),mat(1,2,3;2,1,3)} $ 所以子群有 $ H_1={mat(1,2,3;1,2,3)},\ H_2={mat(1,2,3;1,2,3),mat(1,2,3;2,3,1),mat(1,2,3;3,1,2)},\ H_3={mat(1,2,3;1,2,3),mat(1,2,3;1,3,2)},\ H_4={mat(1,2,3;1,2,3),mat(1,2,3;3,2,1)},\ H_5={mat(1,2,3;1,2,3),mat(1,2,3;2,1,3)},\ H_6={mat(1,2,3;1,2,3),mat(1,2,3;2,3,1),mat(1,2,3;3,1,2),mat(1,2,3;1,3,2),mat(1,2,3;3,2,1),mat(1,2,3;2,1,3)} $ 这6个. 其中 $H_1,H_2,H_6$ 是不变子群, $H_2$ 是含元素 $mat(1,2,3;2,3,1)$ 的循环群. = 六阶循环群 $Z_6 = {e,a,a^2,a^3,a^4,a^5}$ 是交换群, 故其所有子群均为不变子群, 它的不变子群有 $H_1={e},H_2={e,a^3},H_3={e,a^2,a^4},H_4={e,a,a^2,a^3,a^4,a^5}$, 商群分别为 $Z_6\/H_1 = {H,a H,a^2H,a^3H,a^4H,a^5H}, Z_6\/H_2 = {H,a H,a^2 H}, Z_6\/H_3 = {H,a H}, Z_6\/H_4 = {H}$ = 可以构建一个 $2 k$ 阶群 $G={E, B, B^2,dots, B^(k-1), A, A B, A B^2,dots, A B^(k-1)}$ 由于 $(A B)^2 = E$, 那么 $B A = A^(-1) B^(-1) = A B^(k-1) $ 这使得 $B^n A = B^(n-1) A B^(k-1) = dots = A B^(n(k-1))$ 也就是说乘法表为 $ (A^a B^b) (A^c B^d) = A^a (B^b A^c) B^d = A^a A B^b(k-1) A^c B^d = A^(a+c)B^(d+b dot (k-1)^c) $ 且逆元为 $ (A B^n)^(-1) = B^(-n)A = B^(n(k-1))A = A B^(n(k-1)^2) = A B^(n) $ 这说明我们所构建的群是满足群的性质的. = $D_3$ 群的自同构映射群为 $ A(D_3) = {&mat(e,d,f,a,b,c;e,d,f,a,b,c;),mat(e,d,f,a,b,c;e,d,f,b,c,a),mat(e,d,f,a,b,c;e,d,f,c,a,b)\ &mat(e,d,f,a,b,c;e,f,d,a,c,b),mat(e,d,f,a,b,c;e,f,d,c,b,a),mat(e,d,f,a,b,c;e,f,d,b,a,c)} $ 这六个元素依次对应 $e,d,f,a,b,c$ 所形成的内自同构映射, 所以是内自同构群. = $ (g h g^(-1))^2 = g h g^(-1) g h g^(-1) = e $ 故 $g h g^(-1)$ 的阶为1或2. 若 $g h g^(-1)$ 的阶为1, 则 $g h g^(-1) = e$, $h = g^(-1) g = e$, 这与 $h$ 的阶为2矛盾 则 $g h g^(-1)$ 的阶为2, 又由于此群只有一个阶为2的元素 $h$, 则 $g h g^(-1) = g$, 也即 $g h = h g$ = 群 $G_1$ 的自同构群为 $ A(G_1)={mat(e,r,r^2,r^3;e,r,r^2,r^3),mat(e,r,r^2,r^3;e,r^3,r^2,r)} $ 这说明 $G_2$ 与 $A(G_1)$ 有且仅有一种同态映射 $nu$ $ nu_e = mat(e,r,r^2,r^3;e,r,r^2,r^3), nu_a = mat(e,r,r^2,r^3;e,r^3,r^2,r) $ 这使得 $G_1 times.circle_s G_2$ 的乘法表为 #align( center, table( align: center, columns: 9, [/], $e$, $r$, $r^2$, $r^3$, $a$, $r a$, $r^2 a$, $r^3 a$, $e$, $e$, $r$, $r^2$, $r^3$, $a$, $r a$, $r^2 a$, $r^3 a$, $r$, $r$, $r^2$, $r^3$, $e$, $r a$, $r^2 a$, $r^3 a$, $a$, $r^2$, $r^2$, $r^3$, $e$, $r$, $r^2 a$, $r^3 a$, $a$, $r a$, $r^3$, $r^3$, $e$, $r$, $r^2$, $r^3 a$, $a$, $r a$, $r^2 a$, $a$, $a$, $r^3 a$, $r^2 a$, $r a$, $e$, $r^3$, $r^2$, $r$, $r a$, $r a$, $a$, $r^3 a$, $r^2 a$, $r$, $e$, $r^3$, $r^2$, $r^2 a$, $r^2 a$, $r a$, $a$, $r^3 a$, $r^2$, $r$, $e$, $r^3$, $r^3 a$, $r^3 a$, $r^2 a$, $r a$, $a$, $r^3$, $r^2$, $r$, $e$, ), ) 这说明 $G_1 times.circle_s G_2 = D_4$. = == $ forall k_1,k_2 in K,(H k_1)(H k_2) = (H H k_1 k_2) = (H k_1 k_2) $ 所以显然有 $forall (H k) in G\/H, Phi(H k) = k$ 的同构映射 $Phi$ == 映射 $forall g = (h k) in G, Phi_1(g) = h, Phi_2(g) = k$ 满足如下性质: $ Phi_1((h_1 k_1)(h_2 k_2)) = Phi_1(h_1 h_2 k_1 k_2) = h_1 h_2 = Phi_1(h_1 k_1) Phi_1(h_2 k_2) $ $ Phi_2((h_1 k_1)(h_2 k_2)) = Phi_2(h_1 h_2 k_1 k_2) = k_1 k_2 = Phi_2(h_1 k_1) Phi_2(h_2 k_2) $ 所以 $G$ 与 $H$ 和 $K$ 同态 = == $ forall k_1,k_2 in K,angle.l H k_1 angle.r angle.l H k_2 angle.r = angle.l H nu_k_1(H) k_1 k_2 angle.r = angle.l H k_1 k_2angle.r $ 所以显然有 $forall (H k) in G\/H, Phi(H k) = k$ 的同构映射 $Phi$ == 映射 $forall g = angle.l h k angle.r in G, Phi(g) = k$ 满足如下性质: $ Phi_2(angle.l h_1 k_1 angle.r angle.l h_2 k_2 angle.r) = Phi(h_1 nu_k_1(h_2) k_1 k_2) = k_1 k_2 = Phi(angle.l h_1 k_1 angle.r) Phi(angle.l h_2 k_2 angle.r) $ 所以 $G$ 与 $K$ 同态 = 否. 考虑到讲义上定义同态映射时要求为j满射, 所以一个群与其子群不一定同态. 反例: 不存在 $D_3$ 群 $D_3 = {e,d,f,a,b,c}$ 到子群 $Z_3 = {e,d,f}$ 的同态映射. 证明: 若存在一个同态映射 $Phi$, 由于 $a^2 = b^2 = c^2 = e$, 而 $Z_3$ 中只有 $e$ 满足其平方为 $e$, 故该映射要求 $Phi(a)=Phi(b)=Phi(c)=e$, 这使得 $Phi(d) = Phi(d) Phi(a) = Phi(d a) = Phi(c) = e$, 同理$Phi(f)=e$, 这导致该映射不是满映射, 这与该映射为同态映射矛盾. 所以矛盾点在于“满射”这个要求. = 对于集合$A in G$, 定义$A^(-1) = {a^(-1) | forall a in A} $, 显然 $H^(-1) = H$ $ H f^(-1) = H^(-1) f^(-1) = (f H)^(-1) = (g H)^(-1) = H^(-1) g^(-1) = H g^(-1) $
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/par-bidi-06.typ
typst
Other
// Test inline object. #set text(lang: "he") קרנפיםRh#box(image("test/assets/files/rhino.png", height: 11pt))inoחיים
https://github.com/Ri0ee/typst-rtu
https://raw.githubusercontent.com/Ri0ee/typst-rtu/master/template/template.typ
typst
#let project( title: "", subtitle: "", subject: "", authors: (), department: "", year: "", lang: "en", body ) = { lang = lower(lang) assert(lang == "lv" or lang == "en", message: "Languages other than LV or EN are not supported") let institute = if lang == "en" {"Riga Technical University"} else {"Rīgas Tehniskā Universitāte"} set document( author: authors.at(0).name, title: title ) set page( paper: "a4", margin: ( top: 3cm, bottom: 2cm, left: 3cm, right: 2cm ) ) set text(font: "Times New Roman", lang: lang) set par(justify: true) set block(spacing: 1em) align(center)[ #text(22pt, institute) ] align(center)[ #text(22pt, department) ] v(1em) align(center)[ #image("logo_" + lang + ".svg", width: 40%) ] v(2em) align(center)[ #block([ #text(20pt, subject) \ #text(18pt, style: "italic", title) \ #text(16pt, subtitle) ]) ] align(right + horizon)[ #block([ #align(left)[ #for author in authors [ \ #text(14pt, author.name) \ #text(14pt, author.group) \ #text(14pt, author.id) #v(1em) ] ] ]) ] align(center + bottom)[ #text(16pt, "Riga, " + year) ] pagebreak() outline(depth: 3, indent: true) show heading.where(level: 1): it => [ #pagebreak(weak: true) #set align(center) #set text(16pt) #it #v(1em) ] show heading.where(level:2): it => [ #set align(center) #set text(14pt) #v(24pt) #it #v(1em) ] show heading.where(level:3): it => [ #set align(left) #set text(12pt) #v(6pt) #it #v(1em) ] set par(justify: true) set heading(numbering: "1.") counter(page).update(1) set math.equation(numbering: "(1)") set page(numbering: "1", number-align: right) body }
https://github.com/alerque/polytype
https://raw.githubusercontent.com/alerque/polytype/master/data/dropcaps/typst.typ
typst
#set page( paper: "a6", ) #set par( justify: true, ) #import "@preview/droplet:0.2.0": dropcap #dropcap( justify: true, hanging-indent: 0pt, )[ This paragraph has a pretty plain initial or drop cap. It uses the default document font. You didn't really expect more detail with such a generic font choice, right? This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist. ] #dropcap( justify: true, hanging-indent: 0pt, top-edge: "cap-height", )[ #place(dx: -0.4em, sym.quote.l)N ][ #smallcaps[ever say never,]#sym.quote.r the saying goes. Someday your dropcap may include leading punctuation _and_ a hanging indent. No worries. All you have to do is guess and fudge. ] #dropcap( height: 3, justify: true, hanging-indent: 1em, )[ Another paragraph shows off a different line count. Also it uses a stand-off effect in lines following the opening. This helps highlight the fact that the initial letter belongs to the first word. The first line of text will be flush against the drop cap. Each additional line spanned with be indented with an extra space. ]
https://github.com/linsyking/messenger-manual
https://raw.githubusercontent.com/linsyking/messenger-manual/main/render.typ
typst
#pagebreak() = Rendering As mentioned in the last section, Messenger uses _virtual coordinates_ to render. To transform from virtual coordinates to real coordinates on screen, users can use functions `posToReal`, `lengthToReal` from `Messenger.Coordinate.Coordinates`. However, usually those low-level functions aren't necessary to draw figures. Instead, there are predefined functions in `Messenger.Render.Sprite`, `Messenger.Render.Text`, `Messenger.Render.Shape` modules. == Sprite To render a sprite (image asset), users need to import it to the project because in Messenger all images needed to be loaded before the game starts. If the game fails to load the assets, it will directly abort. To import an asset, add an entry to `Lib/Resources.elm`: ```elm allTexture : Dict String String allTexture = Dict.fromList [ ( "bg", "assets/bg.png" ) ] ``` Here "bg" is the asset ID. It should be unique for every images. Users will need to use those IDs to access sprites later. `assets/bg.png` is the image path. Now put some image to `assets/bg.png` (better to be a background image), and edit the model in the layer (or scene): ```elm view env data = renderSprite env.globalData [] ( 0, 0 ) ( 1920, 1080 ) "bg" ``` Now `make` and see the result! *Hint.* The game will not start until all textures are loaded. If users found that they cannot load any images, please check whether a static file hosting tool is used to host the game. *Hint.* In case of drawing pixel art, users may want to use `imageSmoothing False` setting to avoid blurring. *Hint.* Messenger also provides `renderSpriteWithRev` and `renderSpriteCropped` to do advanced sprite rendering. See the documentation in Elm to learn more. === Image Auto-scale Messenger knows the size of the images users load (except for some non-hinted SVG images). Therefore it also is able to infer the width given the height. You may omit height or width to let Messenger automatically infer the other one when using `renderSprite`, like this: ```elm view env data = renderSprite env.globalData [] ( 0, 0 ) ( 1920, 0 ) "bg" ``` If the "bg" image is 16:9, then Messenger will calculate its height to be 1080. Moreover, you may omit both width and height: ```elm view env data = renderSprite env.globalData [] ( 0, 0 ) ( 0, 0 ) "bg" ``` In that case, Messenger will use the size of the image as the virtual size directly. == Text Rendering text in Canvas is a little bit tricky. Text has many properties: font, color, size, position, alignment, baseline, and text content. Alignment determines whether the position is the horizontal start/center/end of the text; baseline determines whether the position is the (vertical) top/middle/bottom of the text. Messenger provides several functions to render text in `Messenger.Render.Text`: - `renderText`: Renders a text with black color, start alignment and top baseline - `renderTextWithColorCenter`: Most commonly used. Renders a text with center alignment and middle baseline - `renderTextWithSettings`: Renders a text with manual settings - And more in that module == Basic Shapes *Review.* How to draw a rectangle in `elm-canvas`? We use `shapes` and `rect` to draw a rectangle. ```elm viewModel env model = shapes [ fill Color.black ] [ rect ( 0, 0 ) 100 100 ] ``` However, that coordinates are in real coordinates. To draw a rectangle in virtual coordinates, use `posToReal` and `lengthToReal` from `Messenger.Coordinate.Coordinates`: ```elm viewModel env model = shapes [ fill Color.black ] [ rect (posToReal env.globalData ( 0, 0 )) (lengthToReal env.globalData 100) (lengthToReal env.globalData 100) ] ``` Messenger also provides a function to draw a rectangle in virtual coordinates in `Messenger.Render.Shape` to generate shapes more easily. However, most `elm-canvas` shapes need to be generated by using low-level Messenger functions like above. == Sprite Sheet If users want to render a sprite sheet, they need to add their sprite sheet configuration to `Lib/Resources.elm`. For example: ```elm allSpriteSheets : SpriteSheet allSpriteSheets = Dict.fromList [ ( "spritesheet1" , [ ( "sp1" , { realStartPoint = ( 0, 0 ) , realSize = ( 100, 100 ) } ) , ( "sp2" , { realStartPoint = ( 100, 0 ) , realSize = ( 100, 100 ) } ) ] ) ] ``` `SpriteSheet` is a dictionary that maps sprite sheet *image ID* to a list of sprites. Each sprite is a pair of sprite ID and sprite configuration. The sprite configuration contains the real start point and real size of the sprite. The unit of real start point and real size is in pixel. Then users can render a sprite sheet by: ```elm renderSprite env.globalData [ imageSmoothing False ] ( 0, 0 ) ( 100, 0 ) ("spritesheet1.sp1") ``` Messenger will load all the sprites in `allSpriteSheets` to memory when the game starts, so users can use `renderSprite` to render it just like a normal sprite. *Note.* Users will still need to put `spritesheet1` in `allTexture` as normal since it is only an ID, not a path. However, that texture will be loaded to sprite sheet so `renderSprite` on `spritesheet1` will not work. Full example is in #link("https://github.com/linsyking/messenger-examples/tree/main/spritesheet")[spritesheet].
https://github.com/UBOdin/data_structures_book
https://raw.githubusercontent.com/UBOdin/data_structures_book/main/chapters/1-introduction.typ
typst
= Introduction Data Structures classes often have a mixed reception. Students frequently say that it's hard to see how concepts from data structures get deployed into practice. They complain that the class doesn't teach them to solve specific problems. To some extent, that's true. This class is less about learning how to build the next AI, data management system, or website. Instead, this class is about giving you a set of simple tools that you'll be able to reach for, no matter what great things you end up doing. In short, this class will introduce you to the hammers, wrenches, and screwdrivers of computer science. We'll show you how to decide whether a phillips-head or a flathead screwdriver is better for your use case; when to use a socket wrench or a crescent wrench. A bit less metaphorically, this class will teach you to think about different data management use cases (called abstract data types), and give you a set of data organization strategies (called data structures) suitable for each. We'll also introduce asymptotic complexity, a way to quickly summarize the performance characteristics of data structures (and a tool for thinking about algorithms). Finally, we'll nudge you to start thinking about code a bit more formally, less as a sequence of instructions, and more in terms of the goals those instructions are trying to achieve. == What should you get out of this Data Structures class? This data structures class is fundamentally a math class, where the math will make you into a better programmer. On the subject of learning math, <NAME>#footnote[#link("https://terrytao.wordpress.com/career-advice/theres-more-to-mathematics-than-rigour-and-proofs/")] observes that, while learning to think rigorously is an important step in developing the discipline needed to avoid common logic errors, understanding the underlying intuition is critical too. Along these lines, our goal in this class is both to help you develop the mathematical rigor and discipline to reason about your code, as well as to develop an intuition for how data organization impacts your code's runtime. === An intuition for data structures Throughout the book (and class), we'll try to be precise and formal when talking about course material. That said, we're less interested in you learning the precise formalism, and more interested in you developing an intuition about what the formalism represents. It's possible (even likely) that after leaving this class, you will never again consciously think about the fact that prepending to a linked list is $O(1)$. If so, that's fine. What we care about is ... - ... that you develop an instinct for which data structure is right for a given situation. - ... that you get a little cringe in the back of your brain when you see a method with an $O(N)$ complexity. - ... that you get a little cringe in the back of your brain when you see a doubly nested loop, or another piece of $O(N^2)$ or worse code. === Practice with formal proofs and recursion By the time you take this class, you should have already taken a discrete math class and gotten your first exposure to proofs and recursive thinking. This class is intended to develop those same skills further: - We'll review an assortment of proofs regarding algorithm runtimes using specific data structures. - We'll discuss specific strategies you can use while proving things. - We'll review recursion and discuss approaches to identifying problems that can be solved through recursion and how to use recursion as a problem solving technique. Apart from preparing you for subsequent theory-oriented classes, our goal here is to give you some tools that you can use to think critically about code that you write, and that you need to debug. If, in five years, you completely forget how to prove that quick sort is Expected-$O(N log N)$, it'll make us sad, but we'll understand. Instead, we hope that you'll walk away from the class with the instinct to write down invariants for code that you're trying to write or debug. == What this class is not. In contrast to many data structures classes, which introduce C programming, memory management, and other related concepts, UB's 250 is intended as a concepts/theory-style class. We will use code. We will spend some time talking about the mechanics of how a computer runs that code. We'll provide lots of example code in Java (or some cases Python), and we'll make extensive use of Java's class inheritance model. These examples are there to motivate concepts that you will learn throughout the class, or to make the concepts a bit more precise and concrete. However, we assume that you already know how to program in a major object-oriented language (like Java or Python). This is not a class to learn to program; We're here to teach you asymptotic analysis, data structures (ignoring language details where possible), and proof techniques. == A word on Lies and Trickery "All models are wrong, but some are useful" This is an introductory text. You should expect that many of the things we say are simplified for the purposes of presentation. Some things we say and write (e.g., all array accesses are constant-time) will be outright lies (at least for modern computers). However, we make these simplifications intentionally, because it's far easier to grok the simpler model of code and data organization, and because the simpler model is a reasonable approximation (up to a point). We'll add footnotes that highlight some of the more blatant lies, and hint at some of the nuanced details. In a few cases (e.g., constant time array accesses), we'll also walk back the approximation a bit later in the book. That said, these footnotes are primarily present for the pedantic and the curious. You should still be able to understand the rest of the book even if you ignore every single footnote in the text.
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/tgm-hit-thesis/0.1.3/template/lib.typ
typst
Apache License 2.0
#import "@preview/tgm-hit-thesis:0.1.3": * #import "assets.typ"
https://github.com/eneoli/kit-thesis-template
https://raw.githubusercontent.com/eneoli/kit-thesis-template/main/address.typ
typst
Karlsruher Institut für Technologie #linebreak() Fakultät für Informatik #linebreak() Postfach 6980 #linebreak() 76128 Karlsruhe #linebreak()
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/04-opentype/exploring/hmtx.typ
typst
Other
#import "/template/template.typ": web-page-template #import "/template/components.typ": note, cross-ref #import "/lib/glossary.typ": tr #show: web-page-template // ### The `hmtx` table === `hmtx` 表 // Let's go back onto somewhat safer ground, with the `hmtx` table, containing the horizontal metrics of the font's glyphs. As we can see in the screenshots from Glyphs above, we are expecting our /A to have an LSB of 3, an RSB of 3 and a total advance width of 580, while the /B has LSB 90, RSB 40 and advance of 618. 包含横向#tr[metrics]信息的 `hmtx` 表的情况稍好一些。从#cross-ref(<figure:soource-sans-AB>, web-path: "/chapters/04-opentype/opentype-3-2.typ", web-content: [此前]) 的 Glypys 截图中可以看出,我们测试字体中的 A 的左#tr[sidebearing](LSB)和右#tr[sidebearing](RSB)都是3,#tr[advance width]是580。#tr[glyph] B 则是 LSB 为 90,RSB 为 40,#tr[advance width] 618。 // Mercifully, that's exactly what we see: 这和XML中显示的完全一致: ```xml <hmtx> <mtx name=".notdef" width="500" lsb="93"/> <mtx name="A" width="580" lsb="3"/> <mtx name="B" width="618" lsb="90"/> </hmtx> ``` // There are vertical counterparts to the `hhea` and `hmtx` tables (called, unsurprisingly, `vhea` and `vmtx`), but we will discuss those when we look at implementing global typography in OpenType. `hhea`和`hmtx`中的信息会在文本横排时使用,这些信息也有对应的竖排版本,储存在 `vhea` 和 `vmtx` 表中。我们会在后面介绍如何用 OpenType 实现#tr[global scripts]的排版时再讨论它们。
https://github.com/EpicEricEE/typst-marge
https://raw.githubusercontent.com/EpicEricEE/typst-marge/main/tests/resolve/binding/test.typ
typst
MIT License
#import "/src/resolve.typ": resolve-binding #context assert.eq(resolve-binding(), left) ~ #{ set page(binding: right) context assert.eq(here().page(), 1) context assert.eq(resolve-binding(), right) } #{ set text(dir: rtl) context assert.eq(resolve-binding(), right) } #{ set text(lang: "he") context assert.eq(resolve-binding(), right) }
https://github.com/jneug/typst-tools4typst
https://raw.githubusercontent.com/jneug/typst-tools4typst/main/t4t-manual.typ
typst
MIT License
#import "@local/mantys:0.0.3": * #import "tools4typst.typ" #let module-scope = ( is: tools4typst.is, def: tools4typst.def, alias: tools4typst.alias, assert: tools4typst.assert, get: tools4typst.get, math: tools4typst.math ) #let show-tests( display:false, ..tests ) = { if display { let code = tests.pos().fold("", (c, r) => { c += r.text + "\n" c }) scale(x:75%, y:75%, origin:left)[ *Tests*\ #v(-1.25em) #codesnippet(raw(lang:"typc", code)) ] } } #let test( scope: (:), ..tests ) = { for test in tests.pos() { let msg = if test.text.starts-with("not ") { test.text.slice(4) + " should be false, was true" } else { test.text + " should be true, was false" } assert( eval(test.text, scope:module-scope + scope), message: msg ) } show-tests(..tests) } #let show-module( name ) = module-commands(name)[ #tidy-module( read(name + ".typ"), name: name, scope: module-scope + (test: test) ) ] #show: mantys.with( ..toml("typst.toml"), subtitle: [Tools For Typst], date: datetime.today(), abstract: [ *Tools for Typst* (`t4t` in short) is a utility package for Typst package and template authors. It provides solutions to some recurring tasks in package development. The package can be imported or any useful parts of it copied into a project. It is perfectly fine to treat `t4t` as a snippet collection and to pick and choose only some useful functions. For this reason, most functions are implemented without further dependencies. Hopefully, this collection will grow over time with *Typst* to provide solutions for common problems. ] ) = Usage == Load from package repository (Typst 0.6.0 and later) For Typst 0.6.0 and later, the package can be imported from the _preview_ repository: #codesnippet[```typ #import "@preview/t4t:0.3.1": automaton ```] Alternatively, the package can be downloaded and saved into the system dependent local package repository. Either download the current release from GitHub#footnote[#link("https://github.com/jneug/typst-tools4typst")] and unpack the archive into your system dependent local repository folder#footnote[#link("https://github.com/typst/packages#local-packages")] or clone it directly: #codesnippet[```shell-unix-generic git clone https://github.com/jneug/typst-tools4typst.git t4t/0.3.1 ```] In either case, make sure the files are placed in a subfolder with the correct version number: `t4t/0.3.1` After installing the package, just import it inside your `typ` file: #codesnippet[```typ #import "@local/t4t:0.3.1": automaton ```] == Manual The manual is created using #package[Tidy]#footnote(link("https://github.com/Mc-Zen/tidy")) with the Mantys#footnote(link("https://github.com/jneug/typst-mantys")) template. #package[Tidy] will be loaded from the package repository while Mantys needs to be installed manually into the local package repository. Refer to the Mantys manual for further information. The manual doubles as a test suite by adding simple tests to the docstring of each function. #show raw: set raw(lang: "typ") = Module reference == Test functions #codesnippet[```typ #import "@preview/t4t:0.2.0": is ```] These functions provide shortcuts to common tests like #cmd(module: "is")[eq]. Some of these are not shorter than writing pure typst code (e.g. `a == b`), but can easily be used in `.any()` or `.find()` calls: #sourcecode[```typc // check all values for none if some-array.any(is-none) { ... } // find first not none value let x = (none, none, 5, none).find(is.not-none) // find position of a value let pos-bar = args.pos().position(is.eq.with("|")) ```] There are two exceptions: #cmd[is-none] and #cmd[is-auto]. Since keywords can't be used as function names, the #module[is] module can't define a function like `is.none()`. Therefore the functions #cmd[is-none] and #cmd[is-auto] are provided in the base module of `t4t`: ```js #import "@preview/t4t:0.2.0": is-none, is-auto ``` The `is` submodule still has these tests, but under different names (#cmd(module:"is")[n] and #cmd(module:"is")[non] for #value(none) and #cmd(module:"is")[a] and #cmd(module:"is")[aut] for #value(auto)). === Command reference #show-module("is") == Default values #codesnippet[```typ #import "@preview/t4t:0.2.0": def ```] These functions perform a test to decide if a given `value` is _invalid_. If the test _passes_, the `default` is returned, the `value` otherwise. Almost all functions support an optional `do` argument, to be set to a function of one argument, that will be applied to the value if the test fails. For example: #sourcecode[```typc // Sets date to a datetime from an optional // string argument in the format "YYYY-MM-DD" let date = def.if-none( datetime.today(), // default passed_date, // passed in argument do: (d) => { // post-processor d = d.split("-") datetime(year=d[0], month=d[1], day=d[2]) } ) ```] === Command reference #show-module("def") == Assertions #codesnippet[```typ #import "@preview/t4t:0.2.0": assert ```] This submodule overloads the default #doc("foundations/assert") function and provides more asserts to quickly check if given values are valid. All functions use `assert` in the background. Since a module in Typst is not callable, the `assert` function is now available as #cmd(module:"assert")[that]. #cmd(module:"assert")[eq] and #cmd(module:"assert")[ne] work as expected. All assert functions take an optional argument #arg[message] to set the error message for a failed assertion. === Command reference #show-module("assert") == Element helpers #codesnippet[```typ #import "@preview/t4t:0.2.0": get ```] This submodule is a collection of functions, that mostly deal with content elements and _get_ some information from them. Though some handle other types like dictionaries. === Command reference #show-module("get") == Math functions #codesnippet[```typ #import "@preview/t4t:0.2.0": math ```] Some functions to complement the native `calc` module. === Command reference #show-module("math") == Alias functions #codesnippet[```typ #import "@preview/t4t:0.2.0": alias ```] Some of the native Typst function as aliases, to prevent collisions with some common argument namens. For example using #arg[numbering] as an argument is not possible if the value is supposed to be passed to the #cmd[numbering] function. To still allow argument names, that are in line with the common Typst names (like `type`, `align` ...), these alias functions can be used: #sourcecode[```typ #let excercise( no, numbering: "1)" ) = [ Exercise #alias.numbering(numbering, no) ] ```] The following functions have aliases right now: #columns(3)[ - `numbering` - `align` - `type` - `label` - `text` #colbreak() - `raw` - `table` - `list` - `enum` #colbreak() - `terms` - `grid` - `stack` - `columns` ]
https://github.com/VadimYarovoy/CourseWork
https://raw.githubusercontent.com/VadimYarovoy/CourseWork/main/typ/stage_1.typ
typst
== Определить цель программного проекта Разработать и внедрить новую функциональность (НФ) в ранее выпущенное приложение, удовлетворяющую требованиям заказчика и обеспечивающую его выпуск не позднее чем за 2 месяца с момента начала работ. Новая функциональность должна составлять около 10% от общего объема функционала приложения, а также предоставить ключевые сценарии использования, интегрироваться с существующим кодом и тестами, и иметь руководство пользователя. #pagebreak()
https://github.com/OriginCode/typst-homework-template
https://raw.githubusercontent.com/OriginCode/typst-homework-template/master/example.typ
typst
#import "template.typ": * #show: project.with( title: "Hello", authors: ( "Test", ), show_info: false, ) #question("Hello")[ This is a test. #part[ This is a part ] #part[ This is another part ] ] #question("World")[ #part[ Code Example: ```rs fn main() { println!("Wow it can show my Rust code!") } ``` ] ]
https://github.com/jneug/schule-typst
https://raw.githubusercontent.com/jneug/schule-typst/main/tests/base2page/test.typ
typst
MIT License
#import "@local/schule:1.0.0": ab #import ab: * #show: arbeitsblatt.with( /* @typstyle:off */ titel: "2. Klausur", reihe: "Rechnernetze", datum: "27.11.2023", nummer: "2", fach: "Informatik", kurs: "Q1 LK", autor: ( name: "<NAME>", kuerzel: "Ngb", ), version: datetime.today(), ) #lorem(600)
https://github.com/SkytAsul/INSA-Typst-Template
https://raw.githubusercontent.com/SkytAsul/INSA-Typst-Template/main/exemples/exemple-compte-rendu.typ
typst
MIT License
#import "../insa-template/document-template.typ" : * #show: doc => insa-report( id: 3, pre-title: "STPI X", title: "Interférences et diffraction", authors: [ *NOM 1 Prénom 1* *NOM 2 Prénom 2* <NAME> ], date: datetime.today(), insa: "rennes", doc) Template fait pour des comptes-rendus (notamment ceux de STPI) : - règles de numérotation des titres incluses - équations numérotées aussi - paragraphes justifiés - premiers titres en lettres capitales - les blocs de code sont automatiquement entourés d'un trait et contiennent des numéros de ligne = Théorie blabla == Sous-partie 1 Une petite équation: $ (lambda D) / (n pi) = "truc au pif" $ // petit commentaire Des maths sur la même ligne: $a b = sqrt(b a)$ Maintenant voici du contenu: #figure(table( columns: 2, [*Colonne 1*], [*Colonne 2*], "quelque chose", "une autre chose", "tralalala", "skibidi" ), caption: "Random tableau au pif") #figure(image("../illustrations/github-download.png", width: 50%), caption: "Une image random") === Un bloc de code en Java ```java public class ClasseJava { public static void main(String[] args) { System.out.println("uwu"); } } ```
https://github.com/teamdailypractice/pdf-tools
https://raw.githubusercontent.com/teamdailypractice/pdf-tools/main/typst-pdf/examples/thirukkural.typ
typst
#set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #outline(title: "Table of contents") #set page( numbering: "1/1" ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 1 1 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1], [அகரம் முதல, எழுத்து எல்லாம்; ஆதி- \ பகவன் முதற்றே, உலகு. \ \ ], [2], [கற்றதனால் ஆய பயன் என்கொல்-வால்-அறிவன் \ நல் தாள் தொழாஅர் எனின்?. \ \ ], [3], [மலர்மிசை ஏகினான் மாண் அடி சேர்ந்தார் \ நிலமிசை நீடு வாழ்வார். \ \ ], [4], [வேண்டுதல் வேண்டாமை இலான் அடி சேர்ந்தார்க்கு \ யாண்டும் இடும்பை இல. \ \ ], [5], [இருள் சேர் இரு வினையும் சேரா, இறைவன் \ பொருள் சேர் புகழ் புரிந்தார்மாட்டு. \ \ ], [6], [பொறி வாயில் ஐந்து அவித்தான் பொய் தீர் ஒழுக்க \ நெறி நின்றார் நீடு வாழ்வார். \ \ ], [7], [தனக்கு உவமை இல்லாதான் தாள் சேர்ந்தார்க்கு அல்லால், \ மனக் கவலை மாற்றல் அரிது. \ \ ], [8], [அற ஆழி அந்தணன் தாள் சேர்ந்தார்க்கு அல்லால், \ பிற ஆழி நீந்தல் அரிது. \ \ ], [9], [கோள் இல் பொறியில் குணம் இலவே-எண்குணத்தான் \ தாளை வணங்காத் தலை. \ \ ], [10], [பிறவிப் பெருங் கடல் நீந்துவர்; நீந்தார், \ இறைவன் அடி சேராதார். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 2 11 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [11], [வான் நின்று உலகம் வழங்கி வருதலான், \ தான் அமிழ்தம் என்று உணரல் பாற்று. \ \ ], [12], [துப்பார்க்குத் துப்பு ஆய துப்பு ஆக்கி, துப்பார்க்குத் \ துப்பு ஆயதூஉம் மழை. \ \ ], [13], [விண் இன்று பொய்ப்பின், விரிநீர் வியன் உலகத்து- \ உள் நின்று உடற்றும் பசி. \ \ ], [14], [ஏரின் உழாஅர் உழவர், புயல் என்னும் \ வாரி வளம் குன்றிக்கால். \ \ ], [15], [கெடுப்பதூஉம், கெட்டார்க்குச் சார்வாய் மற்று ஆங்கே \ எடுப்பதூஉம், எல்லாம் மழை. \ \ ], [16], [விசும்பின் துளி வீழின் அல்லால், மற்று ஆங்கே \ பசும் புல் தலை காண்பு அரிது. \ \ ], [17], [நெடுங் கடலும் தன் நீர்மை குன்றும், தடிந்து எழிலி- \ தான் நல்காது ஆகிவிடின். \ \ ], [18], [சிறப்பொடு பூசனை செல்லாது-வானம் \ வறக்குமேல், வானோர்க்கும், ஈண்டு. \ \ ], [19], [தானம் தவம் இரண்டும் தங்கா, வியன் உலகம் \ வானம் வழங்காது எனின். \ \ ], [20], [நீர் இன்று அமையாது உலகுஎனின், யார்யார்க்கும் \ வான் இன்று அமையாது ஒழுக்கு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 3 21 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [21], [ஒழுக்கத்து நீத்தார் பெருமை விழுப்பத்து \ வேண்டும்- பனுவல் துணிவு. \ \ ], [22], [துறந்தார் பெருமை துணைக் கூறின், வையத்து \ இறந்தாரை எண்ணிக்கொண்டற்று. \ \ ], [23], [இருமை வகை தெரிந்து ஈண்டு அறம் பூண்டார் \ பெருமை பிறங்கிற்று, உலகு. \ \ ], [24], [உரன் என்னும் தோட்டியான், ஓர் ஐந்தும் காப்பான் \ வரன் என்னும் வைப்பிற்கு ஓர் வித்து. \ \ ], [25], [ஐந்து அவித்தான் ஆற்றல், அகல் விசும்புளார் கோமான் \ இந்திரனே சாலும், கரி. \ \ ], [26], [செயற்கு அரிய செய்வார் பெரியர்; சிறியர் \ செயற்கு அரிய செய்கலாதார். \ \ ], [27], [சுவை, ஒளி, ஊறு, ஓசை, நாற்றம் என்று ஐந்தின் \ வகை தெரிவான்கட்டே-உலகு. \ \ ], [28], [நிறைமொழி மாந்தர் பெருமை நிலத்து \ மறைமொழி காட்டிவிடும். \ \ ], [29], [குணம் என்னும் குன்று ஏறி நின்றார் வெகுளி \ கணம் ஏயும், காத்தல் அரிது. \ \ ], [30], [அந்தணர் என்போர் அறவோர்-மற்று எவ் உயிர்க்கும் \ செந் தண்மை பூண்டு ஒழுகலான். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 4 31 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [31], [சிறப்பு ஈனும்; செல்வமும் ஈனும்; அறத்தின் ஊஉங்கு \ ஆக்கம் எவனோ, உயிர்க்கு. \ \ ], [32], [அறத்தின் ஊஉங்கு ஆக்கமும் இல்லை; அதனை \ மறத்தலின் ஊங்கு இல்லை கேடு. \ \ ], [33], [ஒல்லும் வகையான் அறவினை ஓவாதே \ செல்லும் வாய் எல்லாம் செயல். \ \ ], [34], [மனத்துக்கண் மாசு இலன் ஆதல்; அனைத்து அறன்; \ ஆகுல நீர, பிற. \ \ ], [35], [அழுக்காறு, அவா, வெகுளி, இன்னாச் சொல், நான்கும் \ இழுக்கா இயன்றது-அறம். \ \ ], [36], ['அன்று அறிவாம்' என்னாது, அறம் செய்க; மற்று அது \ பொன்றுங்கால் பொன்றாத் துணை. \ \ ], [37], ['அறத்து ஆறு இது' என வேண்டா; சிவிகை \ பொறுத்தானொடு ஊர்ந்தான் இடை. \ \ ], [38], [வீழ் நாள் படாஅமை நன்று ஆற்றின், அஃது ஒருவன் \ வாழ் நாள் வழி அடைக்கும் கல். \ \ ], [39], [அறத்தான் வருவதே இன்பம்; மற்று எல்லாம் \ புறத்த; புகழும் இல. \ \ ], [40], [செயற்பாலது ஓரும் அறனே; ஒருவற்கு \ உயற்பாலது ஓரும் பழி. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 5 41 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [41], [இல்வாழ்வான் என்பான் இயல்பு உடைய மூவர்க்கும் \ நல்லாற்றின் நின்ற துணை. \ \ ], [42], [துறந்தார்க்கும், துவ்வாதவர்க்கும், இறந்தார்க்கும், \ இல்வாழ்வான் என்பான் துணை. \ \ ], [43], [தென்புலத்தார், தெய்வம், விருந்து, ஒக்கல், தான், என்று ஆங்கு \ ஐம்புலத்து ஆறு ஓம்பல் தலை. \ \ ], [44], [பழி அஞ்சிப் பாத்து ஊண் உடைத்தாயின், வாழ்க்கை \ வழி எஞ்சல், எஞ்ஞான்றும், இல். \ \ ], [45], [அன்பும் அறனும் உடைத்துஆயின், இல்வாழ்க்கை \ பண்பும் பயனும் அது. \ \ ], [46], [அறத்து ஆற்றின் இல்வாழ்க்கை ஆற்றின், புறத்து ஆற்றில் \ போஒய்ப் பெறுவது எவன்?. \ \ ], [47], [இயல்பினான் இல்வாழ்க்கை வாழ்பவன் என்பான் \ முயல்வாருள் எல்லாம் தலை. \ \ ], [48], [ஆற்றின் ஒழுக்கி, அறன் இழுக்கா இல்வாழ்க்கை \ நோற்பாரின் நோன்மை உடைத்து. \ \ ], [49], [அறன் எனப்பட்டதே இல்வாழ்க்கை; அஃதும் \ பிறன் பழிப்பது இல் ஆயின் நன்று. \ \ ], [50], [வையத்துள் வாழ்வாங்கு வாழ்பவன் வான் உறையும் \ தெய்வத்துள் வைக்கப்படும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 6 51 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [51], [மனைத் தக்க மாண்பு உடையள் ஆகி, தற் கொண்டான் \ வளத்தக்காள் வாழ்க்கைத்துணை. \ \ ], [52], [மனை மாட்சி இல்லாள்கண் இல் ஆயின், வாழ்க்கை \ எனைமாட்சித்து ஆயினும், இல். \ \ ], [53], [இல்லது என், இல்லவள் மாண்புஆனால்? உள்ளது என், \ இல்லவள் மாணாக்கடை?. \ \ ], [54], [பெண்ணின் பெருந்தக்க யா உள-கற்பு என்னும் \ திண்மை உண்டாகப்பெறின்?. \ \ ], [55], [தெய்வம் தொழாஅள், கொழுநன்-தொழுது எழுவாள், \ ‘பெய்’ என, பெய்யும் மழை. \ \ ], [56], [தற்காத்து, தற் கொண்டாற் பேணி, தகை சான்ற \ சொற்காத்து, சோர்வு இலாள்-பெண். \ \ ], [57], [சிறை காக்கும் காப்பு எவன் செய்யும்? மகளிர் \ நிறை காக்கும் காப்பே தலை. \ \ ], [58], [பெற்றாற் பெறின் பெறுவர், பெண்டிர், பெருஞ் சிறப்புப் \ புத்தேளிர் வாழும் உலகு. \ \ ], [59], [புகழ் புரிந்த இல் இலோர்க்கு இல்லை-இகழ்வார்முன் \ ஏறுபோல் பீடு நடை. \ \ ], [60], ['மங்கலம்' என்ப, மனைமாட்சி; மற்று அதன் \ நன்கலம் நன் மக்கட் பேறு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 7 61 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [61], [பெறுமவற்றுள் யாம் அறிவது இல்லை-அறிவு அறிந்த \ மக்கட்பேறு அல்ல பிற. \ \ ], [62], [எழுபிறப்பும் தீயவை தீண்டா-பழி பிறங்காப் \ பண்புடை மக்கட் பெறின். \ \ ], [63], [தம் பொருள் என்ப தம் மக்கள்; அவர் பொருள் \ தம்தம் வினையால் வரும். \ \ ], [64], [அமிழ்தினும் ஆற்ற இனிதே-தம் மக்கள் \ சிறு கை அளாவிய கூழ். \ \ ], [65], [மக்கள் மெய் தீண்டல் உடற்கு இன்பம்; மற்று அவர் \ சொல் கேட்டல் இன்பம், செவிக்கு. \ \ ], [66], ['குழல் இனிது; யாழ் இனிது' என்ப-தம் மக்கள் \ மழலைச் சொல் கேளாதவர். \ \ ], [67], [தந்தை மகற்கு ஆற்றும் நன்றி அவையத்து \ முந்தி இருப்பச் செயல். \ \ ], [68], [தம்மின், தம் மக்கள் அறிவுடைமை மா நிலத்து \ மன் உயிர்க்கு எல்லாம் இனிது. \ \ ], [69], [ஈன்ற பொழுதின் பெரிது உவக்கும்-தன் மகனைச் \ சான்றோன் எனக் கேட்ட தாய். \ \ ], [70], [மகன் தந்தைக்கு ஆற்றும் உதவி, ‘இவன் தந்தை \ என் நோற்றான்கொல்!’ எனும் சொல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 8 71 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [71], [அன்பிற்கும் உண்டோ, அடைக்கும் தாழ்?ஆர்வலர் \ புன்கண்நீர் பூசல் தரும். \ \ ], [72], [அன்பு இலார் எல்லாம் தமக்கு உரியர்; அன்பு உடையார் \ என்பும் உரியர், பிறர்க்கு. \ \ ], [73], ['அன்போடு இயைந்த வழக்கு' என்ப-'ஆர் உயிர்க்கு \ என்போடு இயைந்த தொடர்பு'. \ \ ], [74], [அன்பு ஈனும் ஆர்வம் உடைமை; அது ஈனும், \ ‘நண்பு’ என்னும் நாடாச் சிறப்பு. \ \ ], [75], ['அன்புற்று அமர்ந்த வழக்கு' என்ப-'வையகத்து \ இன்புற்றார் எய்தும் சிறப்பு'. \ \ ], [76], ['அறத்திற்கே அன்பு சார்பு' என்ப, அறியார்; \ மறத்திற்கும் அஃதே துணை. \ \ ], [77], [என்பு இலதனை வெயில் போலக் காயுமே- \ அன்பு இலதனை அறம். \ \ ], [78], [அன்பு அகத்து இல்லா உயிர் வாழ்க்கை வன்பாற்கண் \ வற்றல்மரம் தளிர்த்தற்று. \ \ ], [79], [புறத்து உறுப்பு எல்லாம் எவன் செய்யும்-யாக்கை \ அகத்து உறுப்பு அன்பு இலவர்க்கு?. \ \ ], [80], [அன்பின் வழியது உயிர்நிலை; அஃது இலார்க்கு \ என்பு தோல் போர்த்த உடம்பு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 9 81 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [81], [இருந்து ஓம்பி இல் வாழ்வது எல்லாம் விருந்து ஓம்பி \ வேளாண்மை செய்தற்பொருட்டு. \ \ ], [82], [விருந்து புறத்ததாத் தான் உண்டல், சாவா \ மருந்து எனினும் வேண்டற்பாற்று அன்று. \ \ ], [83], [வரு விருந்து வைகலும் ஓம்புவான் வாழ்க்கை \ பருவந்து பாழ்படுதல் இன்று. \ \ ], [84], [அகன் அமர்ந்து செய்யாள் உறையும்-முகன் அமர்ந்து \ நல் விருந்து ஓம்புவான் இல். \ \ ], [85], [வித்தும் இடல்வேண்டும் கொல்லோ-விருந்து ஓம்பி, \ மிச்சில் மிசைவான் புலம்?. \ \ ], [86], [செல் விருந்து ஓம்பி, வரு விருந்து பார்த்திருப்பான் \ நல் விருந்து, வானத்தவர்க்கு. \ \ ], [87], [இனைத் துணைத்து என்பது ஒன்று இல்லை; விருந்தின் \ துணைத் துணை-வேள்விப் பயன். \ \ ], [88], ['பரிந்து ஓம்பி, பற்று அற்றேம்' என்பர்-விருந்து ஓம்பி \ வேள்வி தலைப்படாதார். \ \ ], [89], [உடைமையுள் இன்மை விருந்து ஓம்பல் ஓம்பா \ மடமை; மடவார்கண் உண்டு. \ \ ], [90], [மோப்பக் குழையும் அனிச்சம்;- முகம் திரிந்து \ நோக்கக் குழையும் விருந்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 10 91 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [91], [இன் சொல்-ஆல் ஈரம் அளைஇ, படிறு இலஆம் \ செம்பொருள் கண்டார் வாய்ச் சொல். \ \ ], [92], [அகன் அமர்ந்து ஈதலின் நன்றேமுகன் அமர்ந்து \ இன்சொலன் ஆகப்பெறின். \ \ ], [93], [முகத்தான் அமர்ந்து, இனிது நோக்கி, அகத்தான் ஆம் \ இன் சொலினதே அறம். \ \ ], [94], [துன்புறூஉம் துவ்வாமை இல்லாகும் யார்மாட்டும் \ இன்புறூஉம் இன்சொலவர்க்கு. \ \ ], [95], [பணிவு உடையன், இன்சொலன் ஆதல் ஒருவற்கு \ அணி; அல்ல, மற்றுப் பிற. \ \ ], [96], [அல்லவை தேய அறம் பெருகும் நல்லவை \ நாடி, இனிய சொலின். \ \ ], [97], [நயன் ஈன்று நன்றி பயக்கும்பயன் ஈன்று \ பண்பின் தலைப்பிரியாச் சொல். \ \ ], [98], [சிறுமையுள் நீங்கிய இன்சொல், மறுமையும் \ இம்மையும், இன்பம் தரும். \ \ ], [99], [இன் சொல் இனிது ஈன்றல் காண்பான், எவன்கொலோ- \ வன் சொல் வழங்குவது?. \ \ ], [100], [இனிய உளவாக இன்னாத கூறல்- \ கனி இருப்ப, காய் கவர்ந்தற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 11 101 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [101], [செய்யாமல் செய்த உதவிக்கு வையகமும் \ வானகமும் ஆற்றல் அரிது. \ \ ], [102], [காலத்தினால் செய்த நன்றி சிறிது எனினும், \ ஞாலத்தின் மாணப் பெரிது. \ \ ], [103], [பயன் தூக்கார் செய்த உதவி நயன் தூக்கின், \ நன்மை கடலின் பெரிது. \ \ ], [104], [தினைத் துணை நன்றி செயினும், பனைத் துணையாக் \ கொள்வர்-பயன் தெரிவார். \ \ ], [105], [உதவி வரைத்து அன்று, உதவி; உதவி \ செயப்பட்டார் சால்பின் வரைத்து. \ \ ], [106], [மறவற்க, மாசு அற்றார் கேண்மை! துறவற்க, \ துன்பத்துள் துப்பு ஆயார் நட்பு!. \ \ ], [107], [எழுமை எழு பிறப்பும் உள்ளுவர்-தம்கண் \ விழுமம் துடைத்தவர் நட்பு. \ \ ], [108], [நன்றி மறப்பது நன்று அன்று; நன்று அல்லது \ அன்றே மறப்பது நன்று. \ \ ], [109], [கொன்றன்ன இன்னா செயினும், அவர் செய்த \ ஒன்றும் நன்று உள்ள,கெடும். \ \ ], [110], [எந் நன்றி கொன்றார்க்கும் உய்வு உண்டாம்; உய்வு இல்லை, \ செய்ந்நன்றி கொன்ற மகற்கு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 12 111 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [111], [தகுதி என ஒன்றும் நன்றே-பகுதியான் \ பாற்பட்டு ஒழுகப்பெறின். \ \ ], [112], [செப்பம் உடையவன் ஆக்கம் சிதைவு இன்றி, \ எச்சத்திற்கு ஏமாப்பு உடைத்து. \ \ ], [113], [நன்றே தரினும், நடுவு இகந்து ஆம் ஆக்கத்தை \ அன்றே ஒழியவிடல்!. \ \ ], [114], [தக்கார் தகவு இலர் என்பது அவர் அவர் \ எச்சத்தால் காணப்படும். \ \ ], [115], [கேடும் பெருக்கமும் இல் அல்ல; நெஞ்சத்துக் \ கோடாமை சான்றோர்க்கு அணி. \ \ ], [116], ['கெடுவல் யான்' என்பது அறிக-தன் நெஞ்சம் \ நடுவு ஓரீஇ, அல்ல செயின். \ \ ], [117], [கெடுவாக வையாது உலகம்-நடுவாக \ நன்றிக்கண் தங்கியான் தாழ்வு. \ \ ], [118], [சமன் செய்து சீர் தூக்கும் கோல்போல் அமைந்து, ஒருபால் \ கோடாமை-சான்றோர்க்கு அணி. \ \ ], [119], [சொற் கோட்டம் இல்லது, செப்பம்-ஒருதலையா \ உட் கோட்டம் இன்மை பெறின். \ \ ], [120], [வாணிகம் செய்வார்க்கு வாணிகம்-பேணிப் \ பிறவும் தமபோல் செயின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 13 121 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [121], [அடக்கம் அமரருள் உய்க்கும்; அடங்காமை \ ஆர் இருள் உய்த்துவிடும். \ \ ], [122], [காக்க, பொருளா அடக்கத்தை-ஆக்கம் \ அதனின் ஊங்கு இல்லை, உயிர்க்கு!. \ \ ], [123], [செறிவு அறிந்து சீர்மை பயக்கும்-அறிவு அறிந்து \ ஆற்றின் அடங்கப் பெறின். \ \ ], [124], [நிலையின் திரியாது அடங்கியான் தோற்றம் \ மலையினும் மாணப் பெரிது. \ \ ], [125], [எல்லார்க்கும் நன்று ஆம், பணிதல்; அவருள்ளும் \ செல்வர்க்கே செல்வம் தகைத்து. \ \ ], [126], [ஒருமையுள், ஆமைபோல், ஐந்து அடக்கல் ஆற்றின், \ எழுமையும் ஏமாப்பு உடைத்து. \ \ ], [127], [யா காவார் ஆயினும், நா காக்க; காவாக்கால், \ சோகாப்பர், சொல் இழுக்குப் பட்டு. \ \ ], [128], [ஒன்றானும் தீச்சொற் பொருட் பயன் உண்டாயின், \ நன்று ஆகாது ஆகிவிடும். \ \ ], [129], [தீயினால் சுட்ட புண் உள் ஆறும்;- ஆறாதே \ நாவினால் சுட்ட வடு. \ \ ], [130], [கதம் காத்து, கற்று, அடங்கல் ஆற்றுவான் செவ்வி \ அறம் பார்க்கும் ஆற்றின் நுழைந்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 14 131 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [131], [ஒழுக்கம் விழுப்பம் தரலான், ஒழுக்கம் \ உயிரினும் ஓம்பப்படும். \ \ ], [132], [பரிந்து ஓம்பிக் காக்க, ஒழுக்கம்-தெரிந்து ஓம்பித் \ தேரினும், அஃதே துணை!. \ \ ], [133], [ஒழுக்கம் உடைமை குடிமை; இழுக்கம் \ இழிந்த பிறப்பாய்விடும். \ \ ], [134], [மறப்பினும், ஒத்துக் கொளல் ஆகும்; பார்ப்பான் \ பிறப்பு ஒழுக்கம் குன்றக் கெடும். \ \ ], [135], [அழுக்காறு உடையான்கண் ஆக்கம் போன்று இல்லை- \ ஒழுக்கம் இலான்கண் உயர்வு. \ \ ], [136], [ஒழுக்கத்தின் ஒல்கார் உரவோர்-இழுக்கத்தின் \ ஏதம் படுபாக்கு அறிந்து. \ \ ], [137], [ஒழுக்கத்தின் எய்துவர், மேன்மை; இழுக்கத்தின் \ எய்துவர், எய்தாப் பழி. \ \ ], [138], [நன்றிக்கு வித்து ஆகும் நல் ஒழுக்கம்; தீ ஒழுக்கம் \ என்றும் இடும்பை தரும். \ \ ], [139], [ஒழுக்கம் உடையவர்க்கு ஒல்லாவே-தீய \ வழுக்கியும், வாயால் சொலல். \ \ ], [140], [உலகத்தோடு ஒட்ட ஒழுகல், பல கற்றும், \ கல்லார் அறிவிலாதார். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 15 141 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [141], [பிறன் பொருளாள்-பெட்டு ஒழுகும் பேதைமை ஞாலத்து \ அறம், பொருள், கண்டார்கண் இல். \ \ ], [142], [அறன்கடை நின்றாருள் எல்லாம், பிறன்கடை \ நின்றாரின், பேதையார் இல். \ \ ], [143], [விளிந்தாரின் வேறு அல்லர் மன்ற-தெளிந்தார் இல் \ தீமை புரிந்து ஒழுகுவார். \ \ ], [144], [எனைத் துணையர் ஆயினும் என்னாம்-தினைத் துணையும் \ தேரான், பிறன் இல் புகல?. \ \ ], [145], ['எளிது' என இல் இறப்பான் எய்தும்-எஞ் ஞான்றும் \ விளியாது நிற்கும் பழி. \ \ ], [146], [பகை, பாவம், அச்சம், பழி என நான்கும் \ இகவா ஆம்-இல் இறப்பான்கண். \ \ ], [147], [அறன் இயலான் இல்வாழ்வான் என்பான்-பிறன் இயலாள் \ பெண்மை நயவாதவன். \ \ ], [148], [பிறன் மனை நோக்காத பேர் ஆண்மை, சான்றோர்க்கு \ அறன் ஒன்றோ?ஆன்ற ஒழுக்கு. \ \ ], [149], ['நலக்கு உரியார் யார்?' எனின், நாம நீர் வைப்பில் \ பிறற்கு உரியாள் தோள் தோயாதார். \ \ ], [150], [அறன் வரையான், அல்ல செயினும், பிறன் வரையாள் \ பெண்மை நயவாமை நன்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 16 151 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [151], [அகழ்வாரைத் தாங்கும் நிலம் போல, தம்மை \ இகழ்வார்ப் பொறுத்தல் தலை. \ \ ], [152], [பொறுத்தல், இறப்பினை என்றும்; அதனை \ மறத்தல் அதனினும் நன்று. \ \ ], [153], [இன்மையுள் இன்மை விருந்து ஒரால்; வன்மையுள் \ வன்மை மடவார்ப் பொறை. \ \ ], [154], [நிறை உடைமை நீங்காமை வேண்டின், பொறை உடைமை \ போற்றி ஒழுகப்படும். \ \ ], [155], [ஒறுத்தாரை ஒன்றாக வையாரே; வைப்பர், \ பொறுத்தாரைப் பொன்போல் பொதிந்து. \ \ ], [156], [ஒறுத்தார்க்கு ஒரு நாளை இன்பம்; பொறுத்தார்க்குப் \ பொன்றும் துணையும் புகழ். \ \ ], [157], [திறன் அல்ல தன்-பிறர் செய்யினும், நோ நொந்து, \ அறன் அல்ல செய்யாமை நன்று. \ \ ], [158], [மிகுதியான் மிக்கவை செய்தாரைத் தாம் தம் \ தகுதியான் வென்றுவிடல்!. \ \ ], [159], [துறந்தாரின் தூய்மை உடையர்-இறந்தார்வாய் \ இன்னாச் சொல் நோற்கிற்பவர். \ \ ], [160], [உண்ணாது நோற்பார் பெரியர்-பிறர் சொல்லும் \ இன்னாச் சொல் நோற்பாரின் பின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 17 161 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [161], [ஒழுக்கு ஆறாக் கொள்க-ஒருவன் தன் நெஞ்சத்து \ அழுக்காறு இலாத இயல்பு. \ \ ], [162], [விழுப் பேற்றின் அஃது ஒப்பது இல்லை-யார்மாட்டும் \ அழுக்காற்றின் அன்மை பெறின். \ \ ], [163], [அறன், ஆக்கம், வேண்டாதான் என்பான் பிறன் ஆக்கம் \ பேணாது அழுக்கறுப்பான். \ \ ], [164], [அழுக்காற்றின் அல்லவை செய்யார்-இழுக்கு ஆற்றின் \ ஏதம் படுபாக்கு அறிந்து. \ \ ], [165], [அழுக்காறு உடையார்க்கு அது சாலும்- ஒன்னார் \ வழுக்கியும் கேடு ஈன்பது. \ \ ], [166], [கொடுப்பது அழுக்கறுப்பான் சுற்றம் உடுப்பதூஉம் \ உண்பதூஉம் இன்றிக் கெடும். \ \ ], [167], [அவ்வித்து அழுக்காறு உடையானைச் செய்யவள் \ தவ்வையைக் காட்டி விடும். \ \ ], [168], [அழுக்காறு என ஒரு பாவி திருச் செற்று, \ தீயுழி உய்த்துவிடும். \ \ ], [169], [அவ்விய நெஞ்சத்தான் ஆக்கமும், செவ்வியான் \ கேடும், நினைக்கப்படும். \ \ ], [170], [அழுக்கற்று அகன்றாரும் இல்லை; அஃது இல்லார் \ பெருக்கத்தின் தீர்ந்தாரும் இல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 18 171 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [171], [நடுவு இன்றி நன் பொருள் வெஃகின், குடி பொன்றி, \ குற்றமும் ஆங்கே தரும். \ \ ], [172], [படு பயன் வெஃகி, பழிப்படுவ செய்யார்- \ நடுவு அன்மை நாணுபவர். \ \ ], [173], [சிற்றின்பம் வெஃகி, அறன் அல்ல செய்யாரே- \ மற்று இன்பம் வேண்டுபவர். \ \ ], [174], ['இலம்' என்று வெஃகுதல் செய்யார்-புலம் வென்ற \ புன்மை இல் காட்சியவர். \ \ ], [175], [அஃகி அகன்ற அறிவு என் ஆம்-யார்மாட்டும் \ வெஃகி, வெறிய செயின்?. \ \ ], [176], [அருள் வெஃகி, ஆற்றின்கண் நின்றான், பொருள் வெஃகிப் \ பொல்லாத சூழ, கெடும். \ \ ], [177], [வேண்டற்க, வெஃகி ஆம் ஆக்கம்-விளைவயின் \ மாண்டற்கு அரிது ஆம் பயன்!. \ \ ], [178], ['அஃகாமை செல்வத்திற்கு யாது?' எனின், வெஃகாமை \ வேண்டும் பிறன் கைப் பொருள். \ \ ], [179], [அறன் அறிந்து வெஃகா அறிவு உடையார்ச் சேரும்- \ திறன் அறிந்து ஆங்கே திரு. \ \ ], [180], [இறல் ஈனும், எண்ணாது வெஃகின்; விறல் ஈனும், \ வேண்டாமை என்னும் செருக்கு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 19 181 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [181], [அறம் கூறான், அல்ல செயினும், ஒருவன் \ புறம் கூறான் என்றல் இனிது. \ \ ], [182], [அறன் அழீஇ அல்லவை செய்தலின் தீதே- \ புறன் அழீஇப் பொய்த்து நகை. \ \ ], [183], [புறம் கூறி, பொய்த்து, உயிர் வாழ்தலின், சாதல் \ அறம் கூறும் ஆக்கம் தரும். \ \ ], [184], [கண் நின்று, கண் அறச் சொல்லினும், சொல்லற்க- \ முன் இன்று பின் நோக்காச் சொல். \ \ ], [185], [அறம் சொல்லும் நெஞ்சத்தான் அன்மை புறம் சொல்லும் \ புன்மையால் காணப்படும். \ \ ], [186], [பிறன் பழி கூறுவான் தன் பழியுள்ளும் \ திறன் தெரிந்து கூறப்படும். \ \ ], [187], [பகச் சொல்லிக் கேளிர்ப் பிரிப்பர்-நகச் சொல்லி \ நட்பு ஆடல் தேற்றாதவர். \ \ ], [188], [துன்னியார் குற்றமும் தூற்றும் மரபினார், \ என்னைகொல், ஏதிலார்மாட்டு?. \ \ ], [189], [அறன் நோக்கி ஆற்றும் கொல் வையம்-புறன் நோக்கிப் \ புன் சொல் உரைப்பான் பொறை. \ \ ], [190], [ஏதிலார் குற்றம்போல் தம் குற்றம் காண்கிற்பின், \ தீது உண்டோ, மன்னும் உயிரக்கு?. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 20 191 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [191], [பல்லார் முனியப் பயன் இல சொல்லுவான் \ எல்லாரும் எள்ளப்படும். \ \ ], [192], [பயன் இல பல்லார்முன் சொல்லல், நயன் இல \ நட்டார்கண் செய்தலின் தீது. \ \ ], [193], [நயன் இலன் என்பது சொல்லும்-பயன் இல \ பாரித்து உரைக்கும் உரை. \ \ ], [194], [நயன் சாரா நன்மையின் நீக்கும்-பயன் சாராப் \ பண்பு இல் சொல் பல்லாரகத்து. \ \ ], [195], [சீர்மை சிறப்பொடு நீங்கும்-பயன் இல \ நீர்மை உடையார் சொலின். \ \ ], [196], [பயன் இல் சொல் பாராட்டுவானை மகன் எனல்! \ மக்கட் பதடி எனல்!. \ \ ], [197], [நயன் இல சொல்லினும் சொல்லுக! சான்றோர் \ பயன் இல சொல்லாமை நன்று. \ \ ], [198], [அரும் பயன் ஆயும் அறிவினார் சொல்லார்- \ பெரும் பயன் இல்லாத சொல். \ \ ], [199], [பொருள் தீர்ந்த பொச்சாந்தும் சொல்லார்-மருள் தீர்ந்த \ மாசு அறு காட்சியவர். \ \ ], [200], [சொல்லுக, சொல்லில் பயன் உடைய! சொல்லற்க, \ சொல்லில் பயன் இலாச் சொல்!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 21 201 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [201], [தீவினையார் அஞ்சார்; விழுமியார் அஞ்சுவர்- \ தீவினை என்னும் செருக்கு. \ \ ], [202], [தீயவை தீய பயத்தலான், தீயவை \ தீயினும் அஞ்சப்படும். \ \ ], [203], [அறிவினுள் எல்லாம் தலை என்ப-தீய \ செறுவார்க்கும் செய்யா விடல். \ \ ], [204], [மறந்தும் பிறன் கேடு சூழற்க! சூழின், \ அறம் சூழும், சூழ்ந்தவன் கேடு. \ \ ], [205], ['இலன்' என்று தீயவை செய்யற்க! செய்யின், \ இலன் ஆகும், மற்றும் பெயர்த்து. \ \ ], [206], [தீப் பால தான் பிறர்கண் செய்யற்க-நோய்ப் பால \ தன்னை அடல் வேண்டாதான்!. \ \ ], [207], [எனைப் பகை உற்றாரும் உய்வர்; வினைப் பகை \ வீயாது, பின் சென்று, அடும். \ \ ], [208], [தீயவை செய்தார் கெடுதல் நிழல் தன்னை \ வீயாது அடி உறைந்தற்று. \ \ ], [209], [தன்னைத் தான் காதலன் ஆயின், எனைத்து ஒன்றும் \ துன்னற்க, தீவினைப் பால்!. \ \ ], [210], [அருங் கேடன் என்பது அறிக-மருங்கு ஓடித் \ தீவினை செய்யான் எனின்?. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 22 211 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [211], [கைம்மாறு வேண்டா கடப்பாடு; மாரிமாட்டு \ என் ஆற்றும் கொல்லோ, உலகு?. \ \ ], [212], [தாள் ஆற்றித் தந்த பொருள் எல்லாம் தக்கார்க்கு \ வேளாண்மை செய்தற்பொருட்டு. \ \ ], [213], [புத்தேள் உலகத்தும், ஈண்டும், பெறல் அரிதே- \ ஒப்புரவின் நல்ல பிற. \ \ ], [214], [ஒத்தது அறிவான் உயிர் வாழ்வான்; மற்றையான் \ செத்தாருள் வைக்கப்படும். \ \ ], [215], [ஊருணி நீர் நிறைந்தற்றே-உலகு அவாம் \ பேர் அறிவாளன் திரு. \ \ ], [216], [பயன் மரம் உள்ளூர்ப் பழுத்தற்றால்-செல்வம் \ நயன் உடையான்கண் படின். \ \ ], [217], [மருந்து ஆகித் தப்பா மரத்தற்றால்-செல்வம் \ பெருந்தகையான்கண் படின். \ \ ], [218], [இடன் இல் பருவத்தும், ஒப்புரவிற்கு ஒல்கார்- \ கடன் அறி காட்சியவர். \ \ ], [219], [நயன் உடையான் நல்கூர்ந்தான் ஆதல் செயும் நீர \ செய்யாது அமைகலா ஆறு. \ \ ], [220], ['ஒப்புரவினால் வரும், கேடு' எனின், அஃது ஒருவன் \ விற்றுக் கோள் தக்கது உடைத்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 23 221 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [221], [வறியார்க்கு ஒன்று ஈவதே ஈகை; மற்று எல்லாம் \ குறியெதிர்ப்பை நீரது உடைத்து. \ \ ], [222], ['நல்லாறு' எனினும், கொளல் தீது; ‘மேல் உலகம் \ இல்’ எனினும், ஈதலே நன்று. \ \ ], [223], ['இலன்' என்னும் எவ்வம் உரையாமை ஈதல் \ குலன் உடையான்கண்ணே உள. \ \ ], [224], [இன்னாது, இரக்கப்படுதல்-இரந்தவர் \ இன் முகம் காணும் அளவு. \ \ ], [225], [ஆற்றுவார் ஆற்றல் பசி ஆற்றல்; அப் பசியை \ மாற்றுவார் ஆற்றலின் பின். \ \ ], [226], [அற்றார் அழி பசி தீர்த்தல்! அஃது ஒருவன் \ பெற்றான் பொருள் வைப்பு உழி. \ \ ], [227], [பாத்து ஊண் மரீஇயவனைப் பசி என்னும் \ தீப் பிணி தீண்டல் அரிது. \ \ ], [228], [ஈத்து உவக்கும் இன்பம் அறியார்கொல்-தாம் உடைமை \ வைத்து இழக்கும் வன் கணவர்?. \ \ ], [229], [இரத்தலின் இன்னாது மன்ற-நிரப்பிய \ தாமே தமியர் உணல். \ \ ], [230], [சாதலின் இன்னாதது இல்லை; இனிது, அதூஉம் \ ஈதல் இயையாக்கடை. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 24 231 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [231], [ஈதல்! இசைபட வாழ்தல்! அது அல்லது \ ஊதியம் இல்லை, உயிர்க்கு. \ \ ], [232], [உரைப்பார் உரைப்பவை எல்லாம் இரப்பார்க்கு ஒன்று \ ஈவார்மேல் நிற்கும் புகழ். \ \ ], [233], [ஒன்றா உலகத்து உயர்ந்த புகழ் அல்லால், \ பொன்றாது நிற்பது ஒன்று இல். \ \ ], [234], [நில வரை நீள் புகழ் ஆற்றின், புலவரைப் \ போற்றாது, புத்தேள் உலகு. \ \ ], [235], [நத்தம்போல் கேடும், உளதாகும் சாக்காடும், \ வித்தகர்க்கு அல்லால் அரிது. \ \ ], [236], [தோன்றின், புகழொடு தோன்றுக! அஃது இலார் \ தோன்றலின் தோன்றாமை நன்று. \ \ ], [237], [புகழ்பட வாழாதார் தம் நோவார், தம்மை \ இகழ்வாரை நோவது எவன்?. \ \ ], [238], ['வசை' என்ப, வையத்தார்க்கு எல்லாம்-’இசை’ என்னும் \ எச்சம் பெறாஅவிடின். \ \ ], [239], [வசை இலா வண் பயன் குன்றும்-இசை இலா \ யாக்கை பொறுத்த நிலம். \ \ ], [240], [வசை ஒழிய வாழ்வாரே வாழ்வார்; இசை ஒழிய \ வாழ்வாரே வாழாதவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 25 241 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [241], [அருட் செல்வம், செல்வத்துள் செல்வம்; பொருட் செல்வம் \ பூரியார்கண்ணும் உள. \ \ ], [242], [நல் ஆற்றான் நாடி அருள் ஆள்க! பல் ஆற்றான் \ தேரினும் அஃதே துணை. \ \ ], [243], [அருள் சேர்ந்த நெஞ்சினார்க்கு இல்லை-இருள் சேர்ந்த \ இன்னா உலகம் புகல். \ \ ], [244], ['மன் உயிர் ஓம்பி, அருள் ஆள்வாற்கு இல்' என்ப- \ ‘தன் உயிர் அஞ்சும் வினை'. \ \ ], [245], [அல்லல், அருள் ஆள்வார்க்கு இல்லை; வளி வழங்கும் \ மல்லல் மா ஞாலம் கரி. \ \ ], [246], ['பொருள் நீங்கிப் பொச்சாந்தார்' என்பர்-'அருள் நீங்கி \ அல்லவை செய்து ஒழுகுவார்'. \ \ ], [247], [அருள் இல்லார்க்கு அவ் உலகம் இல்லை-பொருள் இல்லார்க்கு \ இவ் உலகம் இல்லாகியாங்கு. \ \ ], [248], [பொருள் அற்றார் பூப்பர் ஒருகால்; அருள் அற்றார் \ அற்றார்; மற்று ஆதல் அரிது. \ \ ], [249], [தெருளாதான் மெய்ப்பொருள் கண்டற்றால்-தேரின், \ அருளாதான் செய்யும் அறம். \ \ ], [250], [வலியார் முன் தன்னை நினைக்க-தான் தன்னின் \ மெலியார்மேல் செல்லும் இடத்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 26 251 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [251], [தன் ஊன் பெருக்கற்குத் தான் பிறிது ஊன் உண்பான் \ எங்ஙனம் ஆளும் அருள்?. \ \ ], [252], [பொருள் ஆட்சி போற்றாதார்க்கு இல்லை; அருள் ஆட்சி \ ஆங்கு இல்லை, ஊன் தின்பவர்க்கு. \ \ ], [253], [படை கொண்டார் நெஞ்சம் போல் நன்று ஊக்காது-ஒன்றன் \ உடல் சுவை உண்டார் மனம். \ \ ], [254], ['அருள்', அல்லது, யாது?' எனின்,-கொல்லாமை, கோறல்: \ பொருள் அல்லது, அவ் ஊன் தினல். \ \ ], [255], [உண்ணாமை உள்ளது உயிர்நிலை; ஊன் உண்ண, \ அண்ணாத்தல் செய்யாது, அளறு. \ \ ], [256], [தினற்பொருட்டால் கொல்லாது உலகு எனின், யாரும் \ விலைப் பொருட்டால் ஊன் தருவார் இல். \ \ ], [257], [உண்ணாமை வேண்டும், புலாஅல்-பிறிது ஒன்றன் \ புண்; அது உணர்வார்ப் பெறின். \ \ ], [258], [செயிரின் தலைப் பிரிந்த காட்சியார் உண்ணார், \ உயிரின் தலைப்பிரிந்த ஊன். \ \ ], [259], [அவி சொரிந்து ஆயிரம் வேட்டலின், ஒன்றன் \ உயிர் செகுத்து உண்ணாமை நன்று. \ \ ], [260], [கொல்லான், புலாலை மறுத்தானைக் கைகூப்பி, \ எல்லா உயிரும் தொழும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 27 261 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [261], [உற்ற நோய் நோன்றல், உயிர்க்கு உறுகண் செய்யாமை, \ அற்றே-தவத்திற்கு உரு. \ \ ], [262], [தவமும் தவம் உடையார்க்கு ஆகும்; அவம், அதனை \ அஃது இலார் மேற்கொள்வது. \ \ ], [263], [துறந்தார்க்குத் துப்புரவு வேண்டி, மறந்தார்கொல்- \ மற்றையவர்கள், தவம்!. \ \ ], [264], [ஒன்னார்த் தெறலும், உவந்தாரை ஆக்கலும், \ எண்ணின், தவத்தான் வரும். \ \ ], [265], [வேண்டிய வேண்டியாங்கு எய்தலான், செய் தவம் \ ஈண்டு முயலப்படும். \ \ ], [266], [தவம் செய்வார் தம் கருமம் செய்வார்; மற்று அல்லார் \ அவம் செய்வார், ஆசையுள் பட்டு. \ \ ], [267], [சுடச் சுடரும் பொன்போல் ஒளிவிடும்-துன்பம் \ சுடச்சுட நோற்கிற்பவர்க்கு. \ \ ], [268], [தன் உயிர் தான் அறப் பெற்றானை ஏனைய \ மன் உயிர் எல்லாம் தொழும். \ \ ], [269], [கூற்றம் குதித்தலும் கைகூடும்-நோற்றலின் \ ஆற்றல் தலைப்பட்டவர்க்கு. \ \ ], [270], [இலர் பலர் ஆகிய காரணம்-நோற்பார் \ சிலர்; பலர் நோலாதவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 28 271 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [271], [வஞ்ச மனத்தான் படிற்று ஒழுக்கம் பூதங்கள் \ ஐந்தும் அகத்தே நகும். \ \ ], [272], [வான் உயர் தோற்றம் எவன் செய்யும்-தன் நெஞ்சம் \ தான் அறி குற்றபடின்?. \ \ ], [273], [வலி இல் நிலைமையான் வல் உருவம் பெற்றம் \ புலியின் தோல் போர்த்து மேய்ந்தற்று. \ \ ], [274], [தவம் மறைந்து, அல்லவை செய்தல்-புதல்மறைந்து \ வேட்டுவன் புள் சிமிழ்த்தற்று. \ \ ], [275], ['பற்று அற்றேம்' என்பார் படிற்று ஒழுக்கம். ‘எற்று! எற்று!' என்று \ ஏதம் பலவும் தரும். \ \ ], [276], [நெஞ்சின் துறவார், துறந்தார்போல் வஞ்சித்து, \ வாழ்வாரின் வன்கணார் இல். \ \ ], [277], [புறம் குன்றி கண்டனையரேனும், அகம் குன்றி \ மூக்கில் கரியார் உடைத்து. \ \ ], [278], [மனத்தது மாசு ஆக, மாண்டார் நீர் ஆடி, \ மறைந்து ஒழுகும் மாந்தர் பலர். \ \ ], [279], [கணை கொடிது; யாழ் கோடு செவ்விது; ஆங்கு அன்ன \ வினைபடு பாலால் கொளல். \ \ ], [280], [மழித்தலும் நீட்டலும் வேண்டா- உலகம் \ பழித்தது ஒழித்துவிடின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 29 281 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [281], [எள்ளாமை வேண்டுவான் என்பான் எனைத்து ஒன்றும் \ கள்ளாமை காக்க, தன் நெஞ்சு!. \ \ ], [282], [உள்ளத்தால் உள்ளலும் தீதே; ‘பிறன் பொருளைக் \ கள்ளத்தால் கள்வேம்’ எனல்!. \ \ ], [283], [களவினால் ஆகிய ஆக்கம், அளவு இறந்து, \ ஆவது போல, கெடும். \ \ ], [284], [களவின்கண் கன்றிய காதல் விளைவின்கண் \ வீயா விழுமம் தரும். \ \ ], [285], [அருள் கருதி அன்புடையர் ஆதல் பொருள் கருதிப் \ பொச்சாப்புப் பார்ப்பார்கண் இல். \ \ ], [286], [அளவின்கண் நின்று ஒழுகலாற்றார்-களவின்கண் \ கன்றிய காதலவர். \ \ ], [287], [களவு என்னும் கார் அறிவு ஆண்மை அளவு என்னும் \ ஆற்றல் புரிந்தார்கண் இல். \ \ ], [288], [அளவு அறிந்தார் நெஞ்சத்து அறம்போல, நிற்கும், \ களவு அறிந்தார் நெஞ்சில் கரவு. \ \ ], [289], [அளவு அல்ல செய்து, ஆங்கே வீவர்-களவு அல்ல \ மற்றைய தேற்றாதவர். \ \ ], [290], [கள்வார்க்குத் தள்ளும், உயிர்நிலை; கள்ளார்க்குத் \ தள்ளாது, புத்தேள் உலகு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 30 291 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [291], ['வாய்மை எனப்படுவது யாது?' எனின், யாது ஒன்றும் \ தீமை இலாத சொலல். \ \ ], [292], [பொய்ம்மையும் வாய்மை இடத்த-புரை தீர்ந்த \ நன்மை பயக்கும் எனின். \ \ ], [293], [தன் நெஞ்சு அறிவது பொய்யற்க; பொய்த்தபின், \ தன் நெஞ்சே தன்னைச் சுடும். \ \ ], [294], [உள்ளத்தால் பொய்யாது ஒழுகின், உலகத்தார் \ உள்ளத்துள் எல்லாம் உளன். \ \ ], [295], [மனத்தொடு வாய்மை மொழியின், தவத்தொடு \ தானம் செய்வாரின் தலை. \ \ ], [296], [பொய்யாமை அன்ன புகழ் இல்லை; எய்யாமை, \ எல்லா அறமும் தரும். \ \ ], [297], [பொய்யாமை பொய்யாமை ஆற்றின், அறம் பிற \ செய்யாமை செய்யாமை நன்று. \ \ ], [298], [புறம் தூய்மை நீரால் அமையும்;- அகம் தூய்மை \ வாய்மையால் காணப்படும். \ \ ], [299], [எல்லா விளக்கும் விளக்கு அல்ல; சான்றோர்க்குப் \ பொய்யா விளக்கே விளக்கு. \ \ ], [300], [யாம் மெய்யாக் கண்டவற்றுள், இல்லை-எனைத்து ஒன்றும் \ வாய்மையின் நல்ல பிற. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 31 301 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [301], [செல் இடத்துக் காப்பான் சினம் காப்பான்; அல் இடத்து, \ காக்கின் என்? காவாக்கால் என்?. \ \ ], [302], [செல்லா இடத்துச் சினம் தீது; செல் இடத்தும், \ இல், அதனின் தீய பிற. \ \ ], [303], [மறத்தல், வெகுளியை யார்மாட்டும்-தீய \ பிறத்தல் அதனான் வரும். \ \ ], [304], [நகையும் உவகையும் கொல்லும் சினத்தின் \ பகையும் உளவோ, பிற?. \ \ ], [305], [தன்னைத் தான் காக்கின், சினம் காக்க! காவாக்கால், \ தன்னையே கொல்லும், சினம். \ \ ], [306], [சினம் என்னும் சேர்ந்தாரைக்கொல்லி இனம் என்னும் \ ஏமப் புணையைச் சுடும். \ \ ], [307], [சினத்தைப் பொருள் என்று கொண்டவன் கேடு \ நிலத்து அறைந்தான் கை பிழையாதற்று. \ \ ], [308], [இணர் எரி தோய்வன்ன இன்னா செயினும், \ புணரின் வெகுளாமை நன்று. \ \ ], [309], [உள்ளிய எல்லாம் உடன் எய்தும்-உள்ளத்தால் \ உள்ளான் வெகுளி எனின். \ \ ], [310], [இறந்தார் இறந்தார் அனையர்; சினத்தைத் \ துறந்தார் துறந்தார் துணை. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 32 311 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [311], [சிறப்பு ஈனும் செல்வம் பெறினும், பிறர்க்கு இன்னா \ செய்யாமை மாசு அற்றார் கோள். \ \ ], [312], [கறுத்து இன்னா செய்த அக்கண்ணும், மறுத்து இன்னா \ செய்யாமை மாசு அற்றார் கோள். \ \ ], [313], [செய்யாமல் செற்றார்க்கும் இன்னாத செய்தபின், \ உய்யா விழுமம் தரும். \ \ ], [314], [இன்னா செய்தாரை ஒறுத்தல் அவர் நாண \ நல் நயம் செய்து, விடல். \ \ ], [315], [அறிவினான் ஆகுவது உண்டோ-பிறிதின் நோய் \ தம் நோய்போல் போற்றாக்கடை?. \ \ ], [316], [இன்னா எனத் தான் உணர்ந்தவை, துன்னாமை \ வேண்டும், பிறன்கண் செயல். \ \ ], [317], [எனைத்தானும், எஞ்ஞான்றும், யார்க்கும், மனத்தான் ஆம் \ மாணா செய்யாமை தலை. \ \ ], [318], [தன் உயிர்க்கு இன்னாமை தான் அறிவான், என்கொலோ, \ மன் உயிர்க்கு இன்னா செயல்?. \ \ ], [319], [பிறர்க்கு இன்னா முற்பகல் செய்யின், தமக்கு இன்னா \ பிற்பகல் தாமே வரும். \ \ ], [320], [நோய் எல்லாம் நோய் செய்தார் மேலவாம்; நோய் செய்யார், \ நோய் இன்மை வேண்டுபவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 33 321 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [321], ['அறவினை யாது?' எனின், கொல்லாமை; கோறல் \ பிற வினை எல்லாம் தரும். \ \ ], [322], [பகுத்து உண்டு, பல் உயிர் ஓம்புதல் நூலோர் \ தொகுத்தவற்றுள் எல்லாம் தலை. \ \ ], [323], [ஒன்றாக நல்லது கொல்லாமை; மற்று அதன் \ பின்சாரப் பொய்யாமை நன்று. \ \ ], [324], ['நல்லாறு எனப்படுவது யாது?' எனின், யாது ஒன்றும் \ கொல்லாமை சூழும் நெறி. \ \ ], [325], [நிலை அஞ்சி நீத்தாருள் எல்லாம், கொலை அஞ்சிக் \ கொல்லாமை சூழ்வான், தலை. \ \ ], [326], [கொல்லாமை மேற்கொண்டு ஒழுகுவான் வாழ்நாள்மேல் \ செல்லாது, உயிர் உண்ணும் கூற்று. \ \ ], [327], [தன் உயிர் நீப்பினும் செய்யற்க-தான் பிறிது \ இன் உயிர் நீக்கும் வினை. \ \ ], [328], [நன்று ஆகும் ஆக்கம் பெரிது எனினும், சான்றோர்க்குக் \ கொன்று ஆகும் ஆக்கம் கடை. \ \ ], [329], [கொலை வினையர் ஆகிய மாக்கள் புலை வினையர், \ புன்மை தெரிவார் அகத்து. \ \ ], [330], ['உயிர் உடம்பின் நீக்கியார்' என்ப-'செயிர் உடம்பின் \ செல்லாத் தீ வாழ்க்கையவர்'. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 34 331 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [331], [நில்லாதவற்றை நிலையின என்று உணரும் \ புல்லறிவு ஆண்மை கடை. \ \ ], [332], [கூத்தாட்டு அவைக்குழாத்தற்றே, பெருஞ் செல்வம்; \ போக்கும், அது விளிந்தற்று. \ \ ], [333], [அற்கா இயல்பிற்றுச் செல்வம்; அது பெற்றால், \ அற்குப ஆங்கே செயல். \ \ ], [334], [நாள் என ஒன்றுபோல் காட்டி, உயிர், ஈரும் \ வாளது-உணர்வார்ப் பெறின். \ \ ], [335], [நாச் செற்று, விக்குள் மேல்வாராமுன், நல் வினை \ மேற்சென்று செய்யப்படும். \ \ ], [336], ['நெருநல் உளன், ஒருவன்; இன்று இல்லை!' என்னும் \ பெருமை உடைத்து, இவ் உலகு. \ \ ], [337], [ஒரு பொழுதும் வாழ்வது அறியார், கருதுப- \ கோடியும் அல்ல, பல. \ \ ], [338], [குடம்பை தனித்து ஒழியப் புள் பறந்தற்றே- \ உடம்பொடு உயிரிடை நட்பு. \ \ ], [339], [உறங்குவது போலும், சாக்காடு; உறங்கி \ விழிப்பது போலும், பிறப்பு. \ \ ], [340], [புக்கில் அமைந்தின்றுகொல்லோ-உடம்பினுள் \ துச்சில் இருந்த உயிர்க்கு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 35 341 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [341], [யாதனின் யாதனின் நீங்கியான், நோதல் \ அதனின் அதனின் இலன். \ \ ], [342], [வேண்டின், உண்டாகத் துறக்க; துறந்தபின், \ ஈண்டு இயற்பால பல. \ \ ], [343], [அடல் வேண்டும், ஐந்தன் புலத்தை; விடல் வேண்டும், \ வேண்டிய எல்லாம் ஒருங்கு. \ \ ], [344], [இயல்பு ஆகும், நோன்பிற்கு ஒன்று இன்மை; உடைமை \ மயல் ஆகும், மற்றும் பெயர்த்து. \ \ ], [345], [மற்றும் தொடர்ப்பாடு எவன்கொல்? பிறப்பு அறுக்கல் \ உற்றார்க்கு உடம்பும் மிகை. \ \ ], [346], ['யான்', ‘எனது’, என்னும் செருக்கு அறுப்பான் வானோர்க்கு \ உயர்ந்த உலகம் புகும். \ \ ], [347], [பற்றி விடாஅ, இடும்பைகள்-பற்றினைப் \ பற்றி, விடாஅதவர்க்கு. \ \ ], [348], [தலைப்பட்டார், தீரத் துறந்தார்; மயங்கி \ வலைப்பட்டார், மற்றையவர். \ \ ], [349], [பற்று அற்றகண்ணே பிறப்பு அறுக்கும்; மற்றும் \ நிலையாமை காணப்படும். \ \ ], [350], [பற்றுக, பற்று அற்றான் பற்றினை! அப் பற்றைப் \ பற்றுக, பற்று விடற்கு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 36 351 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [351], [பொருள் அல்லவற்றைப் பொருள் என்று உணரும் \ மருளான் ஆம், மாணாப் பிறப்பு. \ \ ], [352], [இருள் நீங்கி இன்பம் பயக்கும்-மருள் நீங்கி \ மாசு அறு காட்சியவர்க்கு. \ \ ], [353], [ஐயத்தின் நீங்கித் தெளிந்தார்க்கு வையத்தின் \ வானம் நணியது உடைத்து. \ \ ], [354], [ஐஉணர்வு எய்தியக் கண்ணும் பயம் இன்றே- \ மெய் உணர்வு இல்லாதவர்க்கு. \ \ ], [355], [எப் பொருள் எத் தன்மைத்துஆயினும், அப் பொருள் \ மெய்ப்பொருள் காண்பது அறிவு. \ \ ], [356], [கற்று ஈண்டு மெய்ப்பொருள் கண்டார் தலைப்படுவர், \ மற்று ஈண்டு வாரா நெறி. \ \ ], [357], [ஓர்த்து உள்ளம் உள்ளது உணரின் ஒரு தலையா, \ பேர்த்து உள்ளவேண்டா பிறப்பு. \ \ ], [358], [பிறப்பு என்னும் பேதைமை நீங்க, சிறப்பு என்னும் \ செம்பொருள் காண்பது அறிவு. \ \ ], [359], [சார்பு உணர்ந்து, சார்பு கெட ஒழுகின், மற்று அழித்துச் \ சார்தரா, சார்தரும் நோய். \ \ ], [360], [காமம், வெகுளி, மயக்கம், இவை மூன்றன் \ நாமம் கெட, கெடும் நோய். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 37 361 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [361], ['அவா' என்ப-'எல்லா உயிர்க்கும், எஞ் ஞான்றும், \ தவாஅப் பிறப்பு ஈனும் வித்து'. \ \ ], [362], [வேண்டுங்கால், வேண்டும் பிறவாமை; மற்று அது \ வேண்டாமை வேண்ட, வரும். \ \ ], [363], [வேண்டாமை அன்ன விழுச் செல்வம் ஈண்டு இல்லை; \ யாண்டும் அஃது ஒப்பது இல். \ \ ], [364], [தூஉய்மை என்பது அவா இன்மை; மற்று அது \ வா அய்மை வேண்ட, வரும். \ \ ], [365], [அற்றவர் என்பார் அவா அற்றார்; மற்றையார் \ அற்று ஆக அற்றது இலர். \ \ ], [366], [அஞ்சுவது ஓரும் அறனே; ஒருவனை \ வஞ்சிப்பது ஓரும் அவா. \ \ ], [367], [அவாவினை ஆற்ற அறுப்பின், தவா வினை \ தான்வேண்டும் ஆற்றான் வரும். \ \ ], [368], [அவா இல்லார்க்கு இல்லாகும் துன்பம்; அஃது உண்டேல், \ தவாஅது மேன்மேல் வரும். \ \ ], [369], [இன்பம் இடையறாது, ஈண்டும்-அவா என்னும் \ துன்பத்துள் துன்பம் கெடின். \ \ ], [370], [ஆரா இயற்கை அவா நீப்பின், அந் நிலையே \ பேரா இயற்கை தரும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 38 371 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [371], [ஆகு ஊழால் தோன்றும், அசைவு இன்மை; கைப்பொருள் \ போகு ஊழால் தோன்றும், மடி. \ \ ], [372], [பேதைப் படுக்கும், இழவு ஊழ்; அறிவு அகற்றும், \ ஆகல் ஊழ் உற்றக்கடை. \ \ ], [373], [நுண்ணிய நூல் பல கற்பினும், மற்றும் தன் \ உண்மை அறிவே மிகும். \ \ ], [374], [இரு வேறு, உலகத்து இயற்கை; திரு வேறு; \ தெள்ளியர் ஆதலும் வேறு. \ \ ], [375], [நல்லவை எல்லாஅம் தீய ஆம்; தீயவும் \ நல்ல ஆம்;-செல்வம் செயற்கு. \ \ ], [376], [பரியினும் ஆகாவாம், பால் அல்ல; உய்த்துச் \ சொரியினும் போகா, தம. \ \ ], [377], [வகுத்தான் வகுத்த வகை அல்லால், கோடி \ தொகுத்தார்க்கும் துய்த்தல் அரிது. \ \ ], [378], [துறப்பார்மன், துப்புரவு இல்லார்-உறற்பால \ ஊட்டா கழியும் எனின். \ \ ], [379], [நன்று ஆம் கால் நல்லவாக் காண்பவர், அன்று ஆம் கால் \ அல்லற்படுவது எவன். \ \ ], [380], [ஊழின் பெருவலி யா உள-மற்று ஒன்று \ சூழினும், தான் முந்துறும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 39 381 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [381], [படை, குடி, கூழ், அமைச்சு, நட்பு, அரண் ஆறும் \ உடையான் அரசருள் ஏறு. \ \ ], [382], [அஞ்சாமை, ஈகை, அறிவு, ஊக்கம் இந் நான்கும் \ எஞ்சாமை-வேந்தற்கு இயல்பு. \ \ ], [383], [தூங்காமை, கல்வி, துணிவுடைமை இம் மூன்றும் \ நீங்கா-நிலன் ஆள்பவற்கு. \ \ ], [384], [அறன் இழுக்காது, அல்லவை நீக்கி, மறன் இழுக்கா \ மானம் உடையது-அரசு. \ \ ], [385], [இயற்றலும், ஈட்டலும், காத்தலும், காத்த \ வகுத்தலும், வல்லது-அரசு. \ \ ], [386], [காட்சிக்கு எளியன், கடுஞ் சொல்லன் அல்லனேல், \ மீக்கூறும், மன்னன் நிலம். \ \ ], [387], [இன் சொலால் ஈத்து, அளிக்க வல்லாற்குத் தன் சொலால் \ தான் கண்டனைத்து, இவ் உலகு. \ \ ], [388], [முறை செய்து காப்பாற்றும் மன்னவன், ‘மக்கட்கு \ இறை’ என்று வைக்கப்படும். \ \ ], [389], [செவி கைப்பச் சொற் பொறுக்கும் பண்புடை வேந்தன் \ கவிகைக்கீழ்த் தங்கும், உலகு. \ \ ], [390], [கொடை, அளி, செங்கோல், குடி-ஓம்பல், நான்கும் \ உடையான் ஆம், வேந்தர்க்கு ஒளி. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 40 391 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [391], [கற்க, கசடு அற, கற்பவை! கற்றபின், \ நிற்க, அதற்குத் தக!. \ \ ], [392], ['எண்' என்ப, ஏனை ‘எழுத்து’ என்ப, இவ் இரண்டும் \ ‘கண்’ என்ப, வாழும் உயிர்க்கு. \ \ ], [393], [கண் உடையர் என்பவர் கற்றோர்; முகத்து இரண்டு \ புண் உடையர், கல்லாதவர். \ \ ], [394], [உவப்பத் தலைக்கூடி, உள்ளப் பிரிதல் \ அனைத்தே-புலவர் தொழில். \ \ ], [395], [உடையார்முன் இல்லார்போல் ஏக்கற்றும் கற்றார்; \ கடையரே, கல்லாதவர். \ \ ], [396], [தொட்டனைத்து ஊறும், மணற் கேணி;-மாந்தர்க்குக் \ கற்றனைத்து ஊறும், அறிவு. \ \ ], [397], [யாதானும் நாடு ஆமால்; ஊர் ஆமால்; என், ஒருவன் \ சாம் துணையும் கல்லாதவாறு?. \ \ ], [398], [ஒருமைக்கண் தான் கற்ற கல்வி ஒருவற்கு \ எழுமையும் ஏமாப்பு உடைத்து. \ \ ], [399], [தாம் இன்புறுவது உலகு இன்புறக் கண்டு, \ காமுறுவர், கற்று அறிந்தார். \ \ ], [400], [கேடு இல் விழுச் செல்வம் கல்வி; ஒருவற்கு \ மாடு அல்ல, மற்றையவை. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 41 401 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [401], [அரங்கு இன்றி வட்டு ஆடியற்றே-நிரம்பிய \ நூல் இன்றிக் கோட்டி கொளல். \ \ ], [402], [கல்லாதான் சொல் காமுறுதல், முலை இரண்டும் \ இல்லாதாள் பெண் காமுற்றற்று. \ \ ], [403], [கல்லாதவரும் நனி நல்லர்-கற்றார்முன் \ சொல்லாது இருக்கப்பெறின். \ \ ], [404], [கல்லாதான் ஒட்பம் கழிய நன்று ஆயினும், \ கொள்ளார், அறிவு உடையார். \ \ ], [405], [கல்லா ஒருவன் தகைமை, தலைப்பெய்து \ சொல்லாட, சோர்வுபடும். \ \ ], [406], [உளர் என்னும் மாத்திரையர் அல்லால், பயவாக் \ களர் அனையர்-கல்லாதவர். \ \ ], [407], [நுண் மாண் நுழை புலம் இல்லான் எழில் நலம் \ மண் மாண் புனை பாவை அற்று. \ \ ], [408], [நல்லார்கண் பட்ட வறுமையின் இன்னாதே- \ கல்லார்கண் பட்ட திரு. \ \ ], [409], [மேற்பிறந்தார் ஆயினும் கல்லாதார், கீழ்ப்பிறந்தும் \ கற்றார் அனைத்து இலர் பாடு. \ \ ], [410], [விலங்கொடு மக்கள் அனையர்-இலங்கு நூல் \ கற்றாரொடு ஏனையவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 42 411 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [411], [செல்வத்துள் செல்வம் செவிச்செல்வம்; அச் செல்வம் \ செல்வத்துள் எல்லாம் தலை. \ \ ], [412], [செவிக்கு உணவு இல்லாத போழ்து, சிறிது, \ வயிற்றுக்கும் ஈயப்படும். \ \ ], [413], [செவியுணவின் கேள்வி உடையார், அவியுணவின் \ ஆன்றாரொடு ஒப்பர், நிலத்து. \ \ ], [414], [கற்றிலன் ஆயினும் கேட்க; அஃது ஒருவற்கு \ ஒற்கத்தின் ஊற்று ஆம் துணை. \ \ ], [415], [இழுக்கல் உடை உழி ஊற்றுக்கோல் அற்றே- \ ஒழுக்கம் உடையார் வாய்ச் சொல். \ \ ], [416], [எனைத்தானும் நல்லவை கேட்க! அனைத்தானும் \ ஆன்ற பெருமை தரும். \ \ ], [417], [பிழைத்து உணர்ந்தும் பேதைமை சொல்லார்-இழைத்து உணர்ந்து \ ஈண்டிய கேள்வியவர். \ \ ], [418], [கேட்பினும் கேளாத் தகையவே-கேள்வியால் \ தோட்கப் படாத செவி. \ \ ], [419], [நுணங்கிய கேள்வியர் அல்லார் வணங்கிய \ வாயினர் ஆதல் அரிது. \ \ ], [420], [செவியின் சுவை உணரா, வாய் உணர்வின், மாக்கள் \ அவியினும் வாழினும் என். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 43 421 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [421], [அறிவு, அற்றம் காக்கும் கருவி; செறுவார்க்கும் \ உள் அழிக்கல் ஆகா அரண். \ \ ], [422], [சென்ற இடத்தால் செலவிடா, தீது ஒரீஇ, \ நன்றின் பால் உய்ப்பது-அறிவு. \ \ ], [423], [எப் பொருள் யார் யார் வாய்க் கேட்பினும், அப் பொருள் \ மெய்ப் பொருள் காண்பது-அறிவு. \ \ ], [424], [எண் பொருளவாகச் செலச் சொல்லி, தான் பிறர்வாய் \ நுண் பொருள் காண்பது-அறிவு. \ \ ], [425], [உலகம் தழீஇயது ஒட்பம்; மலர்தலும் \ கூம்பலும் இல்லது-அறிவு. \ \ ], [426], [எவ்வது உறைவது உலகம், உலகத்தொடு \ அவ்வது உறைவது-அறிவு. \ \ ], [427], [அறிவு உடையார் ஆவது அறிவார்; அறிவு இலார் \ அஃது அறிகல்லாதவர். \ \ ], [428], [அஞ்சுவது அஞ்சாமை பேதைமை; அஞ்சுவது \ அஞ்சல், அறிவார் தொழில். \ \ ], [429], [எதிரதாக் காக்கும் அறிவினார்க்கு இல்லை- \ அதிர வருவதோர் நோய். \ \ ], [430], [அறிவு உடையார் எல்லாம் உடையார்; அறிவு இலார் \ என் உடையரேனும் இலர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 44 431 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [431], [செருக்கும், சினமும், சிறுமையும், இல்லார் \ பெருக்கம் பெருமித நீர்த்து. \ \ ], [432], [இவறலும், மாண்பு இறந்த மானமும், மாணா \ உவகையும்,- ஏதம், இறைக்கு. \ \ ], [433], [தினைத் துணையாம் குற்றம் வரினும், பனைத் துணையாக் \ கொள்வர், பழி நாணுவார். \ \ ], [434], [குற்றமே காக்க, பொருளாக-குற்றமே, \ அற்றம் தரூஉம் பகை. \ \ ], [435], [வரும் முன்னர்க் காவாதான் வாழ்க்கை, எரி முன்னர் \ வைத்தூறு போல, கெடும். \ \ ], [436], [தன் குற்றம் நீக்கி, பிறர் குற்றம் காண்கிற்பின், \ என் குற்றம் ஆகும் இறைக்கு. \ \ ], [437], [செயற்பால செய்யாது இவறியான் செல்வம் \ உயற்பாலது அன்றிக் கெடும். \ \ ], [438], [பற்று உள்ளம் என்னும் இவறன்மை, எற்றுள்ளும் \ எண்ணப்படுவது ஒன்று அன்று. \ \ ], [439], [வியவற்க, எஞ்ஞான்றும் தன்னை! நயவற்க, \ நன்றி பயவா வினை!. \ \ ], [440], [காதல காதல் அறியாமை உய்க்கிற்பின், \ ஏதில, ஏதிலார் நூல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 45 441 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [441], [அறன் அறிந்து மூத்த அறிவு உடையார் கேண்மை \ திறன் அறிந்து, தேர்ந்து, கொளல். \ \ ], [442], [உற்ற நோய் நீக்கி, உறாஅமை முன் காக்கும் \ பெற்றியார்ப் பேணிக் கொளல். \ \ ], [443], [அரியவற்றுள் எல்லாம் அரிதே-பெரியாரைப் \ பேணித் தமராக் கொளல். \ \ ], [444], [தம்மின் பெரியார் தமரா ஒழுகுதல், \ வன்மையுள் எல்லாம் தலை. \ \ ], [445], [சூழ்வார் கண் ஆக ஒழுகலான், மன்னவன் \ சூழ்வாரைச் சூழ்ந்து கொளல். \ \ ], [446], [தக்கார் இனத்தனாய், தான் ஒழுக வல்லானைச் \ செற்றார் செயக்கிடந்தது இல். \ \ ], [447], [இடிக்கும் துணையாரை ஆள்வாரை, யாரே, \ கெடுக்கும் தகைமையவர். \ \ ], [448], [இடிப்பாரை இல்லாத ஏமரா மன்னன் \ கெடுப்பார் இலானும், கெடும். \ \ ], [449], [முதல் இலார்க்கு ஊதியம் இல்லை;-மதலை ஆம் \ சார்பு இலார்க்கு இல்லை, நிலை. \ \ ], [450], [பல்லார் பகை கொளலின் பத்து அடுத்த தீமைத்தே- \ நல்லார் தொடர் கைவிடல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 46 451 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [451], [சிற்றினம் அஞ்சும், பெருமை; சிறுமைதான் \ சுற்றமாச் சூழ்ந்துவிடும். \ \ ], [452], [நிலத்து இயல்பான் நீர் திரிந்து, அற்று ஆகும்;- மாந்தர்க்கு \ ‘இனத்து’ இயல்பது ஆகும், அறிவு. \ \ ], [453], [மனத்தான் ஆம், மாந்தர்க்கு உணர்ச்சி; இனத்தான் ஆம், \ ‘இன்னான்’ எனப்படும் சொல். \ \ ], [454], [மனத்து உளது போலக் காட்டி, ஒருவற்கு \ இனத்து உளது ஆகும்-அறிவு. \ \ ], [455], [மனம் தூய்மை, செய்வினை தூய்மை, இரண்டும் \ இனம் தூய்மை தூவா வரும். \ \ ], [456], [மனம் தூயார்க்கு எச்சம் நன்று ஆகும்; இனம் தூயார்க்கு \ இல்லை, நன்று ஆகா வினை. \ \ ], [457], [மன நலம் மன் உயிர்க்கு ஆக்கம்; இன நலம் \ எல்லாப் புகழும் தரும். \ \ ], [458], [மன நலம் நன்கு உடையர் ஆயினும், சான்றோர்க்கு \ இன நலம் ஏமாப்பு உடைத்து. \ \ ], [459], [மன நலத்தின் ஆகும், மறுமை; மற்று அஃதும் \ இன நலத்தின் ஏமாப்பு உடைத்து. \ \ ], [460], [நல் இனத்தின் ஊங்கும் துணை இல்லை; தீ இனத்தின் \ அல்லற்படுப்பதூஉம் இல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 47 461 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [461], [அழிவதூஉம் ஆவதூஉம் ஆகி, வழிபயக்கும் \ ஊதியமும் சூழ்ந்து, செயல்!. \ \ ], [462], [தெரிந்த இனத்தொடு தேர்ந்து எண்ணிச் செய்வார்க்கு \ அரும் பொருள் யாது ஒன்றும் இல். \ \ ], [463], [ஆக்கம் கருதி, முதல் இழக்கும் செய்வினை \ ஊக்கார், அறிவு உடையார். \ \ ], [464], [தெளிவு இலதனைத் தொடங்கார்-இளிவு என்னும் \ ஏதப்பாடு அஞ்சுபவர். \ \ ], [465], [வகை அறச் சூழாது எழுதல், பகைவரைப் \ பாத்திப் படுப்பது ஓர் ஆறு. \ \ ], [466], [செய்தக்க அல்ல செயக் கெடும்; செய்தக்க \ செய்யாமையானும் கெடும். \ \ ], [467], [எண்ணித் துணிக, கருமம்; துணிந்தபின், \ எண்ணுவம் என்பது இழுக்கு. \ \ ], [468], [ஆற்றின் வருந்தா வருத்தம், பலர் நின்று \ போற்றினும், பொத்துப்படும். \ \ ], [469], [நன்று ஆற்றலுள்ளும் தவறு உண்டு-அவரவர் \ பண்பு அறிந்து ஆற்றாக்கடை. \ \ ], [470], [எள்ளாத எண்ணிச் செயல்வேண்டும்-தம்மொடு \ கொள்ளாத கொள்ளாது உலகு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 48 471 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [471], [வினை வலியும், தன் வலியும், மாற்றான் வலியும், \ துணை வலியும், தூக்கிச் செயல். \ \ ], [472], [ஒல்வது அறிவது அறிந்து, அதன்கண் தங்கிச் \ செல்வார்க்குச் செல்லாதது இல். \ \ ], [473], [உடைத் தம் வலி அறியார், ஊக்கத்தின் ஊக்கி, \ இடைக்கண் முரிந்தார் பலர். \ \ ], [474], [அமைந்து ஆங்கு ஒழுகான், அளவு அறியான், தன்னை \ வியந்தான், விரைந்து கெடும். \ \ ], [475], [பீலி பெய் சாகாடும் அச்சு இறும்-அப் பண்டம் \ சால மிகுத்துப் பெயின். \ \ ], [476], [நுனிக் கொம்பர் ஏறினார் அஃது இறந்து ஊக்கின் \ உயிர்க்கு இறுதி ஆகிவிடும். \ \ ], [477], [ஆற்றின் அளவு அறிந்து ஈக; அது பொருள் \ போற்றி வழங்கும் நெறி. \ \ ], [478], [ஆகு ஆறு அளவு இட்டிது ஆயினும், கேடு இல்லை- \ போகு ஆறு அகலாக்கடை. \ \ ], [479], [அளவு அறிந்து வாழாதான் வாழ்க்கை உளபோல \ இல்லாகி, தோன்றாக் கெடும். \ \ ], [480], [உள வரை தூக்காத ஒப்புரவு ஆண்மை, \ வள வரை வல்லைக் கெடும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 49 481 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [481], [பகல் வெல்லும், கூகையைக் காக்கை;- இகல் வெல்லும் \ வேந்தர்க்கு வேண்டும், பொழுது. \ \ ], [482], [பருவத்தொடு ஒட்ட ஒழுகல்-திருவினைத் \ தீராமை ஆர்க்கும் கயிறு. \ \ ], [483], [அரு வினை என்ப உளவோ-கருவியான் \ காலம் அறிந்து செயின். \ \ ], [484], [ஞாலம் கருதினும், கைகூடும்-காலம் \ கருதி, இடத்தான் செயின். \ \ ], [485], [காலம் கருதி இருப்பர்-கலங்காது \ ஞாலம் கருதுபவர். \ \ ], [486], [ஊக்கம் உடையான் ஒடுக்கம் பொரு தகர் \ தாக்கற்குப் பேரும் தகைத்து. \ \ ], [487], [பொள்ளென ஆங்கே புறம் வேரார்; காலம் பார்த்து, \ உள் வேர்ப்பர், ஒள்ளியவர். \ \ ], [488], [செறுநரைக் காணின் சுமக்க; இறுவரை \ காணின் கிழக்காம் தலை. \ \ ], [489], [எய்தற்கு அரியது இயைந்தக்கால், அந் நிலையே \ செய்தற்கு அரிய செயல். \ \ ], [490], [கொக்கு ஒக்க, கூம்பும் பருவத்து; மற்று அதன் \ குத்து ஒக்க, சீர்த்த இடத்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 50 491 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [491], [தொடங்கற்க எவ் வினையும்; எள்ளற்க-முற்றும் \ இடம் கண்டபின் அல்லது!. \ \ ], [492], [முரண் சேர்ந்த மொய்ம்பினவர்க்கும் அரண் சேர்ந்து ஆம் \ ஆக்கம் பலவும் தரும். \ \ ], [493], [ஆற்றாரும் ஆற்றி அடுப-இடன் அறிந்து \ போற்றார்கண் போற்றிச் செயின். \ \ ], [494], [எண்ணியார் எண்ணம் இழப்பர்-இடன் அறிந்து \ துன்னியார் துன்னிச் செயின். \ \ ], [495], [நெடும் புனலுள் வெல்லும் முதலை; அடும், புனலின் \ நீங்கின், அதனைப் பிற. \ \ ], [496], [கடல் ஓடா, கால் வல் நெடுந் தேர்; கடல் ஓடும் \ நாவாயும் ஓடா, நிலத்து. \ \ ], [497], [அஞ்சாமை அல்லால், துணை வேண்டா-எஞ்சாமை \ எண்ணி இடத்தான் செயின். \ \ ], [498], [சிறு படையான் செல் இடம் சேரின், உறு படையான் \ ஊக்கம் அழிந்து விடும். \ \ ], [499], [சிறை நலனும் சீரும் இலர் எனினும், மாந்தர் \ உறை நிலத்தொடு ஒட்டல் அரிது. \ \ ], [500], [கால் ஆழ் களரில் நரி அடும், கண் அஞ்சா \ வேல் ஆள் முகத்த களிறு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 51 501 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [501], [அறம், பொருள், இன்பம், உயிர் அச்சம், நான்கின் \ திறம் தெரிந்து தேறப்படும். \ \ ], [502], [குடிப் பிறந்து, குற்றத்தின் நீங்கி, வடுப் பரியும் \ நாண் உடையான்கட்டே தெளிவு. \ \ ], [503], [அரிய கற்று, ஆசு அற்றார்கண்ணும், தெரியுங்கால் \ இன்மை அரிதே, வெளிறு. \ \ ], [504], [குணம் நாடி, குற்றமும் நாடி, அவற்றுள் \ மிகை நாடி, மிக்க கொளல்!. \ \ ], [505], [பெருமைக்கும், ஏனைச் சிறுமைக்கும், தத்தம் \ கருமமே கட்டளைக் கல். \ \ ], [506], [அற்றாரைத் தேறுதல் ஓம்புக; மற்று அவர் \ பற்று இலர்; நாணார் பழி. \ \ ], [507], [காதன்மை கந்தா, அறிவு அறியார்த் தேறுதல் \ பேதைமை எல்லாம் தரும். \ \ ], [508], [தேரான், பிறனைத் தெளிந்தான் வழிமுறை \ தீரா இடும்பை தரும். \ \ ], [509], [தேறற்க யாரையும், தேராது; தேர்ந்த பின், \ தேறுக, தேறும் பொருள். \ \ ], [510], [தேரான் தெளிவும், தெளிந்தான்கண் ஐயுறவும், \ தீரா இடும்பை தரும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 52 511 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [511], [நன்மையும் தீமையும் நாடி, நலம் புரிந்த \ தன்மையான் ஆளப்படும். \ \ ], [512], [வாரி பெருக்கி, வளம் படுத்து, உற்றவை \ ஆராய்வான் செய்க வினை!. \ \ ], [513], [அன்பு, அறிவு, தேற்றம், அவா இன்மை, இந் நான்கும் \ நன்கு உடையான்கட்டே தெளிவு. \ \ ], [514], [எனை வகையான் தேறியக்கண்ணும், வினை வகையான் \ வேறாகும் மாந்தர் பலர். \ \ ], [515], [அறிந்து, ஆற்றி, செய்கிற்பாற்கு அல்லால், வினைதான் \ சிறந்தான் என்று ஏவற்பாற்று அன்று. \ \ ], [516], [செய்வானை நாடி, வினை நாடி, காலத்தோடு \ எய்த உணர்ந்து, செயல்!. \ \ ], [517], ['இதனை, இதனால், இவன் முடிக்கும்' என்று ஆய்ந்து, \ அதனை அவன்கண் விடல்!. \ \ ], [518], [வினைக்கு உரிமை நாடிய பின்றை, அவனை \ அதற்கு உரியன் ஆகச் செயல். \ \ ], [519], [வினைக்கண் வினையுடையான் கேண்மை வேறாக \ நினைப்பானை நீங்கும், திரு. \ \ ], [520], [நாள்தோறும் நாடுக, மன்னன்-வினைசெய்வான் \ கோடாமைக் கோடாது உலகு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 53 521 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [521], [பற்று அற்றகண்ணும் பழமை பாராட்டுதல் \ சுற்றத்தார்கண்ணே உள. \ \ ], [522], [விருப்பு அறாச் சுற்றம் இயையின், அறுப்பு அறா \ ஆக்கம் பலவும் தரும். \ \ ], [523], [அளவளாவு இல்லாதான் வாழ்க்கை-குளவளாக் \ கோடு இன்றி நீர் நிறைந்தற்று. \ \ ], [524], [சுற்றத்தால் சுற்றப்பட ஒழுகல், செல்வம்தான் \ பெற்றத்தால் பெற்ற பயன். \ \ ], [525], [கொடுத்தலும் இன் சொலும் ஆற்றின், அடுக்கிய \ சுற்றத்தால் சுற்றப்படும். \ \ ], [526], [பெருங் கொடையான், பேணான் வெகுளி, அவனின் \ மருங்கு உடையார் மா நிலத்து இல். \ \ ], [527], [காக்கை கரவா கரைந்து உண்ணும்; ஆக்கமும் \ அன்ன நீரார்க்கே உள. \ \ ], [528], [பொது நோக்கான், வேந்தன் வரிசையா நோக்கின், \ அது நோக்கி வாழ்வார் பலர். \ \ ], [529], [தமர் ஆகி, தன்-துறந்தார் சுற்றம் அமராமைக் \ காரணம் இன்றி வரும். \ \ ], [530], [உழைப் பிரிந்து காரணத்தின் வந்தானை, வேந்தன் \ இழைத்து இருந்து, எண்ணிக் கொளல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 54 531 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [531], [இறந்த வெகுளியின் தீதே-சிறந்த \ உவகை மகிழ்ச்சியின் சோர்வு. \ \ ], [532], [பொச்சாப்புக் கொல்லும் புகழை-அறிவினை \ நிச்சம் நிரப்புக் கொன்றாங்கு. \ \ ], [533], [பொச்சாப்பார்க்கு இல்லை புகழ்மை; அது உலகத்து \ எப் பால் நூலோர்க்கும் துணிவு. \ \ ], [534], [அச்சம் உடையார்க்கு அரண் இல்லை; ஆங்கு இல்லை, \ பொச்சாப்பு உடையார்க்கு நன்கு. \ \ ], [535], [முன்னுறக் காவாது இழுக்கியான், தன் பிழை, \ பின் ஊறு, இரங்கிவிடும். \ \ ], [536], [இழுக்காமை யார்மாட்டும், என்றும், வழுக்காமை \ வாயின், அஃது ஒப்பது இல். \ \ ], [537], [அரிய என்று ஆகாத இல்லை-பொச்சாவாக் \ கருவியான் போற்றிச் செயின். \ \ ], [538], [புகழ்ந்தவை போற்றிச் செயல் வேண்டும்; செய்யாது \ இகழ்ந்தார்க்கு எழுமையும் இல். \ \ ], [539], [இகழ்ச்சியின் கெட்டாரை உள்ளுக-தாம் தம் \ மகிழ்ச்சியின் மைந்துறும் போழ்து!. \ \ ], [540], [உள்ளியது எய்தல் எளிதுமன்-மற்றும் தான் \ உள்ளியது உள்ளப்பெறின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 55 541 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [541], [ஓர்ந்து, கண்ணோடாது, இறை புரிந்து, யார்மாட்டும் \ தேர்ந்து, செய்வஃதே முறை. \ \ ], [542], [வான் நோக்கி வாழும் உலகு எல்லாம்;-மன்னவன் \ கோல் நோக்கி வாழும் குடி. \ \ ], [543], [அந்தணர் நூற்கும், அறத்திற்கும், ஆதியாய் \ நின்றது-மன்னவன் கோல். \ \ ], [544], [குடி தழீஇக் கோல் ஓச்சும் மா நில மன்னன் \ அடி தழீஇ நிற்கும், உலகு. \ \ ], [545], [இயல்புளிக் கோல் ஓச்சும் மன்னவன் நாட்ட- \ பெயலும் விளையுளும் தொக்கு. \ \ ], [546], [வேல் அன்று, வென்றி தருவது; மன்னவன் \ கோல்; அதூஉம், கோடாது எனின். \ \ ], [547], [இறை காக்கும், வையகம் எல்லாம்; அவனை \ முறை காக்கும், முட்டாச் செயின். \ \ ], [548], [எண் பதத்தான் ஓரா, முறை செய்யா, மன்னவன் \ தண் பதத்தான் தானே கெடும். \ \ ], [549], [குடி புறங்காத்து, ஓம்பி, குற்றம் கடிதல் \ வடு அன்று; வேந்தன் தொழில். \ \ ], [550], [கொலையில், கொடியாரை, வேந்து ஒறுத்தல் பைங்கூழ் \ களை கட்டதனொடு நேர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 56 551 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [551], [கொலை மேற்கொண்டாரின் கொடிதே-அலை மேற்கொண்டு \ அல்லவை செய்து ஒழுகும் வேந்து. \ \ ], [552], [வேலொடு நின்றான், ‘இடு’ என்றது போலும்- \ கோலொடு நின்றான் இரவு. \ \ ], [553], [நாள்தொறும் நாடி, முறைசெய்யா மன்னவன் \ நாள்தொறும் நாடு கெடும். \ \ ], [554], [கூழும் குடியும் ஒருங்கு இழக்கும்-கோல் கோடி, \ சூழாது, செய்யும் அரசு. \ \ ], [555], [அல்லற்பட்டு, ஆற்றாது, அழுத கண்ணீர் அன்றே- \ செல்வத்தைத் தேய்க்கும் படை. \ \ ], [556], [மன்னர்க்கு மன்னுதல் செங்கோன்மை; அஃது இன்றேல், \ மன்னாவாம், மன்னர்க்கு ஒளி. \ \ ], [557], [துளி இன்மை ஞாலத்திற்கு எற்று? அற்றே, வேந்தன் \ அளி இன்மை வாழும் உயிர்க்கு. \ \ ], [558], [இன்மையின் இன்னாது, உடைமை-முறை செய்யா \ மன்னவன் கோற்கீழ்ப் படின். \ \ ], [559], [முறை கோடி மன்னவன் செய்யின், உறை கோடி \ ஒல்லாது, வானம் பெயல். \ \ ], [560], [ஆ பயன் குன்றும்; அறுதொழிலோர் நூல் மறப்பர்;- \ காவலன் காவான் எனின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 57 561 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [561], [தக்காங்கு நாடி, தலைச்செல்லா வண்ணத்தால் \ ஒத்தாங்கு ஒறுப்பது வேந்து. \ \ ], [562], [கடிது ஓச்சி, மெல்ல எறிக-நெடிது ஆக்கம் \ நீங்காமை வேண்டுபவர். \ \ ], [563], [வெருவந்த செய்து ஒழுகும் வெங்கோலன் ஆயின், \ ஒருவந்தம் ஒல்லைக் கெடும். \ \ ], [564], ['இறை கடியன்' என்று உரைக்கும் இன்னாச் சொல் வேந்தன் \ உறை கடுகி ஒல்லைக் கெடும். \ \ ], [565], [அருஞ் செவ்வி, இன்னா முகத்தான் பெருஞ் செல்வம் \ பேஎய் கண்டன்னது உடைத்து. \ \ ], [566], [கடுஞ் சொல்லன், கண் இலன் ஆயின், நெடுஞ் செல்வம் \ நீடு இன்றி, ஆங்கே கெடும். \ \ ], [567], [கடு மொழியும், கையிகந்த தண்டமும், வேந்தன் \ அடு முரண் தேய்க்கும் அரம். \ \ ], [568], [இனத்து ஆற்றி, எண்ணாத வேந்தன் சினத்து ஆற்றிச் \ சீறின், சிறுகும் திரு. \ \ ], [569], [செரு வந்த போழ்தில், சிறை செய்யா வேந்தன், \ வெருவந்து, வெய்து கெடும். \ \ ], [570], [கல்லார்ப் பிணிக்கும், கடுங்கோல்; அது அல்லது \ இல்லை, நிலக்குப் பொறை. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 58 571 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [571], [கண்ணோட்டம் என்னும் கழிபெருங் காரிகை \ உண்மையான், உண்டு இவ் உலகு. \ \ ], [572], [கண்ணோட்டத்து உள்ளது உலகியல்; அஃது இலார் \ உண்மை நிலக்குப் பொறை. \ \ ], [573], [பண் என் ஆம், பாடற்கு இயைபு இன்றேல்?-கண் என் ஆம், \ கண்ணோட்டம் இல்லாத கண்?. \ \ ], [574], [உளபோல் முகத்து எவன் செய்யும்-அளவினால் \ கண்ணோட்டம் இல்லாத கண். \ \ ], [575], [கண்ணிற்கு அணிகலம் கண்ணோட்டம்; அஃது இன்றேல், \ புண் என்று உணரப்படும். \ \ ], [576], [மண்ணொடு இயைந்த மரத்து அனையர்-கண்ணொடு \ இயைந்து, கண்ணோடாதவர். \ \ ], [577], [கண்ணோட்டம் இல்லவர் கண் இலர்; கண் உடையார் \ கண்ணோட்டம் இன்மையும் இல். \ \ ], [578], [கருமம் சிதையாமல் கண்ணோட வல்லார்க்கு \ உரிமை உடைத்து, இவ் உலகு. \ \ ], [579], [ஒறுத்தாற்றும் பண்பினார்கண்ணும், கண்ணோடிப் \ பொறுத்தாற்றும் பண்பே தலை. \ \ ], [580], [பெயக் கண்டும், நஞ்சு உண்டு அமைவர்-நயத்தக்க \ நாகரிகம் வேண்டுபவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 59 581 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [581], [ஒற்றும், உரை சான்ற நூலும், இவை இரண்டும் \ தெற்றென்க, மன்னவன் கண். \ \ ], [582], [எல்லார்க்கும் எல்லாம் நிகழ்பவை எஞ்ஞான்றும் \ வல்லறிதல், வேந்தன் தொழில். \ \ ], [583], [ஒற்றினான் ஒற்றி, பொருள் தெரியா மன்னவன் \ கொற்றம் கொளக் கிடந்தது இல். \ \ ], [584], [வினைசெய்வார், தம் சுற்றம், வேண்டாதார், என்று ஆங்கு \ அனைவரையும் ஆராய்வது-ஒற்று. \ \ ], [585], [கடாஅ உருவொடு கண் அஞ்சாது, யாண்டும் \ உகா அமை வல்லதே-ஒற்று. \ \ ], [586], [துறந்தார் படிவத்தர் ஆகி இறந்து, ஆராய்ந்து, \ என் செயினும் சோர்வு இலது-ஒற்று. \ \ ], [587], [மறைந்தவை கேட்க வற்று ஆகி, அறிந்தவை \ ஐயப்பாடு இல்லதே-ஒற்று. \ \ ], [588], [ஒற்று ஒற்றித் தந்த பொருளையும், மற்றும் ஓர் \ ஒற்றினால் ஒற்றி, கொளல். \ \ ], [589], [ஒற்று ஒற்று உணராமை ஆள்க; உடன் மூவர் \ சொல் தொக்க தேறப்படும். \ \ ], [590], [சிறப்பு அறிய ஒற்றின்கண் செய்யற்க; செய்யின், \ புறப்படுத்தான் ஆகும், மறை. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 60 591 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [591], [உடையர் எனப்படுவது ஊக்கம்; அஃது இல்லார் \ உடையது உடையரோ, மற்று?. \ \ ], [592], [உள்ளம் உடைமை உடைமை; பொருள் உடைமை \ நில்லாது நீங்கிவிடும். \ \ ], [593], ['ஆக்கம் இழந்தேம்!' என்று அல்லாவார்-ஊக்கம் \ ஒருவந்தம் கைத்து உடையார். \ \ ], [594], [ஆக்கம் அதர் வினாய்ச் செல்லும்-அசைவு இலா \ ஊக்கம் உடையானுழை. \ \ ], [595], [வெள்ளத்து அனைய, மலர் நீட்டம்;-மாந்தர்தம் \ உள்ளத்து அனையது, உயர்வு. \ \ ], [596], [உள்ளுவது எல்லாம் உயர்வு உள்ளல்! மற்று அது \ தள்ளினும், தள்ளாமை நீர்த்து. \ \ ], [597], [சிதைவிடத்து ஒல்கார், உரவோர்;-புதை அம்பின் \ பட்டுப் பாடு ஊன்றும் களிறு. \ \ ], [598], [உள்ளம் இலாதவர் எய்தார்-'உலகத்து \ வள்ளியம்' என்னும் செருக்கு. \ \ ], [599], [பரியது கூர்ங் கோட்டது ஆயினும், யானை \ வெரூஉம், புலி தாக்குறின். \ \ ], [600], [உரம் ஒருவற்கு உள்ள வெறுக்கை; அஃது இல்லார் \ மரம்; மக்கள் ஆதலே வேறு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 61 601 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [601], [குடி என்னும் குன்றா விளக்கம், மடி என்னும் \ மாசு ஊர, மாய்ந்து கெடும். \ \ ], [602], [மடியை மடியா ஒழுகல்-குடியைக் \ குடியாக வேண்டுபவர்!. \ \ ], [603], [மடி மடிக் கொண்டு ஒழுகும் பேதை பிறந்த \ குடி மடியும், தன்னினும் முந்து. \ \ ], [604], [குடி மடிந்து, குற்றம் பெருகும்-மடி மடிந்து, \ மாண்ட உஞற்று இலவர்க்கு. \ \ ], [605], [நெடு நீர், மறவி, மடி, துயில், நான்கும் \ கெடும் நீரார் காமக் கலன். \ \ ], [606], [படி உடையார் பற்று அமைந்தக்கண்ணும், மடி உடையார் \ மாண் பயன் எய்தல் அரிது. \ \ ], [607], [இடிபுரிந்து, எள்ளும் சொல் கேட்பர்-மடிபுரிந்து \ மாண்ட உஞற்று இலவர். \ \ ], [608], [மடிமை குடிமைக்கண் தங்கின், தன் ஒன்னார்க்கு \ அடிமை புகுத்திவிடும். \ \ ], [609], [குடி, ஆண்மையுள் வந்த குற்றம், ஒருவன் \ மடி ஆண்மை மாற்ற, கெடும். \ \ ], [610], [மடி இலா மன்னவன் எய்தும்-அடி அளந்தான் \ தாஅயது எல்லாம் ஒருங்கு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 62 611 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [611], [அருமை உடைத்து என்று அசாவாமை வேண்டும்; \ பெருமை முயற்சி தரும். \ \ ], [612], [வினைக்கண் வினைகெடல் ஓம்பல்-வினைக் குறை \ தீர்ந்தாரின் தீர்ந்தன்று, உலகு!. \ \ ], [613], [தாளாண்மை என்னும் தகைமைக்கண் தங்கிற்றே- \ வேளாண்மை என்னும் செருக்கு. \ \ ], [614], [தாளாண்மை இல்லாதான் வேளாண்மை, பேடி கை \ வாள் ஆண்மை போல, கெடும். \ \ ], [615], [இன்பம் விழையான், வினை விழைவான் தன் கேளிர் \ துன்பம் துடைத்து ஊன்றும் தூண். \ \ ], [616], [முயற்சி-திருவினை ஆக்கும்; முயற்று இன்மை \ இன்மை புகுத்திவிடும். \ \ ], [617], ['மடி உளாள், மா முகடி' என்ப; மடி இலான் \ தாள் உளாள், தாமரையினாள். \ \ ], [618], [பொறி இன்மை யார்க்கும் பழி அன்று; அறிவு அறிந்து, \ ஆள்வினை இன்மை பழி. \ \ ], [619], [தெய்வத்தான் ஆகாதுஎனினும், முயற்சி தன் \ மெய் வருத்தக் கூலி தரும். \ \ ], [620], [ஊழையும் உப்பக்கம் காண்பர்-உலைவு இன்றித் \ தாழாது உஞற்றுபவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 63 621 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [621], [இடுக்கண் வருங்கால் நகுக! அதனை \ அடுத்து ஊர்வது அஃது ஒப்பது இல். \ \ ], [622], [வெள்ளத்து அனைய இடும்பை, அறிவு உடையான் \ உள்ளத்தின் உள்ள, கெடும். \ \ ], [623], [இடும்பைக்கு இடும்பை படுப்பர்-இடும்பைக்கு \ இடும்பை படாஅதவர். \ \ ], [624], [மடுத்த வாய் எல்லாம் பகடு அன்னான் உற்ற \ இடுக்கண் இடர்ப்பாடு உடைத்து. \ \ ], [625], [அடுக்கி வரினும், அழிவு இலான் உற்ற \ இடுக்கண் இடுக்கண் படும். \ \ ], [626], ['அற்றேம்!' என்று அல்லற்படுபவோ-'பெற்றேம்!' என்று \ ஓம்புதல் தேற்றாதவர். \ \ ], [627], ['இலக்கம், உடம்பு இடும்பைக்கு' என்று, கலக்கத்தைக் \ கையாறாக் கொள்ளாதாம், மேல். \ \ ], [628], [இன்பம் விழையான், ‘இடும்பை இயல்பு’ என்பான், \ துன்பம் உறுதல் இலன். \ \ ], [629], [இன்பத்துள் இன்பம் விழையாதான், துன்பத்துள் \ துன்பம் உறுதல் இலன். \ \ ], [630], [இன்னாமை இன்பம் எனக் கொளின், ஆகும், தன் \ ஒன்னார் விழையும் சிறப்பு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 64 631 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [631], [கருவியும், காலமும், செய்கையும், செய்யும் \ அருவினையும், மாண்டது-அமைச்சு. \ \ ], [632], [வன்கண், குடிகாத்தல், கற்று அறிதல், ஆள்வினையோடு \ ஐந்துடன் மாண்டது-அமைச்சு. \ \ ], [633], [பிரித்தலும், பேணிக்கொளலும், பிரிந்தார்ப் \ பொருத்தலும், வல்லது-அமைச்சு. \ \ ], [634], [தெரிதலும், தேர்ந்து செயலும், ஒருதலையாச் \ சொல்லலும் வல்லது-அமைச்சு. \ \ ], [635], [அறன் அறிந்து, ஆன்று அமைந்த சொல்லான், எஞ்ஞான்றும் \ திறன் அறிந்தான், தேர்ச்சித் துணை. \ \ ], [636], [மதிநுட்பம் நூலோடு உடையார்க்கு அதி நுட்பம் \ யா உள, முன் நிற்பவை?. \ \ ], [637], [செயற்கை அறிந்தக்கடைத்தும், உலகத்து \ இயற்கை அறிந்து, செயல்!. \ \ ], [638], [அறி கொன்று, அறியான் எனினும், உறுதி \ உழையிருந்தான் கூறல் கடன். \ \ ], [639], [பழுது எண்ணும் மந்திரியின், பக்கத்துள் தெவ் ஓர் \ எழுபது கோடி உறும். \ \ ], [640], [முறைப்படச் சூழ்ந்தும், முடிவிலவே செய்வர்- \ திறப்பாடு இலாஅதவர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 65 641 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [641], ['நா நலம்' என்னும் நலன் உடைமை; அந் நலம் \ யா நலத்து உள்ளதூஉம் அன்று. \ \ ], [642], [ஆக்கமும், கேடும், அதனால் வருதலால், \ காத்து ஓம்பல், சொல்லின்கண் சோர்வு. \ \ ], [643], [கேட்டார்ப் பிணிக்கும் தகை அவாய், கேளாரும் \ வேட்ப, மொழிவது ஆம்-சொல். \ \ ], [644], [திறன் அறிந்து சொல்லுக, சொல்லை; அறனும் \ பொருளும் அதனின் ஊங்கு இல். \ \ ], [645], [சொல்லுக சொல்லை-பிறிது ஓர் சொல் அச் சொல்லை \ வெல்லும் சொல் இன்மை அறிந்து. \ \ ], [646], [வேட்பத் தாம் சொல்லி, பிறர் சொல் பயன் கோடல் \ மாட்சியின் மாசு அற்றார் கோள். \ \ ], [647], [சொலல் வல்லன், சோர்வு இலன், அஞ்சான், அவனை \ இகல் வெல்லல் யார்க்கும் அரிது. \ \ ], [648], [விரைந்து தொழில் கேட்கும் ஞாலம்-நிரந்து இனிது \ சொல்லுதல் வல்லார்ப் பெறின். \ \ ], [649], [பல சொல்லக் காமுறுவர் மன்ற- மாசு அற்ற \ சில சொல்லல் தேற்றாதவர். \ \ ], [650], [இணர் ஊழ்த்தும் நாறா மலர் அனையர்-கற்றது \ உணர விரித்து உரையாதார். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 66 651 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [651], [துணை நலம் ஆக்கம் தரூஉம்; வினை நலம் \ வேண்டிய எல்லாம் தரும். \ \ ], [652], [என்றும் ஒருவுதல் வேண்டும்-புகழொடு \ நன்றி பயவா வினை. \ \ ], [653], [ஓஒதல் வேண்டும், ஒளி மாழ்கும் செய்வினை- \ ‘ஆஅதும்!’ என்னுமவர். \ \ ], [654], [இடுக்கண் படினும், இளிவந்த செய்யார்- \ நடுக்கு அற்ற காட்சியவர். \ \ ], [655], ['எற்று!' என்று இரங்குவ செய்யற்க; செய்வானேல், \ மற்று அன்ன செய்யாமை நன்று. \ \ ], [656], [ஈன்றாள் பசி காண்பான் ஆயினும், செய்யற்க \ சான்றோர் பழிக்கும் வினை. \ \ ], [657], [பழி மலைந்து எய்திய ஆக்கத்தின், சான்றோர் \ கழி நல்குரவே தலை. \ \ ], [658], [கடிந்த கடிந்து ஒரார் செய்தார்க்கு அவைதாம் \ முடிந்தாலும், பீழை தரும். \ \ ], [659], [அழக் கொண்ட எல்லாம் அழப் போம்; இழப்பினும், \ பிற்பயக்கும், நற்பாலவை. \ \ ], [660], [சலத்தால் பொருள் செய்து ஏமாக்கல்-பசு மண்- \ கலத்துள் நீர் பெய்து, இரீஇயற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 67 661 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [661], [வினைத் திட்பம் என்பது ஒருவன் மனத் திட்பம்; \ மற்றைய எல்லாம் பிற. \ \ ], [662], [ஊறு ஒரால், உற்றபின் ஒல்காமை, இவ் இரண்டின் \ ஆறு என்பர்-ஆய்ந்தவர் கோள். \ \ ], [663], [கடைக் கொட்கச் செய்தக்கது ஆண்மை; இடைக் கொட்கின், \ எற்றா விழுமம் தரும். \ \ ], [664], [சொல்லுதல் யார்க்கும் எளிய; அரிய ஆம், \ சொல்லிய வண்ணம் செயல். \ \ ], [665], [வீறு எய்தி மாண்டார் வினைத் திட்பம், வேந்தன்கண் \ ஊறு எய்தி, உள்ளப்படும். \ \ ], [666], [எண்ணிய எண்ணியாங்கு எய்துப-எண்ணியார் \ திண்ணியர் ஆகப்பெறின். \ \ ], [667], [உருவு கண்டு எள்ளாமை வேண்டும்-உருள் பெருந் தேர்க்கு \ அச்சு ஆணி அன்னார் உடைத்து. \ \ ], [668], [கலங்காது கண்ட வினைக்கண், துளங்காது \ தூக்கம் கடிந்து செயல். \ \ ], [669], [துன்பம் உறவரினும் செய்க, துணிவு ஆற்றி- \ இன்பம் பயக்கும் வினை. \ \ ], [670], [எனைத் திட்பம் எய்தியக்கண்ணும், வினைத் திட்பம் \ வேண்டாரை வேண்டாது, உலகு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 68 671 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [671], [சூழ்ச்சி முடிவு துணிவு எய்தல்; அத் துணிவு \ தாழ்ச்சியுள் தங்குதல் தீது. \ \ ], [672], [தூங்குக, தூங்கிச் செயற்பால; தூங்கற்க, \ தூங்காது செய்யும் வினை. \ \ ], [673], [ஒல்லும் வாய் எல்லாம் வினை நன்றே; ஒல்லாக்கால், \ செல்லும் வாய் நோக்கிச் செயல். \ \ ], [674], [வினை, பகை என்று இரண்டின் எச்சம், நினையுங்கால், \ தீ எச்சம் போலத் தெறும். \ \ ], [675], [பொருள், கருவி, காலம், வினை, இடனொடு ஐந்தும் \ இருள் தீர எண்ணிச் செயல்!. \ \ ], [676], [முடிவும், இடையூறும், முற்றியாங்கு எய்தும் \ படுபயனும், பார்த்துச் செயல்!. \ \ ], [677], [செய்வினை செய்வான் செயல்முறை, அவ் வினை \ உள் அறிவான் உள்ளம் கொளல். \ \ ], [678], [வினையான் வினை ஆக்கிக்கோடல்-நனை கவுள் \ யானையால் யானை யாத்தற்று. \ \ ], [679], [நட்டார்க்கு நல்ல செயலின் விரைந்ததே- \ ஒட்டாரை ஒட்டிக்கொளல். \ \ ], [680], [உறை சிறியார் உள் நடுங்கல் அஞ்சி, குறை பெறின், \ கொள்வர் பெரியார்ப் பணிந்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 69 681 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [681], [அன்பு உடைமை, ஆன்ற குடிப்பிறத்தல், வேந்து அவாம் \ பண்பு உடைமை,- தூது உரைப்பான் பண்பு. \ \ ], [682], [அன்பு, அறிவு, ஆராய்ந்த சொல்வன்மை-தூது உரைப்பார்க்கு \ இன்றியமையாத மூன்று. \ \ ], [683], [நூலாருள் நூல் வல்லன் ஆகுதல்-வேலாருள் \ வென்றி வினை உரைப்பான் பண்பு. \ \ ], [684], [அறிவு, உரு, ஆராய்ந்த கல்வி, இம் மூன்றன் \ செறிவு உடையான் செல்க, வினைக்கு. \ \ ], [685], [தொகச் சொல்லி, தூவாத நீக்கி, நகச் சொல்லி, \ நன்றி பயப்பது ஆம்-தூது. \ \ ], [686], [கற்று, கண் அஞ்சான், செலச் சொல்லி, காலத்தால் \ தக்கது அறிவது ஆம்-தூது. \ \ ], [687], [கடன் அறிந்து, காலம் கருதி, இடன் அறிந்து, \ எண்ணி, உரைப்பான் தலை. \ \ ], [688], [தூய்மை, துணைமை, துணிவு உடைமை, இம் மூன்றின் \ வாய்மை-வழி உரைப்பான் பண்பு. \ \ ], [689], [விடு மாற்றம் வேந்தர்க்கு உரைப்பான்-வடு மாற்றம் \ வாய் சோரா வன்கணவன். \ \ ], [690], [இறுதி பயப்பினும், எஞ்சாது, இறைவற்கு \ உறுதி பயப்பது ஆம்-தூது. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 70 691 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [691], [அகலாது, அணுகாது, தீக் காய்வார் போல்க- \ இகல் வேந்தர்ச் சேர்ந்து ஒழுகுவார். \ \ ], [692], [மன்னர் விழைப விழையாமை, மன்னரான் \ மன்னிய ஆக்கம் தரும். \ \ ], [693], [போற்றின் அரியவை போற்றல்-கடுத்தபின், \ தேற்றுதல் யார்க்கும் அரிது. \ \ ], [694], [செவிச் சொல்லும், சேர்ந்த நகையும், அவித்து ஒழுகல்- \ ஆன்ற பெரியார் அகத்து!. \ \ ], [695], [எப் பொருளும் ஓரார், தொடரார், மற்று அப் பொருளை \ விட்டக்கால் கேட்க, மறை!. \ \ ], [696], [குறிப்பு அறிந்து, காலம் கருதி, வெறுப்பு இல \ வேண்டுப, வேட்பச் சொலல்!. \ \ ], [697], [வேட்பன சொல்லி, வினை இல எஞ்ஞான்றும் \ கேட்பினும், சொல்லா விடல்!. \ \ ], [698], ['இளையர், இன முறையர்' என்று இகழார், நின்ற \ ஒளியொடு ஒழுகப்படும். \ \ ], [699], ['கொளப்பட்டேம்' என்று எண்ணி, கொள்ளாத செய்யார்- \ துளக்கு அற்ற காட்சியவர். \ \ ], [700], [பழையம் எனக் கருதி, பண்பு அல்ல செய்யும் \ கெழுதகைமை கேடு தரும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 71 701 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [701], [கூறாமை நோக்கி, குறிப்பு அறிவான், எஞ்ஞான்றும் \ மாறா நீர் வையக்கு அணி. \ \ ], [702], [ஐயப்படாஅது அகத்தது உணர்வானைத் \ தெய்வத்தொடு ஒப்பக் கொளல்!. \ \ ], [703], [குறிப்பின் குறிப்பு உணர்வாரை, உறுப்பினுள் \ யாது கொடுத்தும், கொளல்!. \ \ ], [704], [குறித்தது கூறாமைக் கொள்வாரொடு, ஏனை \ உறுப்பு ஓரனையரால், வேறு. \ \ ], [705], [குறிப்பின் குறிப்பு உணராஆயின், உறுப்பினுள் \ என்ன பயத்தவோ, கண்?. \ \ ], [706], [அடுத்தது காட்டும் பளிங்குபோல், நெஞ்சம் \ கடுத்தது காட்டும், முகம். \ \ ], [707], [முகத்தின் முதுக்குறைந்தது உண்டோ-உவப்பினும் \ காயினும், தான் முந்துறும்? \ \ ], [708], [முகம் நோக்கி நிற்க அமையும்-அகம் நோக்கி, \ உற்றது உணர்வார்ப் பெறின். \ \ ], [709], [பகைமையும் கேண்மையும் கண் உரைக்கும்-கண்ணின் \ வகைமை உணர்வார்ப் பெறின். \ \ ], [710], ['நுண்ணியம்' என்பார் அளக்கும் கோல், காணுங்கால், \ கண் அல்லது, இல்லை பிற. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 72 711 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [711], [அவை அறிந்து, ஆராய்ந்து, சொல்லுக-சொல்லின் \ தொகை அறிந்த தூய்மையவர்!. \ \ ], [712], [இடை தெரிந்து, நன்கு உணர்ந்து, சொல்லுக- சொல்லின் \ நடை தெரிந்த நன்மையவர்!. \ \ ], [713], [அவை அறியார், சொல்லல் மேற்கொள்பவர் சொல்லின் \ வகை அறியார்; வல்லதூஉம் இல். \ \ ], [714], [ஒளியார்முன் ஒள்ளியர் ஆதல்! வெளியார்முன் \ வான் சுதை வண்ணம் கொளல்!. \ \ ], [715], ['நன்று' என்றவற்றுள்ளும் நன்றே-முதுவருள் \ முந்து கிளவாச் செறிவு. \ \ ], [716], [ஆற்றின் நிலைதளர்ந்தற்றே-வியன் புலம் \ ஏற்று, உணர்வார்முன்னர் இழுக்கு. \ \ ], [717], [கற்று அறிந்தார் கல்வி விளங்கும்-கசடு அறச் \ சொல் தெரிதல் வல்லார் அகத்து. \ \ ], [718], [உணர்வது உடையார்முன் சொல்லல்-வளர்வதன் \ பாத்தியுள் நீர் சொரிந்தற்று. \ \ ], [719], [புல் அவையுள் பொச்சாந்தும் சொல்லற்க-நல் அவையுள் \ நன்கு செலச் சொல்லுவார்!. \ \ ], [720], [அங்கணத்துள் உக்க அமிழ்து அற்றால்-தம் கணத்தர் \ அல்லார்முன் கோட்டி கொளல்!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 73 721 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [721], [வகை அறிந்து, வல் அவை, வாய்சோரார்-சொல்லின் \ தொகை அறிந்த தூய்மையவர். \ \ ], [722], [கற்றாருள் கற்றார் எனப்படுவர்-கற்றார்முன் \ கற்ற செலச் சொல்லுவார். \ \ ], [723], [பகையகத்துச் சாவார் எளியர்; அரியர் \ அவையகத்து அஞ்சாதவர். \ \ ], [724], [கற்றார்முன் கற்ற செலச் சொல்லி, தாம் கற்ற, \ மிக்காருள், மிக்க கொளல். \ \ ], [725], [ஆற்றின், அளவு அறிந்து கற்க-அவை அஞ்சா \ மாற்றம் கொடுத்தற்பொருட்டு. \ \ ], [726], [வாளொடு என், வன்கண்ணர் அல்லார்க்கு?-நூலொடு என், \ நுண் அவை அஞ்சுபவர்க்கு?. \ \ ], [727], [பகையகத்துப் பேடி கை ஒள் வாள்-அவையகத்து \ அஞ்சுமவன் கற்ற நூல். \ \ ], [728], [பல்லவை கற்றும், பயம் இலரே-நல் அவையுள் \ நன்கு செலச் சொல்லாதார். \ \ ], [729], ['கல்லாதவரின் கடை' என்ப- ‘கற்று அறிந்தும், \ நல்லார் அவை அஞ்சுவார்'. \ \ ], [730], [உளர் எனினும், இல்லாரொடு ஒப்பர்-களன் அஞ்சி, \ கற்ற செலச் சொல்லாதார். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 74 731 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [731], [தள்ளா விளையுளும், தக்காரும், தாழ்வு இலாச் \ செல்வரும், சேர்வது- நாடு. \ \ ], [732], [பெரும் பொருளான் பெட்டக்கது ஆகி, அருங் கேட்டால், \ ஆற்ற விளைவது-நாடு. \ \ ], [733], [பொறை ஒருங்கு மேல்வருங்கால் தாங்கி, இறைவற்கு \ இறை ஒருங்கு நேர்வது-நாடு. \ \ ], [734], [உறு பசியும், ஓவாப் பிணியும், செறு பகையும், \ சேராது இயல்வது-நாடு. \ \ ], [735], [பல் குழுவும், பாழ்செய்யும் உட்பகையும், வேந்து அலைக்கும் \ கொல் குறும்பும் இல்லது-நாடு. \ \ ], [736], [கேடு அறியா, கெட்ட இடத்தும் வளம் குன்றா \ நாடு, என்ப, நாட்டின் தலை. \ \ ], [737], [இரு புனலும், வாய்ந்த மலையும், வரு புனலும், \ வல் அரணும்-நாட்டிற்கு உறுப்பு. \ \ ], [738], [பிணி இன்மை, செல்வம், விளைவு, இன்பம், ஏமம்- \ அணி என்ப, நாட்டிற்கு-இவ் ஐந்து. \ \ ], [739], [நாடு என்ப, நாடா வளத்தன; நாடு அல்ல, \ நாட, வளம் தரும் நாடு. \ \ ], [740], [ஆங்கு அமைவு எய்தியக்கண்ணும் பயம் இன்றே- \ வேந்து அமைவு இல்லாத நாடு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 75 741 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [741], [ஆற்றுபவர்க்கும் அரண் பொருள்; அஞ்சித் தற் \ போற்றுபவர்க்கும் பொருள். \ \ ], [742], [மணி நீரும், மண்ணும், மலையும், அணி நிழல் \ காடும், உடையது-அரண். \ \ ], [743], ['உயர்வு, அகலம், திண்மை, அருமை, இந் நான்கின் \ அமைவு அரண்'.என்று உரைக்கும் நூல். \ \ ], [744], [சிறு காப்பின் பேர் இடத்தது ஆகி, உறு பகை \ ஊக்கம் அழிப்பது-அரண். \ \ ], [745], [கொளற்கு அரிதாய், கொண்ட கூழ்த்து ஆகி, அகத்தார் \ நிலைக்கு எளிது ஆம் நீரது-அரண். \ \ ], [746], [எல்லாப் பொருளும் உடைத்தாய், இடத்து உதவும் \ நல் ஆள் உடையது-அரண். \ \ ], [747], [முற்றியும், முற்றாது எறிந்தும், அறைப்படுத்தும், \ பற்றற்கு அரியது-அரண். \ \ ], [748], [முற்று ஆற்றி முற்றியவரையும், பற்று ஆற்றி, \ பற்றியார் வெல்வது-அரண். \ \ ], [749], [முனை முகத்து மாற்றலர் சாய, வினைமுகத்து \ வீறு எய்தி மாண்டது-அரண். \ \ ], [750], [எனை மாட்சித்து ஆகியக்கண்ணும், வினை மாட்சி \ இல்லார்கண் இல்லது-அரண். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 76 751 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [751], [பொருள் அல்லவரைப் பொருளாகச் செய்யும் \ பொருள் அல்லது, இல்லை பொருள். \ \ ], [752], [இல்லாரை எல்லாரும் எள்ளுவர்; செல்வரை \ எல்லாரும் செய்வர், சிறப்பு. \ \ ], [753], [பொருள் என்னும் பொய்யா விளக்கம், இருள் அறுக்கும்- \ எண்ணிய தேயத்துச் சென்று. \ \ ], [754], [அறன் ஈனும்; இன்பமும் ஈனும்;-திறன் அறிந்து, \ தீது இன்றி வந்த பொருள். \ \ ], [755], [அருளொடும், அன்பொடும் வாராப் பொருள் ஆக்கம் \ புல்லார், புரள விடல்!. \ \ ], [756], [உறு பொருளும், உல்கு பொருளும், தன் ஒன்னார்த் \ தெறு பொருளும்,-வேந்தன் பொருள். \ \ ], [757], [அருள் என்னும் அன்பு ஈன் குழவி, பொருள் என்னும் \ செல்வச் செவிலியால், உண்டு. \ \ ], [758], [குன்று ஏறி, யானைப் போர் கண்டற்றால்-தன் கைத்து ஒன்று \ உண்டாகச் செய்வான் வினை. \ \ ], [759], [செய்க பொருளை! செறுநர் செருக்கு அறுக்கும் \ எஃகு அதனின் கூரியது இல். \ \ ], [760], [ஒண் பொருள் காழ்ப்ப இயற்றியார்க்கு, எண் பொருள்- \ ஏனை இரண்டும் ஒருங்கு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 77 761 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [761], [உறுப்பு அமைந்து, ஊறு அஞ்சா, வெல் படை-வேந்தன் \ வெறுக்கையுள் எல்லாம் தலை. \ \ ], [762], [உலைவு இடத்து ஊறு அஞ்சா வன்கண், தொலைவு இடத்து, \ தொல் படைக்கு அல்லால், அரிது. \ \ ], [763], [ஒலித்தக்கால் என் ஆம், உவரி எலிப்பகை? \ நாகம் உயிர்ப்ப, கெடும். \ \ ], [764], [அழிவு இன்று, அறைபோகாது ஆகி, வழிவந்த \ வன்கணதுவே-படை. \ \ ], [765], [கூற்று உடன்று மேல்வரினும், கூடி, எதிர் நிற்கும் \ ஆற்றலதுவே-படை. \ \ ], [766], [மறம், மானம், மாண்ட வழிச் செலவு, தேற்றம், \ என நான்கே ஏமம், படைக்கு. \ \ ], [767], [தார் தாங்கிச் செல்வது தானை-தலைவந்த \ போர் தாங்கும் தன்மை அறிந்து. \ \ ], [768], [அடல்தகையும், ஆற்றலும், இல் எனினும், தானை \ படைத் தகையான் பாடு பெறும். \ \ ], [769], [சிறுமையும், செல்லாத் துனியும், வறுமையும், \ இல்லாயின் வெல்லும், படை. \ \ ], [770], [நிலை மக்கள் சால உடைத்துஎனினும், தானை \ தலைமக்கள் இல்வழி இல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 78 771 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [771], [என்னை முன் நில்லன்மின்-தெவ்விர்! பலர், என்னை \ முன் நின்று கல் நின்றவர். \ \ ], [772], [கான முயல் எய்த அம்பினில், யானை \ பிழைத்த வேல் ஏந்தல் இனிது. \ \ ], [773], [பேர் ஆண்மை என்ப, தறுகண்; ஒன்று உற்றக்கால், \ ஊராண்மை மற்று அதன் எஃகு. \ \ ], [774], [கை வேல் களிற்றொடு போக்கி வருபவன் \ மெய் வேல் பறியா, நகும். \ \ ], [775], [விழித்த கண் வேல் கொண்டு எறிய, அழித்து இமைப்பின், \ ஓட்டு அன்றோ, வன்கணவர்க்கு?. \ \ ], [776], [விழுப்புண் படாத நாள் எல்லாம் வழுக்கினுள் \ வைக்கும், தன் நாளை எடுத்து. \ \ ], [777], [சுழலும் இசை வேண்டி, வேண்டா உயிரார் \ கழல் யாப்புக் காரிகை நீர்த்து. \ \ ], [778], [உறின், உயிர் அஞ்சா மறவர், இறைவன் \ செறினும், சீர் குன்றல் இலர். \ \ ], [779], [இழைத்தது இகவாமைச் சாவாரை, யாரே, \ பிழைத்தது ஒறுக்கிற்பவர்?. \ \ ], [780], [புரந்தார் கண் நீர் மல்கச் சாகிற்பின், சாக்காடு \ இரந்து கோள்-தக்கது உடைத்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 79 781 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [781], [செயற்கு அரிய யா உள, நட்பின்?-அதுபோல் \ வினைக்கு அரிய யா உள, காப்பு?. \ \ ], [782], [நிறை நீர, நீரவர் கேண்மை, பிறை; மதிப் \ பின் நீர, பேதையார் நட்பு. \ \ ], [783], [நவில்தொறும் நூல் நயம் போலும்-பயில்தொறும், \ பண்பு உடையாளர் தொடர்பு. \ \ ], [784], [நகுதற்பொருட்டு அன்று, நட்டல்; மிகுதிக்கண் \ மேற்சென்று இடித்தற்பொருட்டு. \ \ ], [785], [புணர்ச்சி, பழகுதல் வேண்டா; உணர்ச்சிதான் \ நட்பு ஆம் கிழமை தரும். \ \ ], [786], [முகம் நக, நட்பது நட்பு அன்று; நெஞ்சத்து \ அகம் நக, நட்பது-நட்பு. \ \ ], [787], [அழிவினவை நீக்கி, ஆறு உய்த்து, அழிவின்கண் \ அல்லல் உழப்பது ஆம்-நட்பு. \ \ ], [788], [உடுக்கை இழந்தவன் கை போல, ஆங்கே \ இடுக்கண் களைவது ஆம்-நட்பு. \ \ ], [789], ['நட்பிற்கு வீற்றிருக்கை யாது?' எனின், கொட்பு இன்றி \ ஒல்லும்வாய் ஊன்றும் நிலை. \ \ ], [790], ['இனையர், இவர் எமக்கு; இன்னம் யாம்' என்று \ புனையினும், புல்லென்னும்-நட்பு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 80 791 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [791], [நாடாது நட்டலின் கேடு இல்லை; நட்டபின், \ வீடு இல்லை, நட்பு ஆள்பவர்க்கு. \ \ ], [792], [ஆய்ந்து ஆய்ந்து கொள்ளாதான் கேண்மை, கடைமுறை, \ தான் சாம் துயரம் தரும். \ \ ], [793], [குணனும், குடிமையும், குற்றமும், குன்றா \ இனனும், அறிந்து யாக்க நட்பு. \ \ ], [794], [குடிப் பிறந்து, தன்கண் பழி நாணுவானைக் \ கொடுத்தும் கொளல் வேண்டும், நட்பு. \ \ ], [795], [அழச் சொல்லி, அல்லது இடித்து, வழக்கு அறிய \ வல்லார் நட்பு ஆய்ந்து கொளல்!. \ \ ], [796], [கேட்டினும் உண்டு, ஓர் உறுதி-கிளைஞரை \ நீட்டி அளப்பது ஓர் கோல். \ \ ], [797], [ஊதியம் என்பது ஒருவற்குப் பேதையார் \ கேண்மை ஒரீஇ விடல். \ \ ], [798], [உள்ளற்க, உள்ளம் சிறுகுவ! கொள்ளற்க, \ அல்லற்கண் ஆற்றறுப்பார் நட்பு!. \ \ ], [799], [கெடும் காலைக் கைவிடுவார் கேண்மை, அடும் காலை \ உள்ளினும், உள்ளம் சுடும். \ \ ], [800], [மருவுக, மாசு அற்றார் கேண்மை! ஒன்று ஈத்தும் \ ஒருவுக, ஒப்பு இலார் நட்பு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 81 801 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [801], ['பழைமை எனப்படுவது யாது?' எனின், யாதும் \ கிழமையைக் கீழ்ந்திடா நட்பு. \ \ ], [802], [நட்பிற்கு உறுப்புக் கெழுதகைமை; மற்று அதற்கு \ உப்பு ஆதல் சான்றோர் கடன். \ \ ], [803], [பழகிய நட்பு எவன் செய்யும்-கெழுதகைமை \ செய்தாங்கு அமையாக்கடை?. \ \ ], [804], [விழைதகையான் வேண்டியிருப்பர்-கெழுதகையான் \ கேளாது நட்டார் செயின். \ \ ], [805], [பேதைமை ஒன்றோ, பெருங்கிழமை என்று உணர்க- \ நோ தக்க நட்டார் செயின்!. \ \ ], [806], [எல்லைக்கண் நின்றார் துறவார்-தொலைவிடத்தும், \ தொல்லைக்கண் நின்றார் தொடர்பு. \ \ ], [807], [அழிவந்த செய்யினும், அன்பு அறார்-அன்பின் \ வழிவந்த கேண்மையவர். \ \ ], [808], [கேள் இழுக்கம் கேளாக் கெழுதகைமை வல்லார்க்கு \ நாள், இழுக்கம் நட்டார் செயின். \ \ ], [809], [கெடாஅர், வழிவந்த கேண்மையார் கேண்மை \ விடாஅர் விழையும், உலகு. \ \ ], [810], [விழையார் விழையப்படுப-பழையார்கண் \ பண்பின் தலைப்பிரியாதார். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 82 811 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [811], [பருகுவார் போலினும், பண்பு இலார் கேண்மை \ பெருகலின் குன்றல் இனிது. \ \ ], [812], [உறின் நட்டு, அறின் ஒரூஉம் ஒப்பு இலார் கேண்மை \ பெறினும், இழப்பினும், என்?. \ \ ], [813], [உறுவது சீர்தூக்கும் நட்பும், பெறுவது \ கொள்வாரும், கள்வரும் நேர். \ \ ], [814], [அமரகத்து ஆற்றறுக்கும் கல்லா மா அன்னார் \ தமரின், தனிமை தலை. \ \ ], [815], [செய்து ஏமம் சாரா, சிறியவர் புன் கேண்மை \ எய்தலின் எய்தாமை நன்று. \ \ ], [816], [பேதை பெருங் கெழீஇ நட்பின், அறிவு உடையார் \ ஏதின்மை கோடி உறும். \ \ ], [817], [நகை வகையர் ஆகிய நட்பின், பகைவரான் \ பத்து அடுத்த கோடி உறும். \ \ ], [818], [ஒல்லும் கருமம் உடற்றுபவர் கேண்மை \ சொல்லாடார், சோரவிடல்!. \ \ ], [819], [கனவினும் இன்னாது மன்னோ-வினை வேறு \ சொல் வேறு பட்டார் தொடர்பு!. \ \ ], [820], [எனைத்தும் குறுகுதல் ஓம்பல்-மனைக் கெழீஇ, \ மன்றில் பழிப்பார் தொடர்பு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 83 821 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [821], [சீர் இடம் காணின், எறிதற்குப் பட்டடை- \ நேரா நிரந்தவர் நட்பு. \ \ ], [822], [இனம் போன்று இனம் அல்லார் கேண்மை, மகளிர் \ மனம் போல, வேறுபடும். \ \ ], [823], [பல நல்ல கற்றக்கடைத்தும், மனம் நல்லர் \ ஆகுதல் மாணார்க்கு அரிது. \ \ ], [824], [முகத்தின் இனிய நகாஅ, அகத்து இன்னா \ வஞ்சரை அஞ்சப்படும். \ \ ], [825], [மனத்தின் அமையாதவரை, எனைத்து ஒன்றும், \ சொல்லினான் தேறற்பாற்று அன்று. \ \ ], [826], [நட்டார்போல் நல்லவை சொல்லினும், ஒட்டார் சொல் \ ஒல்லை உணரப்படும். \ \ ], [827], [சொல் வணக்கம் ஒன்னார்கண் கொள்ளற்க-வில் வணக்கம் \ தீங்கு குறித்தமையான்!. \ \ ], [828], [தொழுத கையுள்ளும் படை ஒடுங்கும்; ஒன்னார் \ அழுத கண்ணீரும், அனைத்து. \ \ ], [829], [மிகச் செய்து, தம் எள்ளுவாரை நகச் செய்து, \ நட்பினுள் சாப் புல்லற்பாற்று. \ \ ], [830], [பகை நட்பு ஆம் காலம் வருங்கால், முகம் நட்டு, \ அகம் நட்பு ஒரீஇவிடல்!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 84 831 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [831], [பேதைமை என்பது ஒன்று; ‘யாது?’ எனின், ஏதம் கொண்டு, \ ஊதியம் போகவிடல். \ \ ], [832], [பேதைமையுள் எல்லாம் பேதைமை, காதன்மை \ கை அல்லதன்கண் செயல். \ \ ], [833], [நாணாமை, நாடாமை, நார் இன்மை, யாது ஒன்றும் \ பேணாமை,-பேதை தொழில். \ \ ], [834], [ஓதி உணர்ந்தும், பிறர்க்கு உரைத்தும், தான் அடங்காப் \ பேதையின் பேதையார் இல். \ \ ], [835], [ஒருமைச் செயல் ஆற்றும், பேதை-எழுமையும் \ தான் புக்கு அழுந்தும் அளறு!. \ \ ], [836], [பொய்படும் ஒன்றோ; புனை பூணும்;-கை அறியாப் \ பேதை வினை மேற்கொளின். \ \ ], [837], [ஏதிலார் ஆர, தமர் பசிப்பர்-பேதை \ பெருஞ் செல்வம் உற்றக்கடை. \ \ ], [838], [மையல் ஒருவன் களித்தற்றால்-பேதை தன் \ கை ஒன்று உடைமை பெறின். \ \ ], [839], [பெரிது இனிது, பேதையார் கேண்மை-பிரிவின்கண் \ பீழை தருவது ஒன்று இல்!. \ \ ], [840], [கழாஅக் கால் பள்ளியுள் வைத்தற்றால்-சான்றோர் \ குழா அத்துப் பேதை புகல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 85 841 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [841], [அறிவு இன்மை, இன்மையுள் இன்மை, பிறிது இன்மை \ இன்மையா வையாது, உலகு. \ \ ], [842], [அறிவு இலான் நெஞ்சு உவந்து ஈதல், பிறிது யாதும் \ இல்லை, பெறுவான் தவம். \ \ ], [843], [அறிவு இலார் தாம் தம்மைப் பீழிக்கும் பீழை \ செறுவார்க்கும் செய்தல் அரிது. \ \ ], [844], ['வெண்மை எனப்படுவது யாது?' எனின், ‘ஒண்மை \ உடையம் யாம்!’ என்னும் செருக்கு. \ \ ], [845], [கல்லாத மேற்கொண்டு ஒழுகல், கசடு அற \ வல்லதூஉம், ஐயம் தரும். \ \ ], [846], [அற்றம் மறைத்தலோ புல்லறிவு-தம்வயின் \ குற்றம் மறையாவழி. \ \ ], [847], [அரு மறை சோரும் அறிவு இலான் செய்யும், \ பெரு மிறை, தானே தனக்கு. \ \ ], [848], [ஏவவும் செய்கலான், தான் தேறான், அவ் உயிர் \ போஒம் அளவும் ஓர் நோய். \ \ ], [849], [காணாதாற் காட்டுவான் தான் காணான்; காணாதான் \ கண்டான் ஆம், தான் கண்ட ஆறு. \ \ ], [850], [உலகத்தார், ‘உண்டு’ என்பது ‘இல்’ என்பான் வையத்து \ அலகையா வைக்கப்படும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 86 851 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [851], [இகல் என்ப-எல்லா உயிர்க்கும் பகல் என்னும் \ பண்புஇன்மை பாரிக்கும் நோய். \ \ ], [852], [பகல் கருதிப் பற்றா செயினும், இகல் கருதி, \ இன்னா செய்யாமை தலை. \ \ ], [853], [இகல் என்னும் எவ்வ நோய் நீக்கின், தவல் இல்லாத் \ தா இல் விளக்கம் தரும். \ \ ], [854], [இன்பத்துள் இன்பம் பயக்கும்-இகல் என்னும் \ துன்பத்துள் துன்பம் கெடின். \ \ ], [855], [இகல் எதிர் சாய்ந்து ஒழுக வல்லாரை, யாரே, \ மிகல் ஊக்கும் தன்மையவர்?. \ \ ], [856], [இகலின் மிகல் இனிது என்பவன் வாழ்க்கை \ தவலும் கெடலும் நணித்து. \ \ ], [857], [மிகல் மேவல் மெய்ப் பொருள் காணார்-இகல் மேவல் \ இன்னா அறிவினவர். \ \ ], [858], [இகலிற்கு எதிர் சாய்தல் ஆக்கம்; அதனை \ மிகல் ஊக்கின், ஊக்குமாம் கேடு. \ \ ], [859], [இகல்காணான், ஆக்கம் வருங்கால்; அதனை \ மிகல் காணும், கேடு தரற்கு. \ \ ], [860], [இகலான் ஆம், இன்னாத எல்லாம்; நகலான் ஆம், \ நல் நயம் என்னும் செருக்கு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 87 861 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [861], [வலியார்க்கு மாறு ஏற்றல் ஓம்புக! ஓம்பா, \ மெலியார்மேல் மேக, பகை!. \ \ ], [862], [அன்பு இலன்; ஆன்ற துணை இலன்; தான் துவ்வான்;- \ என் பரியும், ஏதிலான் துப்பு?. \ \ ], [863], [அஞ்சும்; அறியான்; அமைவு இலன்; ஈகலான்;- \ தஞ்சம் எளியன், பகைக்கு. \ \ ], [864], [நீங்கான் வெகுளி; நிறை இலன்;- எஞ்ஞான்றும், \ யாங்கணும், யார்க்கும், எளிது. \ \ ], [865], [வழி நோக்கான்; வாய்ப்பன செய்யான்; பழி நோக்கான்; \ பண்பு இலன்;- பற்றார்க்கு இனிது. \ \ ], [866], [காணாச் சினத்தான், கழி பெருங் காமத்தான்,- \ பேணாமை பேணப்படும். \ \ ], [867], [கொடுத்தும் கொளல்வேண்டும் மன்ற- அடுத்து இருந்து, \ மாணாத செய்வான் பகை. \ \ ], [868], [குணன் இலனாய், குற்றம் பலஆயின், மாற்றார்க்கு, \ இனன் இலன் ஆம்; ஏமாப்பு உடைத்து. \ \ ], [869], [செறுவார்க்குச் சேண், இகவா, இன்பம்-அறிவு இலா \ அஞ்சும் பகைவர்ப் பெறின். \ \ ], [870], [கல்லான் வெகுளும் சிறு பொருள், எஞ்ஞான்றும், \ ஒல்லானை ஒல்லாது, ஒளி. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 88 871 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [871], [பகை என்னும் பண்புஇலதனை, ஒருவன் \ நகையேயும், வேண்டற்பாற்று அன்று. \ \ ], [872], [வில் ஏர் உழவர் பகை கொளினும், கொள்ளற்க- \ சொல் ஏர் உழவர் பகை!. \ \ ], [873], [ஏமுற்றவரினும் ஏழை-தமியனாய்ப் \ பல்லார் பகை கொள்பவன். \ \ ], [874], [பகை நட்பாக் கொண்டு ஒழுகும் பண்பு உடையாளன் \ தகைமைக்கண் தங்கிற்று, உலகு. \ \ ], [875], [தன் துணை இன்றால்; பகை இரண்டால்; தான் ஒருவன் \ இன் துணையாக் கொள்க, அவற்றின் ஒன்று!. \ \ ], [876], [தேறினும், தேறாவிடினும், அழிவின்கண் \ தேறான் பகாஅன் விடல்!. \ \ ], [877], [நோவற்க, நொந்தது அறியார்க்கு! மேவற்க, \ மென்மை, பகைவரகத்து!. \ \ ], [878], [வகை அறிந்து, தற் செய்து, தற் காப்ப, மாயும்- \ பகைவர்கண் பட்ட செருக்கு. \ \ ], [879], [இளைதாக முள்மரம் கொல்க- களையுநர் \ கை கொல்லும் காழ்த்த இடத்து!. \ \ ], [880], [உயிர்ப்ப உளர் அல்லர் மன்ற-செயிர்ப்பவர் \ செம்மல் சிதைக்கலாதார். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 89 881 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [881], [நிழல் நீரும் இன்னாத இன்னா-தமர் நீரும், \ இன்னா ஆம், இன்னா செயின். \ \ ], [882], [வாள்போல் பகைவரை அஞ்சற்க! அஞ்சுக, \ கேள்போல் பகைவர் தொடர்பு. \ \ ], [883], [உட்பகை அஞ்சித் தற் காக்க! உலைவு இடத்து, \ மட்பகையின் மாணத் தெறும். \ \ ], [884], [மனம் மாணா உட்பகை தோன்றின், இனம் மாணா \ ஏதம் பலவும் தரும். \ \ ], [885], [உறல் முறையான் உட்பகை தோன்றின், இறல் முறையான் \ ஏதம் பலவும் தரும். \ \ ], [886], [ஒன்றாமை ஒன்றியார்கண் படின், எஞ்ஞான்றும், \ பொன்றாமை ஒன்றல் அரிது. \ \ ], [887], [செப்பின் புணர்ச்சிபோல் கூடினும், கூடாதே- \ உட்பகை உற்ற குடி. \ \ ], [888], [அரம் பொருத பொன் போல, தேயும் உரம், பொருது- \ உட்பகை உற்ற குடி. \ \ ], [889], [எட் பகவு அன்ன சிறுமைத்தேஆயினும், \ உட்பகை, உள்ளது ஆம், கேடு. \ \ ], [890], [உடம்பாடு இலாதவர் வாழ்க்கை-குடங்கருள் \ பாம்போடு உடன் உறைந்தற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 90 891 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [891], [ஆற்றுவார் ஆற்றல் இகழாமை; போற்றுவார் \ போற்றலுள் எல்லாம் தலை. \ \ ], [892], [பெரியாரைப் பேணாது ஒழுகின், பெரியாரால் \ பேரா இடும்பை தரும். \ \ ], [893], [கெடல்வேண்டின், கேளாது செய்க-அடல் வேண்டின், \ ஆற்றுபவர்கண் இழுக்கு!. \ \ ], [894], [கூற்றத்தைக் கையால் விளித்தற்றால்-ஆற்றுவார்க்கு \ ஆற்றாதார் இன்னா செயல். \ \ ], [895], [யாண்டுச் சென்று யாண்டும் உளர் ஆகார்-வெந் துப்பின் \ வேந்து செறப்பட்டவர். \ \ ], [896], [எரியான் சுடப்படினும், உய்வு உண்டாம்; உய்யார், \ பெரியார்ப் பிழைத்து ஒழுகுவார். \ \ ], [897], [வகை மாண்ட வாழ்க்கையும், வான் பொருளும் என் ஆம்- \ தகை மாண்ட தக்கார் செறின்?. \ \ ], [898], [குன்று அன்னார் குன்ற மதிப்பின், குடியொடு, \ நின்றன்னார் மாய்வர், நிலத்து. \ \ ], [899], [ஏந்திய கொள்கையார் சீறின், இடை முரிந்து, \ வேந்தனும் வேந்து கெடும். \ \ ], [900], [இறந்து அமைந்த சார்புஉடையர் ஆயினும், உய்யார்- \ சிறந்து அமைந்த சீரார் செறின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 91 901 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [901], [மனை விழைவார் மாண் பயன் எய்தார்; வினை விழைவார் \ வேண்டாப் பொருளும் அது. \ \ ], [902], [பேணாது பெண் விழைவான் ஆக்கம் பெரியதோர் \ நாணாக, நாணுத் தரும். \ \ ], [903], [இல்லாள்கண் தாழ்ந்த இயல்புஇன்மை, எஞ்ஞான்றும், \ நல்லாருள் நாணுத் தரும். \ \ ], [904], [மனையாளை அஞ்சும் மறுமைஇலாளன் \ வினை ஆண்மை வீறு எய்தல் இன்று. \ \ ], [905], [இல்லாளை அஞ்சுவான், அஞ்சும் மற்று எஞ்ஞான்றும், \ நல்லார்க்கு நல்ல செயல். \ \ ], [906], [இமையாரின் வாழினும், பாடு இலரே-இல்லாள் \ அமை ஆர் தோள் அஞ்சுபவர். \ \ ], [907], [பெண் ஏவல் செய்து ஒழுகும் ஆண்மையின், நாணுடைப் \ பெண்ணே பெருமை உடைத்து. \ \ ], [908], [நட்டார் குறை முடியார்; நன்று ஆற்றார்;-நன்னுதலாள் \ பெட்டாங்கு ஒழுகுபவர். \ \ ], [909], [அறவினையும், ஆன்ற பொருளும், பிற வினையும்,- \ பெண் ஏவல் செய்வார்கண் இல். \ \ ], [910], [எண் சேர்ந்த நெஞ்சத்து, இடன் உடையார்க்கு, எஞ்ஞான்றும், \ பெண் சேர்ந்து ஆம் பேதைமை இல். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 92 911 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [911], [அன்பின் விழையார், பொருள் விழையும் ஆய்தொடியார் \ இன் சொல் இழுக்குத் தரும். \ \ ], [912], [பயன் தூக்கிப் பண்பு உரைக்கும் பண்பு இல் மகளிர் \ நயன் தூக்கி, நள்ளா விடல்!. \ \ ], [913], [பொருட்பெண்டிர் பொய்ம்மை முயக்கம்-இருட்டு அறையில் \ ஏதில் பிணம் தழீஇயற்று. \ \ ], [914], [பொருட்பொருளார் புன் நலம் தோயார்-அருட் பொருள் \ ஆயும் அறிவினவர். \ \ ], [915], [பொது நலத்தார் புன் நலம் தோயார்-மதி நலத்தின் \ மாண்ட அறிவினவர். \ \ ], [916], [தம் நலம் பாரிப்பார் தோயார்- தகை செருக்கி, \ புன் நலம் பாரிப்பார் தோள். \ \ ], [917], [நிறை நெஞ்சம் இல்லவர் தோய்வர்-பிற நெஞ்சில் \ பேணி, புணர்பவர் தோள். \ \ ], [918], ['ஆயும் அறிவினர் அல்லார்க்கு அணங்கு' என்ப- \ ‘மாய மகளிர் முயக்கு'. \ \ ], [919], [வரைவு இலா மாண் இழையார் மென் தோள்-புரை இலாப் \ பூரியர்கள் ஆழும் அளறு. \ \ ], [920], [இரு மனப் பெண்டிரும், கள்ளும், கவறும்.- \ திரு நீக்கப்பட்டார் தொடர்பு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 93 921 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [921], [உட்கப் படாஅர், ஒளி இழப்பர், எஞ்ஞான்றும்- \ கள்-காதல் கொண்டு ஒழுகுவார். \ \ ], [922], [உண்ணற்க, கள்ளை! உணில், உண்க, சான்றோரான் \ எண்ணப்பட வேண்டாதார்!. \ \ ], [923], [ஈன்றாள் முகத்தேயும் இன்னாதால்; என், மற்றுச் \ சான்றோர் முகத்துக் களி!. \ \ ], [924], [நாண் என்னும் நல்லாள் புறங்கொடுக்கும்-கள் என்னும் \ பேணாப் பெருங் குற்றத்தார்க்கு. \ \ ], [925], [கை அறியாமை உடைத்தே-பொருள் கொடுத்து, \ மெய் அறியாமை கொளல். \ \ ], [926], [துஞ்சினார் செத்தாரின் வேறு அல்லர்;-எஞ்ஞான்றும் \ நஞ்சு உண்பார் கள் உண்பவர். \ \ ], [927], [உள் ஒற்றி உள்ளூர் நகப்படுவர்-எஞ்ஞான்றும் \ கள் ஒற்றிக் கண் சாய்பவர். \ \ ], [928], [களித்து அறியேன் என்பது கைவிடுக-நெஞ்சத்து \ ஒளித்ததூஉம் ஆங்கே மிகும்!. \ \ ], [929], [களித்தானைக் காரணம் காட்டுதல்-கீழ் நீர்க் \ குளித்தானைத் தீத் துரீஇயற்று. \ \ ], [930], [கள் உண்ணாப் போழ்தில், களித்தானைக் காணுங்கால், \ உள்ளான்கொல், உண்டதன் சோர்வு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 94 931 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [931], [வேண்டற்க, வென்றிடினும் சூதினை! வென்றதூஉம், \ தூண்டில்-பொன் மீன் விழுங்கியற்று. \ \ ], [932], [ஒன்று எய்தி, நூறு இழக்கும் சூதர்க்கும் உண்டாம்கொல்- \ நன்று எய்தி வாழ்வதோர் ஆறு?. \ \ ], [933], [உருள் ஆயம் ஓவாது கூறின், பொருள் ஆயம் \ போஒய்ப் புறமே படும். \ \ ], [934], [சிறுமை பல செய்து, சீர் அழிக்கும் சூதின், \ வறுமை தருவது ஒன்று இல். \ \ ], [935], [கவறும், கழகமும், கையும், தருக்கி \ இவறியார்-இல்லாகியார். \ \ ], [936], [அகடு ஆரார்; அல்லல் உழப்பர்;-சூது என்னும் \ முகடியான் மூடப்பட்டார். \ \ ], [937], [பழகிய செல்வமும் பண்பும் கெடுக்கும்- \ கழகத்துக் காலை புகின். \ \ ], [938], [பொருள் கெடுத்து, பொய் மேற்கொளீஇ, அருள் கெடுத்து, \ அல்லல் உழப்பிக்கும்- சூது. \ \ ], [939], [உடை, செல்வம், ஊண், ஒளி, கல்வி என்று ஐந்தும் \ அடையாவாம்-ஆயம் கொளின். \ \ ], [940], [இழத்தொறூஉம் காதலிக்கும் சூதேபோல், துன்பம் \ உழத்தொறூஉம் காதற்று, உயிர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 95 941 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [941], [மிகினும் குறையினும், நோய் செய்யும்-நூலோர் \ வளி முதலா எண்ணிய மூன்று. \ \ ], [942], [மருந்து என வேண்டாவாம், யாக்கைக்கு- அருந்தியது, \ அற்றது போற்றி உணின். \ \ ], [943], [அற்றால், அளவு அறிந்து உண்க! அஃது உடம்பு \ பெற்றான் நெடிது உய்க்கும் ஆறு. \ \ ], [944], [அற்றது அறிந்து, கடைப்பிடித்து, மாறு அல்ல \ துய்க்க, துவரப் பசித்து!. \ \ ], [945], [மாறுபாடு இல்லாத உண்டி மறுத்து உண்ணின், \ ஊறுபாடு இல்லை, உயிர்க்கு. \ \ ], [946], [இழிவு அறிந்து உண்பான்கண் இன்பம்போல், நிற்கும், \ கழி பேர் இரையான்கண் நோய். \ \ ], [947], [தீ அளவு அன்றித் தெரியான் பெரிது உண்ணின், \ நோய் அளவு இன்றிப் படும். \ \ ], [948], [நோய் நாடி நோய் முதல் நாடி, அது தணிக்கும் \ வாய் நாடி, வாய்ப்பச் செயல்!. \ \ ], [949], [உற்றான் அளவும், பிணி அளவும், காலமும், \ கற்றான், கருதிச் செயல்!. \ \ ], [950], [உற்றவன், தீர்ப்பான், மருந்து, உழைச்செல்வான், என்று \ அப் பால் நாற் கூற்றே-மருந்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 96 951 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [951], [இற் பிறந்தார்கண் அல்லது இல்லை-இயல்பாகச் \ செப்பமும் நாணும் ஒருங்கு. \ \ ], [952], [ஒழுக்கமும், வாய்மையும், நாணும், இம் மூன்றும் \ இழுக்கார்-குடிப் பிறந்தார். \ \ ], [953], [நகை, ஈகை, இன் சொல், இகழாமை, நான்கும் \ வகை என்ப-வாய்மைக் குடிக்கு. \ \ ], [954], [அடுக்கிய கோடி பெறினும், குடிப் பிறந்தார் \ குன்றுவ செய்தல் இலர். \ \ ], [955], [வழங்குவது உள்வீழ்ந்தக்கண்ணும், பழங்குடி \ பண்பின் தலைப் பிரிதல் இன்று. \ \ ], [956], [சலம் பற்றிச் சால்பு இல செய்யார்-'மாசு அற்ற \ குலம் பற்றி வாழ்தும்' என்பார். \ \ ], [957], [குடிப்பிறந்தார்கண்-விளங்கும்-குற்றம், விசும்பின் \ மதிக்கண் மறுப்போல், உயர்ந்து. \ \ ], [958], [நலத்தின்கண் நார் இன்மை தோன்றின், அவனைக் \ குலத்தின்கண் ஐயப்படும். \ \ ], [959], [நிலத்தில் கிடந்தமை கால் காட்டும்;-காட்டும், \ குலத்தில் பிறந்தார் வாய்ச் சொல். \ \ ], [960], [நலம் வேண்டின், நாண் உடைமை வேண்டும்; குலம் வேண்டின், \ வேண்டுக, யார்க்கும் பணிவு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 97 961 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [961], [இன்றி அமையாச் சிறப்பின ஆயினும், \ குன்ற வருப விடல். \ \ ], [962], [சீரினும், சீர் அல்ல செய்யாரே-சீரொடு \ பேராண்மை வேண்டுபவர். \ \ ], [963], [பெருக்கத்து வேண்டும், பணிதல்; சிறிய \ சுருக்கத்து வேண்டும், உயர்வு. \ \ ], [964], [தலையின் இழிந்த மயிர் அனையர்-மாந்தர் \ நிலையின் இழிந்தக்கடை. \ \ ], [965], [குன்றின் அனையாரும் குன்றுவர்-குன்றுவ \ குன்றி அனைய செயின். \ \ ], [966], [புகழ் இன்றால்; புத்தேள் நாட்டு உய்யாதால்; என் மற்று, \ இகழ்வார்பின் சென்று நிலை?. \ \ ], [967], [ஒட்டார் பின் சென்று ஒருவன் வாழ்தலின், அந் நிலையே \ கெட்டான் எனப்படுதல் நன்று. \ \ ], [968], [மருந்தோ, மற்று ஊன் ஓம்பும் வாழ்க்கை-பெருந்தகைமை \ பீடு அழிய வந்த இடத்து?. \ \ ], [969], [மயிர் நீப்பின் வாழாக் கவரிமா அன்னார் \ உயிர் நீப்பர், மானம் வரின். \ \ ], [970], [இளி வரின், வாழாத மானம் உடையார் \ ஒளி தொழுது ஏத்தும், உலகு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 98 971 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [971], [ஒளி, ஒருவற்கு உள்ள வெறுக்கை; இளி ஒருவற்கு, \ ‘அஃது இறந்து வாழ்தும்’ எனல். \ \ ], [972], [பிறப்பு ஒக்கும் எல்லா உயிர்க்கும்; சிறப்பு ஒவ்வா, \ செய்தொழில் வேற்றுமையான். \ \ ], [973], [மேல் இருந்தும், மேல் அல்லார் மேல் அல்லர்; கீழ் இருந்தும், \ கீழ் அல்லார், கீழ் அல்லவர். \ \ ], [974], [ஒருமை மகளிரே போல, பெருமையும், \ தன்னைத்தான் கொண்டு ஒழுகின், உண்டு. \ \ ], [975], [பெருமை உடையவர் ஆற்றுவார்-ஆற்றின் \ அருமை உடைய செயல். \ \ ], [976], [சிறியார் உணர்ச்சியுள் இல்லை-'பெரியாரைப் \ பேணிக் கொள்வேம்' என்னும் நோக்கு. \ \ ], [977], [இறப்பே புரிந்த தொழிற்று ஆம் சிறப்பும்தான் \ சீர் அல்லவர்கண் படின். \ \ ], [978], [பணியுமாம், என்றும் பெருமை; சிறுமை \ அணியுமாம், தன்னை வியந்து. \ \ ], [979], [பெருமை பெருமிதம் இன்மை; சிறுமை \ பெருமிதம் ஊர்ந்துவிடல். \ \ ], [980], [அற்றம் மறைக்கும் பெருமை; சிறுமைதான் \ குற்றமே கூறிவிடும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 99 981 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [981], [கடன் என்ப, நல்லவை எல்லாம்-கடன் அறிந்து, \ சான்றாண்மை மேற்கொள்பவர்க்கு. \ \ ], [982], [குண நலம், சான்றோர் நலனே; பிற நலம் \ எந் நலத்து உள்ளதூஉம் அன்று. \ \ ], [983], [அன்பு, நாண், ஒப்புரவு, கண்ணோட்டம், வாய்மையொடு \ ஐந்து-சால்பு ஊன்றிய தூண். \ \ ], [984], [கொல்லா நலத்தது, நோன்மை;-பிறர் தீமை \ சொல்லா நலத்தது, சால்பு. \ \ ], [985], [ஆற்றுவார் ஆற்றல் பணிதல்; அது சான்றோர் \ மாற்றாரை மாற்றும் படை. \ \ ], [986], ['சால்பிற்குக் கட்டளை யாது?' எனின், தோல்வி \ துலை அல்லார்கண்ணும் கொளல். \ \ ], [987], [இன்னா செய்தார்க்கும் இனியவே செய்யாக்கால், \ என்ன பயத்ததோ, சால்பு?. \ \ ], [988], [இன்மை ஒருவற்கு இளிவு அன்று-சால்பு என்னும் \ திண்மை உண்டாகப்பெறின். \ \ ], [989], [ஊழி பெயரினும், தாம் பெயரார்-சான்றாண்மைக்கு \ ஆழி எனப்படுவார். \ \ ], [990], [சான்றவர் சான்றாண்மை குன்றின், இரு நிலம்தான் \ தாங்காது மன்னோ, பொறை!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 100 991 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [991], [எண் பதத்தால், எய்தல் எளிது என்ப, யார்மாட்டும், \ பண்பு உடைமை என்னும் வழக்கு. \ \ ], [992], [அன்பு உடைமை, ஆன்ற குடிப்பிறத்தல், இவ் இரண்டும் \ பண்பு உடைமை என்னும் வழக்கு. \ \ ], [993], [உறுப்பு ஒத்தல் மக்கள் ஒப்பு அன்றால்; வெறுத்தக்க \ பண்பு ஒத்தல், ஒப்பது ஆம் ஒப்பு. \ \ ], [994], [நயனொடு நன்றி புரிந்த பயன் உடையார் \ பண்பு பாராட்டும், உலகு. \ \ ], [995], [நகையுள்ளும் இன்னாது, இகழ்ச்சி; பகையுள்ளும் \ பண்பு உள, பாடு அறிவார் மாட்டு. \ \ ], [996], [பண்பு உடையார்ப் பட்டு, உண்டு உலகம்; அது இன்றேல், \ மண் புக்கு மாய்வதுமன். \ \ ], [997], [அரம் போலும் கூர்மையரேனும், மரம் போல்வர், \ மக்கள் பண்பு இல்லாதவர். \ \ ], [998], [நண்பு ஆற்றார் ஆகி, நயம் இல செய்வார்க்கும், \ பண்பு ஆற்றாராதல் கடை. \ \ ], [999], [நகல் வல்லர் அல்லார்க்கு மா இரு ஞாலம், \ பகலும், பாற் பட்டன்று, இருள். \ \ ], [1000], [பண்பு இலான் பெற்ற பெருஞ் செல்வம்-நன் பால் \ கலம் தீமையால் திரிந்தற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 101 1001 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1001], [வைத்தான், வாய் சான்ற பெரும் பொருள்; அஃது உண்ணான் \ செத்தான், செயக்கிடந்தது இல். \ \ ], [1002], ['பொருளான் ஆம், எல்லாம்' என்று, ஈயாது இவறும் \ மருளான், ஆம், மாணாப் பிறப்பு. \ \ ], [1003], [ஈட்டம் இவறி, இசை வேண்டா ஆடவர் \ தோற்றம் நிலக்குப் பொறை. \ \ ], [1004], [எச்சம் என்று என் எண்ணும் கொல்லோ-ஒருவரால் \ நச்சப் படாஅதவன்!. \ \ ], [1005], [கொடுப்பதூஉம் துய்ப்பதூஉம் இல்லார்க்கு, அடுக்கிய \ கோடி உண்டாயினும், இல். \ \ ], [1006], [ஏதம், பெருஞ் செல்வம்-தான் துவ்வான், தக்கார்க்கு ஒன்று \ ஈதல் இயல்பு இலாதான். \ \ ], [1007], [அற்றார்க்கு ஒன்று ஆற்றாதான் செல்வம்- மிகு நலம் \ பெற்றாள் தமியள் மூத்தற்று. \ \ ], [1008], [நச்சப்படாதவன் செல்வம்-நடுவூருள் \ நச்சு மரம் பழுத்தற்று. \ \ ], [1009], [அன்பு ஒரீஇ, தற் செற்று, அறம் நோக்காது, ஈட்டிய \ ஒண் பொருள் கொள்வார், பிறர். \ \ ], [1010], [சீருடைச் செல்வர் சிறு துனி-மாரி \ வறம் கூர்ந்தனையது உடைத்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 102 1011 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1011], [கருமத்தான் நாணுதல், நாணு; திருநுதல் \ நல்லவர் நாணு, பிற. \ \ ], [1012], [ஊண், உடை, எச்சம், உயிர்க்கு எல்லாம் வேறு அல்ல; \ நாண் உடைமை மாந்தர் சிறப்பு. \ \ ], [1013], [ஊனைக் குறித்த, உயிர் எல்லாம்; நாண் என்னும் \ நன்மை குறித்தது, சால்பு. \ \ ], [1014], [அணி அன்றோ, நாண் உடைமை சான்றோர்க்கு! அஃது இன்றேல் \ பிணி அன்றே, பீடு நடை!. \ \ ], [1015], ['பிறர் பழியும் தம் பழியும் நாணுவார் நாணுக்கு \ உறைபதி' என்னும், உலகு. \ \ ], [1016], [நாண் வேலி கொள்ளாது, மன்னோ, வியல் ஞாலம் \ பேணலர்-மேலாயவர். \ \ ], [1017], [நாணால் உயிரைத் துறப்பர்; உயிர்ப்பொருட்டால் \ நாண் துறவார்;-நாண் ஆள்பவர். \ \ ], [1018], [பிறர் நாணத்தக்கது தான் நாணான் ஆயின், \ அறம் நாணத் தக்கது உடைத்து. \ \ ], [1019], [குலம் சுடும், கொள்கை பிழைப்பின், நலம் சுடும், \ நாண் இன்மை நின்றக்கடை. \ \ ], [1020], [நாண் அகத்து இல்லார் இயக்கம்-மரப்பாவை \ நாணால் உயிர் மருட்டியற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 103 1021 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1021], ['கருமம் செய'-ஒருவன்-’கைதூவேன்’ என்னும் \ பெருமையின், பீடு உடையது இல். \ \ ], [1022], [ஆள்வினையும், ஆன்ற அறிவும், என இரண்டின் \ நீள் வினையான், நீளும் குடி. \ \ ], [1023], ['குடி செய்வல்' என்னும் ஒருவற்கு, தெய்வம் \ மடி தற்று, தான் முந்துறும். \ \ ], [1024], [சூழாமல் தானே முடிவு எய்தும்-தம் குடியைத் \ தாழாது உஞற்றுபவர்க்கு. \ \ ], [1025], [குற்றம் இலனாய், குடி செய்து வாழ்வானைச் \ சுற்றமாச் சுற்றும், உலகு. \ \ ], [1026], [நல் ஆண்மை என்பது ஒருவற்குத் தான் பிறந்த \ இல் ஆண்மை ஆக்கிக்கொளல். \ \ ], [1027], [அமரகத்து வன்கண்ணர் போல, தமரகத்தும் \ ஆற்றுவார் மேற்றே, பொறை. \ \ ], [1028], [குடி செய்வார்க்கு இல்லை, பருவம்; மடி செய்து, \ மானம் கருத, கெடும். \ \ ], [1029], [இடும்பைக்கே கொள்கலம்கொல்லோ-குடும்பத்தைக் \ குற்றம் மறைப்பான் உடம்பு!. \ \ ], [1030], [இடுக்கண் கால் கொன்றிட, வீழும்-அடுத்து ஊன்றும் \ நல் ஆள் இலாத குடி. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 104 1031 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1031], [சுழன்றும் ஏர்ப் பின்னது, உலகம்; அதனால், \ உழந்தும் உழவே தலை. \ \ ], [1032], [உழுவார் உலகத்தார்க்கு ஆணி-அஃது ஆற்றாது \ எழுவாரை எல்லாம் பொறுத்து. \ \ ], [1033], [உழுது, உண்டு, வாழ்வாரே வாழ்வார்; மற்று எல்லாம் \ தொழுது, உண்டு, பின் செல்பவர். \ \ ], [1034], [பல குடை நீழலும் தம் குடைக்கீழ்க் காண்பர்- \ அலகு உடை நீழலவர். \ \ ], [1035], [இரவார்; இரப்பார்க்கு ஒன்று ஈவர்-கரவாது \ கை செய்து ஊண் மாலையவர். \ \ ], [1036], [உழவினார் கைம்மடங்கின், இல்லை-'விழைவதூஉம் \ விட்டேம்' என்பார்க்கு நிலை. \ \ ], [1037], [தொடிப் புழுதி கஃசா உணக்கின், பிடித்து எருவும் \ வேண்டாது, சாலப் படும். \ \ ], [1038], [ஏரினும் நன்றால், எரு இடுதல்; கட்டபின், \ நீரினும் நன்று, அதன் காப்பு. \ \ ], [1039], [செல்லான் கிழவன் இருப்பின், நிலம் புலந்து \ இல்லாளின் ஊடிவிடும். \ \ ], [1040], ['இலம்!' என்று அசைஇ இருப்பாரைக் காணின், \ நிலம் என்னும் நல்லாள் நகும். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 105 1041 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1041], ['இன்மையின் இன்னாதது யாது?' எனின், இன்மையின் \ இன்மையே இன்னாதது. \ \ ], [1042], [இன்மை என ஒரு பாவி, மறுமையும் \ இம்மையும் இன்றி, வரும். \ \ ], [1043], [தொல் வரவும் தோலும் கெடுக்கும், தொகையாக- \ நல்குரவு என்னும் நசை. \ \ ], [1044], [இற்பிறந்தார்கண்ணேயும், இன்மை, இளி வந்த \ சொல் பிறக்கும் சோர்வு தரும். \ \ ], [1045], [நல்குரவு என்னும் இடும்பையுள் பல்குரைத் \ துன்பங்கள் சென்று படும். \ \ ], [1046], [நற் பொருள் நன்கு உணர்ந்து சொல்லினும், நல்கூர்ந்தார் \ சொல் பொருட் சோர்வு படும். \ \ ], [1047], [அறம் சாரா நல்குரவு, ஈன்ற தாயானும், \ பிறன் போல நோக்கப்படும். \ \ ], [1048], [இன்றும் வருவது கொல்லோ-நெருநலும் \ கொன்றது போலும் நிரப்பு!. \ \ ], [1049], [நெருப்பினுள் துஞ்சலும் ஆகும்; நிரப்பினுள் \ யாது ஒன்றும் கண்பாடு அரிது. \ \ ], [1050], [துப்புரவு இல்லார் துவரத் துறவாமை \ உப்பிற்கும் காடிக்கும் கூற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 106 1051 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1051], [இரக்க, இரத்தக்கார்க் காணின்! கரப்பின், \ அவர் பழி தம் பழி அன்று. \ \ ], [1052], [இன்பம் ஒருவற்கு இரத்தல்-இரந்தவை \ துன்பம் உறாஅ வரின். \ \ ], [1053], [கரப்பு இலா நெஞ்சின் கடன் அறிவார் முன் நின்று \ இரப்பும் ஓர் ஏஎர் உடைத்து. \ \ ], [1054], [இரத்தலும் ஈதலே போலும்-கரத்தல் \ கனவினும் தேற்றாதார்மாட்டு. \ \ ], [1055], [கரப்பு இலார் வையகத்து உண்மையான், கண் நின்று, \ இரப்பவர் மேற்கொள்வது. \ \ ], [1056], [கரப்பு இடும்பை இல்லாரைக் காணின், நிரப்பு இடும்பை \ எல்லாம் ஒருங்கு கெடும். \ \ ], [1057], [இகழ்ந்து எள்ளாது ஈவாரைக் காணின், மகிழ்ந்து உள்ளம் \ உள்ளுள் உவப்பது உடைத்து. \ \ ], [1058], [இரப்பாரை இல்லாயின், ஈர்ங்கண் மா ஞாலம் \ மரப்பாவை சென்று வந்தற்று. \ \ ], [1059], [ஈவார்கண் என் உண்டாம், தோற்றம்-இரந்து கோள் \ மேவார் இலாஅக்கடை?. \ \ ], [1060], [இரப்பான் வெகுளாமை வேண்டும்; நிரப்பு இடும்பை \ தானேயும் சாலும் கரி. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 107 1061 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1061], [கரவாது, உவந்து ஈயும் கண் அன்னார்கண்ணும் \ இரவாமை கோடி உறும். \ \ ], [1062], [இரந்தும் உயிர் வாழ்தல் வேண்டின், பரந்து \ கெடுக, உலகு இயற்றியான்!. \ \ ], [1063], ['இன்மை இடும்பை இரந்து தீர்வாம்' என்னும் \ வன்மையின் வன்பாட்டது இல். \ \ ], [1064], [இடம் எல்லாம் கொள்ளாத் தகைத்தே-இடம் இல்லாக் \ காலும், இரவு ஒல்லாச் சால்பு. \ \ ], [1065], [தெள் நீர் அடு புற்கை ஆயினும், தாள் தந்தது \ உண்ணலின் ஊங்கு இனியது இல். \ \ ], [1066], ['ஆவிற்கு நீர்' என்று இரப்பினும், நாவிற்கு \ இரவின் இளிவந்தது இல். \ \ ], [1067], [இரப்பன், இரப்பாரை எல்லாம்-’இரப்பின், \ கரப்பார் இரவன்மின்’ என்று. \ \ ], [1068], [இரவு என்னும் ஏமாப்பு இல் தோணி, கரவு என்னும் \ பார் தாக்க, பக்கு விடும். \ \ ], [1069], [இரவு உள்ள, உள்ளம் உருகும்; கரவு உள்ள, \ உள்ளதூஉம் இன்றிக் கெடும். \ \ ], [1070], [கரப்பவர்க்கு யாங்கு ஒளிக்கும்கொல்லோ-இரப்பவர் \ சொல்லாடப் போஒம் உயிர்!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 108 1071 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1071], [மக்களே போல்வர், கயவர்; அவர் அன்ன \ ஒப்பாரி யாம் கண்டது இல். \ \ ], [1072], [நன்று அறிவாரின் கயவர் திரு உடையர்- \ நெஞ்சத்து அவலம் இலர்!. \ \ ], [1073], [தேவர் அனையர், கயவர்-அவரும் தாம் \ மேவன செய்து, ஒழுகலான்!. \ \ ], [1074], [அகப் பட்டி ஆவாரைக் காணின், அவரின் \ மிகப்பட்டுச் செம்மாக்கும், கீழ். \ \ ], [1075], [அச்சமே கீழ்களது ஆசாரம்; எச்சம் \ அவா உண்டேல், உண்டாம் சிறிது. \ \ ], [1076], [அறை பறை அன்னர் கயவர்-தாம் கேட்ட \ மறை பிறர்க்கு உய்த்து உரைக்கலான். \ \ ], [1077], [ஈர்ங் கை விதிரார் கயவர்-கொடிறு உடைக்கும் \ கூன் கையர் அல்லாதவர்க்கு. \ \ ], [1078], [சொல்ல, பயன்படுவர் சான்றோர்; கரும்புபோல் \ கொல்ல, பயன்படும் கீழ். \ \ ], [1079], [உடுப்பதூஉம் உண்பதூஉம் காணின், பிறர்மேல் \ வடுக் காண வற்று ஆகும், கீழ். \ \ ], [1080], [எற்றிற்கு உரியர் கயவர்-ஒன்று உற்றக்கால், \ விற்றற்கு உரியர் விரைந்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 109 1081 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1081], [அணங்குகொல்! ஆய் மயில்கொல்லோ!- கனங்குழை- \ மாதர்கொல்! மாலும், என் நெஞ்சு. \ \ ], [1082], [நோக்கினாள் நோக்கு எதிர் நோக்குதல்-தாக்கு அணங்கு \ தானைக் கொண்டன்னது உடைத்து. \ \ ], [1083], [பண்டு அறியேன், ‘கூற்று’ என்பதனை; இனி அறிந்தேன்; \ பெண்தகையான் பேர் அமர்க் கட்டு. \ \ ], [1084], [கண்டார் உயிர் உண்ணும் தோற்றத்தான், பெண் தகைப் \ பேதைக்கு, அமர்த்தன கண். \ \ ], [1085], [கூற்றமோ! கண்ணோ! பிணையோ!- மடவரல் \ நோக்கம் இம் மூன்றும் உடைத்து. \ \ ], [1086], [கொடும் புருவம் கோடா மறைப்பின், நடுங்கு அஞர் \ செய்யலமன், இவள் கண். \ \ ], [1087], [கடாஅக் களிற்றின்மேல் கண் படாம்-மாதர் \ படாஅ முலைமேல் துகில்!. \ \ ], [1088], [ஒள் நுதற்கு, ஓஒ! உடைந்ததே-ஞாட்பினுள் \ நண்ணாரும் உட்கும் என் பீடு!. \ \ ], [1089], [பிணை ஏர் மட நோக்கும், நாணும் உடையாட்கு \ அணி எவனோ, ஏதில தந்து?. \ \ ], [1090], [உண்டார்கண் அல்லது, அடு நறா, காமம்போல் \ கண்டார் மகிழ் செய்தல் இன்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 110 1091 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1091], [இரு நோக்கு இவள் உண்கண் உள்ளது; ஒரு நோக்கு \ நோய் நோக்கு; ஒன்று அந் நோய் மருந்து. \ \ ], [1092], [கண் களவு கொள்ளும் சிறு நோக்கம் காமத்தின் \ செம்பாகம் அன்று; பெரிது. \ \ ], [1093], [நோக்கினாள்; நோக்கி இறைஞ்சினாள்; அஃது அவள் \ யாப்பினுள் அட்டிய நீர். \ \ ], [1094], [யான் நோக்கும் காலை நிலன் நோக்கும்; நோக்காக்கால், \ தான் நோக்கி, மெல்ல நகும். \ \ ], [1095], [குறிக்கொண்டு நோக்காமை அல்லால், ஒரு கண் \ சிறக்கணித்தாள் போல நகும். \ \ ], [1096], [உறாஅதவர்போல் சொலினும், செறாஅர் சொல் \ ஒல்லை உணரப்படும். \ \ ], [1097], [செறாஅச் சிறு சொல்லும், செற்றார்போல் நோக்கும்,- \ உறாஅர் போன்று உற்றார் குறிப்பு. \ \ ], [1098], [அசையியற்கு உண்டு, ஆண்டு ஓர் ஏஎர்; யான் நோக்க, \ பசையினள், பைய நகும். \ \ ], [1099], [ஏதிலார் போலப் பொதுநோக்கு நோக்குதல் \ காதலார் கண்ணே உள. \ \ ], [1100], [கண்ணொடு கண் இணை நோக்கு ஒக்கின், வாய்ச் சொற்கள் \ என்ன பயனும் இல. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 111 1101 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1101], [கண்டு, கேட்டு, உண்டு, உயிர்த்து, உற்று, அறியும் ஐம்புலனும் \ ஒண்டொடிகண்ணே உள. \ \ ], [1102], [பிணிக்கு மருந்து பிறமன்; அணியிழை \ தன்நோய்க்குத் தானே மருந்து. \ \ ], [1103], [தாம் வீழ்வார் மென் தோள்-துயிலின் இனிதுகொல்- \ தாமரைக்கண்ணான் உலகு?. \ \ ], [1104], [நீங்கின் தெறூஉம், குறுகுங்கால் தண்ணென்னும், \ தீ யாண்டுப் பெற்றாள், இவள்?. \ \ ], [1105], [வேட்ட பொழுதின் அவை அவை போலுமே- \ தோட்டார் கதுப்பினாள் தோள். \ \ ], [1106], [உறுதோறு உயிர் தளிர்ப்பத் தீண்டலான், பேதைக்கு \ அமிழ்தின் இயன்றன, தோள். \ \ ], [1107], [தம் இல் இருந்து, தமது பாத்து உண்டற்றால்- \ அம் மா அரிவை முயக்கு. \ \ ], [1108], [வீழும் இருவர்க்கு இனிதே-வளி இடை \ போழப் படாஅ முயக்கு. \ \ ], [1109], [ஊடல், உணர்தல், புணர்தல் இவை-காமம் \ கூடியார் பெற்ற பயன். \ \ ], [1110], [அறிதோறு அறியாமை கண்டற்றால்-காமம் \ செறிதோறும் சேயிழைமாட்டு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 112 1111 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1111], [நல்நீரை! வாழி!-அனிச்சமே!-நின்னினும் \ மெல் நீரள், யாம் வீழ்பவள். \ \ ], [1112], [மலர் காணின் மையாத்தி-நெஞ்சே!-'இவள் கண் \ பலர் காணும் பூ ஒக்கும்!' என்று. \ \ ], [1113], [முறி, மேனி, முத்தம், முறுவல்; வெறி, நாற்றம்; \ வேல், உண்கண்;-வேய்த்தோளவட்கு. \ \ ], [1114], [காணின், குவளை கவிழ்ந்து நிலன் நோக்கும்- \ ‘மாணிழை கண் ஒவ்வேம்!’ என்று. \ \ ], [1115], [( அனிச்சப்பூக் கால் களையாள் பெய்தாள்; நுசுப்பிற்கு \ நல்ல படாஅ, பறை. \ \ ], [1116], [மதியும் மடந்தை முகனும் அறியா, \ பதியின் கலங்கிய, மீன். \ \ ], [1117], [அறுவாய் நிறைந்த அவிர் மதிக்குப் போல \ மறு உண்டோ, மாதர் முகத்து!. \ \ ], [1118], [மாதர் முகம்போல் ஒளிவிட வல்லையேல், \ காதலை-வாழி, மதி!. \ \ ], [1119], [மலர் அன்ன கண்ணாள் முகம் ஒத்திஆயின், \ பலர் காணத் தோன்றல்!-மதி!. \ \ ], [1120], [அனிச்சமும் அன்னத்தின் தூவியும், மாதர் \ அடிக்கு நெருஞ்சிப் பழம். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 113 1121 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1121], [பாலொடு தேன் கலந்தற்றே-பணிமொழி \ வால் எயிறு ஊறிய நீர்!. \ \ ], [1122], [உடம்பொடு உயிரிடை என்ன, மற்று அன்ன- \ மடந்தையொடு எம்மிடை நட்பு. \ \ ], [1123], [கருமணியின் பாவாய்! நீ போதாய்-யாம் வீழும் \ திருநுதற்கு இல்லை, இடம்!. \ \ ], [1124], [வாழ்தல் உயிர்க்கு அன்னள், ஆயிழை; சாதல் \ அதற்கு அன்னள், நீங்கும் இடத்து. \ \ ], [1125], [உள்ளுவன்மன், யான் மறப்பின்; மறப்பு அறியேன், \ ஒள் அமர்க் கண்ணாள் குணம். \ \ ], [1126], [கண்ணுள்ளின் போகார்; இமைப்பின் பருவரார்; \ நுண்ணியர் எம் காதலவர். \ \ ], [1127], [கண் உள்ளார் காதலவராக, கண்ணும் \ எழுதேம், கரப்பாக்கு அறிந்து. \ \ ], [1128], [நெஞ்சத்தார் காதலவராக, வெய்து உண்டல் \ அஞ்சுதும், வேபாக்கு அறிந்து. \ \ ], [1129], [இமைப்பின், கரப்பாக்கு அறிவல்; அனைத்திற்கே, \ 'ஏதிலர்’ என்னும், இவ் ஊர். \ \ ], [1130], [உவந்து உறைவர், உள்ளத்துள் என்றும்; 'இகந்து உறைவர்; \ ஏதிலர்’ என்னும், இவ் ஊர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 114 1131 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1131], [காமம் உழந்து வருந்தினார்க்கு, ஏம \ மடல் அல்லது இல்லை, வலி. \ \ ], [1132], [நோனா உடம்பும் உயிரும், மடல் ஏறும்- \ நாணினை நீக்கி நிறுத்து. \ \ ], [1133], [நாணொடு நல் ஆண்மை பண்டு உடையேன்; இன்று உடையேன், \ காமுற்றார் ஏறும் மடல். \ \ ], [1134], [காமக் கடும் புனல் உய்க்குமே-நாணொடு \ நல் ஆண்மை என்னும் புணை. \ \ ], [1135], [தொடலைக் குறுந்தொடி தந்தாள், மடலொடு \ மாலை உழக்கும் துயர். \ \ ], [1136], [மடல் ஊர்தல் யாமத்தும் உள்ளுவேன் மன்ற;- \ படல் ஒல்லா, பேதைக்கு என் கண். \ \ ], [1137], [கடல் அன்ன காமம் உழந்தும், மடல் ஏறாப் \ பெண்ணின் பெருந்தக்கது இல். \ \ ], [1138], ['நிறை அரியர்; மன் அளியர்' என்னாது, காமம் \ மறை இறந்து, மன்று படும். \ \ ], [1139], ['அறிகிலார், எல்லாரும்' என்றே, என் காமம் \ மறுகில் மறுகும், மருண்டு. \ \ ], [1140], [யாம் கண்ணின் காண நகுப, அறிவு இல்லார்- \ யாம் பட்ட தாம் படாவாறு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 115 1141 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1141], [அலர் எழ, ஆர் உயிர் நிற்கும்; அதனைப் \ பலர் அறியார், பாக்கியத்தால். \ \ ], [1142], [மலர் அன்ன கண்ணாள் அருமை அறியாது, \ அலர் எமக்கு ஈந்தது, இவ் ஊர். \ \ ], [1143], [உறாஅதோ, ஊர் அறிந்த கௌவை? அதனைப் \ பெறாஅது பெற்றன்ன நீர்த்து. \ \ ], [1144], [கவ்வையான் கவ்விது, காமம்; அது இன்றேல், \ தவ்வென்னும், தன்மை இழந்து. \ \ ], [1145], [களித்தொறும் கள் உண்டல் வேட்டற்றால்-காமம் \ வெளிப்படும்தோறும் இனிது. \ \ ], [1146], [கண்டது மன்னும் ஒரு நாள்; அலர் மன்னும் \ திங்களைப் பாம்பு கொண்டற்று. \ \ ], [1147], [ஊரவர் கௌவை எருவாக,அன்னை சொல் \ நீராக, நீளும்-இந் நோய். \ \ ], [1148], ['நெய்யால் எரி நுதுப்பேம்' என்றற்றால்-'கௌவையான் \ காமம் நுதுப்பேம்' எனல். \ \ ], [1149], [அலர் நாண ஒல்வதோ-'அஞ்சல் ஓம்பு!' என்றார் \ பலர் நாண நீத்தக்கடை?. \ \ ], [1150], [தாம் வேண்டின் நல்குவர், காதலர்; யாம் வேண்டும் \ கௌவை எடுக்கும், இவ் ஊர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 116 1151 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1151], [செல்லாமை உண்டேல், எனக்கு உரை; மற்று நின் \ வல்வரவு, வாழ்வார்க்கு உரை. \ \ ], [1152], [இன்கண் உடைத்து அவர் பார்வல்; பிரிவு அஞ்சும் \ புன்கண் உடைத்தால், புணர்வு. \ \ ], [1153], [அரிதுஅரோ, தேற்றம்-அறிவுடையார்கண்ணும் \ பிரிவு ஓர் இடத்து உண்மையான். \ \ ], [1154], [அளித்து, ‘அஞ்சல்!’ என்றவர் நீப்பின், தெளித்த சொல் \ தேறியார்க்கு உண்டோ, தவறு?. \ \ ], [1155], [ஓம்பின், அமைந்தார் பிரிவு ஓம்பல்! மற்று அவர் \ நீங்கின், அரிதால், புணர்வு!. \ \ ], [1156], [பிரிவு உரைக்கும் வன்கண்ணர் ஆயின், அரிது, ‘அவர் \ நல்குவர்’ என்னும் நசை. \ \ ], [1157], [துறைவன் துறந்தமை தூற்றாகொல்-முன்கை \ இறை இறவாநின்ற வளை!. \ \ ], [1158], [இன்னாது, இனன் இல் ஊர் வாழ்தல்; அதனினும் \ இன்னாது, இனியார்ப் பிரிவு. \ \ ], [1159], [தொடின் சுடின் அல்லது, காமநோய் போல, \ விடின் சுடல் ஆற்றுமோ, தீ?. \ \ ], [1160], [அரிது ஆற்றி, அல்லல் நோய் நீக்கி, பிரிவு ஆற்றி, \ பின் இருந்து, வாழ்வார் பலர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 117 1161 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1161], [மறைப்பேன்மன் யான், இஃதோ, நோயை-இறைப்பவர்க்கு \ ஊற்றுநீர் போல மிகும். \ \ ], [1162], [கரத்தலும் ஆற்றேன், இந் நோயை; நோய் செய்தார்க்கு \ உரைத்தலும் நாணுத் தரும். \ \ ], [1163], [காமமும் நாணும் உயிர் காவாத் தூங்கும், என் \ நோனா உடம்பினகத்து. \ \ ], [1164], [காமக் கடல் மன்னும் உண்டே;அது நீந்தும் \ ஏமப் புணை மன்னும் இல். \ \ ], [1165], [துப்பின் எவன் ஆவர்மன்கொல்-துயர் வரவு \ நட்பினுள் ஆற்றுபவர். \ \ ], [1166], [இன்பம் கடல் மற்றுக் காமம்; அஃது அடுங்கால், \ துன்பம் அதனின் பெரிது. \ \ ], [1167], [காமக் கடும் புனல் நீந்திக் கரை காணேன், \ யாமத்தும், யானே உளேன். \ \ ], [1168], [மன் உயிர் எல்லாம் துயிற்றி,-அளித்து, இரா!- \ என் அல்லது இல்லை, துணை. \ \ ], [1169], [கொடியார் கொடுமையின் தாம் கொடிய-இந் நாள் \ நெடிய கழியும் இரா. \ \ ], [1170], [உள்ளம் போன்று உள்வழிச் செல்கிற்பின்,வெள்ளநீர் \ நீந்தல மன்னோ, என் கண். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 118 1171 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1171], [கண்தாம் கலுழ்வது எவன்கொலோ-தண்டா நோய், \ தாம் காட்ட, யாம் கண்டது!. \ \ ], [1172], [தெரிந்து உணரா நோக்கிய உண்கண் பரிந்து உணரா, \ பைதல் உழப்பது எவன்?. \ \ ], [1173], [கதுமெனத் தாம் நோக்கித் தாமே கலுழும் \ இது நகத்தக்கது உடைத்து. \ \ ], [1174], [பெயல் ஆற்றா நீர் உலந்த, உண்கண்-உயல் ஆற்றா \ உய்வு இல் நோய் என்கண் நிறுத்து. \ \ ], [1175], [படல் ஆற்றா, பைதல் உழக்கும்-கடல் ஆற்றாக் \ காம நோய் செய்த என் கண். \ \ ], [1176], [ஓஒ, இனிதே!-எமக்கு இந் நோய் செய்த கண் \ தாஅம் இதற்பட்டது. \ \ ], [1177], [உழந்து உழந்து உள்நீர் அறுக-விழைந்து இழைந்து \ வேண்டி அவர்க் கண்ட கண்!. \ \ ], [1178], [பேணாது பெட்டார் உளர்மன்னோ-மற்று அவர்க் \ காணாது அமைவு இல கண். \ \ ], [1179], [வாராக்கால், துஞ்சா; வரின், துஞ்சா; ஆயிடை \ ஆர் அஞர் உற்றன கண். \ \ ], [1180], [மறை பெறல் ஊரார்க்கு அரிது அன்றால்-எம்போல் \ அறை பறை கண்ணார் அகத்து. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 119 1181 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1181], [நயந்தவர்க்கு நல்காமை நேர்ந்தேன்; பசந்த என் \ பண்பு யார்க்கு உரைக்கோ, பிற. \ \ ], [1182], [அவர் தந்தார் என்னும் தகையால் இவர்தந்து, என் \ மேனிமேல் ஊரும், பசப்பு. \ \ ], [1183], [சாயலும் நாணும் அவர் கொண்டார்-கைம்மாறா \ நோயும் பசலையும் தந்து. \ \ ], [1184], [உள்ளுவன்மன் யான்; உரைப்பது அவர்திறமால்; \ கள்ளம் பிறவோ, பசப்பு. \ \ ], [1185], [உவக்காண், எம் காதலர் செல்வார்; இவக்காண், என் \ மேனி பசப்பு ஊர்வது!. \ \ ], [1186], [விளக்கு அற்றம் பார்க்கும் இருளேபோல், கொண்கன் \ முயக்கு அற்றம் பார்க்கும், பசப்பு. \ \ ], [1187], [புல்லிக் கிடந்தேன், புடைபெயர்ந்தேன்; அவ் அளவில், \ அள்ளிக்கொள்வற்றே, பசப்பு. \ \ ], [1188], ['பசந்தாள் இவள்' என்பது அல்லால், ‘இவளைத் \ துறந்தார் அவர்’ என்பார் இல். \ \ ], [1189], [பசக்கமன் பட்டாங்கு, என் மேனி-நயப்பித்தார் \ நல் நிலையர் ஆவர் எனின்!. \ \ ], [1190], [பசப்பு எனப் பேர் பெறுதல் நன்றே-நயப்பித்தார் \ நல்காமை தூற்றார் எனின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 120 1191 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1191], [தாம் வீழ்வார் தம் வீழப்பெற்றவர் பெற்றாரே, \ காமத்துக் காழ் இல் கனி. \ \ ], [1192], [வாழ்வார்க்கு வானம் பயந்தற்றால்-வீழ்வார்க்கு \ வீழ்வார் அளிக்கும் அளி. \ \ ], [1193], [வீழுநர் வீழப்படுவார்க்கு அமையுமே, \ ‘வாழுநம்’ என்னும் செருக்கு. \ \ ], [1194], [வீழப்படுவார், கெழீஇயிலர், தாம் வீழ்வார் \ வீழப்படாஅர் எனின். \ \ ], [1195], [நாம் காதல் கொண்டார் நமக்கு எவன் செய்பவோ \ தாம் காதல் கொள்ளாக்கடை. \ \ ], [1196], [ஒருதலையான் இன்னாது, காமம்; காப் போல \ இருதலையானும் இனிது. \ \ ], [1197], [பருவரலும் பைதலும் காணான்கொல்-காமன் \ ஒருவர்கண் நின்று ஒழுகுவான்!. \ \ ], [1198], [வீழ்வாரின் இன் சொல் பெறாஅது, உலகத்து \ வாழ்வாரின் வன்கணார் இல். \ \ ], [1199], [நசைஇயார் நல்கார் எனினும், அவர்மாட்டு \ இசையும் இனிய, செவிக்கு. \ \ ], [1200], [உறாஅர்க்கு உறு நோய் உரைப்பாய்-கடலைச் \ செறாஅஅய்!-வாழிய நெஞ்சு!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 121 1201 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1201], [உள்ளினும், தீராப் பெரு மகிழ் செய்தலால், \ கள்ளினும் காமம் இனிது. \ \ ], [1202], [எனைத்து ஒன்று இனிதேகாண் காமம்; தாம் வீழ்வார் \ நினைப்ப, வருவது ஒன்று இல். \ \ ], [1203], [நினைப்பவர் போன்று நினையார்கொல்-தும்மல் \ சினைப்பது போன்று கெடும்!. \ \ ], [1204], [யாமும் உளேம்கொல், அவர் நெஞ்சத்து?-எம் நெஞ்சத்து, \ ஓஒ! உளரே அவர்!. \ \ ], [1205], [தம் நெஞ்சத்து எம்மைக் கடி கொண்டார் நாணார்கொல்- \ எம் நெஞ்சத்து ஓவா வரல்?. \ \ ], [1206], [மற்று யான் என் உளேன் மன்னோ! அவரொடு யான் \ உற்ற நாள் உள்ள, உளேன். \ \ ], [1207], [மறப்பின், எவன் ஆவன் மன்கொல்-மறப்பு அறியேன், \ உள்ளினும் உள்ளம் சுடும்?. \ \ ], [1208], [எனைத்தும் நினைப்பினும் காயார்; அனைத்து அன்றோ, \ காதலர் செய்யும் சிறப்பு?. \ \ ], [1209], [விளியும், என் இன் உயிர்-'வேறு அல்லம்' என்பார் \ அளி இன்மை ஆற்ற நினைந்து. \ \ ], [1210], [விடாஅது சென்றாரைக் கண்ணினால் காணப் \ படாஅதி-வாழி மதி!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 122 1211 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1211], [காதலர் தூதொடு வந்த கனவினுக்கு \ யாது செய்வேன்கொல், விருந்து!. \ \ ], [1212], [கயல் உண்கண் யான் இரப்பத் துஞ்சின், கலந்தார்க்கு \ உயல் உண்மை சாற்றுவேன்மன். \ \ ], [1213], [நனவினான் நல்காதவரைக் கனவினான் \ காண்டலின் உண்டு, என் உயிர். \ \ ], [1214], [கனவினான் உண்டாகும் காமம்-நனவினான் \ நல்காரை நாடித் தரற்கு. \ \ ], [1215], [நனவினான் கண்டதூஉம், ஆங்கே கனவும்தான் \ கண்ட பொழுதே இனிது. \ \ ], [1216], [நனவு என ஒன்று இல்லைஆயின், கனவினான் \ காதலர் நீங்கலர்மன். \ \ ], [1217], [நனவினான் நல்காக் கொடியார் கனவினான், \ என், எம்மைப் பீழிப்பது?. \ \ ], [1218], [துஞ்சுங்கால் தோள் மேலர் ஆகி, விழிக்குங்கால் \ நெஞ்சத்தர் ஆவர், விரைந்து. \ \ ], [1219], [நனவினான் நல்காரை நோவர்-கனவினான் \ காதலர்க் காணாதவர். \ \ ], [1220], [நனவினான், நம் நீத்தார் என்பர்; கனவினான் \ காணார்கொல், இவ் ஊரவர்!. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 123 1221 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1221], [மாலையோ அல்லை; மணந்தார் உயிர் உண்ணும் \ வேலை நீ;-வாழி, பொழுது!. \ \ ], [1222], [புன்கண்ணை-வாழி, மருள் மாலை!-எம் கேள்போல் \ வன்கண்ணதோ, நின் துணை?. \ \ ], [1223], [பனி அரும்பிப் பைதல் கொள் மாலை, துனி அரும்பித் \ துன்பம் வளர, வரும். \ \ ], [1224], [காதலர் இல் வழி, மாலை, கொலைக்களத்து \ ஏதிலர் போல, வரும். \ \ ], [1225], [காலைக்குச் செய்த நன்று என்கொல்? எவன்கொல், யான் \ மாலைக்குச் செய்த பகை?. \ \ ], [1226], [மாலை நோய் செய்தல், மணந்தார் அகலாத \ காலை அறிந்ததிலேன். \ \ ], [1227], [காலை அரும்பி, பகல் எல்லாம் போது ஆகி, \ மாலை மலரும்-இந் நோய். \ \ ], [1228], [அழல் போலும் மாலைக்குத் தூது ஆகி, ஆயன் \ குழல்போலும் கொல்லும் படை. \ \ ], [1229], [பதி மருண்டு, பைதல் உழக்கும்-மதி மருண்டு, \ மாலை படர்தரும் போழ்து. \ \ ], [1230], [பொருள் மாலையாளரை உள்ளி, மருள் மாலை \ மாயும், என் மாயா உயிர். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 124 1231 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1231], [சிறுமை நமக்கு ஒழியச் சேண் சென்றார் உள்ளி, \ நறு மலர் நாணின, கண். \ \ ], [1232], [நயந்தவர் நல்காமை சொல்லுவ போலும்- \ பசந்து பனி வாரும் கண். \ \ ], [1233], [தணந்தமை சால அறிவிப்ப போலும்- \ மணந்த நாள் வீங்கிய தோள். \ \ ], [1234], [பணை நீங்கிப் பைந் தொடி சோரும்-துணை நீங்கித் \ தொல் கவின் வாடிய தோள். \ \ ], [1235], [கொடியார் கொடுமை உரைக்கும்-தொடியொடு \ தொல் கவின் வாடிய தோள். \ \ ], [1236], [தொடியொடு தோள் நெகிழ நோவல்-அவரை, \ ‘கொடியர்’ எனக் கூறல் நொந்து. \ \ ], [1237], [பாடு பெறுதியோ-நெஞ்சே!-கொடியார்க்கு என் \ வாடு தோட் பூசல் உரைத்து?. \ \ ], [1238], [முயங்கிய கைகளை ஊக்க, பசந்தது- \ பைந் தொடிப் பேதை நுதல்!. \ \ ], [1239], [முயக்கிடைத் தண் வளி போழ, பசப்பு உற்ற- \ பேதை பெரு மழைக்கண். \ \ ], [1240], [கண்ணின் பசப்போ பருவரல் எய்தின்றே- \ ஒள் நுதல் செய்தது கண்டு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 125 1241 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1241], [நினைத்து ஒன்று சொல்லாயோ-நெஞ்சே!-எனைத்து ஒன்றும் \ எவ்வ நோய் தீர்க்கும் மருந்து?. \ \ ], [1242], [காதல் அவர் இலர் ஆக நீ நோவது \ பேதைமை-வாழி, என் நெஞ்சு!. \ \ ], [1243], [இருந்து உள்ளி, என் பரிதல்?-நெஞ்சே!-பரிந்து உள்ளல் \ பைதல் நோய் செய்தார்கண் இல். \ \ ], [1244], [கண்ணும் கொளச் சேறி-நெஞ்சே!-இவை என்னைத் \ தின்னும், அவர்க் காணல் உற்று!. \ \ ], [1245], [செற்றார் எனக் கைவிடல் உண்டோ-நெஞ்சே!-யாம் \ உற்றால் உறாஅதவர்?. \ \ ], [1246], [கலந்து உணர்த்தும் காதலர்க் கண்டால், புலந்து உணராய்; \ பொய்க் காய்வு காய்தி-என் நெஞ்சு. \ \ ], [1247], [காமம் விடு, ஒன்றோ; நாண் விடு-நல் நெஞ்சே!- \ யானோ பொறேன், இவ் இரண்டு. \ \ ], [1248], [பரிந்து அவர் நல்கார் என்று, ஏங்கி, பிரிந்தவர்- \ பின் செல்வாய்; பேதை-என் நெஞ்சு.! \ \ ], [1249], [உள்ளத்தார் காதலவர் ஆக, உள்ளி நீ \ யாருழைச் சேறி?- என் நெஞ்சு!. \ \ ], [1250], [துன்னாத் துறந்தாரை நெஞ்சத்து உடையேமா, \ இன்னும் இழத்தும், கவின். \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 126 1251 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1251], [காமக் கணிச்சி உடைக்கும்-நிறை என்னும் \ நாணுத் தாழ் வீழ்த்த கதவு. \ \ ], [1252], [காமம் என ஒன்றோ கண் இன்று! என் நெஞ்சத்தை \ யாமத்தும் ஆளும், தொழில். \ \ ], [1253], [மறைப்பேன்மன் காமத்தை யானோ; குறிப்பு இன்றித் \ தும்மல்போல் தோன்றிவிடும். \ \ ], [1254], [நிறை உடையேன் என்பேன்மன், யானோ; என் காமம், \ மறை இறந்து, மன்றுபடும். \ \ ], [1255], [செற்றார்பின் செல்லாப் பெருந்தகைமை, காம நோய் \ உற்றார் அறிவது ஒன்று அன்று. \ \ ], [1256], [செற்றவர்பின் சேறல் வேண்டி,-அளித்துஅரோ!- \ எற்று, என்னை உற்ற துயர்?. \ \ ], [1257], [நாண் என ஒன்றோ அறியலம்-காமத்தான், \ பேணியார் பெட்ப செயின். \ \ ], [1258], [பல மாயக் கள்வன் பணிமொழி அன்றோ-நம் \ பெண்மை உடைக்கும் படை!. \ \ ], [1259], ['புலப்பல்' எனச் சென்றேன்; புல்லினேன், நெஞ்சம் \ கலத்தல் உறுவது கண்டு. \ \ ], [1260], [நிணம் தீயில் இட்டன்ன நெஞ்சினார்க்கு உண்டோ- \ புணர்ந்து ஊடி நிற்பேம் எனல்?. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 127 1261 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1261], [வாள் அற்றுப் புற்கென்ற, கண்ணும்; அவர் சென்ற \ நாள் ஒற்றித் தேய்ந்த, விரல். \ \ ], [1262], [இலங்கிழாய்! இன்று மறப்பின், என் தோள்மேல் \ கலம் கழியும், காரிகை நீத்து. \ \ ], [1263], [உரன் நசைஇ, உள்ளம் துணையாகச் சென்றார் \ வரல் நசைஇ, இன்னும் உளேன். \ \ ], [1264], [கூடிய காமம் பிரிந்தார் வரவு உள்ளி, \ கோடு கொடு ஏறும், என் நெஞ்சு. \ \ ], [1265], [காண்கமன், கொண்கனைக் கண் ஆர; கண்டபின், \ நீங்கும், என் மென் தோட் பசப்பு. \ \ ], [1266], [வருகமன், கொண்கன் ஒருநாள்; பருகுவன், \ பைதல்நோய் எல்லாம் கெட. \ \ ], [1267], [புலப்பேன்கொல்-புல்லுவேன் கொல்லோ-கலப்பேன்கொல்- \ கண் அன்ன கேளிர் வரின்?. \ \ ], [1268], [வினை கலந்து வென்றீக, வேந்தன்! மனை கலந்து \ மாலை அயர்கம், விருந்து!. \ \ ], [1269], [ஒரு நாள் எழு நாள்போல் செல்லும்-சேண் சென்றார் \ வரு நாள் வைத்து ஏங்குபவர்க்கு. \ \ ], [1270], [பெறின் என் ஆம்-பெற்றக்கால் என் ஆம் உறின் என் ஆம்- \ உள்ளம் உடைந்து உக்கக்கால்?. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 128 1271 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1271], [கரப்பினும், கையிகந்து ஒல்லா, நின் உண்கண் \ உரைக்கல் உறுவது ஒன்று உண்டு. \ \ ], [1272], [கண் நிறைந்த காரிகை, காம்பு ஏர் தோள், பேதைக்குப் \ பெண் நிறைந்த நீர்மை பெரிது. \ \ ], [1273], [மணியுள் திகழ்தரும் நூல்போல், மடந்தை \ அணியுள் திகழ்வது ஒன்று உண்டு. \ \ ], [1274], [முகை மொக்குள் உள்ளது நாற்றம்போல், பேதை \ நகை மொக்குள் உள்ளது ஒன்று உண்டு. \ \ ], [1275], [செறிதொடி செய்து இறந்த கள்ளம், உறு துயர் \ தீர்க்கும் மருந்து ஒன்று உடைத்து. \ \ ], [1276], [பெரிது ஆற்றிப் பெட்பக் கலத்தல், அரிது ஆற்றி, \ அன்பு இன்மை சூழ்வது உடைத்து. \ \ ], [1277], [தண்ணந் துறைவன் தணந்தமை, நம்மினும் \ முன்னம் உணர்ந்த, வளை. \ \ ], [1278], [நெருநற்றுச் சென்றார் எம் காதலர்; யாமும் \ எழு நாளேம், மேனி பசந்து. \ \ ], [1279], [தொடி நோக்கி, மென் தோளும் நோக்கி, அடி நோக்கி, \ அஃது, ஆண்டு அவள் செய்தது. \ \ ], [1280], [பெண்ணினான் பெண்மை உடைத்து என்ப-கண்ணினான் \ காம நோய் சொல்லி இரவு. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 129 1281 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1281], [உள்ளக் களித்தலும், காண மகிழ்தலும், \ கள்ளுக்கு இல்; காமத்திற்கு உண்டு. \ \ ], [1282], [தினைத் துணையும் ஊடாமை வேண்டும்-பனைத் துணையும் \ காமம் நிறைய வரின். \ \ ], [1283], [பேணாது பெட்பவே செய்யினும், கொண்கனைக் \ காணாது அமையல, கண். \ \ ], [1284], [ஊடற்கண் சென்றேன்மன்;-தோழி! அது மறந்து \ கூடற்கண் சென்றது, என் நெஞ்சு. \ \ ], [1285], [எழுதுங்கால் கோல் காணாக் கண்ணேபோல், கொண்கன் \ பழி காணேன், கண்ட இடத்து. \ \ ], [1286], [காணுங்கால் காணேன் தவறு ஆய; காணாக்கால், \ காணேன், தவறு அல்லவை. \ \ ], [1287], [உய்த்தல் அறிந்து புனல் பாய்பவரேபோல், \ பொய்த்தல் அறிந்து, என் புலந்து?. \ \ ], [1288], [இளித்தக்க இன்னா செயினும், களித்தார்க்குக் \ கள் அற்றே-கள்வ!- நின் மார்பு. \ \ ], [1289], [மலரினும் மெல்லிது காமம்; சிலர், அதன் \ செவ்வி தலைப்படுவார். \ \ ], [1290], [கண்ணின் துனித்தே, கலங்கினாள், புல்லுதல் \ என்னினும் தான் விதுப்புற்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 130 1291 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1291], [அவர் நெஞ்சு அவர்க்கு ஆதல் கண்டும், எவன்,-நெஞ்சே!- \ நீ எமக்கு ஆகாதது?. \ \ ], [1292], [உறாஅதவர்க் கண்ட கண்ணும், அவரைச் \ செறாஅர் எனச் சேறி-என் நெஞ்சு. \ \ ], [1293], ['கெட்டார்க்கு நட்டார் இல்' என்பதோ-நெஞ்சே!-நீ \ பெட்டாங்கு அவர்பின் செலல்?. \ \ ], [1294], [இனி, அன்ன நின்னொடு சூழ்வார் யார்-நெஞ்சே! \ துனி செய்து துவ்வாய்காண் மற்று?. \ \ ], [1295], [பெறாஅமை அஞ்சும்; பெறின், பிரிவு அஞ்சும்; \ அறாஅ இடும்பைத்து-என் நெஞ்சு. \ \ ], [1296], [தனியே இருந்து நினைத்தக்கால், என்னைத் \ தினிய இருந்தது-என் நெஞ்சு. \ \ ], [1297], [நாணும் மறந்தேன்-அவர் மறக்கல்லா என் \ மாணா மட நெஞ்சின் பட்டு. \ \ ], [1298], ['எள்ளின், இளிவாம்' என்று எண்ணி, அவர் திறம் \ உள்ளும்-உயிர்க் காதல் நெஞ்சு. \ \ ], [1299], [துன்பத்திற்கு யாரே துணை ஆவார்-தாம் உடைய \ நெஞ்சம் துணை அல்வழி?. \ \ ], [1300], [தஞ்சம், தமர் அல்லர் ஏதிலார்-தாம் உடைய \ நெஞ்சம் தமர் அல்வழி. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 131 1301 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1301], [புல்லாது இராஅப் புலத்தை; அவர் உறும் \ அல்லல் நோய் காண்கம், சிறிது. \ \ ], [1302], [உப்பு அமைந்தற்றால், புலவி; அது சிறிது \ மிக்கற்றால், நீள விடல். \ \ ], [1303], [அலந்தாரை அல்லல் நோய் செய்தற்றால்-தம்மைப் \ புலந்தாரைப் புல்லா விடல். \ \ ], [1304], [ஊடியவரை உணராமை-வாடிய \ வள்ளி முதல் அரிந்தற்று. \ \ ], [1305], [நலத்தகை நல்லவர்க்கு ஏஎர், புலத் தகை, \ பூ அன்ன கண்ணார் அகத்து. \ \ ], [1306], [துனியும் புலவியும் இல்லாயின், காமம் \ கனியும் கருக்காயும் அற்று. \ \ ], [1307], [ஊடலின் உண்டு ஆங்கு ஓர் துன்பம்-'புணர்வது \ நீடுவது அன்றுகொல்!' என்று. \ \ ], [1308], [நோதல் எவன், மற்று-'நொந்தார்' என்று அஃது அறியும் \ காதலர் இல்லாவழி. \ \ ], [1309], [நீரும் நிழலது இனிதே; புலவியும் \ வீழுநர்கண்ணே இனிது. \ \ ], [1310], [ஊடல் உணங்க, விடுவாரொடு, என் நெஞ்சம், \ ‘கூடுவேம்’ என்பது அவா. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 132 1311 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1311], [பெண் இயலார் எல்லாரும் கண்ணின் பொது உண்பர்; \ நண்ணேன்-பரத்த!-நின் மார்பு. \ \ ], [1312], [ஊடி இருந்தேமா, தும்மினார்-யாம் தம்மை, \ ‘நீடு வாழ்க!’ என்பாக்கு அறிந்து. \ \ ], [1313], [கோட்டுப் பூச் சூடினும் காயும்-'ஒருத்தியைக் \ காட்டிய சூடினீர்!' என்று. \ \ ], [1314], ['யாரினும் காதலம்' என்றேனா, ஊடினாள்- \ ‘யாரினும்! யாரினும்!’ என்று. \ \ ], [1315], ['இம்மைப் பிறப்பில் பிரியலம்' என்றேனா, \ கண் நிறை நீர் கொண்டனள். \ \ ], [1316], ['உள்ளினேன்' என்றேன்; ‘மற்று என் மறந்தீர்’ என்று என்னைப் \ புல்லாள், புலத்தக்கனள். \ \ ], [1317], [வழுத்தினாள், தும்மினேனாக; அழித்து அழுதாள், \ ‘யார் உள்ளித் தும்மினீர்?’ என்று. \ \ ], [1318], [தும்முச் செறுப்ப, அழுதாள், ‘நுமர் உள்ளல் \ எம்மை மறைத்திரோ?’ என்று. \ \ ], [1319], [தன்னை உணர்த்தினும் காயும், ‘பிறர்க்கும் நீர் \ இந் நீரர் ஆகுதிர்!’ என்று. \ \ ], [1320], [நினைத்திருந்து நோக்கினும், காயும், ‘அனைத்தும் நீர் \ யார் உள்ளி நோக்கினீர்?’ என்று. \ \ ], ) #set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #set align(center) = 133 1321 \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1321], [இல்லை தவறு அவர்க்கு ஆயினும், ஊடுதல் \ வல்லது, அவர் அளிக்குமாறு. \ \ ], [1322], [ஊடலின் தோன்றும் சிறு துனி, நல் அளி \ வாடினும், பாடு பெறும். \ \ ], [1323], [புலத்தலின் புத்தேள்-நாடு உண்டோ-நிலத்தொடு \ நீர் இயைந்தன்னாரகத்து?. \ \ ], [1324], [புல்லி விடாஅப் புலவியுள் தோன்றும்-என் \ உள்ளம் உடைக்கும் படை. \ \ ], [1325], [தவறு இலர் ஆயினும், தாம் வீழ்வார் மென் தோள் \ அகறலின், ஆங்கு ஒன்று உடைத்து. \ \ ], [1326], [உணலினும், உண்டது அறல் இனிது; காமம் \ புணர்தலின், ஊடல் இனிது. \ \ ], [1327], [ஊடலின் தோற்றவர் வென்றார்; அது மன்னும் \ கூடலின் காணப்படும். \ \ ], [1328], [ஊடிப் பெறுகுவம்கொல்லோ-நுதல் வெயர்ப்பக் \ கூடலின் தோன்றிய உப்பு!. \ \ ], [1329], [ஊடுக மன்னோ, ஒளியிழை! யாம் இரப்ப, \ நீடுக மன்னோ, இரா!. \ \ ], [1330], [ஊடுதல் காமத்திற்கு இன்பம்; அதற்கு இன்பம், \ கூடி முயங்கப் பெறின். \ \ ], )
https://github.com/Drodt/clever-quotes
https://raw.githubusercontent.com/Drodt/clever-quotes/main/examples/demo.typ
typst
#import "../src/clever-quotes.typ": * #show: clever-quotes.with(style: "de") #set heading(numbering: "1.1.") My first quote: #quote[Some text and even #quote[text inside that one!]], and an inner quote: #quote(inner: true)[other text] Citation in text: #quote(cite: [@s])[My text] or #citequote[@s][My text] Insertion: #quote[I wrote #text-ins[some of] the quote. This #text-ins[t]ime only one word.] Deleted: #quote[I delete#text-del[d] some text] Ellipsis: #quote[I #text-elp-ins[altered] the text. With an empty arg: #text-elp] Block quote: #blockquote(cite: [@s], font-size: .9em)[#lorem(100)] = Sec <s>
https://github.com/Yaraslaut/Yaraslaut
https://raw.githubusercontent.com/Yaraslaut/Yaraslaut/main/cv/cv.typ
typst
#import "@preview/splash:0.3.0": xcolor // SOME FUNCTIONS #let Item(duration,title,place,doc,skills) = { grid( columns: 2, gutter: 8pt, rect(fill: rgb("e4e5ea"),width:100%)[ #text(weight: "black")[#title] #text(style:"italic")[#place] ], [#align(right, rect(fill: xcolor.dandelion, width: 100pt)[#align(center)[#duration]])] , [#doc], [], [#skills], [], ) } // GLOBAL SETTINGS #set par( justify: true, leading: 8pt, ) #set page( paper: "a4", margin: (x: 50pt, y: 40pt), ) #set text(size: 10pt) #show link : name => text(fill: blue)[#name] // START OF CV #align(center,text(20pt)[<NAME>ich]) #grid( rows: 1, columns: 4, column-gutter: 10pt, [Mail: #link("mailto:<EMAIL>")[<EMAIL>]], [Github : #link("https://github.com/Yaraslaut")[Yaraslaut]], [Linkedin : #link("https://www.linkedin.com/in/yaraslau-tamashevich/")[yaraslau-tamashevich]] ) #box(width: 50em, height: 0.2em, fill: xcolor.dandelion) #set align(left) = Summary I am a theoretical physicist, currently pursuing my Ph.D. in nonlinear optics. I combine theory and numerical calculations to study nonlinear light-matter interaction of different materials. Beyond my academic pursuits, I actively contribute to a few projects that I personally utilize on a daily basis, have some small pet projects that allow me to explore new ideas and continuously expand my knowledge, in the past was working as an algorithm developer in industry to solve real-world problems. I am always open to new opportunities and challenges. #box(width: 50em, height: 0.2em, fill: xcolor.dandelion) = Skills #list( [Strong knowledge in physics and mathematics], [Programming languages: #list( [C++ for high performance and desktop applications], [Julia for solving differential equations and plotting], [Python as a scripting language and user interaction])], [Linux user living in terminal and emacs], [Other tools: cmake, Qt/QML, git, bash, latex, mathematica, mathcad, slurm, github actions, jira], ) #box(width: 50em, height: 0.2em, fill: xcolor.dandelion) = Experience #Item()[Feb 2019 - Dec 2020][Algorithm developer][EMC Lab, BSUIR, Minsk, Belarus][Development of algorithms for the electromagnetic compatibility problems for the research and commercial solutions.][skills: #text(weight: "bold")[c++, mathcad, git, jira, latex]] #Item()[Jan 2021 - Jan 2023][Algorithm developer][Izovac, Minsk, Belarus][Development of algorithms for control of vacuum coating systems.][skills: #text(weight: "bold")[c++, git, mathematica]] #box(width: 50em, height: 0.2em, fill: xcolor.dandelion) = Education #Item()[2015-2020][B.Sc and M.Sc. in Physics][Belarusian State University, Minsk, Belarus][#text(weight: "bold")[ Theoretical physics and astrophysics department]][ Thesis: #text(style:"italic")[Analysis of the efficiency of quantum repeaters based on elimination measurements for quantum networks]] #Item()[2021-present][Ph.D. in Physics][Tampere University, Tampere, Finland][#text(weight: "bold")[Theoretical Optics and Photonics group]][Numerical and analytical calculations of nonlinear optical responses in quantum picture skills: #text(weight: "bold")[julia, slurm, c++, git, latex, mathematica] ] #box(width: 50em, height: 0.2em, fill: xcolor.dandelion) = Open Source Projects #Item()[Oct 2022 - present][Contour][ Terminal Emulator #link("https://github.com/contour-terminal/contour")[github]][Cross-platform Terminal Emulator written in modern C++ with SIMD acceleration][skills: #text(weight: "bold")[c++, cmake, github, Qt/QML]] #Item()[Jan 2023 - present][Prop][2D FDTD solver of Maxwell's equations #link("https://github.com/Yaraslaut/prop")[github]][2D FDTD solver with support of parallelisation on CPU and GPU written in C++ and python interface via pybind for user interaction][skills: #text(weight: "bold")[c++, python, cmake, git]] #box(width: 50em, height: 0.2em, fill: xcolor.dandelion) #bibliography("list.bib",title: "List of publications") #cite(<tsyanenka2020computationally>) #cite(<tamashevich2022inhomogeneous>) #cite(<robson2021path>) #cite(<tamashevich2022nonlinear>) #cite(<tamashevich2023two>) #cite(<tamashevich2023field>)
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/clip_04.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test clipping with `radius`. #set page(height: 60pt) #box( radius: 5pt, stroke: 2pt + black, width: 20pt, height: 20pt, clip: true, image("/assets/files/rhino.png", width: 30pt) )
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/math/attach.typ
typst
// Test t and b attachments, part 1. --- math-attach-postscripts --- // Test basics, postscripts. $f_x + t^b + V_1^2 + attach(A, t: alpha, b: beta)$ --- math-attach-prescripts --- // Test basics, prescripts. Notably, the upper and lower prescripts' content need to be // aligned on the right edge of their bounding boxes, not on the left as in postscripts. $ attach(upright(O), bl: 8, tl: 16, br: 2, tr: 2-), attach("Pb", bl: 82, tl: 207) + attach(upright(e), bl: -1, tl: 0) + macron(v)_e \ $ --- math-attach-mixed --- // A mixture of attachment positioning schemes. $ attach(a, tl: u), attach(a, tr: v), attach(a, bl: x), attach(a, br: y), limits(a)^t, limits(a)_b \ attach(a, tr: v, t: t), attach(a, tr: v, br: y), attach(a, br: y, b: b), attach(limits(a), b: b, bl: x), attach(a, tl: u, bl: x), attach(limits(a), t: t, tl: u) \ attach(a, tl: u, tr: v), attach(limits(a), t: t, br: y), attach(limits(a), b: b, tr: v), attach(a, bl: x, br: y), attach(limits(a), b: b, tl: u), attach(limits(a), t: t, bl: u), limits(a)^t_b \ attach(a, tl: u, tr: v, bl: x, br: y), attach(limits(a), t: t, bl: x, br: y, b: b), attach(limits(a), t: t, tl: u, tr: v, b: b), attach(limits(a), tl: u, bl: x, t: t, b: b), attach(limits(a), t: t, b: b, tr: v, br: y), attach(a, tl: u, t: t, tr: v, bl: x, b: b, br: y) $ --- math-attach-followed-by-func-call --- // Test function call after subscript. $pi_1(Y), a_f(x), a^zeta (x), a^abs(b)_sqrt(c) \ a^subset.eq (x), a_(zeta(x)), pi_(1(Y)), a^(abs(b))_(sqrt(c))$ --- math-attach-nested --- // Test associativity and scaling. $ 1/(V^2^3^4^5), frac( attach( limits(V), br: attach(2, br: 3), b: attach(limits(2), b: 3)), attach( limits(V), tl: attach(2, tl: 3), t: attach(limits(2), t: 3))), attach(Omega, tl: attach(2, tl: attach(3, tl: attach(4, tl: 5))), tr: attach(2, tr: attach(3, tr: attach(4, tr: 5))), bl: attach(2, bl: attach(3, bl: attach(4, bl: 5))), br: attach(2, br: attach(3, br: attach(4, br: 5))), ) $ --- math-attach-high --- // Test high subscript and superscript. $ sqrt(a_(1/2)^zeta), sqrt(a_alpha^(1/2)), sqrt(a_(1/2)^(3/4)) \ sqrt(attach(a, tl: 1/2, bl: 3/4)), sqrt(attach(a, tl: 1/2, bl: 3/4, tr: 1/2, br: 3/4)) $ --- math-attach-descender-collision --- // Test for no collisions between descenders/ascenders and attachments. $ sup_(x in P_i) quad inf_(x in P_i) $ $ op("fff",limits: #true)^(y) quad op("yyy", limits:#true)_(f) $ --- math-attach-to-group --- // Test frame base. $ (-1)^n + (1/2 + 3)^(-1/2) $ --- math-attach-horizontal-align --- #set text(size: 8pt) // Test that the attachments are aligned horizontally. $ x_1 p_1 frak(p)_1 2_1 dot_1 lg_1 !_1 \\_1 ]_1 "ip"_1 op("iq")_1 \ x^1 b^1 frak(b)^1 2^1 dot^1 lg^1 !^1 \\^1 ]^1 "ib"^1 op("id")^1 \ "_"_1 "`"^1 x_1 y_1 x^1 l^1 attach(I,tl:1,bl:1,tr:1,br:1) scripts(sum)_1^1 integral_1^1 abs(1/2)_1^1 \ x^1_1, ")"^1_1 (b y)^1_1, "[∫]"_1 [integral]_1 $ --- math-attach-limit --- // Test limit. $ lim_(n->oo \ n "grows") sum_(k=0 \ k in NN)^n k $ --- math-attach-force-scripts-and-limits --- // Test forcing scripts and limits. $ limits(A)_1^2 != A_1^2 $ $ scripts(sum)_1^2 != sum_1^2 $ $ limits(integral)_a^b != integral_a^b $ --- issue-math-attach-realize-panic --- // Error: 25-29 unknown variable: oops $ attach(A, t: #context oops) $ --- math-attach-show-limit --- // Show and let rules for limits and scripts #let eq = $ ∫_a^b iota_a^b $ #eq #show "∫": math.limits #show math.iota: math.limits.with(inline: false) #eq $iota_a^b$ --- math-attach-default-placement --- // Test default of limit attachments on relations at all sizes. #set page(width: auto) $ a =^"def" b quad a lt.eq_"really" b quad a arrow.r.long.squiggly^"slowly" b $ $a =^"def" b quad a lt.eq_"really" b quad a arrow.r.long.squiggly^"slowly" b$ $a scripts(=)^"def" b quad a scripts(lt.eq)_"really" b quad a scripts(arrow.r.long.squiggly)^"slowly" b$ --- math-attach-integral --- // Test default of scripts attachments on integrals at display size. $ integral.sect_a^b quad \u{2a1b}_a^b quad limits(\u{2a1b})_a^b $ $integral.sect_a^b quad \u{2a1b}_a^b quad limits(\u{2a1b})_a^b$ --- math-attach-large-operator --- // Test default of limit attachments on large operators at display size only. $ tack.t.big_0^1 quad \u{02A0A}_0^1 quad join_0^1 $ $tack.t.big_0^1 quad \u{02A0A}_0^1 quad join_0^1$ --- math-attach-limit-long --- // Test long limit attachments. $ attach(product, t: 123456789) attach(product, t: 123456789, bl: x) \ attach(product, b: 123456789) attach(product, b: 123456789, tr: x) $ $attach(limits(product), t: 123456789) attach(limits(product), t: 123456789, bl: x)$ $attach(limits(product), b: 123456789) attach(limits(product), b: 123456789, tr: x)$ --- math-attach-kerning --- // Test math kerning. #show math.equation: set text(font: "STIX Two Math") $ L^A Y^c R^2 delta^y omega^f a^2 t^w gamma^V p^+ \ b_lambda f_k p_i x_1 x_j x_A y_l y_y beta_s theta_k \ J_0 Y_0 T_1 T_f V_a V_A F_j cal(F)_j lambda_y \ attach(W, tl: l) attach(A, tl: 2) attach(cal(V), tl: beta) attach(cal(P), tl: iota) attach(f, bl: i) attach(A, bl: x) attach(cal(J), bl: xi) attach(cal(A), bl: m) $ --- math-attach-kerning-mixed --- // Test mixtures of math kerning. #show math.equation: set text(font: "STIX Two Math") $ x_1^i x_2^lambda x_2^(2alpha) x_2^(k+1) x_2^(-p_(-1)) x_j^gamma \ f_2^2 v_0^2 z_0^2 beta_s^2 xi_i^k J_1^2 N_(k y)^(-1) V_pi^x \ attach(J, tl: 1, br: i) attach(P, tl: i, br: 2) B_i_0 phi.alt_i_(n-1) attach(A, tr: x, bl: x, br: x, tl: x) attach(F, tl: i, tr: f) \ attach(cal(A), tl: 2, bl: o) attach(cal(J), bl: l, br: A) attach(cal(y), tr: p, bl: n t) attach(cal(O), tl: 16, tr: +, br: sigma) attach(italic(Upsilon), tr: s, br: Psi, bl: d) $ --- math-attach-nested-base --- // Test attachments when the base has attachments. $ attach(a^b, b: c) quad attach(attach(attach(attach(attach(attach(sum, tl: 1), t: 2), tr: 3), br: 4), b: 5), bl: 6) $ #let a0 = math.attach(math.alpha, b: [0]) #let a1 = $alpha^1$ $ a0 + a1 + a0_2 \ a1_2 + a0^2 + a1^2 $
https://github.com/woojiahao/nus
https://raw.githubusercontent.com/woojiahao/nus/main/cs3223/cs3223_finals_raw/main.typ
typst
MIT License
#set page(margin: 10pt, flipped: false) #show: columns.with(3, gutter: 4pt) #set text( font: "New Computer Modern Sans", size: 8pt ) #show par: set block(spacing: 5pt) #set par(leading: 3pt) #set list(tight: true) #set block(spacing: 0.5em) #align(center, [ #box( stroke: black, inset: 10pt, width: 90%, [ = CS3223 Finals Cheatsheet by: #link("https://woojiahao.com/")[#underline[Jiahao]] ] ) ]) #show heading.where(level: 1): it => [ #set text(8pt, weight: "bold") #block([#underline([$triangle.stroked.r " "$] + it.body)]) // #block(smallcaps(it.body)) ] #show heading.where(level: 2): it => [ #set text(8pt, weight: "bold") // #block([#underline(smallcaps(it.body))]) #block(([$arrow.r.curve " "$] + it.body)) ] #show heading.where(level: 3): it => [ #set text(8pt, weight: "bold") // #block([#underline(smallcaps(it.body))]) #block(([$arrow.r.squiggly " "$] + it.body)) ] #show image: it => [ #align(center, it) ] #show table: it => [ #set text(8pt) #align(center, it) ] = notation #table( columns: (20%, 80%), inset: 2.5pt, [$r$], [relational algebra expression], [$||r||$], [\# tuples in output of $r$], [$|r|$], [\# pages in output of $r$], [$b_d$], [\# data records (full record) on page], [$b_i$], [\# data entries ($(k, "RID")$) on page], [$F$], [average \# pointers to child nodes], [$h$], [height of $B^+$-tree index], [$B$], [\# available buffer pages], [$p'$], [primary conjunct], [$p_c$], [covering conjunct], [$N_0$], [initial sorted runs], [$A(dot)$], [attributes of relation/predicate], [$T_i$], [Xact $i$], [$R_i (O)$], [$T_i$ reading object $O$], [$W_i (O)$], [$T_i$ writing object $O$], [$"Commit"_i$], [$T_i$ terrminates successfully], [$"Abort"_i$], [$T_i$ terrminates unsuccessfully], [$S_i (O)$], [$T_i$ requests for S-lock on $O$], [$X_i (O)$], [$T_i$ requests for X-lock on $O$], [$U_i (O)$], [$T_i$ releases lock on $O$], ) = cost analysis notes - if format 2, include cost of RID lookups unless covering index - if format 2/3, use $b_i$ instead of $b_d$ - if unclustered, duplicate cost of page lookup - if clustered, cost of RID lookups $arrow$ 1 per page - think in terms of cost to read/write separately - blocked I/O $arrow$ read/write in blocks $arrow$ 1 I/O = external merge sort given a file of $N$ pages with $B$ buffer pages ($B gt.eq 3$) + creation of sorted runs (temporary tables; pass 0): read and sort $B$ pages in memory - $N_0 = ceil(N \/ B)$ sorted runs; $lt.eq B$ pages per run + subsequent passes: merge sorted runs with $B - 1$ pages for input and $1$ page for output *analysis:* $2 times N "read/writes" times "# passes"$ $ 2N(ceil(log_(B - 1) N_0) + 1) $ *blocked I/O:* reading/writing in units of buffer blocks of $b$ pages - trade-off: maximizing merge factor with reducing I/O cost - exploits speed of sequential I/O - given $N$ pages, $B$ buffer pages, $b$ block size $ N_0 = ceil(N \/ B); ceil(log_(floor(B\/b) + 1) N_0) + 1 "passes" $ - given $j$ input buffers of $m$ size each, and $k$ output pages, $s$ seek time, and $r$ rotational delay $ ceil(log_j ceil(N \/ B)) times N \/ m + (s + r + k) $ *achieving $k$ merge passes:* $ N_0 = ceil(N \/ B) gt.eq B - 1 arrow.double B^2 - B - N lt.eq 0 $ *with $B^+$-tree:* depends on format - format 1: scan leaf pages and return - format 2/3: scan leaf pages, for each leaf page, retrrieve data records by RID = selection $sigma_p (R)$ // This feels redundant // *access path:* way of accessing data recoreds/entries (via table scan, index scaan, index intersection etc.) // - selectivity: number of index & data pages retrieved // - most selective $arrow$ smallest selectivity $arrow$ retrieve less pages *covering index:* $I$ for $Q$ if all attributes referenced in $Q$ are part of the key/"include column" of $I$ - $arrow.double Q$ evaluated without RID lookups *index scan:* find leftmost element that satisfies query and traverse leaf pages till predicate is no longer true; covering/format 1 index *index scan + RID lookups:* for each element, perform an RID lookup; non-covering/format 2/3 index *index intersection:* perform index scans for each predicate and find intersection fo results (by RID) - useful for conjunctive predicates - does not require same index *CNF predicate:* disjunction ($or$) and conjunction ($and$) - term: $R.A op c$ or $R.A_i op R.A_j$ - conjunct: $X_1 and X_2 and ... and X_n$ - disjunctive conjunct: $(a_1 or ... or a_m) and (b_1 or ... or b_n) ...$ *matching predicate ($B^+$-tree):* given $I = (K_1, K_2, ..., K_n)$ and predicate $p$ without OR $ forall i in [1, n], (K_1 = c_1) and ... and (K_i op_i c_i) $ - follows $I$ order (no skipping attributes) - zero or more equality predicates - at most 1 non-equality predicate (must be last predicate) - when match, use index scan since data in contiguous order *matching predicate (hash):* $ (K_1 = c_1) and (K_2 = c_2) and ... and (K_n = c_n) $ - must be fully covered by equality predicates - cannot work with range based predicates *primary conjunct ($p'$):* $p' subset.eq p$ that $I$ matches - re-arrange predicates to figure out *covering conjunct ($p_c$):* all attributes in $C$ in $p$ in the key/include column of $I$; $p' subset.eq p_c$ - need not match *evaluating non-disjunctive conjucts:* predicate without OR; table scan, hash index scan, $B^+$-index scan, index intersection *evaluating disjunctive conjuncts:* use covering index/index intersection, or table scan *cost of $B^+$-tree index:* + navigate internal nodes to locate first leaf: #highlight("height of tree") + scan leaf pages to access qualifying data entries: #highlight("number of pages containing qualifying data entries") + retrieve qualified data records via RID lookups: #highlight("number of records") - if format 1 or covering index, then this step counts for nothing - step (3) cost can be reduced with clustered index since retrieving 1 page $arrow$ read all records $ min{||sigma_p_c (R)||, |R|} $ - no primary conjunct $arrow$ perform full leaf scan *cost of hash index:* may be more due to thrashing/collisions - at least $ceil(||sigma_p' (R)|| \/ b_d)$ (number of buckets) - format 2 $arrow$ use $b_i$ + cost to retrieve data records - $0$ if $I$ is covering index, else $||sigma_p' (R)||$ - range scan $arrow$ table scan - maximum I/O with overflow: $1 + \# "overflow pages"$ = projection $pi_L (R)\/pi^*_L (R)$ == projection using sorting + extract attributes $L$ from records: #highlight("cost to scan and output temporary table") $|R| + |pi_L^* (R)|$ + sort records using attributes of $L$ as sort key: #highlight("cost of external merge sort") $2 |pi_L^* (R)| (log_m N_0 + 1)$ + remove duplicates (optional if $pi^*_L$): #highlight("cost to read sorted entries and write") $|pi_L^* (R)| + |pi_L (R)|$ *optimization:* break step 2 and merge with step 1 & 3 + create sorted runs with attributes $L$ + merge sorted runs and remove duplicates *strengths:* results are sorted; good if many duplicates or distribution of hashed values is non-uniform (likely to overflow) *analysis:* if $B gt sqrt(|pi_L^* (R)|)$, perform similar to hash - $N_0 = floor(|R| \/ B) approx sqrt(|pi_L^* (R)|)$ - $log_(B - 1) N_0 approx 1$ merge passes == projection using hashing building main-memory hash table $T$ to detect and remove duplicates; cost $|R|$ if $T$ fits in memory #box(stroke: black, width: 100%, inset: 3pt, [ - initialize empty hash table $T$ - for each tuple $t in R$ do - apply hash function $h(dot)$ on $pi_L (t)$ - let $t$ be hashed to bucket $B_i$ in $T$ - if $pi_L (t) in.not B_i$ then insert $pi_L (t)$ into $B_i$ - output all entries in $T$ ]) // #image("images/hash_projection.png") *partitioning phase:* create partitions $R_1, R_2, ..., R_(B - 1)$ - $pi_L^* (R_i) sect pi_L^* (R_j) = emptyset, i eq.not j$ - uses 1 buffer for input, $B - 1$ for output - read $R$ one page at a time into input buffer - for each tuple $t$ - project out unwanted attributes: $t arrow t'$ - $h(t')$ to distribute to one of output buffers - flush output buffer to disk when full *duplication elimination phase:* - may be done in parallel - for each partition $R_i$ - initialize in-memory hash table - read $pi_L^* (R_i)$ one page at a time; for each tuple $t$ - $h'(t)$ to bucket $B_j$ ($h' eq.not h$) - insert $t$ into $B_j$ if $t in.not B_j$ - output tuples in hash table *partition overflow:* hash table for $pi_L^* (R_i)$ larger than buffer size - recursively apply hash-based partitioning to overflowed partition *analysis:* effective if $B$ is large relative to $|R|$ - $B$ size: assume uniform distribution with $|R_i| = |pi_L^* (R)| \/ B - 1$ and size of hash table for $R_i$ $|R_i| times f$ (fudge factor) - $approx B > sqrt(f times |pi_L^* (R)|)$ to avoid partition overflow - cost: assume no partition overflow - cost of partitioning phase: $|R| + |pi_L^* (R)|$ - cost of duplicate elimination phase: $|pi_L^* (R)|$ == projection using indexes - replace table scan with index scan iff $exists I$ with search key containing all projected attributes - if index is ordered by projected attributes, then no sorting needed - scan data entries in order and compare adjacent entries for duplicates - if index is not covering, create $k$ partitions of distinct keys, sort individually, and merge - lower I/O cost overall = join $R join_theta S = S join_theta R$ *considerations:* - type of join predicate: equality/inequality - size of join operands - available buffer space - available access methods *general points:* - cost analysis ignores write and assumes $R$ is outer - outer relation should always have less records - most optimal join: in-memory $|R| + |S|$ *multiple equality join conditions:* some alterations - index nested loop join: use index on all or some of join attributes - sort-merge join: sort on combination of attributes *inequality join conditions:* some alterations - index nested loop join: index must be $B^+$-tree index - cannot use sort-merge or hash-based joins (hash index) == tuple-based $|R| + ||R|| times |S|$ for each tuple $r in R$, for each tuple $s in S$ == page-based $|R| + |R| times |S|$ for each page $P_r in R$, for each page $P_s in S$, for each tuple $r in P_r$, for each tuple $s in P_s$ - brings page into memory so it's faster for I/O - minimum 3 pages required == block nested $|R| + (ceil(|R| \/ B - 2) times |S|)$ repeat till no more pages in $R$: read $B - 2$ pages of $R$ into memory, for each page $P_s in S$, read $P_s$ into memory. for each tuple $r in R$ (in memory), for every tuple $s in P_s$ - allocates $B - 2$ for $R$, $1$ for $S$ and $1$ for output == index nested $|R| + ||R|| times J$ for each tuple $r in R$, use $r$ to probe $S$ index to find matching tuples - requires index on inner relation - analysis assumes uniform distribution of matches for outer loop with inner loop & format 1 $B^+$-tree - $J$ is the #highlight("height of tree") + #highlight("search for leaf nodes") $ J = log_F ceil(||S|| \/ b_d) + ceil(||S|| \/ (b_d ||pi_B_j (S)||)) $ == sort-merge join $2 |R| (log_m (N_R) + 1) + 2 |S| (log_m (N_S) + 1) + (|R| + |S|)$ sort both relations based on join attributes and merge them - sorted relation $R$ consists of partitions $R_i$ of records where $r, r' in R_j$ iff $r$ and $r'$ have the same values for the join attributes - each tuple $r in R_i$ merges with all tuples $s in S_i$ - two-pointer approach where we match all of $r in R$ with matching entries of $s in S$ - rewind $S$ pointer to beginning of repeats/partition #image(width: 80%, "images/sort_merge_join.png") *analysis:* #highlight([cost to sort R]) + #highlight([cost to sort S]) + #highlight([merging cost]) - each partition in $S$ scanned at most once: $|R| + |S|$ - worst case: every tuple in $R$ needs to rescan $S$ (i.e. cross product): $|R| + ||R|| times |S|$ *optimization:* combine merge phase of sorted runs into single run before performing join - $B > N(R, i) + N(S, j) arrow.double$ sorting can stop - $N(R, i)$: total \# sorted runs of $R$ after pass $i$ - merged sorted runs of $R$ and $S$ partially, then merge remaining sorted runs of $R \& S$ and join them - analysis: assume $|R| lt.eq |S|$ and $B gt sqrt(2|S|)$ - number of initial sorted runs of $S < sqrt(|S| \/ 2)$ - total number of initial sorted runs of $R$ and $S < sqrt(2|S|)$ - 1 pass sufficient to merge and join initial runs - I/O cost: $3 times (|R| + |S|)$ == (grace) hash join $3 times (|R| + |S|)$ partition $R$ (build relation) and $S$ (probe relation) into $k$ partitions using hash function $h(dot)$ and join corresponding pair of partitions $ R join S = (R_1 join S_1) union (R_2 join S_2) union ... union (R_k join S_k) $ *probing phase:* probes each $R_i$ with $S_i$ - read $R_i$ to build a hash table, read $S_i$ to probe hash table - hash tuples $r in R_i$ with $h'$ ($h' eq.not h$) - for each tuple $s in S_i$, output $(r, s)$ for all tuple $r$ in the same bucket as $h'(s)$ and match *analysis:* minimize size of each partition of $R_i$ by using $k = B - 1$ - assume uniform hashing distribution - size of partition $R_i: N = |R|\/k$ - size of hash table for $R_i: M = f times N$ (fudge factor) - during probing, $B > M + 2$ (input & output for $S_i$) - $approx B > sqrt(f times |R|)$ - I/O cost: #highlight([cost of partitioning]) + #highlight([cost of probing]) *partition overflow:* hash table $R_i$ does not fit in memory - recursively apply partitioning to overflow partitions = other set operations $R union S; R backslash S$ - sorting: sort $R$ and $S$ with all attributes; merge sorted operands and discard duplicates - hashing: similar approach as Grace Hash join = aggregation == simple aggregation maintain some running information while scanning // Seems redundant #table( columns: (auto, auto), inset: 2pt, table.header([*aggregate operator*], [*running information*]), [SUM], [total of retrieved values], [COUNT], [count of retrieved values], [AVG], [(total, count) of retrieved values], [MIN], [smallest retrieved value], [MAX], [largest retrieved value], ) == group-by aggregation *sorting:* sort relation on gropuing attribute(s); scan sorted relation to compute aggregate for each group *hashing:* scan relation to build hash table on grouping attribute(s); for each group, maintain (grouping value, running information) == using index - use covering index directly to avoid table scan - if group-by attributes is a prefix of a $B^+$-tree search key, retrieve each group without explicit sorting = query evaluation == materialized operator is evaluated only when each of its operands have been completely evaluated/materialized - intermediate results materialized to disk; stored as temporary tables == pipelined output produced by operator passed directly to parent operator - execution of operators is interleaved; partial results sent to parent - blocking operator: $O$ may not be able to produce output until it has received all input tuples from child operator(s) - e.g. external merge sort, sort-merge join, Grace hash join *iterator interface:* each operator has the following interface + `open()`: initializes/resets state of iterator, preparing to deliver first result tuple; contains references to children operators + `getNext()`: generates next output tuple; returns `null` when done + `close()`: deallocates state information - initiated by driver which calls `open()` on top-most operator which subsequently calls `next()` on itself and its children #image(width: 65%, "Screenshot 2024-04-22 at 09.43.42.png") *partial materialization:* materialize operands that have to be evaluated multiple times - may have lower I/O cost = query plan optimization a SQL query has many logical plans and each logical plan has many physical plans *key components:* + search space: what space of query plans considered? - make assumptions to restrict search space - e.g. only support hash join, avoid cartesian product, no bushy trees + plan enumeration: how to enumerate space of query plans + cost model: how to estimate cost of plan == relational algebra equivalence rules used to transform a query plan to an equivalent other // Maybe treat this as a table? + commutativity of binary operators + $R times S eq.triple S times R$ + $R join S eq.triple S join R$ + associativity of binary operators + $(R times S) times T eq.triple R times (S times T)$ + $(R join S) join T eq.triple R join (S join T)$ + idempotence of unary operators + $L' subset.eq L subset.eq A(R) arrow.double pi_L' (pi_L (R)) eq.triple pi_L' (R)$ + $sigma_p_1(sigma_p_2 (R)) eq.triple sigma_(p_1 and p_2) (R)$ (index + RID) + commutating selection with projection: pushing projection after selection + $pi_L (sigma_p (R)) eq.triple pi_L (sigma_p (pi_(L union A(p)) (R)))$ + commutating selection with binary operators + $A(p) subset.eq A(R) arrow.double sigma_p (R times S)$ + $A(p) subset.eq A(R) arrow.double sigma_p (R join_p' S) eq.triple sigma_p (R) join_p' S$ (reduces cost of join) + $sigma_p (R union S) eq.triple sigma_p (R) union sigma_p (S)$ + commutating projection with binary operators: $L = L_R union L_S; L_R subset.eq A(R), L_S subset.eq A(S)$ + $pi_L (R times S) eq.triple pi_L_R (R) times pi_L_S (S)$ + $A(p) sect A(R) subset.eq L_R and A(p) sect A(S) subset.eq L_S arrow.double pi_L (R join_p S) eq.triple pi_L_R (R) join_p pi_L_S (S)$ + $pi_L (R union S) eq.triple pi_L (R) union pi_L (S)$ == types of query plan trees *linear:* at least 1 operand for each join operation is a base relation - left(/right)-deep if every right(/left) join operand is a base relation *bushy:* not linear; requires at least 4 tables/3 joins == query plan enumeration $O(3^n)$ given ${R_1, R_2, ..., R_n}$, let $"OPT"(m)$ be the optimal cost given $s$ relations used denoted by bitmask $m$ *base case:* $"OPT"(2^i) = "best access plan for " R_i$ *recurrence:* for all possible masks, try all compositions of the mask $ "OPT"(m) = min_(forall l, r : l union r = m) {"OPT"(l) + "OPT"(r) + "cost"(l join r)} $ == system R optimizer *heuristics:* enumerates only left-deep query plans, avoids cross product query plans, considers early selections and projections *enhanced dp:* consider sort order of query plan - $"OPT"(m, o)$ where $o$ is the sort order produced by optimal query plan for $m$ - `NULL` if output unordered or sequence of attributes - cheapest query plan for $m$ with output ordered by $o$ if $o eq.not$ `NULL` = cost estimation involves evaluation cost of each operation and output size of each operation - cost model depends on size of input operands, available buffer pages, and available indices *assumptions:* - uniformity: uniform distribution of attributes - independence: independent distribution of values in different attributes - inclusion: for $R join_(R.A = S.B) S$, $||pi_A (R)|| lt.eq ||pi_B (S)|| arrow.double pi_A (R) subset.eq pi_B (S)$ *database statistics:* - relation cardinality - number of distinct values in each column - highest/lowest values in each column - frequent values of some columns - column group statistics - histograms == size estimation $||q||$ === size estimation of projection suppse $q = sigma_p (e)$ where $p = t_1 and ... and t_n$ and $e = R_1 times ... times R_m$ - $t_i$ filters out some tuples in $e$ - reduction factor of $t_i$ ($"rf"(t_i)$): fraction of tuples in $e$ that satisfies $t_i$: $"rf"(t_i) = ||sigma_t_i (e)||\/||e||$; aka selectivity factor - assuming $t_i$ are statistically independent $ ||e|| = product_(i = 1)^m ||R_i||\ ||q|| approx ||e|| times product_(i = 1)^n "rf"(t_i) $ *estimating $"rf"(t_i)$:* using uniformity assumption - may have high margin of error for large $R.A$ that has higher frequencies $ "rf"(t_i) approx 1\/||pi_A (R)|| $ === size estimation of join suppose $q = R join_(R.A = S.B) S$ with $"rf"(R.A = S.B) = ||q||\/(||R|| times ||S||)$ - by inclusion assumption, $forall r in R, exists s in S : r.A = s.B$ - by uniformity assumption, $||S||\/||pi_B (S)||$ tuples in $S$ have $S.B$ $ ||q|| approx ||R|| times (||S||)/(||pi_B (S)||)\ "rf"(R.A = S.B) approx 1/(max{||pi_A (R)||, ||pi_B (S)||}) $ == histograms partition attribute's domain into sub-ranges (buckets) and assume value distribution within each bucket is uniform - more buckets $arrow$ better estimation *estimation formula:* for all buckets that contain value, sum of (\# tuples in bucket $times$ \# value matches in bucket ratio) - for equality predicates, \# value matches is always $1 / m$ - for range predicates, depends on number of matches === equiwidth histogram given $n$ buckets and $m$ values for attribute, each bucket has $floor(m \/n)$ values === equidepth histogram given $n$ buckets and $k$ tuples, each bucket should contain at most $ceil(k \/ n)$ values - if a single value has more than $k \/ n$ tuples, then split it across multiple buckets === histogram with MCV separately keep track of frequencies of the top-$k$ most common values (MCV) and exclude MCV from histogram buckets - if bucket contains MCV value, the #highlight("# values matches ratio") calculation should omit the MCV value(s) - separately add MCV value if predicate contains MCV = transaction (Xact) management abstraction representing logical unit of work // Basic notation maybe can omit - all Xacts read and write from $T_0$ if no other concurrent Xact has written yet *ACID:* maintain data even with concurrent access and system failures 1. *Atomicity:* either all or none of actions happen 2. *Consistency:* if each Xact is consistent, then the database starts and ends up consistent 3. *Isolation:* execution of one Xact is isolated from other Xacts 4. *Durability:* if a Xact commits, its effects persist *transaction schedule:* list of actions from a set of Xacts where the order of actions within each Xact is preserved - serial schedule: actions not interleaved; guaranteed to be consisted - $T_j$ reads $O$ from $T_i$ if last write on $O$ before $R_j\(O)$ is $W_i\(O)$: $W_i\(O) arrow R_j\(O)$ - $T_j$ reads from $T_i$ if $T_j$ reads any objects from $T_i$ (`rf`) - $T_i$ performs the final write on $O$ if the last write action on $O$ is $W_i\(O)$ (`fw`) #align(center, [ $R_1\(A), W_1\(A), R_2\(A), W_2\(A), "Commit"_1, "Commit"_2$ ]) - $T_2$ reads $A$ from $T_1$ - $T_2$ has the final write on $A$ - blind write: $T_i$ does not read $O$ before writing to it *correctness:* equivalent to some serial schedule - `rf` and `fw` must be the same == view equivalence *view equivalent:* $S eq.triple_v S'$ if: - `rf` are maintained; $T_i$ reads $A$ from $T_j$ in both - `fw` are maintained; final write of $A$ by $T_i$ in both *view serializable schedule (VSS):* $S$ is view equivalent to some serial schedule *heuristic for view serializability:* VSG(S) capturing `rf` and `fw` relations among Xacts - nodes: Xacts - edges: precedence relations - rules: 1. $T_i$ `rf` $T_j$: $T_j arrow T_i$ 2. $T_i$ and $T_j$ update object $O$ & $T_i$ `fw` $O$: $T_j arrow T_i$ 3. $T_j$ reads $O$ from $T_k$ & $T_i$ updates $O$: $T_i arrow T_k$ OR $T_j arrow T_i$ (depending on whichever does not create a cycle) - interpretation: cyclic implies not VSS; acyclic implies VSS iff a there exists a serial schedule produced from topological ordering of VSG(S) that is view equivalent to $S$ // don't need? #align(center, [ $W_1\(x), R_2\(x), R_3\(y), W_3(x), W_2\(y), W_4(x)$ #image(width: 30%, "images/vsg.png") ]) == conflicts *conflicting actions:* on same object, at least one is a write action, actions are from different Xacts *anomalies of interleaved transactions:* due to conflicting actions 1. dirty read (`dr`): $W_1(O), R_2(O), ..., "Commit"_1$ - reading object produced by uncommitted Xact - $T_2$ may see inconsistent database state 2. unrepeatable read (`ur`): $R_1(O), W_2(O), "Commit"_2, R_1(O)$ - $T_1$ may get different value if reading again 3. lost update (`lu`): $W_1(O), W_2(O)$ - $T_1$ update lost - commits can happen in between 4. phantom read: transaction re-executes query for rows that satisfy search condition and finds rows change due to another committed transaction *conflict equivalent:* $S eq.triple_c S'$ if every pair of conflicting actions are ordered the same *conflict serializable schedule (CSS):* $S$ is conflict equivalent to some serial schedule; commonly referred to as "serializable" 1. CSS iff CSG(S) is acyclic 2. CSS implies VSS 3. if VSS and no blind writes, then CSS *heuristic for conflict serializability:* CSG(S) capturing conflicting actions - nodes: every committed Xact - edges: conflicting actions - rules: - action in $T_i$ precedes & conflicts with $T_j$: $T_i arrow T_j$ // don't need? #align(center, [ $R_1(A), W_2(A), "Commit"_2, W_1(A),$ $"Commit"_1, W_3(A), "Commit"_3$ conflicts: $T_1 arrow_"ur" T_2$, $T_2 arrow_"lu" T_1$, $T_2 arrow_"lu" T_3$, $T_1 arrow_"lu" T_3$ #image(width: 25%, "images/csg.png") ]) // #underline([*more schedules*]) == more schedules *cascading aborts:* if $T_i$ `rf` $T_j$, then $T_i$ must abort if $T_j$ aborts - ensures correctness - undesirable due to cost of bookkeeping to identify and performance penalty incurred - avoided by permitting reads only from committed Xacts *recoverable schedule:* for every Xact $T$ that commits in $S$, $T$ must commit after $T'$ if $T$ reads from $T'$ - guarantees that committed Xacts will not be aborted - cascading aborts still permitted *cascadeless schedule:* whenever $T_i$ reads from $T_j$, $"Commit"_j$ must precede the read action 1. cascadeless schedule implies recoverable schedule *recovery using before-images:* restoring before-images for writes; $W_i (x, v)$ denotes that $T_i$ updates the value of object $x$ to $v$ - before-image is the value of the object prior to $W_i (x, v)$ - may not always work - enabled by using strict schedule *strict schedule:* for every $W_i\(O)$, $O$ is not read or written by another Xact until $T_i$ aborts or commmits - performance tradeoffs: recovery using before-images is more efficient but concurrent exeutions become more restrictive 1. strict schedule implies cascadeless schedule = concurrency control *transaction scheduler:* per input action (read, write, commit, abort), performs 1. output action to schedule 2. postpone action by blocking the Xact 3. reject the action and abort the Xact == lock-based concurrency control every Xact needs to request for an appropriate lock on an object beefore the Xact can access the object *goals:* produces conflict serializable schedules *locking modes:* - shared lock (S) for reading objects - exclusive lock (X) for writing objects *lock compatibility:* #align(center, [ #table( columns: (5em, auto, auto, auto), inset: 2pt, align: horizon, table.header( [Lock Requested], table.cell(colspan: 3)[Lock Held], ), "", "-", "S", "X", "S", emoji.checkmark, emoji.checkmark, emoji.crossmark, "X", emoji.checkmark, emoji.crossmark, emoji.crossmark ) ]) *rules:* 1. to read object $O$, Xact request for S/X-lock on $O$ 2. to update object $O$, Xact request for X-lock on $O$ 3. if requesting lock mode compatible with lock modes of existing locks on $O$, lock request is granted 4. if lock request not granted, $T$ is blocked, execution suspended, added to $O$'s request queue 5. when lock released, lock manager checks request of first Xact $T$ on request queue, if it can be granted, $T$ acquires the lock and resumes execution 6. when Xact commits/aborts, all its locks are released and $T$ is removed from any request queue it is in === two phase locking (2PL) protocol - rules: - to read $O$, Xact must hold S/X-lock on $O$ - to write $O$, Xact must hold X-lock on $O$ - once Xact released a lock, it cannot request any more locks - transactions have 2 phases: - growing phase: before releasing first lock - shrinking phase: after releasing first lock 1. 2PL schedule implies conflict serializable === strict 2PL protocol used in practice - rules: - to read $O$, Xact must hold S/X-lock on $O$ - to write $O$, Xact must hold X-lock on $O$ - Xact must hold onto locks until Xact commits or aborts 1. strict 2PL schedules implies strict & conflict serializable == deadlocks cycle of Xacts waiting for locks to be released by each other - ways to deal with: deadlock detection & deadlock prevention *deadlock detection:* create "Waits-for graph" (WFG) where nodes are active transactions - edge $T_i arrow T_j$ if $T_i$ is waiting for $T_j$ to release a lock - lock manager - adds an edge when lock request queued - updates edges when lock request granted - deadlock detected if WFG has a cycle - break deadlock by aborting Xact in cycle - alternative: timeout mechanism *deadlock prevention:* assume older Xacts have higher priority than younger Xacts - Xact assigned timestamp when it starts, older Xact have smaller timestamp - when $T_i$ requests for lock that conflicts with lock held by $T_j$ - resolutions: - wait-die policy: lower priority Xacts never wait for high priority Xacts - non-preemptive, younger Xact may be repeatedly aborted, Xact with all the locks is never aborted - restarted Xact should use original timestamp - wound-wait policy: higher-priority Xact never wait for lower-priority Xacts - preemptive #align(center, [ #table( columns: (5em, 8em, 8em), inset: 2pt, align: horizon, table.header( [Prevention Policy], [$T_i$ has higher priority], [$T_i$ has lower priority], ), "Wait-die", [$T_i$ waits for $T_j$], [$T_i$ aborts], "Wound-wait", [$T_j$ aborts], [$T_i$ waits for $T_j$], ) ]) *lock conversion:* increases concurrency - $"UG"_i\(A)$: $T_i$ upgrades S-lock on $A$ to X-lock - blocked if another Xact holds shared lock on $A$ - allowed if $T_i$ has not released any lock - leads to conflict serializability - $"DG"_i\(A)$: $T_i$ downgrades X-lock on $A$ to S-lock - allowed if $T_i$ has not modified $A$ and $T_i$ has not released any locks - increases number of possible interleaved executions *performance:* Xact conflicts resolved via blocking and aborting mechanisms - blocking causes delays in other waiting Xacts - aborting and restarting Xacts wastes work done by Xact - improving: - reducing lock granularity - reducing time lock is held - reducing hot spots (i.e. frequently accessed and modified objects) *concurrency control anomalies:* _anomalies of interleaved transactions_ prevented with lock-based protocol except *phantom read* *phantom read:* - $R(p)$ reads all objects that satisfy predicate $p$ - $R(p), W(x)$ conflicts if object $x$ satisfies selection predicate $p$ - prevented using predicate locking or index locking (in practice) == isolation levels #text(size: 8pt, [#align(center, [ #table( columns: (7.5em, auto, auto, auto), inset: 2pt, align: horizon, table.header( [Isolation Level], [Dirty Read], [Unrepeatable read], [Phantom Read] ), "READ UNCOMMITTED", emoji.checkmark, emoji.checkmark, emoji.checkmark, "READ COMMITTED", emoji.crossmark, emoji.crossmark, emoji.crossmark, "REPEATABLE READ", emoji.crossmark, emoji.crossmark, emoji.checkmark, "SERIALIZABLE", emoji.crossmark, emoji.crossmark, emoji.crossmark ) ])]) #text(size: 8pt, [#align(center, [ #table( columns: (4em, auto, auto, auto, auto), inset: 2pt, align: horizon, table.header( [Degree], [Isolation Level], [Write Locks], [Read Locks], [Predicate Locking] ), "0", "RC", "long", "none", "none", "1", "RU", "long", "short", "none", "2", "RR", "long", "long", "none", "3", "S", "long", "long", "yes" ) ])]) *short duration lock:* lock released after end of operation before Xact commits/aborts *long duration lock:* lock held until Xact commits/aborts == locking granularity refers to size of data items being locked - (highest to lowerst) database, relation, page, tuple - allow multi-granular lock - if Xact $T$ holds lock mode $M$ on data granule $D$, then $T$ also holds lock mode $M$ on granules finer than $D$ - locking conflicts detected using intention locks (I-lock) *intention locks:* before acquiring S/X-lock on data granule $G$, acquire I-lock on granules coarser than G in top-down manner #align(center, [ #table( columns: (5em, auto, auto, auto, auto), inset: 2pt, align: horizon, table.header( [Lock Requested], table.cell(colspan: 4)[Lock Held], ), "", "-", "I", "S", "X", "I", emoji.checkmark, emoji.checkmark, emoji.crossmark, emoji.crossmark, "S", emoji.checkmark, emoji.crossmark, emoji.checkmark, emoji.crossmark, "X", emoji.checkmark, emoji.crossmark, emoji.crossmark, emoji.crossmark, ) ]) *finer intention locks:* locks acquired in top-down order - IS: intent to set S-lock at finer granularity - IX: intent to set X-lock at finer granularity - rules: - to obtain S or IS lock on node, IS or IX must be on parent node - to obtain X or IX lock on node, IX must be on parent node - locks acquired in top-down order, but released in bottom-up order #align(center, [ #table( columns: (5em, auto, auto, auto, auto, auto), inset: 2pt, align: horizon, table.header( [Lock Requested], table.cell(colspan: 5)[Lock Held], ), "", "-", "IS", "IX", "S", "X", "IS", emoji.checkmark, emoji.checkmark, emoji.checkmark, emoji.checkmark, emoji.crossmark, "IX", emoji.checkmark, emoji.checkmark, emoji.checkmark, emoji.crossmark, emoji.crossmark, "S", emoji.checkmark, emoji.checkmark, emoji.crossmark, emoji.checkmark, emoji.crossmark, "X", emoji.checkmark, emoji.crossmark, emoji.crossmark, emoji.crossmark, emoji.crossmark ) ]) == multiversion concurrency control maintain multiple versions of each object; does not require locks *notation:* - $W_i\(O)$ creates new version of $O$, denoted by $O_i$ - $R_i\(O)$ reads an appropriate version of $O$ - initial version: $O_0$ *advantages:* read-only Xacts are not blocked by update Xacts and vice versa; read-only Xacts are never aborted *multiversion schedules:* schedules differ based on version of object read *multiversion view equivalent:* $S eq.triple_("mv") S'$ if they have the same set of `rf` relationship - no notion of `fw` since updates are not done in-place *monoversion schedules:* every read action in S returns the most recently created object version *serial monoversion schedule:* monoversion schedule that is also serial schedule *multiversion view serializable schedule (MVSS):* there exists a serial monoversion schedule that is multiversion view equivalent to S 1. VSS implies MVSS (but converse is not always true) - there may be issues that can only happen because of multiversion system === #underline[snapshot isolation] each Xact $T$ sees a snapshot of the database that consists of updates by Xacts committed before $T$ starts - every Xact associated with start(T) and commit(T) - $W_i\(O)$ creates a version of $O$, $O_i$ - $O_i$ more recent compared to $O_j$ if commit($T_i$) > commit($T_j$) (i.e. $T_i$ committed later than $T_j$) - $R_i\(O)$ reads either own update or latest version of $O$ created before $T_i$ started *concurrent transactions:* concurrent if they overlap: $["start"(T), "commit"(T)] sect ["start"(T'), "commit"(T')] eq.not emptyset$ *concurrent update property:* if multiple concurrent Xacts updated the same object, only one of them is allowed to commit - otherwise schedule may not be serializable - enforced using First Committer Wins (FCW) rule or First Updater Wins (FUW) rule *First Committer Wins (FCW):* before committing Xact $T$, system checks if there exists a committed concurrent Xact $T'$ that has updated some object that $T$ has also updated - if $T'$ exists, then $T$ aborts, else commits *First Updater Wins (FUW):* whenever Xact $T$ needs to update $O$, $T$ requests for X-lock on $O$; all X-locks released upon Xact abort/commit - if X-lock not held by concurrent Xact, then lock granted - if $O$ has been updated by any committed concurrent Xact (i.e. value not the same as snapshot value), $T$ aborts - otherwise, $T$ proceeds with execution - else, $T$ waits till $T'$ (holding X-lock) to abort or commit - if $T'$ aborts, then if $O$ has been updated by any committed concurrent Xact, abort $T$ - else, $T$ proceeds - elif $T'$ commits, $T$ aborts *garbage collection:* version $O_i$ may be deleted if there exists a new version $O_j$ (commit($T_i$) < commit($T_j$)) such that for every active Xact $T_k$ that where commit($T_i$) < start($T_k$), there is commit($T_j$) < start($T_k$) *tradeoffs:* - similar performance to READ COMMITTED - does not suffer from lost update or unrepeatable read anomalies - vulnerable to some non-serializable executions: write skew anomaly and read-only transaction anomaly - snapshot isolation does not guarantee serializability *write-skew anomaly:* value written in Xact $T_1$ after Xact $T_2$ has started so the snapshot of $T_2$ is outdated *read-only transaction:* Xact $T_3$ starts after $T_1$ is committed but while $T_2$ is running, so it has the latest values of $T_1$ but not the latest values of $T_2$ *serializable snapshot isolation (SSI) protocol:* S is a SI schedule and S is MVSS - may have false positives - guarantees serializable SI schedules - keep track of `rw` dependencies among concurrent Xacts - detect formation of $T_j$ involving 2 `rw` dependencies - once detected, abort one of the Xacts involved - may result in unnecessary rollbacks due to false positives #align(center)[#image(width: 30%, "images/ssi.png")] *transaction dependencies:* 1. `ww`: $T_1$ writes $x_i$, $T_2$ writes $x_j$ 2. `wr`: $T_1$ writes $x_i$, $T_2$ reads $x_i$ 3. `rw`: $T_1$ reads $x_i$, $T_2$ writes $x_j$ - $x_j$ is the immediate successor of $x_i$ if - commit($T_i$) < commit($T_j$) - no transaction commits between $T_i$ and $T_j$ producing a version of $x$ *heuristic for SSI:* Dependency Serialization Graph (DSG) - $S = {T_1, ..., T_k}$, $V = S$ - edges: $T_i arrow^("ww") T_j$, $T_i arrow^("wr") T_j$, $T_i arrow^("rw") T_j$ - $arrow$ for non-concurrent transaction pair, $arrow.dotted$ for concurrent - `rw` order of action does not matter, only focus on immediate successor version (does $T_2$ write a successor to $T_1$) - `ww` and `wr` can only occur between non-concurrent transactions - `rw` can only occur between concurrent transactions 1. if S is a SI schedule that is not MVSS, then 1. there is at least 1 cycle in DSG(S) 2. for each cycle in DSG(S), there exists three transactions, $T_i, T_j, T_k$ where #align(center)[#image(width: 60%, "images/dsg.png")] = recovery *undo:* remove effects of aborted Xact for atomicity *redo:* re-install effects of committed Xact for durability *types of failure:* - Xact failure (abort) - system crash (loss of volatile memory) - media failure (data lost/corrupted) == recovery manager process $"Commit"(T)$, $"Abort"(T)$, and $"Restart"$ - on restart, abort all active Xacts and install updates of all committed Xacts that were not installed - desirable properties: add little overhead to normal processing of Xacts and recover quickly *interactions with buffer manager:* default buffer manager behvior is to write dirty page to disk when dirty page is replaced; may be altered - steal: dirty page updated by Xact can be written to disk before Xact commits - force: all dirty pages updated by Xact must be written to disk when Xact commits #table( columns: (auto, auto, auto), inset: 2pt, table.header([], [*force*], [*no force*]), [*steal*], [undo & no redo], [#highlight("undo & redo")], [*no steal*], [no undo & no redo], [no undo & redo] ) == log-based database recovery *log:* history of actions executed by DBMS; records for write, commit, abort, etc - stored as a sequential file of records in stable storage with multiple copies - each log record identified with Log Sequence Number (LSN) (akin to timestamp) == ARIES recovery algorithm works with steal, no-force approach and assumes strict 2PL for concurrency control *structures required:* updated during normal processing - log file (stable storage) - transaction table (TT) (volatile memory) - each entry $arrow$ active Xact - (XactID, lastLSN, Xact status) - lastLSN $arrow$ most recent log record for Xact - Xact status $arrow$ C (committed), U (not committed) - dirty page table (DPT) (volatile memory) - each entry $arrow$ dirty page in buffer pool - (pageID, recLSN) - recLSN $arrow$ earliest log record that dirties page *log record fields/types:* all $arrow$ (type, XactID, prevLSN) - update $arrow$ (pageID, offset, length, before-image, after-image) - compensation log record (CLR) $arrow$ (pageID, undoNextLSN, action taken to undo) - undoNextLSN $arrow$ LSN of next log record to be undone (i.e. prevLSN of update record) - commit $arrow$ all log records force-written to stable storage - abort $arrow$ undo initiated with this Xact - end $arrow$ confirmation that a commit/abort is completed - checkpoint $arrow$ indicates when to start recovery *protocols:* + write-ahead logging (WAL) $arrow$ don't flush uncommitted update to database until log record containing before-image is flushed to log - pageLSN $arrow$ latest log that updated page - ensure all log records up to log record corresponding to page's pageLSN are flushed to disk + force-at-commit $arrow$ don't commit Xact until after-images of all its updated records are in stable storage - write commit log record and flush all log records to disk *normal operations:* - TT: create entry for $T$ with status U; each new log record for $T$ updates lastLSN field; $T$ commits $arrow$ status to $C$; end log record $arrow$ remove $T$ entry - DPT: create entry for $P$ if not already in table; remove entry when $P$ flushed to disk *aborts:* for each log record of Xact in reverse order, restore log record's before-image via lastLSN and prevLSN traversal - each undo is logged as a CLR log $arrow$ ensure action is not repeated during repeated undos *commits:* write a commit log record in stable storage === restarts *analysis phase:* reconstruct DPT and TT - initialize DPT and TT & scan log in forward direction $r$, performing normal operation *redo phase:* reconstruct DB to state at time of crash - redoLSN = smallest recLSN of DPT - $r$ is log record with LSN = redoLSN (starting position) - if $r$ is a redoable action $arrow$ fetch $P$ and if $P$ pageLSN < $r$ LSN, reapply logged action in $r$ and update $P$ pageLSN to $r$ LSN (i.e. $P$ most recent log record updating it was before $r$) - after redo phase, create end log records for all Xacts with status C in TT and delete *undo phase:* undo actions that Xact didn't commit - abort active Xacts at time of crash - $L$ is the set of lastLSNs with status U in TT #box(stroke: black, width: 100%, inset: 3pt, [ - *update(lsn):* - lsn != `NULL` $arrow$ add to L - else $arrow$ create end record for $T$ and remove $T$ - repeat till $L$ is empty - $r$ = record with largest lastLSN in $L$ - $r$ is abort $arrow$ update($r$ prevLSN) - $r$ is CLR $arrow$ update($r$ undoNextLSN) - $r$ is update $arrow$ - create CLR $r_2$ $arrow$ undoNextLSN = $r$ prevLSN - update $T$ lastLSN entry to $r_2$ LSN - undo logged action on $P$ - update $P$ pageLSN = $r_2$ LSN - update($r$ prevLSN) ]) === checkpointing performed periodically to speed up restart recovery, adding some overhead to normal processing *simple:* during analysis phase, begin from latest checkpoint log record with checkpoint TT and empty DPT + stop accepting new operations + wait till all active operations finish + flush all dirty pages in buffer + write checkpoint log record with TT + resume accepting operations *fuzzy checkpointing:* let DPT' and TT' be snapshots - assumption: no log records between begin and end + write begin_checkpoint log record + write end_checkpoint log record with DPT' and TT' + write special master record with LSN of begin_checkpoint log record to a known place in stable storage *changes to phases:* - analysis: start with begin_checkpoint log record from master record, using DPT' and TT' from end_checkpoint log record and proceed - redo: exploit information in DPT to avoid retrieving $P$ - optimization condition: ($P$ not in DPT) or ($P$ recLSN in DPT > $r$ LSN) - optimization holds $arrow$ update $r$ already applied to $P$ so update can be ignored - otherwise if optimization does not hold and $r$ is redoable - attempt to reapply action - otherwise, update $P$ recLSN = $P$ pageLSN + 1 - hopefully next optimization holds so skip fetching - undo: no change
https://github.com/WinstonMDP/math
https://raw.githubusercontent.com/WinstonMDP/math/main/exers/1.typ
typst
#import "../cfg.typ": * #show: cfg $ "Prove that" all(a > 1) all(q in QQ): lim_(QQ in.rev x -> q) a^x = a^q $ That is, $all(epsilon > 0) ex(delta > 0) all(x in QQ): 0 < abs(x - q) < delta -> abs(a^x - a^q) < epsilon$. It has been proven in 2 that $lim_(QQ in.rev x -> 0) a^x = 1$. $lim_(QQ in.rev x -> 0) a^(x + q) = a^q$. $ex(delta > 0) all(x in QQ): 0 < abs(x) < delta -> abs(a^(x + q) - a^q) < epsilon$. I'm proving that $all(x in QQ): 0 < abs(x - q) < delta -> abs(a^x - a^q) < epsilon$. $0 < abs(x - q) < delta -> abs(a^(x - q + q) - a^q) < epsilon$. $abs(a^(x - q + q) - a^q) = abs(a^x - a^q)$.
https://github.com/touying-typ/touying
https://raw.githubusercontent.com/touying-typ/touying/main/examples/dewdrop.typ
typst
MIT License
#import "../lib.typ": * #import themes.dewdrop: * #import "@preview/numbly:0.1.0": numbly #show: dewdrop-theme.with( aspect-ratio: "16-9", footer: self => self.info.institution, navigation: "mini-slides", config-info( title: [Title], subtitle: [Subtitle], author: [Authors], date: datetime.today(), institution: [Institution], ), ) #set heading(numbering: numbly("{1}.", default: "1.1")) #title-slide() #outline-slide() = Section A == Subsection A.1 $ x_(n+1) = (x_n + a/x_n) / 2 $ == Subsection A.2 A slide without a title but with *important* infos = Section B == Subsection B.1 #lorem(80) #focus-slide[ Wake up! ] == Subsection B.2 We can use `#pause` to #pause display something later. #pause Just like this. #meanwhile Meanwhile, #pause we can also use `#meanwhile` to #pause display other content synchronously. #show: appendix = Appendix == Appendix Please pay attention to the current slide number.