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: | ||
− | + | # 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> |
− | |||
− | + | # 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: | ||
− | + | <pre> | |
− | + | 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> | |
− | + | # Now, build the format file. | |
− | |||
− | |||
− | |||
− | < | + | <pre> |
+ | luatex --ini /usr/local/share/texmf-dist/tex/generic/context/luatex/luatex-plain.tex | ||
+ | </pre> | ||
− | + | # 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> |
− | |||
− | + | # But, this is too restrictive. | |
− | + | ## Create a new executable with the name luatex-plain. Something | |
− | + | like: | |
− | <pre> | + | <pre> |
− | ln -s `which luatex` /usr/local/bin/luatex-plain | + | ln -s `which luatex` /usr/local/bin/luatex-plain |
− | </pre | + | </pre> |
− | |||
− | + | ## 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> |
− | |||
− | |||
− | |||
== Contents == | == Contents == | ||
− | + | 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 | + | 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]] |