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>
+
  <pre>
/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>
+
  </pre>
</li>
 
  
<li> If you just build a format file,
+
# If you just build a format file,
  
<pre>
+
  <pre>
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>  
+
  </pre>  
 +
 
 +
  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
+
  <pre>
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:
+
  </pre>
  
<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.
+
  <pre>
 +
  luatex --ini /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
 +
  </pre>
  
<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>
+
  <pre>
luatex --fmt luatex-plain test
+
  luatex --fmt luatex-plain test
</pre>
+
  </pre>
</li>
 
  
<li> But, this is too restrictive.
+
# But, this is too restrictive.
  
<ol>
+
  ## Create a new executable with the name luatex-plain. Something
<li> Create a new executable with the name luatex-plain. Something like:
+
  like:
  
<pre>
+
    <pre>
ln -s `which luatex` /usr/local/bin/luatex-plain
+
    ln -s `which luatex` /usr/local/bin/luatex-plain
</pre>
+
    </pre>
</li>
 
  
<li> When you try to invoke it:
+
  ## When you try to invoke it:
  
<pre>
+
    <pre>
luatex-plain test
+
    luatex-plain test
</pre>  
+
    </pre>  
  
it will fail with a message about failing to find the proper
+
  it will fail with a message about failing to find the proper
format file. There should be a line something like:
+
  format file. There should be a line something like:
  
<pre>
+
    <pre>
mktexfmt [INFO]: writing formats under ~/.texlive2020/texmf-var/web2c
+
    mktexfmt [INFO]: writing formats under ~/.texlive2020/texmf-var/web2c
</pre>  
+
    </pre>  
  
so, copy the format file to that location:
+
  so, copy the format file to that location:
  
<pre>
+
    <pre>
cp luatex-plain.fmt ~/.texlive2020/texmf-var/web2c/
+
    cp luatex-plain.fmt ~/.texlive2020/texmf-var/web2c/
</pre>  
+
    </pre>  
  
now, this should work:
+
  now, this should work:
  
<pre>
+
    <pre>
luatex-plain test
+
    luatex-plain test
</pre>  
+
    </pre>  
  
Finally, run mtxrun to generate a fonts database: <br />
+
    Finally, run mtxrun to generate a fonts database: <br />
  
<pre>
+
    <pre>
mtxrun --script fonts --reload --simple
+
    mtxrun --script fonts --reload --simple
</pre>
+
    </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)