Answers.Body: <p>I was able to work around the issue as follows:</p>
  
  <pre><code>$ pandoc -S -o mybook.markdown   mybook.tex 
  $ pandoc -S -o mybook.epub --epub-cover-image=images/my_cover.png  title.txt  mybook.markdown
  </code></pre>
  
  <p>By converting the LaTeX file to markdown, the second pandoc command was able to apply the Title, Author and Date information in title.txt to the epub file.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-13T19:04:42.057Z
Answers.Text: IIRC the title pages are specifically an extension of markdown, so it's unlikely that it'll ever be made to work with other formats.
Answers.UserDisplayName: evilsoup
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-23T03:28:17.273Z
Answers.LastActivityDate: 2015-08-23T03:28:17.273Z
Answers.UserDisplayName: StandardEyre
Body: <p>I have a book written in LaTeX.  I can build an epub output file using pandoc, but I cannot get the epub title page right.  The final epub file is missing Title, Author and Date information.</p>
  
  <pre><code>$ pandoc -S -o mybook.epub --epub-cover-image=images/my_cover.png title.txt mybook.tex 
  </code></pre>
  
  <p>I've tried a second book where the source is in markdown (not LaTeX) format.  The title page works correctly.</p>
  
  <pre><code>$ pandoc -S -o guide.epub title.txt part1.markdown part2.markdown
  </code></pre>
  
  <p>Is there a setting I am missing to get the YAML file (the title.txt file) correct when LaTeX is the source to pandoc?</p>
  
  <p>I used LaTeX rather than markdown for the first book so I could use the <a href="http://www.mcdemarco.net/sffms/" rel="nofollow">sffms</a> LaTeX document class.</p>
  
Tags: <epub><linux><markdown><pandoc>
Title: How to create ePub with title page from LaTeX source using pandoc
UserDisplayName: StandardEyre
ThreadText: # How to create ePub with title page from LaTeX source using pandoc
  
  (Asked by: username_0 on 2015-08-23)
  
  I have a book written in LaTeX.  I can build an epub output file using pandoc, but I cannot get the epub title page right.  The final epub file is missing Title, Author and Date information.
  $ pandoc -S -o mybook.epub --epub-cover-image=images/my_cover.png title.txt mybook.tex 
  
  I've tried a second book where the source is in markdown (not LaTeX) format.  The title page works correctly.
  $ pandoc -S -o guide.epub title.txt part1.markdown part2.markdown
  
  Is there a setting I am missing to get the YAML file (the title.txt file) correct when LaTeX is the source to pandoc?
  I used LaTeX rather than markdown for the first book so I could use the sffms LaTeX document class.
  
  **Tags:** epub, linux, markdown, pandoc
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-08-23. Score: 3
  
  I was able to work around the issue as follows:
  $ pandoc -S -o mybook.markdown   mybook.tex 
  $ pandoc -S -o mybook.epub --epub-cover-image=images/my_cover.png  title.txt  mybook.markdown
  
  By converting the LaTeX file to markdown, the second pandoc command was able to apply the Title, Author and Date information in title.txt to the epub file.
  
  > **Comments:**
  > **username_1**: IIRC the title pages are specifically an extension of markdown, so it's unlikely that it'll ever be made to work with other formats.  
  
  ---
  
  