From 3b2c1e3f21ef09e482e7469837c8184a78c16ca2 Mon Sep 17 00:00:00 2001 From: Alex Vear Date: Sat, 5 Jul 2025 03:32:58 +0100 Subject: [PATCH] Move samples from `samples` branch to `master` branch Originally-authored-on: 2020-10-26 --- samples/links.org | 5 +++ samples/sample1.org | 52 ++++++++++++++++++++++++++++ samples/sample2.org | 83 +++++++++++++++++++++++++++++++++++++++++++++ samples/sample3.org | 45 ++++++++++++++++++++++++ samples/tex.org | 36 ++++++++++++++++++++ samples/unusual.org | 46 +++++++++++++++++++++++++ 6 files changed, 267 insertions(+) create mode 100644 samples/links.org create mode 100644 samples/sample1.org create mode 100644 samples/sample2.org create mode 100644 samples/sample3.org create mode 100644 samples/tex.org create mode 100644 samples/unusual.org diff --git a/samples/links.org b/samples/links.org new file mode 100644 index 0000000..08ab579 --- /dev/null +++ b/samples/links.org @@ -0,0 +1,5 @@ +[[https://google.com]] + +[[https://google.com][Google]] + +Hello [[world]] foo. diff --git a/samples/sample1.org b/samples/sample1.org new file mode 100644 index 0000000..1e827c8 --- /dev/null +++ b/samples/sample1.org @@ -0,0 +1,52 @@ +#+TITLE: Org-mode sample 1 + +This is some sample text showing off the org-mode syntax for *bold*, /italic/, +_underlined_ and +strike-through+ text. + +Org-mode also has support for single line and block comments. + +# This is a single-line comment; denoted by the # at the beginning of the line. + +#+BEGIN_COMMENT +This is a block comment, which is denoted through th use of the delimiters +found above and below. +#+END_COMMENT + +_this is underline text +this is more_ + +~verbatim~ + +: verbatim + +asasdf ** __ +_hello world_ something __ _hello_ + +_hello world_ _ _ __ + +=monospace= + +#+BEGIN_SRC file-type +this is a code block +#+END_SRC + +#+BEGIN_EXAMPLE +some example text +#+END_EXAMPLE + +#+SOME_OPTION: This is an org-mode option + +Active date: +<2019-03-02 23:44> +Inactive date: +[2019-03-02 23:44] + +[[https://google.com]] +[[https://google.com][Google]] + +* Heading 1 +** Heading 2 +*** Heading 3 :tag: +**** TODO DONE NEXT DOING Heading 4 + +# vim: set spell : diff --git a/samples/sample2.org b/samples/sample2.org new file mode 100644 index 0000000..5697578 --- /dev/null +++ b/samples/sample2.org @@ -0,0 +1,83 @@ +#+TITLE: Hello world + +[[hello world][something]] <-- this is a link + +*bold* + +/italic/ + ++strikethrough+ + +_underline_ + +/aasdf *sdfasdf* sadfasdf/ + +#+BEGIN_COMMENT +hello world this is a comment block +#+END_COMMENT + +# comment + +1. Foo bar bz baz this is a /not so/ very long line of text in this vim 8.2 + buffer. +2. Hello world. + 1. Foo + 2. Bar + +- foo +- bar + +- This is *foo* + - A nested listsdf ++ Using different asdfasd + + delimiters /fee/ + ++ Foo bar bz baz this is a /not so/ very long line of text in this vim 8.2 buffer. + ++ [ ] This is a checkbox. + + [ ] Nested checkbox. + + [X] This is a checked checkbox with really long text to test how wrapping + works. + + [ ] Something asdf asdf asdf adfs dsf asdf sadf sadf sadf saf sdf asdf sdf + asdf sadf + +# * foo not a list item +# * Is a list item + + +| Table | Column 1 | +|-------+----------| +| item | _foo_ bar | + +<2003-09-16 Tue 12:00>--<2003-09-16 Tue 12:00> +<2003-09-16 Tue>--<2003-09-16 Tue> +[2003-09-16 Tue] +[2003-09-16 Tue 12:00]--[2003-09-16 Tue 12:00] +<2003-09-16 Tue> +<2003-09-16 Sáb> +<2003-09-16 Tue 12:00-12:30> + +#+asdasdsdfasdf: asdfasd + +~verbatim~ +: verbatim + +=monospace= + +#+BEGIN_SRC +asdfasdfasdf +#+END_SRC + +* Hello world +** Foo bar +*** Something :something_else: + +******** asdfasdf + +hello world + + + +**** Hello world + +something diff --git a/samples/sample3.org b/samples/sample3.org new file mode 100644 index 0000000..f992b47 --- /dev/null +++ b/samples/sample3.org @@ -0,0 +1,45 @@ +#+TITLE: This is a title +#+Author: Foo bar + +* Heading 1 + +This is *bold* text. +This is /italic/ text. +This is _underlined_ text. +This is +strikethrough+ text. +This is ~monospace~ text. +This is =verbatim= text. + +Link to [[https://www.orgmode.org][Org mode]] website. + +Get Org.vim from here: [[https://github.com/axvr/org.vim]] + +# Comment + +: Verbatim + +#+BEGIN_SRC lisp +(if (> 1 2) + (print "True") + (print "False")) +#+END_SRC + +#+BEGIN_COMMENT +This is a comment block. +#+END_COMMENT + +- Foo. +- Bar. + + Biz. + 1. Hello. + 2. World. + + Baz. + 1) Org, + 2) Mode. + +Time stamps: [2020-03-01] <2020-02-29> + +** TODO Heading 2 +*** Heading 3 :heading:tags: +**** Heading 4 +and so on... diff --git a/samples/tex.org b/samples/tex.org new file mode 100644 index 0000000..c3fdfb3 --- /dev/null +++ b/samples/tex.org @@ -0,0 +1,36 @@ +#+TITLE: Experiment with TeX in Org mode +#+OPTIONS: tex:t + +Hello $\alpha$. + +$$\alpha$$ + +* Foo $\alpha$ + +*foo $\alpha$ bar* + +\neg + +a \begin{equation} % arbitrary environments, + x=\sqrt{b} % even tables, figures + \end{equation} % etc + + \begin{equation} % arbitrary environments, + x=\sqrt{b} % even tables, figures + \end{equation} % etc + +\begin{equation} % arbitrary environments, +x=\sqrt{b} % even tables, figures +\end{equation} % etc + +\begin[asdf]{equation2} % arbitrary environments, +x=\sqrt{b} % even tables, figures +\end{equation2} % etc + +If $a^2=b$ and \( b=2 \), then the solution must be +either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \]. + +$$ + +a+=\alpha +$$ diff --git a/samples/unusual.org b/samples/unusual.org new file mode 100644 index 0000000..ae6028b --- /dev/null +++ b/samples/unusual.org @@ -0,0 +1,46 @@ +Hello /world/ foo/bar/asdf biz/baz//buz/ + +~foo~ + +*hello* +/_asdf/ +a/foo/ +-/foo/ +#/foo/ +@/foo/ +:/foo/ +_/foo/_ ++/foo/+ +3/foo/ +£/foo/ +;/foo/ +,/foo/ +./foo/ +*hello* + +/asdföasdf/ +/öasdf/ + +hello /foo +bar/ + +*Foo. Bar.* + +Biz + + +Org mode will match unconditionally from first =*= (must be preceded by [- '"(] ) to first one with [ \n\r-'")[}] on the right side. + + +*Hello +asdf world* + +Hello 123468-qwertyuiop[]\aasdfgghjjk;/.,mzxcg!@#$%^&*(*Foo=\\\\]][][[[*asdf]* [asdf* + +Bar + +*Helloa sdf world +asdf ** dasf +Hello 123468-qwertyuiop[]\aasdfgghjjk;'"/.,mzxcg!@#$%^&*(*Foo=\\\\]][ _asd_ [[*asdf]"**[a*sdf*/ + +Bar