This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[a4paper]{article} | |
| \usepackage{luamplib} | |
| \pagestyle{empty} | |
| \begin{document} | |
| \mpfig | |
| picture pic; path p[]; color c[]; | |
| c1 = (1, 0.4, 0.4); | |
| c2 = (1, 0.8, 0.3); | |
| c3 = (0.3, 0.8, 0.3); | |
| c4 = (0.3, 0.5, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[border=5mm]{standalone} | |
| \usepackage{luamplib} | |
| \begin{document} | |
| \mplibtextextlabel{enable} | |
| \mpfig | |
| numeric u, v; | |
| u = 2v = 25; | |
| path xx, yy; | |
| xx = (left--right) scaled 3u; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass{article} | |
| \usepackage{luamplib} | |
| \pagestyle{empty} | |
| \begin{document} | |
| \mpfig* | |
| numeric sh, wd, ht; | |
| sh = 6; wd = 200; ht = 100; | |
| path p[]; | |
| p1 = unitsquare xscaled wd yscaled ht; | |
| p2 = unitsquare xscaled (wd-sh) yscaled sh shifted(sh,-sh); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \DocumentMetadata{} | |
| \documentclass{book} | |
| \usepackage[hangul]{kotex} | |
| \setmainhangulfont{Noto Serif CJK KR}[Script=Hangul, AutoFakeSlant] | |
| \IfInstanceExistsT{heading}{chapter} | |
| {\EditInstance{heading}{chapter}{prefix={\KSTHE}, number-format={\thechapter~\chaptername}} | |
| \AddToHook{cmd/appendix/after} | |
| {\EditInstance{heading}{chapter}{prefix={\appendixname}, number-format={\thechapter}}}} | |
| \IfInstanceExistsT{heading}{part} | |
| {\EditInstance{heading}{part}{prefix={\KSTHE}, number-format={\thepart~\partname}}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[margin=5pt]{standalone} | |
| \usepackage{luamplib} | |
| \begin{document} | |
| \mpfig | |
| u := 100; | |
| color yellow; yellow = (1, 1, 0); | |
| color cyan; cyan = (0, 1, 1); | |
| color magenta; magenta = (1, 0, 1); | |
| path p, q; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local doit = true | |
| for line in io.lines(arg[1]) do | |
| if doit and line:find"<?MarkedContent " then | |
| local content = line:match">(.-)$" | |
| if content and content ~= "" then | |
| io.write(content) | |
| end | |
| elseif doit and line:find"</?P[%s>]" then | |
| io.write"\n" | |
| elseif line:find"<Lbl " then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass{article} | |
| \begin{document} | |
| \ExplSyntaxOn | |
| \mode_leave_vertical: | |
| \hbox_overlap_right:n | |
| { | |
| \color_select:n{red!50} | |
| \rule{200pt}{250pt} | |
| } | |
| \hbox_set:Nn \l_tmpa_box |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[a5paper]{article} | |
| \usepackage{luamplib,graphicx} | |
| \directlua{ | |
| tex.print(-2,{ | |
| token.create"graphicspath", | |
| token.new(0,1), token.new(0,1), | |
| kpse.var_value"TEXMFDIST", "/doc/generic/pgf/images/", | |
| token.new(0,2), token.new(0,2), | |
| }) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- Only for krvtypeset.cls 2025/11/02 version 0.66 | |
| -- | |
| -- written by dohyun kim | |
| -- public domain | |
| -- 2026/03/03 22:00 | |
| -- | |
| -- 프리앰블 말미에 | |
| -- \directlua{ require "krv_regex" } | |
| -- 를 추가하고 컴파일한다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[margin=5pt]{standalone} | |
| \usepackage{luamplib} | |
| \begin{document} | |
| \setbox0\vbox{\sffamily\bfseries\Large \sloppy | |
| \hsize=10cm \parindent=0pt\parskip=5pt | |
| \begin{center}\LARGE Episode IV\end{center} | |
| \centerline{A NEW HOPE} | |
| It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. |
NewerOlder