script

2009-06-25 Thread kgilbert

JanR,

I don't think I ever sent you the script for un-scrambling lyx to  
pdflatex exports.  I am enclosing the email from Carrick Talmadge  
(c...@olemiss.edu) and a zip file with the script.  You might want to  
contact Carrick directly if you have questions.  I have not used the  
script yet, so I would be interested in how it goes for you. Also,  
please let me know if you receive this email.  Thanks - Ken

Here is the email Carrick:

Hi Ken,

I'm including a zip'd version of the file (otherwise the University  
virus filter may kick it out).

Unzip it in the directory you want to correct the latex.

Open a Terminal window, cd to the directory where your latex is then  
run this command:

fixEquations.sh ExampleCalculation.tex

(replace "ExampleCalculation.tex" with your file name of course.)

You can even type:

fixEquations.sh *.tex

or give it a list of (space delimited) files that you want to run it  
on.  E.g.,

fixEquations.tex a.tex b.tex c.tex

Notes:

The script will move all embedded \begin and \end statements to the  
beginning of a line.  (Not just begin{equations}.)  If you want it to  
be more specific in terms of which types of begin/end statements you  
want to always start at the beginning of a line, let me know.

This script makes a copy of each file it modifies as filename~.  For  
example running the command

fixEquations.sh ExampleCalculation.tex

will create a file named ExampleCalculation.tex~

I've tested it on my computer, there is no reason to expect it not to  
work on yours, but as with any new script that is this invasive, I  
recommend backing up all of your files before trying it and verifying  
it does what you want.

Carrick

 
-- 
View this message in context: 
http://n2.nabble.com/export-to-pdflatex-tp2111628p3159310.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: export to pdflatex

2009-05-02 Thread kgilbert

JanR,

A friend of mine who is a computer whiz wrote a "script" for  
reformatting the Latex file.  I haven't tried it yet, but I expect it  
will work fine.  I use a Mac, and I think the script works using the  
underlying Unix.  I am pretty sure the same can be done on a pc since  
the Latex file is just ascii on any computer.

I will let you know how things turn out.  If you hear of any other  
fixes that work, I would appreciate your letting me know.

Thanks,
Ken Gilbert
On May 2, 2009, at 12:02 PM, JanR (via Nabble) wrote:

> I have the same problem. Text and equations (displayed, starting  
> with \begin) are running together in line within one paragraph,  
> sometimes several such equations. This makes the export file very  
> difficult to read by my 'Latex' coauthors, so I have to insert new  
> lines by hand to have equations properly displayed in Latex file  
> before sending it out. I have to do it repeatedly with any of my  
> new additions to a joint work. This is a real nuisance.  JanR
>
> kgilbert wrote:
> I am using LyX to produce chapters in a book.  I export each LyX  
> chapter as pdfLateX and assemble the LateX chapters.  The problem  
> is that, in the exported LateX, the text and equations are run  
> together.  I have to hand edit the LateX and put in %'s to make the  
> LateX readable.  My question is what (if anything) can be in LyX to  
> have the %'s appear in the LateX export? More generally, is there  
> any way to control the format of the exported LateX?  Thanks in  
> advance for any help you can give. Ken Gilbert
>
>
> This email is a reply to your post @ http://n2.nabble.com/export-to- 
> pdflatex-tp2111628p2771307.html
> You can reply by email or by visting the link above.
>


-- 
View this message in context: 
http://n2.nabble.com/export-to-pdflatex-tp2111628p2773530.html
Sent from the LyX - Users mailing list archive at Nabble.com.


export to pdflatex

2009-01-04 Thread kgilbert

I am using LyX to produce chapters in a book.  I export each LyX chapter as
pdfLateX and assemble the LateX chapters.  The problem is that, in the
exported LateX, the text and equations are run together.  I have to hand
edit the LateX and put in %'s to make the LateX readable.  My question is
what (if anything) can be in LyX to have the %'s appear in the LateX export?
More generally, is there any way to control the format of the exported
LateX?  Thanks in advance for any help you can give. Ken Gilbert
-- 
View this message in context: 
http://n2.nabble.com/export-to-pdflatex-tp2111628p2111628.html
Sent from the LyX - Users mailing list archive at Nabble.com.