Hi,

the -k option is not intended to be used on Wikibooks. For Wikibooks you usually start with the print version. For some Wikibooks using -m or -i can be useful when creating LaTeX version. The option -k was intended for books in Wikipedia Book namespace like

https://en.wikipedia.org/wiki/Book:River_martin

The idea is to denote which subpages a book consists of and their order. On Wikipedia Book namespace it is a list of wikilinks to page on Wikipedia.

On Wikibooks it mediawikis template transclusion mechanism, that you will understand when viewing the source of the printable version of a wikibook.

Yours Dirk

On 7/1/20 4:41 PM, ael wrote:
On Wed, Jul 01, 2020 at 08:52:51AM +0200, Dirk Hünniger wrote:
Hi,

thats strange. I got an epub with

mediawiki2latex -u https://en.wikibooks.org/wiki/Haskell/Type_basics -o
Haskell.epub -b

what command line did you use.
I tried again with -i and this time the error was

Error downloading the lemma "zh:Haskell" form the url "Just (URL {url_type = Absolute (Host {protocol = HTTP True, host = "en.wikibooks.org", port = 
Nothing}), url_path = "wiki/Haskell", url_params = []},[URL {url_type = Absolute (Host {protocol = HTTP True, host = "en.wikibooks.org", port = Nothing}), 
url_path = "wiki", url_params = []},URL {url_type = Absolute (Host {protocol = HTTP True, host = "en.wikibooks.org", port = Nothing}), url_path = "", 
url_params = []},URL {url_type = Absolute (Host {protocol = HTTP True, host = "commons.wikimedia.org", port = Nothing}), url_path = "wiki", url_params = 
[]}])"

But it ran for a substantial time before hitting that error.

So that was with a command line of:
   mediawiki2latex -u https://en.wikibooks.org/wiki/Haskell -o 
/tmp/Haskell.epub -b -k -i

ael




Reply via email to