diff options
21 files changed, 93 insertions, 0 deletions
diff --git a/article/abortion.html b/article/abortion.html index 79416d7..79416d7 100755..100644 --- a/article/abortion.html +++ b/article/abortion.html diff --git a/article/contracts-and-validity.html b/article/contracts-and-validity.html index 444059b..444059b 100755..100644 --- a/article/contracts-and-validity.html +++ b/article/contracts-and-validity.html diff --git a/article/copyright.html b/article/copyright.html index 4688209..4688209 100755..100644 --- a/article/copyright.html +++ b/article/copyright.html diff --git a/article/democracy-fundamentals.html b/article/democracy-fundamentals.html index 8d1ded5..8d1ded5 100755..100644 --- a/article/democracy-fundamentals.html +++ b/article/democracy-fundamentals.html diff --git a/article/democracy-us.html b/article/democracy-us.html index 0854b85..0854b85 100755..100644 --- a/article/democracy-us.html +++ b/article/democracy-us.html diff --git a/article/depravity.html b/article/depravity.html index 29a830e..29a830e 100755..100644 --- a/article/depravity.html +++ b/article/depravity.html diff --git a/article/dream-of-the-whisker.html b/article/dream-of-the-whisker.html index d58ddbf..d58ddbf 100755..100644 --- a/article/dream-of-the-whisker.html +++ b/article/dream-of-the-whisker.html diff --git a/article/eax.txt b/article/eax.txt index 6a174c9..6a174c9 100755..100644 --- a/article/eax.txt +++ b/article/eax.txt diff --git a/article/free-hardware.html b/article/free-hardware.html index 801ab0b..801ab0b 100755..100644 --- a/article/free-hardware.html +++ b/article/free-hardware.html diff --git a/article/free-software-education-in-china-and-covid-19.html b/article/free-software-education-in-china-and-covid-19.html index d7d463e..d7d463e 100755..100644 --- a/article/free-software-education-in-china-and-covid-19.html +++ b/article/free-software-education-in-china-and-covid-19.html diff --git a/article/free-software.html b/article/free-software.html index b1062e5..b1062e5 100755..100644 --- a/article/free-software.html +++ b/article/free-software.html diff --git a/article/gender-and-pronouns.html b/article/gender-and-pronouns.html index 12c351c..12c351c 100755..100644 --- a/article/gender-and-pronouns.html +++ b/article/gender-and-pronouns.html diff --git a/article/index.html b/article/index.html index a8408d9..e84e6d6 100755..100644 --- a/article/index.html +++ b/article/index.html @@ -12,6 +12,7 @@ <p>Pages for other projects (i.e. Evosaur) are not listed—only independent articles are listed here. These are sorted from newest to oldest. Some do not come with HTML anchors: these articles are not published online, but are still listed here. For these, you may ask me for a copy in real life, but it is within my rights to decline such requests. Note that if an article ID has an asterisk (*), it is considered literature and its meaning shall not be interpreted literally.</p> <p><a href="/contact.html">Feel free to comment on any of the articles.</a></p> <ul> + <li><a href="texmacs-maxima-integral.html">TeXmacs Maxima Integrals</a> (17)</li> <li><a href="gender-and-pronouns.html">Gender and Pronouns</a> (17)</li> <li><a href="poems-2.html">Poems Collection 2</a> (16*)</li> <li><a href="poems-1.html">Poems Collection 1</a> (15*)</li> diff --git a/article/math-science-and-philosophy.html b/article/math-science-and-philosophy.html index f1f5601..f1f5601 100755..100644 --- a/article/math-science-and-philosophy.html +++ b/article/math-science-and-philosophy.html diff --git a/article/means.html b/article/means.html index 05ce5ef..05ce5ef 100755..100644 --- a/article/means.html +++ b/article/means.html diff --git a/article/poems-1.html b/article/poems-1.html index 34b3808..34b3808 100755..100644 --- a/article/poems-1.html +++ b/article/poems-1.html diff --git a/article/poems-2.html b/article/poems-2.html index 8b8dcb0..2accd36 100755..100644 --- a/article/poems-2.html +++ b/article/poems-2.html @@ -163,6 +163,21 @@ I'll face it with a heart that's bleak and brief. 星火闪耀,破碎支离。 </p> +<hr /> + +<p> +在纸的纹路中消散的墨水,<br /> +我提起那只放置已久的手。<br /> +心中堆砌着万分华丽词藻,<br /> +脑中压抑着多少五羟色胺。<br /> +我融化在过去麻木的记忆,<br /> +却开始绽放出灵动的思念。 +</p> + +<p> +留步。 +</p> + <div id="footer"> <hr /> <p><a href="/">Andrew Yu's Website</a></p> diff --git a/article/pragmatic-use-of-nonfree-software.html b/article/pragmatic-use-of-nonfree-software.html index f27be6c..f27be6c 100755..100644 --- a/article/pragmatic-use-of-nonfree-software.html +++ b/article/pragmatic-use-of-nonfree-software.html diff --git a/article/purple-hibiscus.html b/article/purple-hibiscus.html index 5c1a8ba..5c1a8ba 100755..100644 --- a/article/purple-hibiscus.html +++ b/article/purple-hibiscus.html diff --git a/article/texmacs-maxima-integral.html b/article/texmacs-maxima-integral.html new file mode 100644 index 0000000..cd86e3f --- /dev/null +++ b/article/texmacs-maxima-integral.html @@ -0,0 +1,77 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>TeXmacs Maxima Integrals</title> + <link rel="stylesheet" href="/plain.css" /> + <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> + <script id="MathJax-script" async src="https://static.andrewyu.org/mathjax/tex-svg.js"></script> + <meta charset="utf-8" /> + </head> + <body> + <h1>TeXmacs Maxima Integrals</h1> + <p>Article ID: 18</p> + <p> + I've been trying to get <a href="https://www.texmacs.org/">TeXmacs</a> with its <a href="https://maxima.sourceforge.io/">Maxima</a> <a href="https://www.texmacs.org/tmweb/documents/tutorials/maxima-tutorial/maxima-tutorial.en.html">plugin</a> to work. + </p> + <p> + Enabling the ``mathematical input'' mode in its interactive sessions I can use TeXmacs as a nice computer algebra system. However, an issue arises when I use integration. + </p> + <p> + If I enter \(\displaystyle\int x\,\mathrm{d}\,x\) with ``<code>\int <enter>x d<tab><tab>x</code>'' (spaces here are actually typed in while the ``<code><tab></code>''s and ``<code><enter></code>''s are their respective keys), I get this idiosyncratic error: + </p> + <pre>incorrect syntax: 1 is not an infix operator +integrate( x 1, + ^</pre> + <p> + This seems to be a bug when TeXmacs is translating things into Maxima. Just replace the ``<code><tab></code>'' between the integrand and the ``\(\mathrm{d}\)'' with a multiplication operator entered by ``<code>*</code>''. For example, <code>\int <enter>x*d<tab><tab>x</code> yields the correct result of \(\displaystyle\frac{x^2}{2}\) rather than the nonsensical error. + </p> + <p> + For reference, the source code of a demonstration document is included below in Scheme and XML-like (?) formats. + </p> + <pre>(document (TeXmacs "2.1.1") (style (tuple "generic" "maxima")) (body (document (session "maxima" "default" (document (unfolded-io-math (document (with "color" "red" (concat "(" (with "math-font-family" "rm" "%i") "8) "))) (document (concat (big "int") " x <mathd> x")) (document "" "incorrect syntax: 1 is not an infix operator" "integrate( x 1," " ^")) (unfolded-io-math (document (with "color" "red" (concat "(" (with "math-font-family" "rm" "%i") "8) "))) (document (concat (big "int") "x*<mathd> x")) (document "" (concat " " (math (with "math-display" "true" (concat (text (with "font-family" "tt" "color" "red" (concat "(" (with "math-font-family" "rm" "%o8") ") "))) (frac (concat "x" (rsup "2")) "2"))))))))))) (initial (collection (associate "page-medium" "paper") (associate "preamble" "true") (associate "prog-scripts" "maxima"))))</pre> + <pre><TeXmacs|2.1.1> + +<style|<tuple|generic|maxima>> + +<\body> + <\session|maxima|default> + <\unfolded-io-math> + <with|color|red|(<with|math-font-family|rm|%i>8) > + <|unfolded-io-math> + <big|int> x \<mathd\> x + <|unfolded-io-math> + \; + + incorrect syntax: 1 is not an infix operator + + integrate( x 1, + + \ \ \ \ \ \ \ \ \ \ \ \ \ ^ + </unfolded-io-math> + + <\unfolded-io-math> + <with|color|red|(<with|math-font-family|rm|%i>8) > + <|unfolded-io-math> + <big|int>x*\<mathd\> x + <|unfolded-io-math> + \; + + \ <math|<with|math-display|true|<text|<with|font-family|tt|color|red|(<with|math-font-family|rm|%o8>) + >><frac|x<rsup|2>|2>>> + </unfolded-io-math> + </session> +</body> + +<\initial> + <\collection> + <associate|page-medium|paper> + <associate|preamble|false> + <associate|prog-scripts|maxima> + </collection> +</initial></pre> + <div id="footer"> + <hr /> + <p><a href="/">Andrew Yu's Website</a></p> + </div> + </body> +</html> diff --git a/article/the-old-web-was-better.html b/article/the-old-web-was-better.html index d0b881f..d0b881f 100755..100644 --- a/article/the-old-web-was-better.html +++ b/article/the-old-web-was-better.html |