[O] Latex export does not work

2013-11-06 Thread Cecil Westerhof
I am trying a LaTeX export, but I get the following error:
org-babel-exp processing...
executing Dot code block...
Wrote /tmp/babel-18129i9i/ob-input-18129Nzr
Code block evaluation complete.
Saving file /home/cecil/Documents/shell-scripting.tex...
Wrote /home/cecil/Documents/shell-scripting.tex
Processing LaTeX file ./shell-scripting.tex...
org-latex-compile: PDF file ./shell-scripting.pdf wasn't produced: [LaTeX
error]

Not very clear. What could be the problem?

-- 
Cecil Westerhof


Re: [O] Latex export does not work

2013-11-06 Thread Cecil Westerhof
2013/11/6 Cecil Westerhof cldwester...@gmail.com


 I am trying a LaTeX export, but I get the following error:
 org-babel-exp processing...
 executing Dot code block...
 Wrote /tmp/babel-18129i9i/ob-input-18129Nzr
 Code block evaluation complete.
 Saving file /home/cecil/Documents/shell-scripting.tex...
 Wrote /home/cecil/Documents/shell-scripting.tex
 Processing LaTeX file ./shell-scripting.tex...
 org-latex-compile: PDF file ./shell-scripting.pdf wasn't produced: [LaTeX
 error]

 Not very clear. What could be the problem?


 I saw that there was an error that wrapfig.sty was not found. I installed
texlive-wrapfig and problem solved.

I am only getting a message:
! Package inputenc Error: Unicode char \u8:- not set up for use with
LaTeX.

But that should be solvable.

-- 
Cecil Westerhof


Re: [O] Latex export does not work

2013-11-06 Thread Nick Dokos
Cecil Westerhof cldwester...@gmail.com writes:

 I am trying a LaTeX export, but I get the following error:
 org-babel-exp processing...
 executing Dot code block...
 Wrote /tmp/babel-18129i9i/ob-input-18129Nzr
 Code block evaluation complete.
 Saving file /home/cecil/Documents/shell-scripting.tex...
 Wrote /home/cecil/Documents/shell-scripting.tex
 Processing LaTeX file ./shell-scripting.tex...
 org-latex-compile: PDF file ./shell-scripting.pdf wasn't produced: [LaTeX 
 error]

 Not very clear. What could be the problem?


Could be any number of things (e.g. are you using minted? Did you turn
on -shell-escape?)

Try to find the buffer where the output of the pdflatex processing goes
(*~/Documents/shell-scripting output* or some such) and see if there
is a clearer description of the error there. Or export to a LaTeX file
and process that by hand from the command line.

-- 
Nick




Re: [O] Latex export does not work

2013-11-06 Thread Cecil Westerhof
2013/11/6 Cecil Westerhof cldwester...@gmail.com

 I am only getting a message:
 ! Package inputenc Error: Unicode char \u8:- not set up for use with
 LaTeX.

 But that should be solvable.


I solved that by changing in my .tex file:
\usepackage[utf8]{inputenc}
to:
\usepackage[utf8x]{inputenc}

and running pdflatex.

Is there a way to get this automatically in the .tex file, so I do not have
to change it?

-- 
Cecil Westerhof


Re: [O] Latex export does not work

2013-11-06 Thread Cecil Westerhof
2013/11/6 Cecil Westerhof cldwester...@gmail.com

 2013/11/6 Cecil Westerhof cldwester...@gmail.com

 I am only getting a message:
 ! Package inputenc Error: Unicode char \u8:- not set up for use with
 LaTeX.

 But that should be solvable.


 I solved that by changing in my .tex file:
 \usepackage[utf8]{inputenc}
 to:
 \usepackage[utf8x]{inputenc}

 and running pdflatex.

 Is there a way to get this automatically in the .tex file, so I do not
 have to change it?


Based on
http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=bb488fa3b1eaa61ea2dfe7238f9da85bc42b0ffb

I have:
(defcustom org-export-latex-inputenc-alist '(\utf8\ . \utf8x\) )

But still the .tex file contains:
\usepackage[utf8]{inputenc}
instead of:
\usepackage[utf8x]{inputenc}

What is the right way to do this?

-- 
Cecil Westerhof


Re: [O] Latex export does not work

2013-11-06 Thread Cecil Westerhof
2013/11/6 Cecil Westerhof cldwester...@gmail.com

 I am only getting a message:
 ! Package inputenc Error: Unicode char \u8:- not set up for use with
 LaTeX.

 But that should be solvable.


With some trial and error and od I found that there was a strange
combination of character codes (226, 136, 146) where there should be a -.
After changing that to a -, my problems where solved.

-- 
Cecil Westerhof


Re: [O] Latex export does not work

2013-11-06 Thread Vladimir Lomov
Hello,
** Cecil Westerhof [2013-11-06 14:23:15 +0100]:

 2013/11/6 Cecil Westerhof cldwester...@gmail.com

 2013/11/6 Cecil Westerhof cldwester...@gmail.com

 I am only getting a message:
 ! Package inputenc Error: Unicode char \u8:- not set up for use with
 LaTeX.

 But that should be solvable.


 I solved that by changing in my .tex file:
 \usepackage[utf8]{inputenc}
 to:
 \usepackage[utf8x]{inputenc}

 and running pdflatex.

 Is there a way to get this automatically in the .tex file, so I do not
 have to change it?


 Based on
 http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=bb488fa3b1eaa61ea2dfe7238f9da85bc42b0ffb

 I have:
 (defcustom org-export-latex-inputenc-alist '(\utf8\ . \utf8x\) )

 But still the .tex file contains:
 \usepackage[utf8]{inputenc}
 instead of:
 \usepackage[utf8x]{inputenc}

 What is the right way to do this?

I'm not give an advice how to get 'utf8x' option for inputenc
(personally I redefine all LaTeX stuff of Org) but for the record this is very
useful information about 'utf8' vs 'utf8x':
http://tex.stackexchange.com/questions/13067/utf8x-vs-utf8-inputenc

Also, you may try lualatex instead of pdflatex.

---
WBR, Vladimir Lomov

-- 
Under the wide and starry sky,
Dig my grave and let me lie,
Glad did I live and gladly die,
And laid me down with a will,
And this be the verse that you grave for me,
Here he lies where he longed to be,
Home is the sailor home from the sea,
And the hunter home from the hill.
-- Robert Loius Stevenson, Requiem