I know many of you will think this elementary - but I would like opinions. I need to know if I'm doing it horribly wrong before I continue doing 45+ chapters! I apologize if this isn't the proper place - but I'm really trying to learn!
I'm trying to convert a novel that has been typed in Word -- no equations -- just text with some light formatting, lots of dialogue etc.... So in my VERY limited knowledge of LaTeX I have done this. Can you please tell me if I'm on the right track?
My method:
- Open Chapter in Open Office
- Export using
Writer2LaTeX
extension - Open the exported file in
WinEdt
- Delete all preamble coding and just have
\chapter{}
for the preamble - Delete
\end{document}
from the end of the document - Replace
{\textquoteright}
with'
(it puts this on all conjunctions and just for neatness and readability I'd rather just see the'
than the code) - Save
In my master
document I insert the chapters using the \include
command (at the suggestion of someone here)
So.... I know it seems like it's a very round about way of doing it... but is it okay? My reasoning for using Writer2LaTeX
extension is because it seems to take care of the opening and closing quotations using {\textquotedblleft}
and {\textquotedblright}
and it also uses \textit
for italics. Otherwise I think I'd have to go find all those and enter coding by hand correct?
My master
file has the following code:
\documentclass[10pt]{memoir}
\usepackage{mathpazo}
\usepackage[margin=1in, paperwidth=6in, paperheight=9in]{geometry}
\usepackage{indentfirst}
\pagestyle{plain}
\emergencystretch=1.5em
\renewcommand*{\chapnamefont}{\normalfont\HUGE\bfseries\sffamily}
\renewcommand*{\chapnumfont}{\normalfont\HUGE\bfseries\sffamily}
\renewcommand*{\afterchapternum}{}
\renewcommand*{\printchaptertitle}[1]{}
\begin{document}
\include{Chapter1v2}
\include{chapter02}
\end{document}
\end{document}
in the chapters:-). Converting from Word to LaTeX can be painful or relatively straightforward, depending on the document features used and the converter. If you are finding openoffice is making a reasonable first conversion of your text, stick with that. – David Carlisle Nov 8 '12 at 20:01\usepackage[utf8]{inputenc}
. – Qrrbrbirlbel Nov 8 '12 at 20:21standalone
package. The each chapter can be a complete document (which means you leave theend{document}
in each chapter). This will allow you to be able to typeset each chapter separately for review, and yet also be able to import them into a master document. Numerous examples on this site of thestandalone
package. – Peter Grill Nov 8 '12 at 20:25writer2latex
can be convinced not to create a preamble to every file with the optionno_preamble
... Check the manual and think about creating a template file if you're going to use it a lot... I'd also suggest working withpandoc
, but you'd have to get the files saved as.html
or DocBook before converting to.tex
– henrique Nov 9 '12 at 15:23