6

I'm not able to make tex4ebook to work with even the simplest document.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\section{section 1}
this is a test

\end{document}

when I run tex4ebook filename.tex I get:

filename.tex:1: unexpected symbol near '\'

What is wrong?

Some further information

I have installed make4ht into the main texmf tree:

~/texlive/2014/texmf-dist/scripts/lua/make4ht/

then linked the make4ht file into the PATH directory so that it can be invoked.

Now if I try make4ht filename.tex I get:

~/texlive/2014/bin/x86_64-linux/make4ht:11: module 'make4ht-lib' not found:

no field package.preload['make4ht-lib']
[kpse lua searcher] file not found: 'make4ht-lib'
[kpse C searcher] file not found: 'make4ht-lib'

While if I issue tex4ebook filename I get the same result as before.

closed as unclear what you're asking by user31729, Kurt, Svend Tveskæg, user13907, egreg Nov 3 '14 at 17:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • do you have current version of tex4ebook? your sample compiles fine for me. Could you post here complete terminal output? – michal.h21 Oct 20 '14 at 10:40
  • @michal.h21 That already is the complete terminal output. I have just downloaded everything from your github. The same file works fine with htlatex – skey Oct 20 '14 at 10:47
  • it seems there is some problem with your installation then :( do you have make4ht installed? do you get the same error with make4ht filename.tex? – michal.h21 Oct 20 '14 at 10:58
  • @michal.h21 I just noticed that I don't have any make4ht executable even though I installed make4ht following the instructions on git. Where is the make4ht executable located? – skey Oct 20 '14 at 11:04
  • if you are on unix system, try command ln -s `kpsewhich -var-value TEXMFHOME`/scripts/lua/make4ht/make4ht /usr/bin/make4ht – michal.h21 Oct 20 '14 at 11:39

Browse other questions tagged or ask your own question.