Re: How does LyX compile to PDF?

2011-06-25 Thread Uwe Stöhr

Am 24.06.2011 21:04, schrieb Steve Litt:


The following shellscript compiles my PDF:

=
#!/bin/bash

rm -f junk.*
cp -p larry.lyx junk.lyx
lyx --export latex junk.lyx
latex junk.tex
makeindex -c -q junk.idx
latex junk.tex
dvips  junk.dvi
ps2pdf13 junk.ps
acroread junk.pdf
=


Why so complicated and not using LyX to export directly to PDF using e.g. 
pdflatex or ps2pdf?

Besides this, depending on your file, you will need up to 2 latex runs, not just 2 as in your 
script. And I recommend not to run latex + dvips + ps2pdf but just directly pdflatex.


regards Uwe


Re: Importing LaTeX file fails

2011-06-25 Thread Uwe Stöhr

Am 24.06.2011 19:02, schrieb Trevor Jenkins:


I grabbed a copy of a tutorial on the use of Constraint Grammars from here
http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/ The author
provides a LaTeX file that latex processes correctly (other than that my
system doesn't have a specific font installed). When I import this file into
LyX it screws up after a Verbatim usage; there's an earlier one that LyX
processes correctly but the second (longer one) is really screwed.


Can you please report this as bug in our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome

thanks and regards
Uwe


Re: Can't convert

2011-06-25 Thread Paul A. Rubin


On 06/24/2011 08:22 PM, William Hanson wrote:
I have a folder named MIKTEX2.7 in Program Files, so I suppose I'm 
using MiKTeX.

You are.  Pretty much everyone on Windows is.
  But I know very little about how LyX works.  Also, I don't know what 
you mean when you say, open a command prompt and run 'kpsewhich 
article.cls' .
Click Start  Run (or hold down the Windows key and hit R) and type 
'cmd', then click the button to do it (I forget what the button says, 
probably Ok or Run).  That should open a window with a DOS prompt.  
At the prompt, type 'kpsewhich article.cls' and see what happens.  Don't 
type the single quotes (') either place.


Paul



Re: Importing LaTeX file fails

2011-06-25 Thread Trevor Jenkins
On Sat, Jun 25, 2011 at 1:49 PM, Uwe Stöhr uwesto...@web.de wrote:

 Am 24.06.2011 19:02, schrieb Trevor Jenkins:


  I grabbed a copy of a tutorial on the use of Constraint Grammars from here
 http://kevindonnelly.org.uk/**2010/05/constraint-grammar-**tutorial/http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/The
  author
 provides a LaTeX file that latex processes correctly (other than that my
 system doesn't have a specific font installed). When I import this file
 into
 LyX it screws up after a Verbatim usage; there's an earlier one that LyX
 processes correctly but the second (longer one) is really screwed.


 Can you please report this as bug in our bugtracker:
 http://www.lyx.org/trac/wiki/**BugTrackerHomehttp://www.lyx.org/trac/wiki/BugTrackerHome


Done and attached a copy of the specific file that causes the problem.

Regards, Trevor.

 Re: deemed!


need suggestion on book

2011-06-25 Thread Shantanu N Kulkarni
Hi all,
I am going to write a small (100 pages) book on specific Perl topics. This
will be given as notes in my session. Can anyone please help me with these
queries?

1. I plan to make it 5x7 or 5x8 with class as memoir or koma. I want to
avoid tufte book cos I do not have many footnotes and I will waste space.
Am I right in my selection?

2. Yes, I remember this is a lyx list, but ... are there any advantages or
writing this book in plain latex instead of lyx?

Thanks.
Shantanu



Indent picture (only)

2011-06-25 Thread Dirk Heine
Dear list,

I would like to move a picture horizontally to place it more leftwards
(towards the page edge). While moving this picture I would like to leave the
text of the document unchanged and also not move the picture vertically. So
this would basically be to negatively indent one picture; i.e. to just push
it a bit to the left. Do you know any way to do this? I would be grateful
for your advice.

Many thanks,

Dirk


Re: Can't convert

2011-06-25 Thread William Hanson
Did it.  What I got was

C:\Program Files/MikTeX 2.7/tex/latex/base/article.cls

 Bill



On Sat, Jun 25, 2011 at 9:05 AM, Paul A. Rubin ru...@msu.edu wrote:


 On 06/24/2011 08:22 PM, William Hanson wrote:

 I have a folder named MIKTEX2.7 in Program Files, so I suppose I'm using
 MiKTeX.

 You are.  Pretty much everyone on Windows is.

   But I know very little about how LyX works.  Also, I don't know what you
 mean when you say, open a command prompt and run 'kpsewhich article.cls' .

 Click Start  Run (or hold down the Windows key and hit R) and type 'cmd',
 then click the button to do it (I forget what the button says, probably Ok
 or Run).  That should open a window with a DOS prompt.  At the prompt,
 type 'kpsewhich article.cls' and see what happens.  Don't type the single
 quotes (') either place.

 Paul




Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 08:46:33 you wrote:
 Am 24.06.2011 21:04, schrieb Steve Litt:
  The following shellscript compiles my PDF:
  
  =
  #!/bin/bash
  
  rm -f junk.*
  cp -p larry.lyx junk.lyx
  lyx --export latex junk.lyx
  latex junk.tex
  makeindex -c -q junk.idx
  latex junk.tex
  dvips  junk.dvi
  ps2pdf13 junk.ps
  acroread junk.pdf
  =
 
 Why so complicated and not using LyX to export directly to PDF
 using e.g. pdflatex or ps2pdf?
 
 Besides this, depending on your file, you will need up to 2 latex
 runs, not just 2 as in your script. And I recommend not to run
 latex + dvips + ps2pdf but just directly pdflatex.

Thanks Uwe,

The reason for the complication is that I do some personalization (not 
shown) within the script, that includes pdftk. Also, as much as 
possible, I want to shelter my builds, which get done every time 
someone orders a book, from any changes to LyX or my LyX 
configuration.

As far as pdflatex, it has some bad problem, as I remember, though I 
don't remember exactly what the problem is. I think it might have had 
something to do with hyperref.

But more than anything else, I just want to understand this 
discrepancy? What is the difference between LyX view-PDF (ps2pdf) and 
an equivalent script. What is the difference between File-export-
LaTeX and lyx --export pdf? Once I understand what LyX is doing under 
the covers, I can certainly do the job with my script, or your idea, 
or pretty much anything else. I just want to understand the 
discrepancy.

Thanks

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 15:47:37 Steve Litt wrote:

 But more than anything else, I just want to understand this
 discrepancy? What is the difference between LyX view-PDF (ps2pdf)
 and an equivalent script. What is the difference between
 File-export-
 
 LaTeX and lyx --export pdf? Once I understand what LyX is doing
 under
 
 the covers, I can certainly do the job with my script, or your
 idea, or pretty much anything else. I just want to understand the
 discrepancy.

I'm closing in on it. All the intermediate files used in LyX's 
internal, menu driven PDF compilation occur in 
/tmp/lyx_tmpdir.J23191/lyx_tmpbuf0 so they're free to compare and 
copy.

It turns out that using the internal compilation's .tex file, I can 
toggle the no index entry in toc symptom by either copying the 
internal .toc or not doing so. Since the .toc file is created by the 
first call to the latex executable, it's obvious that LyX internally 
calls the latex executable with different args or different 
environment variables or different config files or something like 
that. I'm going to continue trying to narrow it down.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Can't convert

2011-06-25 Thread Paul Rubin
Okay, this confirms that MiKTeX is correctly installed (still) and that 
it knows where the article class is located.  The error messages you 
were getting about the article class not being available suggested a 
problem with MiKTeX -- either a borked installation or something 
knocking it off the command path -- because the article class is 
*always* installed with an LaTeX distribution.


Regarding the configuration logs someone (Richard?) asked for, where did 
you find the ones you posted?  In particular, did you check in the local 
LyX folders?  (On XP those should be C:\Documents and Settings\your 
login id\Application Data\..., where ... is either lyx, lyx16, lyx2 or 
something like that -- sadly, I no longer have access to an XP box to 
nail down the exact name.)  In both LyX 1.6 and LyX 2.0, you can do Help 
 About LyX and look at the User directory entry (expanding ~ to 
C:\Documents and Settings\you\Application Data).  You might want to 
confirm that 1.6 and 2.0 point to different user directories, and that 
both directories exist.


Just out of curiosity, can you View  DVI any of the LyX help files?

Sorry this process is taking so long, but nothing obvious comes to mind, 
and your symptoms seem to have changed a bit along the way.  A working 
installation suddenly breaking sometimes happens when something 
unrelated to LyX screws with MiKTeX, but that does not seem to have 
happened to you.


Paul

On 06/25/2011 02:31 PM, William Hanson wrote:

Did it.  What I got was

C:\Program Files/MikTeX 2.7/tex/latex/base/article.cls

 Bill



On Sat, Jun 25, 2011 at 9:05 AM, Paul A. Rubin ru...@msu.edu 
mailto:ru...@msu.edu wrote:



On 06/24/2011 08:22 PM, William Hanson wrote:

I have a folder named MIKTEX2.7 in Program Files, so I
suppose I'm using MiKTeX.

You are.  Pretty much everyone on Windows is.

 But I know very little about how LyX works.  Also, I don't
know what you mean when you say, open a command prompt and
run 'kpsewhich article.cls' .

Click Start  Run (or hold down the Windows key and hit R) and
type 'cmd', then click the button to do it (I forget what the
button says, probably Ok or Run).  That should open a window
with a DOS prompt.  At the prompt, type 'kpsewhich article.cls'
and see what happens.  Don't type the single quotes (') either place.

Paul




Re: Indent picture (only)

2011-06-25 Thread Paul Rubin
Dirk Heine dirk at common-future.org writes:

 
 Dear list,I would like to move a picture horizontally to place it more
leftwards (towards the page edge). While moving this picture I would like to
leave the text of the document unchanged and also not move the picture
vertically. So this would basically be to negatively indent one picture; i.e. to
just push it a bit to the left.

Is the picture in a float?  If so, is it a wrap float (i.e., does text flow
around the right side of the picture)?

Do you want the left edge of the picture even with the left text margin, just
inside the margin, or outside margin (i.e., picture intrudes into left margin)?

Paul



Re: need suggestion on book

2011-06-25 Thread Marcelo Acuña
 2. Yes, I remember this is a lyx list, but ... are there
 any advantages or
 writing this book in plain latex instead of lyx?

 If you work in plain latex, while you write it,  you get a text pestered with 
commands. That makes difficult the work to write up and to correct the text.

Marcelo


Re: How does LyX compile to PDF? MOSTLY SOLVED

2011-06-25 Thread Steve Litt
Most of the solution was that I ran the latex command too few times -- 
two instead of three (or maybe more). If someone writes the list with 
evidence that a LyX-internal compile acts differently than a sequence 
of equivalent commands, ask him to run latex a couple more times at 
the end. It doesn't take much time, and it just might work.

More comments within the email...

On Saturday 25 June 2011 15:47:37 Steve Litt wrote:
 On Saturday 25 June 2011 08:46:33 you wrote:
  Am 24.06.2011 21:04, schrieb Steve Litt:
   The following shellscript compiles my PDF:
   
   =
   #!/bin/bash
   
   rm -f junk.*
   cp -p larry.lyx junk.lyx
   lyx --export latex junk.lyx
   latex junk.tex
   makeindex -c -q junk.idx
   latex junk.tex
   dvips  junk.dvi
   ps2pdf13 junk.ps
   acroread junk.pdf
   =
  
  Why so complicated and not using LyX to export directly to PDF
  using e.g. pdflatex or ps2pdf?
  
  Besides this, depending on your file, you will need up to 2 latex
  runs, not just 2 as in your script. And I recommend not to run
  latex + dvips + ps2pdf but just directly pdflatex.

Uwe -- I didn't know what you meant by this, and not knowing cost me a 
day as I found out for myself. I'm pretty sure you meant two latex 
runs AFTER the call to makeindex. That was the piece I was missing.

The situation was enormously complicated by so many factors that it 
almost looked like an intermittent. What finally put me in the right 
direction was that sometimes internal compiles would work just fine 
until I externally compiled and then they'd break. Or sometimes 
externals would compile right until a substantial change was made, and 
then they'd compile wrong even if that change was backed out.

Complicating all of this was the fact that it depended on where the 
text happened to page break.

I had two symptoms, which I've now seen enough to be able to describe:

1) The page numbers reported by Acrobat Reader did not match the page 
numbers on the pages. In fact, often times after the first or second 
page of the table of contents, Acrobat Reader would report a TOC page 
as page 1, as if the call to \mainmatter had been right in the middle 
of the table of contents.

2) The index was not included in the table of contents.

Both symptoms seemed to appear only with my script, and not with in-
LyX compiles. When script-compiled, both symptoms seemed intermittent, 
and seemed to depend on where the text naturally page-broke. No 
combination of \vfill and \clearpage or \pagebreak or \newpage could 
simulate the corrective action of the page happening to break just 
right.

THE SOLUTION:

Component 1: 3 calls to latex:

I finally called latex, then makeindex, then latex twice. Doing this 
seemed to eliminate most of the perceived intermittence and tended to 
make my script compile to the same result as lyx-internal compiles.

Component 2: Put \pagebreak right before the TOC, and \mainmatter 
right after.

This made TOC pagination correct.

Component 3: LyX clearpage, then \phantomsection, then the LyX index

This made the index show up. The \phantompage made the TOC entry go to 
the beginning of the index instead of the beginning of the section 
before it.

LESSONS LEARNED:

When anyone asks why a compilation script works differently than the 
LyX internal compile, or when they complain of Acroread's page 
numbering not matching the page numbers in the book, immediately 
suggest they add two or three calls to latex immediately after their 
last one. Also, they must put calls to latex between anything that 
gathers data for tables or indexes.

Early use of extra calls to latex can save over a day of 
troubleshooting. As a practical matter, once everything is said and 
done they can probably back out many of the extra calls to latex. I 
needed only three in the finished script.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: need suggestion on book

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
  2. Yes, I remember this is a lyx list, but ... are there
  any advantages or
  writing this book in plain latex instead of lyx?
 
  If you work in plain latex, while you write it,  you get a text
 pestered with commands. That makes difficult the work to write up
 and to correct the text.
 
 Marcelo

I couldn't have said it better myself. And because of what Marcelo 
said, I find LyX is a MUCH faster authoring environment than anything 
in which I need to see markup.

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: need suggestion on book

2011-06-25 Thread Liviu Andronic
On Sun, Jun 26, 2011 at 1:52 AM, Steve Litt sl...@troubleshooters.com wrote:
 On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
  2. Yes, I remember this is a lyx list, but ... are there
  any advantages or
  writing this book in plain latex instead of lyx?

  If you work in plain latex, while you write it,  you get a text
 pestered with commands. That makes difficult the work to write up
 and to correct the text.

 Marcelo

 I couldn't have said it better myself. And because of what Marcelo
 said, I find LyX is a MUCH faster authoring environment than anything
 in which I need to see markup.

As much as I agree with this, the one drawback of LyX is that you have
to put up with its bugs. The big advantage of using LaTeX is its
reliability: as long as you know exactly what you do, you only need a
robust text editor (or another, or yet another one) to do the job. LyX
on the other hand can throw surprises from time to time.

This said, LyX is generally rock-solid. Cheers
Liviu


Re: need suggestion on book

2011-06-25 Thread Alan L Tyree
On Sun, 26 Jun 2011 04:09:36 +0200
Liviu Andronic landronim...@gmail.com wrote:

 On Sun, Jun 26, 2011 at 1:52 AM, Steve Litt
 sl...@troubleshooters.com wrote:
  On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
   2. Yes, I remember this is a lyx list, but ... are there
   any advantages or
   writing this book in plain latex instead of lyx?
 
   If you work in plain latex, while you write it,  you get a text
  pestered with commands. That makes difficult the work to write up
  and to correct the text.
 
  Marcelo
 
  I couldn't have said it better myself. And because of what Marcelo
  said, I find LyX is a MUCH faster authoring environment than
  anything in which I need to see markup.
 
 As much as I agree with this, the one drawback of LyX is that you have
 to put up with its bugs. The big advantage of using LaTeX is its
 reliability: as long as you know exactly what you do, you only need a
 robust text editor (or another, or yet another one) to do the job. LyX
 on the other hand can throw surprises from time to time.
 
 This said, LyX is generally rock-solid. Cheers

I agree also, but I have an old very large project with lots of custom
macros that simply won't translate well into LyX. I use emacs + auctex
+ reftex and find it very good. Auctex supplies a folding mode that
allows you to hide most of the markup (actually, as much or as little
as you want). Not quite a slick as LyX, but not far behind either.

It is a viable alternative.

Cheers,
Alan

 Liviu


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



lyx and texlive on windows?

2011-06-25 Thread Liviu Andronic
Dear all
Is there a reason for not offering a choice between MikTeX and TeX
Live on the Windows installer? I've got very used to TeX Live on Linux
and I'd like to use it for Windows, too. I'm specifically missing the
'getnonfreefonts' utility.

Is following the wiki instructions [1] a good idea? Are there any
drawbacks in using TeX Live instead of MikTeX on Windows? Cheers
Liviu

[1] http://wiki.lyx.org/Glossary/TeXLive


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: How does LyX compile to PDF?

2011-06-25 Thread Uwe Stöhr

Am 24.06.2011 21:04, schrieb Steve Litt:


The following shellscript compiles my PDF:

=
#!/bin/bash

rm -f junk.*
cp -p larry.lyx junk.lyx
lyx --export latex junk.lyx
latex junk.tex
makeindex -c -q junk.idx
latex junk.tex
dvips  junk.dvi
ps2pdf13 junk.ps
acroread junk.pdf
=


Why so complicated and not using LyX to export directly to PDF using e.g. 
pdflatex or ps2pdf?

Besides this, depending on your file, you will need up to 2 latex runs, not just 2 as in your 
script. And I recommend not to run latex + dvips + ps2pdf but just directly pdflatex.


regards Uwe


Re: Importing LaTeX file fails

2011-06-25 Thread Uwe Stöhr

Am 24.06.2011 19:02, schrieb Trevor Jenkins:


I grabbed a copy of a tutorial on the use of Constraint Grammars from here
http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/ The author
provides a LaTeX file that latex processes correctly (other than that my
system doesn't have a specific font installed). When I import this file into
LyX it screws up after a Verbatim usage; there's an earlier one that LyX
processes correctly but the second (longer one) is really screwed.


Can you please report this as bug in our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome

thanks and regards
Uwe


Re: Can't convert

2011-06-25 Thread Paul A. Rubin


On 06/24/2011 08:22 PM, William Hanson wrote:
I have a folder named MIKTEX2.7 in Program Files, so I suppose I'm 
using MiKTeX.

You are.  Pretty much everyone on Windows is.
  But I know very little about how LyX works.  Also, I don't know what 
you mean when you say, open a command prompt and run 'kpsewhich 
article.cls' .
Click Start  Run (or hold down the Windows key and hit R) and type 
'cmd', then click the button to do it (I forget what the button says, 
probably Ok or Run).  That should open a window with a DOS prompt.  
At the prompt, type 'kpsewhich article.cls' and see what happens.  Don't 
type the single quotes (') either place.


Paul



Re: Importing LaTeX file fails

2011-06-25 Thread Trevor Jenkins
On Sat, Jun 25, 2011 at 1:49 PM, Uwe Stöhr uwesto...@web.de wrote:

 Am 24.06.2011 19:02, schrieb Trevor Jenkins:


  I grabbed a copy of a tutorial on the use of Constraint Grammars from here
 http://kevindonnelly.org.uk/**2010/05/constraint-grammar-**tutorial/http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/The
  author
 provides a LaTeX file that latex processes correctly (other than that my
 system doesn't have a specific font installed). When I import this file
 into
 LyX it screws up after a Verbatim usage; there's an earlier one that LyX
 processes correctly but the second (longer one) is really screwed.


 Can you please report this as bug in our bugtracker:
 http://www.lyx.org/trac/wiki/**BugTrackerHomehttp://www.lyx.org/trac/wiki/BugTrackerHome


Done and attached a copy of the specific file that causes the problem.

Regards, Trevor.

 Re: deemed!


need suggestion on book

2011-06-25 Thread Shantanu N Kulkarni
Hi all,
I am going to write a small (100 pages) book on specific Perl topics. This
will be given as notes in my session. Can anyone please help me with these
queries?

1. I plan to make it 5x7 or 5x8 with class as memoir or koma. I want to
avoid tufte book cos I do not have many footnotes and I will waste space.
Am I right in my selection?

2. Yes, I remember this is a lyx list, but ... are there any advantages or
writing this book in plain latex instead of lyx?

Thanks.
Shantanu



Indent picture (only)

2011-06-25 Thread Dirk Heine
Dear list,

I would like to move a picture horizontally to place it more leftwards
(towards the page edge). While moving this picture I would like to leave the
text of the document unchanged and also not move the picture vertically. So
this would basically be to negatively indent one picture; i.e. to just push
it a bit to the left. Do you know any way to do this? I would be grateful
for your advice.

Many thanks,

Dirk


Re: Can't convert

2011-06-25 Thread William Hanson
Did it.  What I got was

C:\Program Files/MikTeX 2.7/tex/latex/base/article.cls

 Bill



On Sat, Jun 25, 2011 at 9:05 AM, Paul A. Rubin ru...@msu.edu wrote:


 On 06/24/2011 08:22 PM, William Hanson wrote:

 I have a folder named MIKTEX2.7 in Program Files, so I suppose I'm using
 MiKTeX.

 You are.  Pretty much everyone on Windows is.

   But I know very little about how LyX works.  Also, I don't know what you
 mean when you say, open a command prompt and run 'kpsewhich article.cls' .

 Click Start  Run (or hold down the Windows key and hit R) and type 'cmd',
 then click the button to do it (I forget what the button says, probably Ok
 or Run).  That should open a window with a DOS prompt.  At the prompt,
 type 'kpsewhich article.cls' and see what happens.  Don't type the single
 quotes (') either place.

 Paul




Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 08:46:33 you wrote:
 Am 24.06.2011 21:04, schrieb Steve Litt:
  The following shellscript compiles my PDF:
  
  =
  #!/bin/bash
  
  rm -f junk.*
  cp -p larry.lyx junk.lyx
  lyx --export latex junk.lyx
  latex junk.tex
  makeindex -c -q junk.idx
  latex junk.tex
  dvips  junk.dvi
  ps2pdf13 junk.ps
  acroread junk.pdf
  =
 
 Why so complicated and not using LyX to export directly to PDF
 using e.g. pdflatex or ps2pdf?
 
 Besides this, depending on your file, you will need up to 2 latex
 runs, not just 2 as in your script. And I recommend not to run
 latex + dvips + ps2pdf but just directly pdflatex.

Thanks Uwe,

The reason for the complication is that I do some personalization (not 
shown) within the script, that includes pdftk. Also, as much as 
possible, I want to shelter my builds, which get done every time 
someone orders a book, from any changes to LyX or my LyX 
configuration.

As far as pdflatex, it has some bad problem, as I remember, though I 
don't remember exactly what the problem is. I think it might have had 
something to do with hyperref.

But more than anything else, I just want to understand this 
discrepancy? What is the difference between LyX view-PDF (ps2pdf) and 
an equivalent script. What is the difference between File-export-
LaTeX and lyx --export pdf? Once I understand what LyX is doing under 
the covers, I can certainly do the job with my script, or your idea, 
or pretty much anything else. I just want to understand the 
discrepancy.

Thanks

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 15:47:37 Steve Litt wrote:

 But more than anything else, I just want to understand this
 discrepancy? What is the difference between LyX view-PDF (ps2pdf)
 and an equivalent script. What is the difference between
 File-export-
 
 LaTeX and lyx --export pdf? Once I understand what LyX is doing
 under
 
 the covers, I can certainly do the job with my script, or your
 idea, or pretty much anything else. I just want to understand the
 discrepancy.

I'm closing in on it. All the intermediate files used in LyX's 
internal, menu driven PDF compilation occur in 
/tmp/lyx_tmpdir.J23191/lyx_tmpbuf0 so they're free to compare and 
copy.

It turns out that using the internal compilation's .tex file, I can 
toggle the no index entry in toc symptom by either copying the 
internal .toc or not doing so. Since the .toc file is created by the 
first call to the latex executable, it's obvious that LyX internally 
calls the latex executable with different args or different 
environment variables or different config files or something like 
that. I'm going to continue trying to narrow it down.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Can't convert

2011-06-25 Thread Paul Rubin
Okay, this confirms that MiKTeX is correctly installed (still) and that 
it knows where the article class is located.  The error messages you 
were getting about the article class not being available suggested a 
problem with MiKTeX -- either a borked installation or something 
knocking it off the command path -- because the article class is 
*always* installed with an LaTeX distribution.


Regarding the configuration logs someone (Richard?) asked for, where did 
you find the ones you posted?  In particular, did you check in the local 
LyX folders?  (On XP those should be C:\Documents and Settings\your 
login id\Application Data\..., where ... is either lyx, lyx16, lyx2 or 
something like that -- sadly, I no longer have access to an XP box to 
nail down the exact name.)  In both LyX 1.6 and LyX 2.0, you can do Help 
 About LyX and look at the User directory entry (expanding ~ to 
C:\Documents and Settings\you\Application Data).  You might want to 
confirm that 1.6 and 2.0 point to different user directories, and that 
both directories exist.


Just out of curiosity, can you View  DVI any of the LyX help files?

Sorry this process is taking so long, but nothing obvious comes to mind, 
and your symptoms seem to have changed a bit along the way.  A working 
installation suddenly breaking sometimes happens when something 
unrelated to LyX screws with MiKTeX, but that does not seem to have 
happened to you.


Paul

On 06/25/2011 02:31 PM, William Hanson wrote:

Did it.  What I got was

C:\Program Files/MikTeX 2.7/tex/latex/base/article.cls

 Bill



On Sat, Jun 25, 2011 at 9:05 AM, Paul A. Rubin ru...@msu.edu 
mailto:ru...@msu.edu wrote:



On 06/24/2011 08:22 PM, William Hanson wrote:

I have a folder named MIKTEX2.7 in Program Files, so I
suppose I'm using MiKTeX.

You are.  Pretty much everyone on Windows is.

 But I know very little about how LyX works.  Also, I don't
know what you mean when you say, open a command prompt and
run 'kpsewhich article.cls' .

Click Start  Run (or hold down the Windows key and hit R) and
type 'cmd', then click the button to do it (I forget what the
button says, probably Ok or Run).  That should open a window
with a DOS prompt.  At the prompt, type 'kpsewhich article.cls'
and see what happens.  Don't type the single quotes (') either place.

Paul




Re: Indent picture (only)

2011-06-25 Thread Paul Rubin
Dirk Heine dirk at common-future.org writes:

 
 Dear list,I would like to move a picture horizontally to place it more
leftwards (towards the page edge). While moving this picture I would like to
leave the text of the document unchanged and also not move the picture
vertically. So this would basically be to negatively indent one picture; i.e. to
just push it a bit to the left.

Is the picture in a float?  If so, is it a wrap float (i.e., does text flow
around the right side of the picture)?

Do you want the left edge of the picture even with the left text margin, just
inside the margin, or outside margin (i.e., picture intrudes into left margin)?

Paul



Re: need suggestion on book

2011-06-25 Thread Marcelo Acuña
 2. Yes, I remember this is a lyx list, but ... are there
 any advantages or
 writing this book in plain latex instead of lyx?

 If you work in plain latex, while you write it,  you get a text pestered with 
commands. That makes difficult the work to write up and to correct the text.

Marcelo


Re: How does LyX compile to PDF? MOSTLY SOLVED

2011-06-25 Thread Steve Litt
Most of the solution was that I ran the latex command too few times -- 
two instead of three (or maybe more). If someone writes the list with 
evidence that a LyX-internal compile acts differently than a sequence 
of equivalent commands, ask him to run latex a couple more times at 
the end. It doesn't take much time, and it just might work.

More comments within the email...

On Saturday 25 June 2011 15:47:37 Steve Litt wrote:
 On Saturday 25 June 2011 08:46:33 you wrote:
  Am 24.06.2011 21:04, schrieb Steve Litt:
   The following shellscript compiles my PDF:
   
   =
   #!/bin/bash
   
   rm -f junk.*
   cp -p larry.lyx junk.lyx
   lyx --export latex junk.lyx
   latex junk.tex
   makeindex -c -q junk.idx
   latex junk.tex
   dvips  junk.dvi
   ps2pdf13 junk.ps
   acroread junk.pdf
   =
  
  Why so complicated and not using LyX to export directly to PDF
  using e.g. pdflatex or ps2pdf?
  
  Besides this, depending on your file, you will need up to 2 latex
  runs, not just 2 as in your script. And I recommend not to run
  latex + dvips + ps2pdf but just directly pdflatex.

Uwe -- I didn't know what you meant by this, and not knowing cost me a 
day as I found out for myself. I'm pretty sure you meant two latex 
runs AFTER the call to makeindex. That was the piece I was missing.

The situation was enormously complicated by so many factors that it 
almost looked like an intermittent. What finally put me in the right 
direction was that sometimes internal compiles would work just fine 
until I externally compiled and then they'd break. Or sometimes 
externals would compile right until a substantial change was made, and 
then they'd compile wrong even if that change was backed out.

Complicating all of this was the fact that it depended on where the 
text happened to page break.

I had two symptoms, which I've now seen enough to be able to describe:

1) The page numbers reported by Acrobat Reader did not match the page 
numbers on the pages. In fact, often times after the first or second 
page of the table of contents, Acrobat Reader would report a TOC page 
as page 1, as if the call to \mainmatter had been right in the middle 
of the table of contents.

2) The index was not included in the table of contents.

Both symptoms seemed to appear only with my script, and not with in-
LyX compiles. When script-compiled, both symptoms seemed intermittent, 
and seemed to depend on where the text naturally page-broke. No 
combination of \vfill and \clearpage or \pagebreak or \newpage could 
simulate the corrective action of the page happening to break just 
right.

THE SOLUTION:

Component 1: 3 calls to latex:

I finally called latex, then makeindex, then latex twice. Doing this 
seemed to eliminate most of the perceived intermittence and tended to 
make my script compile to the same result as lyx-internal compiles.

Component 2: Put \pagebreak right before the TOC, and \mainmatter 
right after.

This made TOC pagination correct.

Component 3: LyX clearpage, then \phantomsection, then the LyX index

This made the index show up. The \phantompage made the TOC entry go to 
the beginning of the index instead of the beginning of the section 
before it.

LESSONS LEARNED:

When anyone asks why a compilation script works differently than the 
LyX internal compile, or when they complain of Acroread's page 
numbering not matching the page numbers in the book, immediately 
suggest they add two or three calls to latex immediately after their 
last one. Also, they must put calls to latex between anything that 
gathers data for tables or indexes.

Early use of extra calls to latex can save over a day of 
troubleshooting. As a practical matter, once everything is said and 
done they can probably back out many of the extra calls to latex. I 
needed only three in the finished script.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: need suggestion on book

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
  2. Yes, I remember this is a lyx list, but ... are there
  any advantages or
  writing this book in plain latex instead of lyx?
 
  If you work in plain latex, while you write it,  you get a text
 pestered with commands. That makes difficult the work to write up
 and to correct the text.
 
 Marcelo

I couldn't have said it better myself. And because of what Marcelo 
said, I find LyX is a MUCH faster authoring environment than anything 
in which I need to see markup.

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: need suggestion on book

2011-06-25 Thread Liviu Andronic
On Sun, Jun 26, 2011 at 1:52 AM, Steve Litt sl...@troubleshooters.com wrote:
 On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
  2. Yes, I remember this is a lyx list, but ... are there
  any advantages or
  writing this book in plain latex instead of lyx?

  If you work in plain latex, while you write it,  you get a text
 pestered with commands. That makes difficult the work to write up
 and to correct the text.

 Marcelo

 I couldn't have said it better myself. And because of what Marcelo
 said, I find LyX is a MUCH faster authoring environment than anything
 in which I need to see markup.

As much as I agree with this, the one drawback of LyX is that you have
to put up with its bugs. The big advantage of using LaTeX is its
reliability: as long as you know exactly what you do, you only need a
robust text editor (or another, or yet another one) to do the job. LyX
on the other hand can throw surprises from time to time.

This said, LyX is generally rock-solid. Cheers
Liviu


Re: need suggestion on book

2011-06-25 Thread Alan L Tyree
On Sun, 26 Jun 2011 04:09:36 +0200
Liviu Andronic landronim...@gmail.com wrote:

 On Sun, Jun 26, 2011 at 1:52 AM, Steve Litt
 sl...@troubleshooters.com wrote:
  On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
   2. Yes, I remember this is a lyx list, but ... are there
   any advantages or
   writing this book in plain latex instead of lyx?
 
   If you work in plain latex, while you write it,  you get a text
  pestered with commands. That makes difficult the work to write up
  and to correct the text.
 
  Marcelo
 
  I couldn't have said it better myself. And because of what Marcelo
  said, I find LyX is a MUCH faster authoring environment than
  anything in which I need to see markup.
 
 As much as I agree with this, the one drawback of LyX is that you have
 to put up with its bugs. The big advantage of using LaTeX is its
 reliability: as long as you know exactly what you do, you only need a
 robust text editor (or another, or yet another one) to do the job. LyX
 on the other hand can throw surprises from time to time.
 
 This said, LyX is generally rock-solid. Cheers

I agree also, but I have an old very large project with lots of custom
macros that simply won't translate well into LyX. I use emacs + auctex
+ reftex and find it very good. Auctex supplies a folding mode that
allows you to hide most of the markup (actually, as much or as little
as you want). Not quite a slick as LyX, but not far behind either.

It is a viable alternative.

Cheers,
Alan

 Liviu


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



lyx and texlive on windows?

2011-06-25 Thread Liviu Andronic
Dear all
Is there a reason for not offering a choice between MikTeX and TeX
Live on the Windows installer? I've got very used to TeX Live on Linux
and I'd like to use it for Windows, too. I'm specifically missing the
'getnonfreefonts' utility.

Is following the wiki instructions [1] a good idea? Are there any
drawbacks in using TeX Live instead of MikTeX on Windows? Cheers
Liviu

[1] http://wiki.lyx.org/Glossary/TeXLive


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: How does LyX compile to PDF?

2011-06-25 Thread Uwe Stöhr

Am 24.06.2011 21:04, schrieb Steve Litt:


The following shellscript compiles my PDF:

=
#!/bin/bash

rm -f junk.*
cp -p larry.lyx junk.lyx
lyx --export latex junk.lyx
latex junk.tex
makeindex -c -q junk.idx
latex junk.tex
dvips  junk.dvi
ps2pdf13 junk.ps
acroread junk.pdf
=


Why so complicated and not using LyX to export directly to PDF using e.g. 
pdflatex or ps2pdf?

Besides this, depending on your file, you will need up to 2 latex runs, not just 2 as in your 
script. And I recommend not to run latex + dvips + ps2pdf but just directly pdflatex.


regards Uwe


Re: Importing LaTeX file fails

2011-06-25 Thread Uwe Stöhr

Am 24.06.2011 19:02, schrieb Trevor Jenkins:


I grabbed a copy of a tutorial on the use of Constraint Grammars from here
http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/ The author
provides a LaTeX file that latex processes correctly (other than that my
system doesn't have a specific font installed). When I import this file into
LyX it screws up after a Verbatim usage; there's an earlier one that LyX
processes correctly but the second (longer one) is really screwed.


Can you please report this as bug in our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome

thanks and regards
Uwe


Re: Can't convert

2011-06-25 Thread Paul A. Rubin


On 06/24/2011 08:22 PM, William Hanson wrote:
I have a folder named "MIKTEX2.7 in Program Files, so I suppose I'm 
using MiKTeX.

You are.  Pretty much everyone on Windows is.
  But I know very little about how LyX works.  Also, I don't know what 
you mean when you say, "open a command prompt and run 'kpsewhich 
article.cls' ".
Click Start > Run (or hold down the Windows key and hit R) and type 
'cmd', then click the button to do it (I forget what the button says, 
probably "Ok" or "Run").  That should open a window with a DOS prompt.  
At the prompt, type 'kpsewhich article.cls' and see what happens.  Don't 
type the single quotes (') either place.


Paul



Re: Importing LaTeX file fails

2011-06-25 Thread Trevor Jenkins
On Sat, Jun 25, 2011 at 1:49 PM, Uwe Stöhr  wrote:

> Am 24.06.2011 19:02, schrieb Trevor Jenkins:
>
>
>  I grabbed a copy of a tutorial on the use of Constraint Grammars from here
>> http://kevindonnelly.org.uk/**2010/05/constraint-grammar-**tutorial/The
>>  author
>> provides a LaTeX file that latex processes correctly (other than that my
>> system doesn't have a specific font installed). When I import this file
>> into
>> LyX it screws up after a Verbatim usage; there's an earlier one that LyX
>> processes correctly but the second (longer one) is really screwed.
>>
>
> Can you please report this as bug in our bugtracker:
> http://www.lyx.org/trac/wiki/**BugTrackerHome
>

Done and attached a copy of the specific file that causes the problem.

Regards, Trevor.

<>< Re: deemed!


need suggestion on book

2011-06-25 Thread Shantanu N Kulkarni
Hi all,
I am going to write a small (100 pages) book on specific Perl topics. This
will be given as notes in my session. Can anyone please help me with these
queries?

1. I plan to make it 5x7 or 5x8 with class as memoir or koma. I want to
avoid tufte book cos I do not have many footnotes and I will waste space.
Am I right in my selection?

2. Yes, I remember this is a lyx list, but ... are there any advantages or
writing this book in plain latex instead of lyx?

Thanks.
Shantanu



Indent picture (only)

2011-06-25 Thread Dirk Heine
Dear list,

I would like to move a picture horizontally to place it more leftwards
(towards the page edge). While moving this picture I would like to leave the
text of the document unchanged and also not move the picture vertically. So
this would basically be to negatively indent one picture; i.e. to just push
it a bit to the left. Do you know any way to do this? I would be grateful
for your advice.

Many thanks,

Dirk


Re: Can't convert

2011-06-25 Thread William Hanson
Did it.  What I got was

C:\Program Files/MikTeX 2.7/tex/latex/base/article.cls

 Bill



On Sat, Jun 25, 2011 at 9:05 AM, Paul A. Rubin  wrote:

>
> On 06/24/2011 08:22 PM, William Hanson wrote:
>
>> I have a folder named "MIKTEX2.7 in Program Files, so I suppose I'm using
>> MiKTeX.
>>
> You are.  Pretty much everyone on Windows is.
>
>   But I know very little about how LyX works.  Also, I don't know what you
>> mean when you say, "open a command prompt and run 'kpsewhich article.cls' ".
>>
> Click Start > Run (or hold down the Windows key and hit R) and type 'cmd',
> then click the button to do it (I forget what the button says, probably "Ok"
> or "Run").  That should open a window with a DOS prompt.  At the prompt,
> type 'kpsewhich article.cls' and see what happens.  Don't type the single
> quotes (') either place.
>
> Paul
>
>


Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 08:46:33 you wrote:
> Am 24.06.2011 21:04, schrieb Steve Litt:
> > The following shellscript compiles my PDF:
> > 
> > =
> > #!/bin/bash
> > 
> > rm -f junk.*
> > cp -p larry.lyx junk.lyx
> > lyx --export latex junk.lyx
> > latex junk.tex
> > makeindex -c -q junk.idx
> > latex junk.tex
> > dvips  junk.dvi
> > ps2pdf13 junk.ps
> > acroread junk.pdf
> > =
> 
> Why so complicated and not using LyX to export directly to PDF
> using e.g. pdflatex or ps2pdf?
> 
> Besides this, depending on your file, you will need up to 2 latex
> runs, not just 2 as in your script. And I recommend not to run
> latex + dvips + ps2pdf but just directly pdflatex.

Thanks Uwe,

The reason for the complication is that I do some personalization (not 
shown) within the script, that includes pdftk. Also, as much as 
possible, I want to shelter my builds, which get done every time 
someone orders a book, from any changes to LyX or my LyX 
configuration.

As far as pdflatex, it has some bad problem, as I remember, though I 
don't remember exactly what the problem is. I think it might have had 
something to do with hyperref.

But more than anything else, I just want to understand this 
discrepancy? What is the difference between LyX view->PDF (ps2pdf) and 
an equivalent script. What is the difference between File->export-
>LaTeX and lyx --export pdf? Once I understand what LyX is doing under 
the covers, I can certainly do the job with my script, or your idea, 
or pretty much anything else. I just want to understand the 
discrepancy.

Thanks

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 15:47:37 Steve Litt wrote:

> But more than anything else, I just want to understand this
> discrepancy? What is the difference between LyX view->PDF (ps2pdf)
> and an equivalent script. What is the difference between
> File->export-
> 
> >LaTeX and lyx --export pdf? Once I understand what LyX is doing
> >under
> 
> the covers, I can certainly do the job with my script, or your
> idea, or pretty much anything else. I just want to understand the
> discrepancy.

I'm closing in on it. All the intermediate files used in LyX's 
internal, menu driven PDF compilation occur in 
/tmp/lyx_tmpdir.J23191/lyx_tmpbuf0 so they're free to compare and 
copy.

It turns out that using the internal compilation's .tex file, I can 
toggle the "no index entry in toc" symptom by either copying the 
internal .toc or not doing so. Since the .toc file is created by the 
first call to the latex executable, it's obvious that LyX internally 
calls the latex executable with different args or different 
environment variables or different config files or something like 
that. I'm going to continue trying to narrow it down.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Can't convert

2011-06-25 Thread Paul Rubin
Okay, this confirms that MiKTeX is correctly installed (still) and that 
it knows where the article class is located.  The error messages you 
were getting about the article class not being available suggested a 
problem with MiKTeX -- either a borked installation or something 
knocking it off the command path -- because the article class is 
*always* installed with an LaTeX distribution.


Regarding the configuration logs someone (Richard?) asked for, where did 
you find the ones you posted?  In particular, did you check in the local 
LyX folders?  (On XP those should be C:\Documents and Settings\login id>\Application Data\..., where ... is either lyx, lyx16, lyx2 or 
something like that -- sadly, I no longer have access to an XP box to 
nail down the exact name.)  In both LyX 1.6 and LyX 2.0, you can do Help 
> About LyX and look at the "User directory" entry (expanding ~ to 
C:\Documents and Settings\\Application Data).  You might want to 
confirm that 1.6 and 2.0 point to different user directories, and that 
both directories exist.


Just out of curiosity, can you View > DVI any of the LyX help files?

Sorry this process is taking so long, but nothing obvious comes to mind, 
and your symptoms seem to have changed a bit along the way.  A working 
installation suddenly breaking sometimes happens when something 
unrelated to LyX screws with MiKTeX, but that does not seem to have 
happened to you.


Paul

On 06/25/2011 02:31 PM, William Hanson wrote:

Did it.  What I got was

C:\Program Files/MikTeX 2.7/tex/latex/base/article.cls

 Bill



On Sat, Jun 25, 2011 at 9:05 AM, Paul A. Rubin > wrote:



On 06/24/2011 08:22 PM, William Hanson wrote:

I have a folder named "MIKTEX2.7 in Program Files, so I
suppose I'm using MiKTeX.

You are.  Pretty much everyone on Windows is.

 But I know very little about how LyX works.  Also, I don't
know what you mean when you say, "open a command prompt and
run 'kpsewhich article.cls' ".

Click Start > Run (or hold down the Windows key and hit R) and
type 'cmd', then click the button to do it (I forget what the
button says, probably "Ok" or "Run").  That should open a window
with a DOS prompt.  At the prompt, type 'kpsewhich article.cls'
and see what happens.  Don't type the single quotes (') either place.

Paul




Re: Indent picture (only)

2011-06-25 Thread Paul Rubin
Dirk Heine  common-future.org> writes:

> 
> Dear list,I would like to move a picture horizontally to place it more
leftwards (towards the page edge). While moving this picture I would like to
leave the text of the document unchanged and also not move the picture
vertically. So this would basically be to negatively indent one picture; i.e. to
just push it a bit to the left.

Is the picture in a float?  If so, is it a wrap float (i.e., does text flow
around the right side of the picture)?

Do you want the left edge of the picture even with the left text margin, just
inside the margin, or outside margin (i.e., picture intrudes into left margin)?

Paul



Re: need suggestion on book

2011-06-25 Thread Marcelo Acuña
> 2. Yes, I remember this is a lyx list, but ... are there
> any advantages or
> writing this book in plain latex instead of lyx?

 If you work in plain latex, while you write it,  you get a text pestered with 
commands. That makes difficult the work to write up and to correct the text.

Marcelo


Re: How does LyX compile to PDF?

2011-06-25 Thread Steve Litt
Most of the solution was that I ran the latex command too few times -- 
two instead of three (or maybe more). If someone writes the list with 
evidence that a LyX-internal compile acts differently than a sequence 
of equivalent commands, ask him to run latex a couple more times at 
the end. It doesn't take much time, and it just might work.

More comments within the email...

On Saturday 25 June 2011 15:47:37 Steve Litt wrote:
> On Saturday 25 June 2011 08:46:33 you wrote:
> > Am 24.06.2011 21:04, schrieb Steve Litt:
> > > The following shellscript compiles my PDF:
> > > 
> > > =
> > > #!/bin/bash
> > > 
> > > rm -f junk.*
> > > cp -p larry.lyx junk.lyx
> > > lyx --export latex junk.lyx
> > > latex junk.tex
> > > makeindex -c -q junk.idx
> > > latex junk.tex
> > > dvips  junk.dvi
> > > ps2pdf13 junk.ps
> > > acroread junk.pdf
> > > =
> > 
> > Why so complicated and not using LyX to export directly to PDF
> > using e.g. pdflatex or ps2pdf?
> > 
> > Besides this, depending on your file, you will need up to 2 latex
> > runs, not just 2 as in your script. And I recommend not to run
> > latex + dvips + ps2pdf but just directly pdflatex.

Uwe -- I didn't know what you meant by this, and not knowing cost me a 
day as I found out for myself. I'm pretty sure you meant two latex 
runs AFTER the call to makeindex. That was the piece I was missing.

The situation was enormously complicated by so many factors that it 
almost looked like an intermittent. What finally put me in the right 
direction was that sometimes internal compiles would work just fine 
until I externally compiled and then they'd break. Or sometimes 
externals would compile right until a substantial change was made, and 
then they'd compile wrong even if that change was backed out.

Complicating all of this was the fact that it depended on where the 
text happened to page break.

I had two symptoms, which I've now seen enough to be able to describe:

1) The page numbers reported by Acrobat Reader did not match the page 
numbers on the pages. In fact, often times after the first or second 
page of the table of contents, Acrobat Reader would report a TOC page 
as page 1, as if the call to \mainmatter had been right in the middle 
of the table of contents.

2) The index was not included in the table of contents.

Both symptoms seemed to appear only with my script, and not with in-
LyX compiles. When script-compiled, both symptoms seemed intermittent, 
and seemed to depend on where the text naturally page-broke. No 
combination of \vfill and \clearpage or \pagebreak or \newpage could 
simulate the corrective action of the page happening to break just 
right.

THE SOLUTION:

Component 1: 3 calls to latex:

I finally called latex, then makeindex, then latex twice. Doing this 
seemed to eliminate most of the perceived intermittence and tended to 
make my script compile to the same result as lyx-internal compiles.

Component 2: Put \pagebreak right before the TOC, and \mainmatter 
right after.

This made TOC pagination correct.

Component 3: LyX clearpage, then \phantomsection, then the LyX index

This made the index show up. The \phantompage made the TOC entry go to 
the beginning of the index instead of the beginning of the section 
before it.

LESSONS LEARNED:

When anyone asks why a compilation script works differently than the 
LyX internal compile, or when they complain of Acroread's page 
numbering not matching the page numbers in the book, immediately 
suggest they add two or three calls to latex immediately after their 
last one. Also, they must put calls to latex between anything that 
gathers data for tables or indexes.

Early use of extra calls to latex can save over a day of 
troubleshooting. As a practical matter, once everything is said and 
done they can probably back out many of the extra calls to latex. I 
needed only three in the finished script.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: need suggestion on book

2011-06-25 Thread Steve Litt
On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
> > 2. Yes, I remember this is a lyx list, but ... are there
> > any advantages or
> > writing this book in plain latex instead of lyx?
> 
>  If you work in plain latex, while you write it,  you get a text
> pestered with commands. That makes difficult the work to write up
> and to correct the text.
> 
> Marcelo

I couldn't have said it better myself. And because of what Marcelo 
said, I find LyX is a MUCH faster authoring environment than anything 
in which I need to see markup.

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: need suggestion on book

2011-06-25 Thread Liviu Andronic
On Sun, Jun 26, 2011 at 1:52 AM, Steve Litt  wrote:
> On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
>> > 2. Yes, I remember this is a lyx list, but ... are there
>> > any advantages or
>> > writing this book in plain latex instead of lyx?
>>
>>  If you work in plain latex, while you write it,  you get a text
>> pestered with commands. That makes difficult the work to write up
>> and to correct the text.
>>
>> Marcelo
>
> I couldn't have said it better myself. And because of what Marcelo
> said, I find LyX is a MUCH faster authoring environment than anything
> in which I need to see markup.
>
As much as I agree with this, the one drawback of LyX is that you have
to put up with its bugs. The big advantage of using LaTeX is its
reliability: as long as you know exactly what you do, you only need a
robust text editor (or another, or yet another one) to do the job. LyX
on the other hand can throw surprises from time to time.

This said, LyX is generally rock-solid. Cheers
Liviu


Re: need suggestion on book

2011-06-25 Thread Alan L Tyree
On Sun, 26 Jun 2011 04:09:36 +0200
Liviu Andronic  wrote:

> On Sun, Jun 26, 2011 at 1:52 AM, Steve Litt
>  wrote:
> > On Saturday 25 June 2011 19:17:18 Marcelo Acuña wrote:
> >> > 2. Yes, I remember this is a lyx list, but ... are there
> >> > any advantages or
> >> > writing this book in plain latex instead of lyx?
> >>
> >>  If you work in plain latex, while you write it,  you get a text
> >> pestered with commands. That makes difficult the work to write up
> >> and to correct the text.
> >>
> >> Marcelo
> >
> > I couldn't have said it better myself. And because of what Marcelo
> > said, I find LyX is a MUCH faster authoring environment than
> > anything in which I need to see markup.
> >
> As much as I agree with this, the one drawback of LyX is that you have
> to put up with its bugs. The big advantage of using LaTeX is its
> reliability: as long as you know exactly what you do, you only need a
> robust text editor (or another, or yet another one) to do the job. LyX
> on the other hand can throw surprises from time to time.
> 
> This said, LyX is generally rock-solid. Cheers

I agree also, but I have an old very large project with lots of custom
macros that simply won't translate well into LyX. I use emacs + auctex
+ reftex and find it very good. Auctex supplies a "folding" mode that
allows you to hide most of the markup (actually, as much or as little
as you want). Not quite a slick as LyX, but not far behind either.

It is a viable alternative.

Cheers,
Alan

> Liviu


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



lyx and texlive on windows?

2011-06-25 Thread Liviu Andronic
Dear all
Is there a reason for not offering a choice between MikTeX and TeX
Live on the Windows installer? I've got very used to TeX Live on Linux
and I'd like to use it for Windows, too. I'm specifically missing the
'getnonfreefonts' utility.

Is following the wiki instructions [1] a good idea? Are there any
drawbacks in using TeX Live instead of MikTeX on Windows? Cheers
Liviu

[1] http://wiki.lyx.org/Glossary/TeXLive


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail