<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 21/10/23 16:48, Aaron Rainbolt
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5aa0ba2e-b23d-4984-984d-53c00fc85b2a@gmail.com">mod2imp
claims to be able to generate LaTeX (something like `mod2imp -r
LATEX AKJV`) but at least the Ubuntu build of libsword-utils
mod2imp is broken in this regard - any time I try to use any of
the filters, it tells me "mod2imp: Unknown argument: LATEX" or
something similar for every single possible output format (OSIS,
XHTML, RTF, etc.).<br>
</blockquote>
<p>That's because it doesn't use a flexible argument parser like
getopt or similar. When the help text says:</p>
<blockquote>
<p>usage: mod2imp <module_name> [options]</p>
</blockquote>
<p>...it really means it, the options have to go *after* the module
name, not before:</p>
<blockquote>
<p>mod2imp -r LATEX AKJV # fails with "Unknown argument"</p>
<p>mod2imp AKJV -r LATEX # succeeds</p>
</blockquote>
<p>...although in this case, the IMP markup and the LaTeX markup get
a bit mixed and it's not the easiest to work with. You may have
better luck with the example command-line SWORD tool, diatheke:</p>
<blockquote>
<p>diatheke -b AKJV -f LATEX -k Genesis<br>
</p>
</blockquote>
<p><br>
</p>
<p>Timothy<br>
</p>
</body>
</html>