<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zrbabbler</author_name>
  <author_url>https://blog.hatena.ne.jp/zrbabbler/</author_url>
  <blog_title>マクロツイーター</blog_title>
  <blog_url>https://zrbabbler.hatenablog.com/</blog_url>
  <categories>
    <anon>TeX</anon>
  </categories>
  <description>前の記事で触れたように、新しい（0.85 版以降の）LuaTeX では「\write18 でシェル実行（外部コマンドの実行）する」ことができなくなっている。% 残念ながら新しいLuaTeXでは動作しない \immediate\write18{rm thesis-slide.tex} じゃあ新しい LuaTeX でシェル実行したい場合はどうすればよいか、という話。 Lua でシェル実行しよう LuaTeX なので当然 Lua ができる。そして、Lua にはシェル実行のための関数 os.execute() が存在する。だから \write18 の代わりに次のように書けばよい。% \immediat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzrbabbler.hatenablog.com%2Fentry%2F20160210%2F1455114219&quot; title=&quot;新しい LuaTeX だって \write18 したい - マクロツイーター&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-10 23:23:39</published>
  <title>新しい LuaTeX だって \write18 したい</title>
  <type>rich</type>
  <url>https://zrbabbler.hatenablog.com/entry/20160210/1455114219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
