Editing T wo T r:twotr

From LuaTeXWiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 26: Line 26:
 
did on my system:
 
did on my system:
  
<ol>
+
# Find the luatex-plain.tex file. On my system (with TeX-Live 2020)
<li> Find the luatex-plain.tex file. On my system (with TeX-Live 2020)
 
 
it was at:
 
it was at:
  
<pre>
+
  <code>
/usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
+
  /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
</pre>
+
  </code>
</li>
 
  
<li> If you just build a format file,
+
# If you just build a format file,
  
<pre>
+
  <code>
luatex --ini /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
+
  luatex --ini /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
</pre>  
+
  </code>  
 +
 
 +
  you will probably get warnings about using the "merged" file, and not
 +
  the more current and supported files. Delete, move, or rename this
 +
  file. On my system I did:
  
you will probably get warnings about using the "merged" file, and not
+
  <code>
the more current and supported files. Delete, move, or rename this
+
  doas mv /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-fonts-merged.lua /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-fonts-merged.lua.bak
file. On my system I did:
+
  </code>
  
<pre>
+
# Now, build the format file.
doas mv /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-fonts-merged.lua /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-fonts-merged.lua.bak
 
</pre>
 
</li>
 
  
<li> Now, build the format file.
+
  <code>
 +
  luatex --ini /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
 +
  </code>
  
<pre>
+
# We are almost done. If the resulting format file (luatex-plain.fmt)
luatex --ini /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
 
</pre>
 
</li>
 
 
 
<li> We are almost done. If the resulting format file (luatex-plain.fmt)
 
 
is in the current working directory, you can use it with something
 
is in the current working directory, you can use it with something
 
like:
 
like:
  
<pre>
+
  <code>
luatex --fmt luatex-plain test
+
  luatex --fmt luatex-plain test
</pre>
+
  </code>
</li>
+
 
 +
# But, this is too restrictive.
  
<li> But, this is too restrictive.
+
  ## Create a new executable with the name luatex-plain. Something
 +
  like:
  
<ol>
+
    <code>
<li> Create a new executable with the name luatex-plain. Something like:
+
    ln -s `which luatex` /usr/local/bin/luatex-plain
 +
    </code>
  
<pre>
+
  ## When you try to invoke it:
ln -s `which luatex` /usr/local/bin/luatex-plain
 
</pre>
 
</li>
 
  
<li> When you try to invoke it:
+
    <code>
 +
    luatex-plain test
 +
    </code>  
  
<pre>
+
  it will fail with a message about failing to find the proper
luatex-plain test
+
  format file. There should be a line something like:
</pre>
 
  
it will fail with a message about failing to find the proper
+
    <code>
format file. There should be a line something like:
+
    mktexfmt [INFO]: writing formats under ~/.texlive2020/texmf-var/web2c
 +
    </code>
  
<pre>
+
  so, copy the format file to that location:
mktexfmt [INFO]: writing formats under ~/.texlive2020/texmf-var/web2c
 
</pre>
 
  
so, copy the format file to that location:
+
    <code>
 +
    cp luatex-plain.fmt ~/.texlive2020/texmf-var/web2c/
 +
    </code>
  
<pre>
+
  now, this should work:
cp luatex-plain.fmt ~/.texlive2020/texmf-var/web2c/
 
</pre>
 
  
now, this should work:
+
    <code>
 +
    luatex-plain test
 +
    </code>
  
<pre>
+
    Finally, run mtxrun to generate a fonts database: <br />
luatex-plain test
 
</pre>  
 
  
Finally, run mtxrun to generate a fonts database: <br />
+
    <code>
 +
    mtxrun --script fonts --reload --simple
 +
    </code>
  
<pre>
 
mtxrun --script fonts --reload --simple
 
</pre>
 
</li>
 
</ol>
 
</ol>
 
  
 
== Contents ==
 
== Contents ==
  
The most recent files for this project are also available at:
+
This files for this project are also available at:
 
[https://github.com/s-dismas/TeX-without-TeX-revised GitHub]
 
[https://github.com/s-dismas/TeX-without-TeX-revised GitHub]
  
There is a Read Eval Print Loop available for interactive exploring:
+
There is a Read Eval Print Loop available for interactively exploring:
  
 
[[T_wo_T_r:repl.lua|repl.lua]]
 
[[T_wo_T_r:repl.lua|repl.lua]]

Please note that all contributions to LuaTeXWiki are considered to be released under the GNU Free Documentation License 1.3 (see LuaTeXWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)