It's 11pm here so probably not the best time to upload a new beta, but there you go.
You're welcome to try the new beta out overnight but I won't be here to help.
http://www.spacejock.com/yWriter5_Beta.html
Project - Export - Export to LaTeX is the new setting. There's also a LaTeX setting form where you can rewrite the LaTeX header.
Currently I'm taking the raw RTF code and stripping out the formatting. It's very likely there are many files where this won't work 100%
Cheers
Simon
--
Software designer & programmer
+ author of the Hal Spacejock series
+ Signed copies and ebooks: http://www.spacejock.com.au/BuyHal.html
> Might I suggest:
> \documentclass[9pt,mlargecrownvopaper,english,onecolumn,twoside,titlepage,extrafontsizes]{memoir}
> English can of course be replaced. The point is, I found 9 point with
> mlargecrownvopaper paper size to very closely mimic one of the
> standard publishing sizes and words per page.
> Now, here comes a giant paste of a perl script which I worked on with
> another individual (sorry, don't have the name on record to give
> credit). There are more good LaTeX settings and techniques
> interspersed throughout.
Thanks for that - I'll dig through the script and see what I can find.
Bear in mind the header and preamble is completely user-configurable and you can paste in whatever you want.
I needed 5x8" pages for CreateSpace (assuming I self-pub this book) so that's why it's using the current paper size.
I've just uploaded another beta which does a better job of export
> Sounds good. Good luck with it all.
> I know this is something of a bandaid, not intended to be a major
> feature ... but perhaps some very simple gui options for choosing
> beween a few page sizes, fonts, etc. (rather than the manual LaTex
> options setting ... or rather, in addition to it). Just a thought.
That's the plan, but it's too restrictive for a Beta. I've been playing with LaTeX for over a day now, and I still can't quite get the output I want. (Text block is too small relative to the page size, which gives me 44 char per line at 11pt on a page which is almost A5 size.) I've been messing with the margins but then I get errors compiling the file.
The other problem is that settings depend on packages. E.g. the memoirs package is ideal for novels, but has 1001 settings you can configure.
> pdf output form the tex would be *awesome* ... I wouldn't have to run
> my perl script anymore ..but the only way I know to do it is with that
> MikTex, which is super huge (on the order of 150MB). If you did want
> to go there, perhaps just have it only work if that is installed.
When I downloaded MikTex complete it was over 950mb. However, I can double-click the Tex file, press Ctrl+Shift+F5 and there's the PDF.
http://sites.google.com/site/ywritersj/faq/exporting?pli=1
Added a couple of paragraphs to the yWriter wiki talking about the new export, along with links to proTeXt etc.
These are my current settings (5x8" paper). I still need to start page counting from the first page (not chapter 1), suppress roman page numbers on the front matter, alter the page header so there's a lot less info. After that it's off to work out how to include images.
\documentclass[11pt,openright,twoside,postvopaper,extrafontsizes]{memoir}
\usepackage{palatino}
\addtolength{\uppermargin}{-0.75in}
\addtolength{\textheight}{1.2in}
\marginparwidth=25pt
\foremargin=50pt
\addtolength{\textwidth}{37pt}
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\setcounter{tocdepth}{0}
\chapterstyle{demo2}
\setlength{\parindent}{0.1in}
\widowpenalty=1500
\clubpenalty=1500
\midsloppy
\sloppybottom
\checkandfixthelayout
I've added a few extra features: you can start any scene with <TEX> and everything in that scene will be exported to the LaTeX file as-is
(There's a similar command called <HTML> which does the same for html export. And if you put @in front of chapter titles these titles won't appear in the export. This allows you to include copyright pages, title pages, etc in your yWriter project for export to ebook.)
The other thing I've just added for the next beta is inline LaTeX code. You can paste stuff between "<TEX " and " /TEX>" tags just like this:
<TEX
\begin{wrapfigure}{l}{1.45in}
\centering
\includegraphics[width=1.4in]{FeetInHatch.png}
\end{wrapfigure}
/TEX>
That's gets around the problem of yWriter not supporting images ... Just save them all to the main project folder, and the LaTeX export/converter will find them.
Not being able to speak any computer language beyond really basic HTML - really basic - will this feature always need some level of programming skill, or will it become user friendly? Ie, push the right buttons and out pops the formatted manuscript?
I think it'd make a really great feature, but if I have to insert code I'll never be able to use it.
Cheers
Chris
--
You received this message because you are subscribed to the Google Groups "yWriter" group.
To post to this group, send email to ywr...@googlegroups.com.
To unsubscribe from this group, send email to ywriter+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ywriter?hl=en.
<Chris....@csiro.au> wrote:
> Hi Simon,
Not being able to speak any computer language beyond really basic HTML - really basic - will this feature always need some level of programming skill, or will it become user friendly? Ie, push the right buttons and out pops the formatted manuscript?
I think it'd make a really great feature, but if I have to insert code I'll never be able to use it.
Cheers
Chris
Attached is the sort of thing you can create without changing a single setting. (I've modified the image to get rid of a double chapter heading - just fixing that now in code.)
-----Original Message-----
From: ywr...@googlegroups.com [mailto:ywr...@googlegroups.com] On Behalf Of Simon H
<Chris....@csiro.au> wrote:
> Hi Simon,
Cheers
Chris