Answers.Body: <p>In general, you will probably not get good results on most devices when trying to do a two column layout in epub. There is no way of correlating one paragraph to another, which means you will probably run into situations where the page breaks do not work well if at all. In addition, many epub reading systems do not work well with floating text (which is how you would create columns).</p>
  
  <p>If you'd still like to try experimenting  with it, I would suggest breaking the text of each book into paragraphs, interleaving them, and having the text of one book float left while the other floats right. Look out for paragraphs that run off the edge of the page and do not continue on the next page, though, as well as overlapping text at the top of pages.</p>
  
  <p>A quick and dirty example of some code you could get started with:</p>
  
  <pre><code>&lt;p class="english"&gt;This is the first paragraph&lt;/p&gt;
  &lt;p class="italian"&gt;This is the first paragraph&lt;/p&gt;
  </code></pre>
  
  <p>and the corresponding CSS:</p>
  
  <pre><code>p.english {
  width: 45%;
  margin: 1.25%;
  float: left;
  }
  p.italian {
  width: 45%;
  margin: 1.25%;
  float: right;
  }
  </code></pre>
  
  <p>As for the initial conversion, you might check out <a href="https://ebooks.stackexchange.com/questions/1183/what-is-the-minimum-required-content-for-a-valid-epub/1184#1184">this question</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-19T05:53:06.743Z
Answers.LastActivityDate: 2015-03-19T05:53:06.743Z
Answers.LastEditDate: 2017-04-13T13:00:05.480Z
Answers.UserDisplayName: Tom
Answers.Body: <p>I sometimes use tables, and found they work fine on most ereaders: kindle, ipad, nook. 
  In this case I would use a two columns table. 
  The problem is splitting the text into each cell of the table: there should be one paragraph per cell. This allows to make sure that the left and right sides display the same paragraph. I use alkinea to convert the odt file to epub or kindle.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-13T20:39:19.690Z
Answers.LastActivityDate: 2016-02-13T20:39:19.690Z
Answers.UserDisplayName: sya
Answers.Body: <p>Preface: not my area of expertise, but your question intrigued me, so I tried an experiment.  </p>
  
  <p>I am on a Win 7 machine, using LibreOffice 4+ and Calibre.  I had some large text documents that I used for the test. I created a two column table in LibreOffice and pasted the text files into the left and right cells.  They expanded as necessary (16 pages).  I saved as HTML.  It looked OK in IE.  I imported the book to Calibre and ran a conversion to epub using the defaults.  The text on the right did not show up until about page 5 (white space until then).  I don't know why.<br>
  As an initial demonstration, this may be helpful, but it obviously has issues, including those cited by Tom of paragraph alignment.  A way to address the alignment might be to use multi row tables and keep the related text in the same row, different columns. A row could be as small as a paragraph, or as large as a chapter.  </p>
  
  <p>I also tried creating a two column frame, but that behaved like a newspaper set up, the text that was beyond the bottom of the first page wrapped to the second column, so that's not the way to go.  </p>
  
  <p>I thought about my test a little more and decided the text I used was not suitable.  I tested again using the first 32 sonnets in the Complete Works of Shakespeare that I had as a text file.  I put the same text into both columns, independently.  I proceeded as above.  After conversion it looked pretty good, but not perfect.  The issues I noted were: the left column had about 4 lines of white space at the top, which the right column did not; the columns did not fully match throughout the epub of 41 pages, but were pretty close.  This may actually meet your needs. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-03T18:49:19.300Z
Answers.Text: I would strongly urge against the use of tables in epub documents in general, particularly when used for layout. Most reading systems that I have tested on (which includes most of the e-Ink reading device families) will lose any tabular content that does not fit on the screen. If someone is viewing the text at a large font size, it becomes fairly easy for even normal-length sentences to fill a half-width table cell to the point that some of the sentence will run off the screen, and therefore be completely inaccessible.
Answers.UserDisplayName: Tom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-03T00:50:47.247Z
Answers.LastActivityDate: 2015-04-03T12:00:51.750Z
Answers.LastEditDate: 2015-04-03T12:00:51.750Z
Answers.UserDisplayName: JKEngineer
Body: <p>I have two similar formatted ASCII files and want to convert the two into one *.epub ebook such that file1 is printed only in the left and file2 only in the right column.</p>
  
  <p>In this case: The Italian version + the english translation of Divine Comedy / La Divina Commedia by Dante Alighieri.</p>
  
  <p>Glad if someone can help out.</p>
  
Tags: <conversion><file-format>
Title: Convert two similar formatted files to two column epub
UserDisplayName: Martin
ThreadText: # Convert two similar formatted files to two column epub
  
  (Asked by: username_0 on 2015-03-18)
  
  I have two similar formatted ASCII files and want to convert the two into one \*.epub ebook such that file1 is printed only in the left and file2 only in the right column.
  
  In this case: The Italian version + the english translation of Divine Comedy / La Divina Commedia by Dante Alighieri.
  
  Glad if someone can help out.
  
  **Tags:** conversion, file-format
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-03-19. Score: 3
  
  In general, you will probably not get good results on most devices when trying to do a two column layout in epub. There is no way of correlating one paragraph to another, which means you will probably run into situations where the page breaks do not work well if at all. In addition, many epub reading systems do not work well with floating text (which is how you would create columns).
  
  If you'd still like to try experimenting with it, I would suggest breaking the text of each book into paragraphs, interleaving them, and having the text of one book float left while the other floats right. Look out for paragraphs that run off the edge of the page and do not continue on the next page, though, as well as overlapping text at the top of pages.
  
  A quick and dirty example of some code you could get started with:
  
  ```
  <p class="english">This is the first paragraph</p>
  <p class="italian">This is the first paragraph</p>
  
  ```
  
  and the corresponding CSS:
  
  ```
  p.english {
  width: 45%;
  margin: 1.25%;
  float: left;
  }
  p.italian {
  width: 45%;
  margin: 1.25%;
  float: right;
  }
  
  ```
  
  As for the initial conversion, you might check out [this question](https://ebooks.stackexchange.com/questions/1183/what-is-the-minimum-required-content-for-a-valid-epub/1184#1184).
  
  
  ---
  
  ### Answer by username_2 on 2016-02-13. Score: 0
  
  I sometimes use tables, and found they work fine on most ereaders: kindle, ipad, nook.
  In this case I would use a two columns table.
  The problem is splitting the text into each cell of the table: there should be one paragraph per cell. This allows to make sure that the left and right sides display the same paragraph. I use alkinea to convert the odt file to epub or kindle.
  
  
  ---
  
  ### Answer by username_3 on 2015-04-03. Score: 0
  
  Preface: not my area of expertise, but your question intrigued me, so I tried an experiment.
  
  I am on a Win 7 machine, using LibreOffice 4+ and Calibre. I had some large text documents that I used for the test. I created a two column table in LibreOffice and pasted the text files into the left and right cells. They expanded as necessary (16 pages). I saved as HTML. It looked OK in IE. I imported the book to Calibre and ran a conversion to epub using the defaults. The text on the right did not show up until about page 5 (white space until then). I don't know why.  
  As an initial demonstration, this may be helpful, but it obviously has issues, including those cited by Tom of paragraph alignment. A way to address the alignment might be to use multi row tables and keep the related text in the same row, different columns. A row could be as small as a paragraph, or as large as a chapter.
  
  I also tried creating a two column frame, but that behaved like a newspaper set up, the text that was beyond the bottom of the first page wrapped to the second column, so that's not the way to go.
  
  I thought about my test a little more and decided the text I used was not suitable. I tested again using the first 32 sonnets in the Complete Works of Shakespeare that I had as a text file. I put the same text into both columns, independently. I proceeded as above. After conversion it looked pretty good, but not perfect. The issues I noted were: the left column had about 4 lines of white space at the top, which the right column did not; the columns did not fully match throughout the epub of 41 pages, but were pretty close. This may actually meet your needs.
  
  > **Comments:**
  > **username_1**: I would strongly urge against the use of tables in epub documents in general, particularly when used for layout. Most reading systems that I have tested on (which includes most of the e-Ink reading device families) will lose any tabular content that does not fit on the screen. If someone is viewing the text at a large font size, it becomes fairly easy for even normal-length sentences to fill a half-width table cell to the point that some of the sentence will run off the screen, and therefore be completely inaccessible.  
  
  ---
  
  