Life changing LyX idiom gives me new productivity

2008-07-22 Thread Steve Litt
Hi all,

In a different thread, Gunter Milde penned these words:

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


That is THE most powerful LyX idiom I've ever seen.

As most of you know, my biggest objection to LyX is the excruciating pain 
required to make my own environments in the layout file.

Excruciating pain is an overstatement. I was a contract software developer 
from 1984-2002, so obviously I can make the environments. My problem is that, 
for me, it's very hard to switch mindsets from author to tech geek and back 
again in order to create a style.

Now I don't have to. When I come upon a situation requiring a new style, I 
just put this in my layout file:

Style MyNewStyle
CopyStyle Standard
End

And I go on about my business. When I have time I'll check whether I can 
actually change appearances in LyX like this:

Style MyNewStyle
CopyStyle Standard
LeftMarginMMM
RightMargin   MMM
Font
SizeLarger
EndFont
End

If that's possible, then within LyX I can see at a glance that my new style is 
custom, and that I later have to develop the LaTeX to complete it.

After several days or weeks of creating this type of dummy styles, one day I 
can go into programmer mode and make all the styles without the pressure of 
having to slam out 2000 words that day.

So Gunter -- thanks SO much for that idiom. It makes LyX a much more useful 
tool.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Progress on the MS Word to LyX conversion

2008-07-22 Thread Steve Litt
On Tuesday 22 July 2008 11:32, rgheck wrote:
 Steve Litt wrote:
  I don't know how it will be after LyX goes XML, but right now at 1.5.3,
  converting my LyX code to something else by parsing the LyX native code
  would be trivial.

 My understanding is that, whatever happens with the LyX file format, we
 want it to remain possible to do the sort of simple scripting we all
 like to be able to do. The XML business is really just a matter of
 replacing things like this:

 \begin_layout Standard
 this.
 \end_layout

 \begin_layout Standard
 \begin_inset CommandInset bibtex
 LatexCommand bibtex
 bibfiles /tmp/bib
 options plain

 \end_inset


 \end_layout

 with things like this:

 layout name=Standard
 this.
 /layout

 layout name=Standard
 inset type=bibtext latex=bibtex bibfiles=/tmp/bib options=plain /
 /layout

 Just as easy to parse, I hope. Maybe even easier.

 That's not anything actually agreed or implemented

It's not as easy to parse, but it's reasonable. If that's the extent of the 
XMLization of LyX, it should still be somewhat tweakable with Vim, Perl, etc.

The real problems come in when they do things in XML that would be 
denormalization in a database. Store the paragraphs one place, and then store 
the *number of paragraphs* somewhere else, so if you add a paragraph and 
forget to increment the number, your doc no longer opens.

Or treating the XML file like a relational database, where you have a list of 
styles with numbered IDs one place, and then have those numbers applied to 
paragraphs somewhere else. This is an excellent programming technique, but 
for the guy just trying to casually go in and tweak something, or casually 
trying to programmatically generate LyX data, it can be daunting indeed. 
Personally, I love having my style defs in the layout file and using the 
style names as their identifiers.

Then there's this habit of people like OpenOffice, where the native format is 
a Zip file unzipping to different directories, each containing XML files and 
other types of files. Yeah, I just dare anyone to generate OpenOffice on the 
fly.

I suggest that whatever you decide, you document the XML structure. I don't 
mean document as in it's open source, read the code. I mean document as 
in Here is the data hierarchy, here is the high level data design, here are 
our reasons for doing it this way, here are the data interdependencies, here 
are some tips for building LyX files programmatically and tweaking them 
either programmatically or with an editor. And here is a tutorial on building 
and tweaking LyX files without the LyX front end.

I'm busy these days, but if you keep me in the loop I'll do at least a good 
chunk of that documentation.

One more thing -- if you're going XML and don't want to reinvent the wheel, 
you'll be using someone else's XML parser. Please, please, PLEASE, don't make 
it some parser with tons of dependency so that the guy with a 2 year old 
distro can't compile LyX because of the XML parser. We already have enough 
problems with Qt dependencies.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Progress on the MS Word to LyX conversion (xml)

2008-07-23 Thread Steve Litt
On Tuesday 22 July 2008 19:24, Pavel Sanda wrote:
  Pavel Sanda wrote:
  Moreover, if you're editing by hand, you can use
  something that recognizes XML.

 of course it will work, but it will take x-times more time.
 quite difference to write sed one-liner or start doing some
 xslt templating.

 pavel

Yeah, I think this was the point I was trying to get across. With the current 
format, you can do a lot with Vim. Or you can run through a series of small 
filters that do just one thing.

XML's a different animal. Without a parser, it's almost impossible to handle. 
With a parser, you're forced to work only within the language of that parser, 
and you're forced to make a monolithic solution that can't take advantage of 
Unix pipes and small executables that do one thing and do it well. You also 
forgo the ability to have a series of intermediate files, each serving as a 
test point to make sure things are still going well.

Also, an XML parser, especially a DOM one, makes READING XML very easy, but it 
does nothing for WRITING.

Pavel -- you and I and others like us need to start identifying parsing tools 
to at least partially compensate for the loss of our Unix based pipes with 
small filter executables. Theoretically, if one could read the XML into a DOM 
tree, tweak it in memory, and then write it back out, that would be at least 
somewhat doable, though nothing like the Awk and Perl techniques I'm used to.

And once again, we need COMPLETE documentation on the XML dialect, and Like I 
said I'm willing to help with that documentation.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 00:54, Dirk Markert wrote:
 2008/7/22 Steve Litt [EMAIL PROTECTED]:
  Günter (and everyone else),
 
  Your response contains one of the most useful LyX idioms I've ever seen,
  limiting my biggest objection to LyX. It will lead to vastly improved
  productivity for me.
 
  Can anyone guess which part of Günter's email is so useful? I'll reveal
  it in
  another email, coming up shortly.

 CopyStyle?

 Dirk

Yes! It looks like my subsequent message didn't go through, but it was 
CopyStyle. Let me look into what happened to my second post.

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Progress on the MS Word to LyX conversion (xml)

2008-07-23 Thread Steve Litt
On Tuesday 22 July 2008 18:21, José Matos wrote:

 Clearly you did not had to deal with the lyx file format like I did. :-)
 If your idea of a parser is a set of regexp's that is so 80's. ;-)
[clip]
 It is funny to see all this nostalgia around something that is/was a
 nightmare. If the syntax was so clear you would not have the problem of
 crashing lyx with a bad formed file (a file modified by scripts).

When the discussion reverts to your thingamabob is from another 
decade/century so it must not be good by today's standards, you know that 
thingamabob is pretty darn good, or else there would have been a more 
powerful argument against it.

First of all, I understand *exactly* why an XML native format is an 
improvement for the LyX application. I'm limiting my point to the concept 
that something old has to be something bad.

Modern things are usually improvements, but often are not improvements in 
quality or usefulness. They can be improvements to profit margin (e.g. most 
MS Windows improvements), or marketing improvements (all the silly little 
expensive features thrown into basic family cars today), or improvements in 
restricting use (DRM), or improvements in price (crummy bicycles from 
Walmart). Sometimes older stuff has more quality or usefulness.

In 1969 and the early 1970's, Ken Thompson and the gang made Unix with the 
philosophy of little executables that do one thing and do it right. Stdin, 
stdout and pipes were the glue language with which these little executables 
could be cascaded to produce a substantial result. This enabled 
logical-thinking non-developers, and also developers, to produce those 
substantial results in an hour, with perhaps the greatest encapsulation 
that's ever been achieved in the computer world. Each little executable has 
one input and one output, each being a measurable test point. For batch 
processes this programming technique is every bit as productive as it was 
39 years ago.

There may be things wrong with awking, seding and perling data into 
submission, but the age of these tools is not one of them.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Progress on the MS Word to LyX conversion (xml)

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 07:00, José Matos wrote:

 XML will not change the current status.

 grep 'style name=Section' somefile.lyx

 will still work and it not so different from what we have now. You need the
 '' already if you have spaces in your expression...

The trouble is, XML tags can be anywhere -- spacing and linefeeds are 
immaterial. That means you can no longer parse based on position, such as: 

/^begin_layout/

because technically the whole XML file could be in a single line. Or a single 
tag could be split between lines.

This problem is somewhat lessened by the fact that you could do the following 
in Vim/ex:

:%s//\r/g
:%s//\r/g
:g/^\s*$/d

I imagine you could do the same thing with sed, I just don't know how. The 
preceding would put every XML tag on its own line, and eliminate all blank 
lines, after which you could indeed parse based on linefeeds. The other 
problem, of course, is that angle brackets within the text would be linefed, 
which may or may not be a problem depending on the XML dialect you come up 
with.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US


Re: Progress on the MS Word to LyX conversion (xml)

2008-07-23 Thread Steve Litt
On Tuesday 22 July 2008 19:24, Pavel Sanda wrote:
  Pavel Sanda wrote:
  Moreover, if you're editing by hand, you can use
  something that recognizes XML.

 of course it will work, but it will take x-times more time.
 quite difference to write sed one-liner or start doing some
 xslt templating.

 pavel

Hi Pavel,

Perhaps our best hope of continuing tweakability of native LyX is to create 
1.5.x to XML and XML to 1.5.x converters. Then all the parsing/tweaking can 
continue to be done in the 1.5.x format.

I'm presuming that the LyX developers will create the 1.5.x to XML converter 
so users can upgrade their old docs, and hopefully they would keep that 
converter updated for each new LyX version, so that you and I wouldn't need 
to worry about coding the 1.5.x to XML.

The only thing you and I would have to do is the XML to 1.5.x converter. I'm 
pretty darned good with C, and if necessary I can do C++ (but with a C 
accent). If we pick an XML parser with full schema/dtd capability, that 
doesn't have many dependencies, then if you know how to write 1.5.x, I can 
feed you whatever data is needed to write the 1.5.x.

There's another possibility that I think might be better. Using Ruby with 
REXML, I could convert the XML to YAML (http://en.wikipedia.org/wiki/Yaml) if 
you could help me just a little bit with the return trip (YAML to XML). I 
think this would be EVEN BETTER than 1.5.x, because YAML was made for exactly 
what you and I want to do -- parsing with awk/sed/perl/grep/cut. It would 
also remove our responsibility to support 1.5.x syntax in the 22nd century.

Using YAML for tweaking, I think there may come a time when you and I would 
say remember when we had to parse that nasty 1.5.x?

I can begin this project as soon as the developers give me an XML def and an 
XML file. That way, once they actually specify what they're going to do, 
we'll have the technology for the XML-YAML-XML round trip, and only the 
details will require coding.

What do you think?

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US


Re: Progress on the MS Word to LyX conversion (xml)

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 11:21, José Matos wrote:

  There may be things wrong with awking, seding and perling data into
  submission, but the age of these tools is not one of them.

 If you add there the coreutils, like tail, cut, paste, merge and so on we
 can do things that spreadsheet programs can only dream of like processing
 Gigs of data with thousands of lines and columns. :-)

:-)  :-)  :-)

Check this out:

http://www.troubleshooters.cxm/lpm/200801/200801.htm

http://www.troubleshooters.cxm/lpm/200802/200802.htm


But seriously -- it's obvious that for the LyX application itself, XML is by 
far the best way to go, and I would never suggest rewriting LyX in awk :-). 
My interest is in quick writes/tweaks of LyX native format files in order to 
do things that LyX isn't equipped to do, like my VimOutliner to LyX script.

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Progress on the MS Word to LyX conversion (xml)

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 11:05, José Matos wrote:
 On Wednesday 23 July 2008 15:33:16 Steve Litt wrote:
  The trouble is, XML tags can be anywhere -- spacing and linefeeds are
  immaterial. That means you can no longer parse based on position, such
  as:
 
  /^begin_layout/
 
  because technically the whole XML file could be in a single line. Or a
  single tag could be split between lines.

 Since we control the format I am (almost) sure that we will choose a reader
 friendly output. There is no reason to do otherwise. In terms of size a
 blank or a newline are equivalent, so... :-)

 That is why it will be business as usual. :-)
 Not much will change in this regard.

Thanks José,

As a sed/awk/perl/ruby parser, I appreciate that very much.

The more I think about it, the more I think I should make the XML-YAML and 
YAML-XML converters. That way, if future generations of LyX project 
programmers forget why it's important to space their XML just so, it won't 
matter. Also, I have a feeling that YAML will be much easier to parse than 
either 1.5.x or XML.

The way I envision it, these two converters will be simple standalone commands 
implemented as filters (convert stdin to stdout), very few dependencies. They 
will comply with the Unix Philosophy (little apps that do one thing and do it 
well). Trivial to install. They will be simple enough to be maintained by one 
person. 

They will be encapsulated. They won't need to know about LyX other than its 
XML format, and LyX won't need to know about them. They can be included in 
the LyX distribution, or not.

At first I'll do them in Ruby because Ruby has all that stuff built in and 
easy to do. Later, depending on performance and the percent of people who 
have Ruby installed, I can convert them to C. There's a C implementation of 
the same YAML parser/emitter that Ruby uses -- Syck. I'm pretty sure there 
are also C or C++ implementations of XML Parsers, although I don't know how 
well they do things like DTD/schema.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



We could really use search-for-environment and search-for-charstyle

2008-07-23 Thread Steve Litt
Hi all,

One feature I think would be really helpful in LyX would be 
search-for-environment and search-for-character-style. That way I wouldn't 
need to go into Vim every time I wanted to locate a specific character style.

Thanks

SteeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Problem with Lyx 1.5.5 (Windows, Miktex) when converting to PS

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 20:56, Michael Logies wrote:
 Hello,

 2. Can I work in Lyx 1.5.5 and continue working on the document in Lyx
 1.4.5 or Lyx 1.5.3? Has the file format remained the same?

No. 1.5.x is a different format from 1.4.x, and once you go 1.5.x, you can't 
go back.

I use 1.5.3 and haven't noticed anything all that slow on my 300 page books. 
Where is it slow for you, and how slow?

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Difficulty with LyX-Code and Copystyle

2008-07-27 Thread Steve Litt
Hi all,

I'm not calling this a bug because maybe it was never intended to work this 
way, but if I create and use two LyX styles, Code1 and Code2, each of them 
with CopyStyle LyX-Code, then on conversion to PDF I get the following error 
message:

LaXeX Error: Command \lyxcode already defined

I can use all Code1, or all Code2, or all LyX-Code, but if I have any two of 
them in the document, I get an error like described above.

The attached mini document (1.5.3 produced) plus the mini-layout produce the 
symptom.

Is there a simple way I can use CopyStyle with LyX-Code and not get this 
error?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



lyxcodebug.lyx
Description: application/lyx
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{lyxcodebug}

Input stdclass.inc
Input numreport.inc


Preamble
EndPreamble

Style  Code1
CopyStyle LyX-Code
End

Style  Code2
CopyStyle LyX-Code
End


Re: Difficulty with LyX-Code and Copystyle FIX FOUND

2008-07-27 Thread Steve Litt
On Sunday 27 July 2008 17:09, Steve Litt wrote:
 Hi all,

 I'm not calling this a bug because maybe it was never intended to work this
 way, but if I create and use two LyX styles, Code1 and Code2, each of them
 with CopyStyle LyX-Code, then on conversion to PDF I get the following
 error message:

 LaXeX Error: Command \lyxcode already defined

 I can use all Code1, or all Code2, or all LyX-Code, but if I have any two
 of them in the document, I get an error like described above.

 The attached mini document (1.5.3 produced) plus the mini-layout produce
 the symptom.

 Is there a simple way I can use CopyStyle with LyX-Code and not get this
 error?

 Thanks

 SteveT

 Steve Litt
 Recession Relief Package
 http://www.recession-relief.US

Hi all,

I found a fix I can use locally, and a fix that could be made with the LyX 
distribution. Let me start with the latter...

LyX-Code is defined in lyxdir/layouts/lyxmacros.inc thusly:

Style LyX-Code
MarginStatic
LatexType Environment
LatexName lyxcode
NextNoIndent  1
LeftMarginMMM
RightMargin   MMM
TopSep0.5
BottomSep 0.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
FreeSpacing   1
Preamble
\newenvironment{lyxcode}
{\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS 
classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
 \item[]}
{\end{list}}
EndPreamble
Font
  Family  Typewriter
EndFont
End

Notice that the LaTeX environment, lyxcode, is defined within the LyX 
environment definition, so if LyX-Code is mentioned twice, \lyxcode is 
defined twice, which is an error.

To fix the problem, the developers could remove everything from Preamble to 
EndPreamble in the LyX-Code definition, and put it after the Format 4 and 
before any LyX style definitions. While you're at it, you might as well pull 
the LaTeX definitions out of LyX environments Address and Right_Address, 
because those will have the same problems with CopyStyle. Obviously, there 
need be only a single Preamble/EndPreamble pair globally in this file.

It's nice and modular to put the LaTeX definition inside the LyX definition, 
but doing so greatly reduces the value of CopyStyle, so I'd recommend against 
it.

I didn't want to mess with the distribution, so I did the following locally, 
within my layout file...

#
Preamble
\newenvironment{litt_lyxcode}
{\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
 \item[]}
{\end{list}}

 OTHER LATEX STUFF GOES HERE
EndPreamble

Style litt_LyX-Code
MarginStatic
LatexType Environment
LatexName litt_lyxcode
NextNoIndent  1
LeftMarginMMM
RightMargin   MMM
TopSep0.5
BottomSep 0.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
FreeSpacing   1
Preamble
EndPreamble
Font
  Family  Typewriter
EndFont
End

Style  Code
CopyStyle litt_LyX-Code
End


Style  Codeinbox
CopyStyle litt_LyX-Code
End


Style  Codetext
CopyStyle litt_LyX-Code
End
#

In other words, I copied and pasted \lyxcode to \litt_lyxcode within my layout 
file, and copied and pasted LyX-Code (minus the Preamble/EndPreamble section) 
to litt_LyX-Code within my layout file, and then did CopyStyle on 
litt_LyX-Code. It worked perfectly!

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Finding Bad characters

2008-07-27 Thread Steve Litt
On Friday 25 July 2008 06:28, Sebastian Rohrer wrote:
 Hi,

 I have a relatively large lyx document that does not compile. The error
 message is:

 Some characters of your document are probably not representable in the
 chosen encoding. Changing the document encoding to utf8 could help.

 The problem is most likely caused by some characters that I forgot to
 change after pasting from OOwriter. Is there any way to find those
 characters? It is very tedious by eye...

 Thanks,

 Sebastian

If you can list all the allowable characters including carriage return and/or 
linefeed, then you (or a friend like me) could write a C program to read each 
character, test it for inclusion in that set, and report on any characters 
(character ascii/unicode value and position in the file) that aren't in the 
set.

I know nothing about unicode, so I'd need to be brought up to speed on that 
before writing the program. I assume unicode is a 16 bit representation of 
characters.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



My MS Word to LyX conversion is more or less finished

2008-07-27 Thread Steve Litt
Hi all,

A couple days ago it took the entire day to change all the tables from markers 
to real tables. It was a tough job.

Today I put in the 10 images into the book. What made it hard was that the old 
images were object embbedded Micrografx Windows Draw images. MGX Windows Draw 
was a wonderful program, probably better than Inkscape, but it's an orphan 
running only on Windows, and my only Windows machine is a Pentium II300 with 
128 MB of RAM.

Therefore, I had to reconstruct many of the images (they were diagrams) using 
the dia program, running a conversion program to convert the dia to .png, 
using Inkscape as the conversion mechanism.

One distressing effect was that the LyX book ballooned out to 370 pages from 
the 309 in MS Word, even though I set the LyX margins about the same as the 
(wide and tall) MS Word margins. In both books the font was 12point -- I 
insist on all my books being 12point so that people with poor vision can read 
them. I think the problem is LyX puts more space after headings than I like. 
If that's a significant part of the problem, I can narrow that out in the 
layout file.

Anyway, the mainmatter of the LyX book is essentially the same as the 
mainmatter of the MS Word book, so as soon as I do a few final checks, I'll 
begin making my 2008 revision of the book.

Thanks for all of your help.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Progress on the MS Word to LyX conversion (xml)

2008-07-28 Thread Steve Litt
On Monday 28 July 2008 01:10, John McCabe-Dansted wrote:
 On Fri, Jul 25, 2008 at 4:43 PM, Manveru [EMAIL PROTECTED] wrote:
  To the discussion about data format preference:
 
  I am reading all your comments about XML, YAML and other suggested data
  formats. And this discussion reminds me something about XML what almost
  nobody is remeber about. How many LyX user are working in large team
  projects? How often they have to merge text files from different
  branches? Have you ever merge XML? I tried - it is horrible work.

 I don't see why it would be harder if we just replace \begin...\end
 with .../.

Trouble is, replacing \begin..\end with .../ is a hack. LyX developers 
have defined LyX native format as \begin always is the first character on a 
line. There's no such requirement in XML, and if we require it, that's a 
hack. If we don't require it, LyX-XML parsing becomes a whole new level of 
difficulty.

Like I said, nothing that XML-YAML and YAML-XML can't solve, but those would 
be required. Incidentally, I just heard there are already standalone programs 
that do those conversions, so before writing code myself, I'll investigate.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Steve Litt
On Monday 28 July 2008 03:22, Abdelrazak Younes wrote:
 Steve Litt wrote:
  Hi all,
 
  I'm not calling this a bug because maybe it was never intended to work
  this way, but if I create and use two LyX styles, Code1 and Code2, each
  of them with CopyStyle LyX-Code, then on conversion to PDF I get the
  following error message:

 Hi Steve,

 Not directly related to this bug but, FYI, you might want to try the
 listings inset instead of lyxcode; you would get syntax highlightting
 for free thanks to the listings LateX package if that's what you are
 intented to do with your tailored lyxcode styles.

 As a side note, the lyxcode environment is a hack and a fragile one.
 You'd better off using the listings inset, really.

 Abdel.

Thanks Abdel,

Several months ago I made a policy decision not to use the listings inset, and 
I don't remember why I made that decision :-)

Meanwhile, the LyX-Code environment does pretty much what I need as long as I 
rewrite it with the LaTeX part separate from the LyX.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Steve Litt
On Monday 28 July 2008 11:35, Abdelrazak Younes wrote:
 Steve Litt wrote:
  On Monday 28 July 2008 03:22, Abdelrazak Younes wrote:
  Steve Litt wrote:
  Hi all,
 
  I'm not calling this a bug because maybe it was never intended to work
  this way, but if I create and use two LyX styles, Code1 and Code2, each
  of them with CopyStyle LyX-Code, then on conversion to PDF I get the
  following error message:
 
  Hi Steve,
 
  Not directly related to this bug but, FYI, you might want to try the
  listings inset instead of lyxcode; you would get syntax highlightting
  for free thanks to the listings LateX package if that's what you are
  intented to do with your tailored lyxcode styles.
 
  As a side note, the lyxcode environment is a hack and a fragile one.
  You'd better off using the listings inset, really.
 
  Abdel.
 
  Thanks Abdel,
 
  Several months ago I made a policy decision not to use the listings
  inset, and I don't remember why I made that decision :-)

 Hum... I have a strong feeling of déjà vu: me suggesting the very same
 advice and you answering with the very same answer... getting old :-)

 Abdel.

Yeah, do you happen to remember the thread so I can look it up and find out 
why I came to that decision?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Interesting thread on Slashdot

2008-07-30 Thread Steve Litt
On Wednesday 30 July 2008 08:21, killermike wrote:
 The original question that starts is poorly conceived but this Slashdot
 thread brings up quite a lot of references to LyX in the comments.

 http://science.slashdot.org/article.pl?sid=08/07/29/0039201

I find this response quite topical considering the discussions from several 
days ago:

Any replacement for LaTeX that intends to do most of the same things is 
pretty much doomed to be markup language, even if you dump XML pixie dust on 
it. XML after all is just a horrible human unreadable markup language 
itself.

I'm NOT trying to imply that XML wouldn't make the LyX developers' job much 
easier or that we shouldn't go to XML. I'm merely putting this forth as a 
different way of describing the POWERUSER problems created by XML (yes, I'm 
looking in to YAML as an intermediate parsing format).

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Interesting thread on Slashdot

2008-07-30 Thread Steve Litt
On Wednesday 30 July 2008 08:21, killermike wrote:
 The original question that starts is poorly conceived but this Slashdot
 thread brings up quite a lot of references to LyX in the comments.

 http://science.slashdot.org/article.pl?sid=08/07/29/0039201

Having read most of the responses, they can all be summed up thusly:

LaTeX (and LyX) is a committment. If you put a lot into it, you get a lot out 
of it. If you put very little into it, you get less than zero out of it. 
LaTeX (and LyX) isn't for everyone. IMHO if you're only going to write one 
book, it's not worth learning LaTeX or LyX. For me, the payoff has come over 
multiple books.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Interesting thread on Slashdot

2008-07-30 Thread Steve Litt
On Wednesday 30 July 2008 11:24, Abdelrazak Younes wrote:
 Dotan Cohen wrote:
  2008/7/30 Steve Litt[EMAIL PROTECTED]:
  On Wednesday 30 July 2008 08:21, killermike wrote:
  The original question that starts is poorly conceived but this Slashdot
  thread brings up quite a lot of references to LyX in the comments.
 
  http://science.slashdot.org/article.pl?sid=08/07/29/0039201
 
  Having read most of the responses, they can all be summed up thusly:
 
  LaTeX (and LyX) is a committment. If you put a lot into it, you get a
  lot out of it. If you put very little into it, you get less than zero
  out of it. LaTeX (and LyX) isn't for everyone. IMHO if you're only going
  to write one book, it's not worth learning LaTeX or LyX. For me, the
  payoff has come over multiple books.
 
  Is LyX only good for writing books, then?

 That is Steve's opinion :-)

It *is* more or less my opinion, but Dotan doesn't know that because I didn't 
express that opinion in this thread -- you (Abdel) know it's my opinion from 
other threads.


 I use LyX for all my writings: letters, 

I admit using LyX for over 50% of all my letters -- all my letters to 
senators, congressmen and the president.

 invoices, 

I use plain text for my invoices, and pdfize them with enscript and ps2pdf. 
Plain text is great because it will be readable 100 years from now. Certainly 
TeX and LaTeX have similar advantages.

 articles, 

For an article over 10,000 words, in which I didn't need to do special 
formatting, I'd use LyX too. When I say book, I also mean long document.


 technical   
 documents, 

Again, a great application for LyX assuming the tech doc is over 10,000 words 
long. Shorter docs are easier in quick and dirty OO.

 now also CV, etc. 

I wouldn't use LyX for resumes. Fine-tuned layout is very important in 
resumes, because they need to be 1 page or 2 pages, and aesthetically 
pleasing. A resume is much more like an advertisement than like an article. 
In advertisements, putting this block of text just in this place with that 
font is essential. IMHO the tool to use for resumes is OO Writer or MS Word 
or even Inkscape or Gimp, but not LyX, LaTeX or TeX.


  I am currently an OOo Writer user. I am always frustrated with styles
  and I wish that I could just edit the source of the document like I
  edit HTML. In fact, I have often considered just using HTML but it
  does not translate well to PDF, and there is no good equations editing
  capability.
 
  I understood from the /. post that LyX would let me work with a
  document, and edit the source where I see necessary. Is this not so?

 Yes, this is possible but not really recommended. Although power user
 like Steeve do it. A better alternative to editing .lyx format is the
 ability to insert raw LateX directly from the LyX window.

I see inserting raw LaTeX and tweaking native LyX files as two completely 
different techniques optimized for completely different activities. Here are 
some of the things I do by creating or tweaking native LyX:

1) Personalize (watermark) Ebooks
2) VimOutliner to LyX conversion
3) In my courseware's Instructor Notes, correspond courseware slide numbers to 
the Instructor Note sections. Of course, this could probably have been done 
better with a custom environment with its own counter, but 5 years ago I 
didn't know enough LaTeX to do that, so I cheated and used template tokens 
within my LyX file. This brings up the important point that editing native 
LyX can often give you a quick and dirty solution if you don't have time to 
learn the proper LaTeX now, but you need the document now.
4) Troubleshoot LyX compilation or appearance issues.


  Although I have invested in learning a bit of PHP, a bit of C, a bit
  of HTML/CSS, etc, I don't have the resources at the moment to spend
  more than a few hours learning a new tool. And full LaTeX will take
  more than a few good hours :)

 I've been a LyX user for more than 10 years and I never took the time to
 learn LateX :-)

Abdel -- when you need to get an environment's appearance just so, how do 
you do it without LaTeX? How do you make new environments?

I think I know. There are people who know hundreds of LaTeX packages and what 
they do, so they can accomplish any kind of look just by including an 
additional package and using it correctly. Abdel -- is that how you get the 
look you want without being a LaTeX expert?

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Holy Moly!

2008-07-30 Thread Steve Litt
On Wednesday 30 July 2008 11:00, Bob Lounsbury wrote:

 I say we just treat [EMAIL PROTECTED] as spam and block his
 email from all LyX mailing lists. Obviously, the emailer is a robot,
 not capable of reading or following instructions or providing
 intelligent feedback if something is wrong.

 Cheers,
 /Bob

I would really love that. That guy's vitriol is just soo tiring. Sometimes 
on the Internet I have to deal with personality problems, but usually the 
person has some redeeming techology qualities. Nastiness for nastiness's sake 
is something I don't have time for.

86 him from the lists!

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Interesting thread on Slashdot

2008-07-30 Thread Steve Litt
On Wednesday 30 July 2008 16:42, Abdelrazak Younes wrote:
 Steve Litt wrote:
  On Wednesday 30 July 2008 11:24, Abdelrazak Younes wrote:
  technical
  documents,
 
  Again, a great application for LyX assuming the tech doc is over 10,000
  words long. Shorter docs are easier in quick and dirty OO.

 I beg to differ, quite strongly. The moment you write something else
 than text (e.g. math). You just can't beat LyX.

You're right. Math is best with a TeX based program.

 Oh and I also use LyX for taking note when I am at a conference or in a
 meeting. I am so used to LyX typing that my notes look nice and well
 structured from the very beginning, nicer than if I hand-write them :-)

As far as I'm concerned, the ONLY product with which to take notes is 
VimOutliner. It's by far the fastest way to get information from your brain 
to file.

[clip]

  I've been a LyX user for more than 10 years and I never took the time to
  learn LateX :-)
 
  Abdel -- when you need to get an environment's appearance just so, how
  do you do it without LaTeX? How do you make new environments?

 I don't :-) I almost never have strong idea of what appearance should be.

  I think I know. There are people who know hundreds of LaTeX packages and
  what they do, so they can accomplish any kind of look just by including
  an additional package and using it correctly. Abdel -- is that how you
  get the look you want without being a LaTeX expert?

 Not really. OK, I know more or less my way around some packages but the
 real answer is that I am pretty satisfied with LyX official document
 classes. _I_ don't feel the need to tweak them. The bigger tweaking I do
 is adding vertical space, horizontal space or page break, that's all. I
 also do use characters style now (the 1.6 incarnation of it).

This is a huge distinction that should be understood by everyone.

If one is happy with the styles bestowed by the combination of a standard 
LaTeX class and LyX, then LyX is nothing short of a totally robust, perfectly 
typesetting, trivial to use wordprocessor. ALL the work has been done by 
Knuth, Lamport, package designers, document class designers, and the LyX 
developers. It's by far the most productive way to write. If one is satisfied 
with the LyX provided styles, the only rational decision is to use LyX.

If one requires significant additional styles, the situation is not so clear. 
There have been times when I had to work a whole day to make a single style. 
This is not because I'm stupid or because LyX is difficult, but because of 
the nature of LaTeX. Also, there are certain layout looks that I'm not 
capable of creating in LyX, no matter how much time I devote. That could NOT 
have been said of WordPerfect 5.1, with which I could make absolutely any 
style appearance.

So with people like me, it boils down to a tradeoff between LyX's robust, easy 
and aesthetically pleasing authoring, and LyX's difficult and time consuming 
style authoring. For me, that tradeoff falls well on the side of LyX being 
productive.

I think everyone should understand that when you hear one person say LyX is 
trivially easy to use, and another saying it's very difficult, the difference 
is usually a difference in their need for specialized styles.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Interesting thread on Slashdot

2008-07-30 Thread Steve Litt
On Wednesday 30 July 2008 17:17, Denné Reed wrote:
 I use LyX for scientific papers but have had problems with both
 collaborators and editors. Many collaborators are unfamiliar with
 LyX / LaTeX and it lacks strong collaboration tools (change tracking
 etc.). I've tried sharing drafts with PDF but that requires colleagues
 to purchase full versions of Acrobat, and still the tools are tracking
 changes are not as good.

 I've also had problems with journal and book editors, one of which
 insisted I convert a book chapter written in LyX into Word format
 despite the fact that the publisher  (Elsevier) has a LaTeX document
 class available. I've also encountered other journals where document
 classes are not available (e.g. I've not found one for Journal of
 Biogeography)

 For these reasons I'm tempted to try Scientific Word, but so far I've
 been put off by the price. I love LyX and use it for single authored
 manuscripts whenever I can.  I also think that the ability to embed R
 code and data into LyX documents with Sweave opens a whole new world
 for scientific transparency and reproducibility that I would like to
 see developed further.

 If the list has suggestions for some of the concerns above I'd love to
 hear them.

 Many thanks,
 Denné

I think if you put together a layout file with ALL the styles your 
collaborators will need, then resistance will crumble. If one needn't make 
his own styles, and yet can still press Ctrl+Y and get a beautifully 
formatted PDF, your collaborators will fall in love.

By the way, that's just how Sams Publishing did it when I was the Main Author 
of Samba Unleashed, using MS Word. Sams gave me a template with all the 
styles, and a 2 page document telling me when to use each style, and it make 
the writing (not the authoring, but the writing) a simple secretarial task. 
It was wonderful.

Just think how much better it would be using LyX.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Customizing article with page breaks

2008-07-31 Thread Steve Litt
On Thursday 31 July 2008 11:53, Paul Morin wrote:
 Hello,

 Fresh new user of LyX for a week now, I have been reading the documentation
 ever since to try and be as at ease as possible with this great tool.

 One thing I didn't find how to do is this :

 I am using the article layout, which is as close as possible from the
 layout I want (I am currently writing an internship report). The only
 problem is that I want page breaks after the title page, the ToC page and
 before every new section.

 I could use the report layout but it is more different of what I'm
 looking for (I don't need the parts and chapters, for isntance).

 I know I can insert a newpage with the LaTeX command \newpage, that I've
 been using so far, but I'd rather customize a layout so these break pages
 were automatic (what is the point of using LyX otherwise ?).

 I navigated among the .layout and .inc files, trying to find a property to
 change, but I couldn't. I also heard about package inclusion but I didnt'
 find any matching my needs.

 I would truly appreciate any help.

Hi Paul,

In my opinion, frontmatter should be fine tuned (put LaTeX code in the doc 
using LyX's LaTeX Code button, also called Evil Red Text (ERT)). That's how 
I'd handle the page breaks after the title page and the ToC page.

For the section pages, I recommend doing just what you said and modifying the 
\section environment inside a layout file of your creation. I've done a lot 
of writing on how to do that on my LyX subsite:

http://www.troubleshooters.com/linux/lyx/index.htm

IMHO what you want to do is fairly easy.

HTH

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Why oh why did you drop xforms? SOLVED

2008-08-18 Thread Steve Litt
On Thursday 21 February 2008 15:03, Steve Litt wrote:
 On Thursday 21 February 2008 12:20, Jean-Marc Lasgouttes wrote:
  Steve Litt [EMAIL PROTECTED] writes:
   After what I went through, I'd recommend that someone strongarm ALL
   variables to the Qt4 values, and not leave anything to chance.
 
  What do you mean?
 
  JMarc

 UIC4=/usr/lib/qt4/bin/uic \
 MOC4=/usr/lib/qt4/bin/moc \
 ./configure \
   --with-qt4-dir=/usr/lib/qt4 \
   --with-qt4-includes=/usr/lib/qt4/include \
   --with-qt4-libraries=/usr/lib/qt4/lib \
   --with-version-suffix=1.5.3

 It might not all be needed, but the downside risk of failure makes the tiny
 extra effort worth it. I looked over the ./configure script, and it makes
 use of all those values. The logic of deducing them was a little more than
 I had time to figure out, but I'm telling Troubleshooters.Com readers to
 just go ahead and use all of those strongarms.

I just went through this again, this time on my laptop, and let it be known 
far and wide that trying to install libqt4-devel-4.1.4-12mdv2007.0.i586.rpm, 
I had to use the dreaded --nodeps flag, because it errored out on a libqtxml4 
dependency, and yet when I tried to install libqtxml4 via RPM, it said the 
module was already installed.

So anyone using Mandriva 2007, be aware of this glitch. I'm not saying to 
take --nodeps lightly, but if you run into a contradiction of libtxml4's 
installation or lack thereof, this might be what's needed.

By the way, Mandriva 2008 compiles 1.5.3 and 1.5.4 quite nicely.

SteveT


Steve Litt
Recession Relief Package
http://www.recession-relief.US



Fwd: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-18 Thread Steve Litt
Hi all,

Kelly services UK is at it again, sending a bogus message to everyone who 
sends to the LyX list. Could somebody please just ban all mail coming from 
kellyservices.co.uk?

Thanks

SteveT

--  Forwarded Message  --

Subject: Melissa Woolston/GB/INT/Kelly is out of the office.
Date: Monday 18 August 2008 20:01
From: Melissa Woolston [EMAIL PROTECTED]
To: Steve Litt [EMAIL PROTECTED]

I will be out of the office starting  13/08/2008 and will not return until
28/08/2008.

Thank-you for your email, I am currently on annual leave and nobody will
have access to my account.
Please re-direct your query to [EMAIL PROTECTED] or call
0203 040 8124



Kelly Services... we see work from a People perspective

We are currently recruiting for experienced Consultants and
Managers to work across our branch network, if you know of someone
who you feel would be suited to our business, contact our Internal
Recruitment Team on 0870 609 1698.

Find out more at www.kellyservices.com

About Kelly Services
Kelly Services, Inc. (NASDAQ: KELYA, KELYB) is a Fortune 500
company headquartered in Troy, Mich., offering staffing solutions
that include temporary staffing services, outsourcing, vendor
on-site and full-time placement.  Kelly operates in 32 countries
and territories.  Kelly provides employment to more than 750,000
employees annually, with skills including office services,
accounting, engineering, information technology, law, science,
marketing, creative services, light industrial, education, and
health care.  Revenue in 2006 was $5.6 billion.

CONFIDENTIAL
The information contained in this email and any attachment is
confidential. It is intended only for the named addressee(s). If
you are not the named addressee(s) please notify the sender
immediately and do not disclose, copy or distribute the contents to
any other person other than the intended addressee(s)

Kelly Services (UK) Ltd.
Registered Office:
Apple Market House
17 Union Street
Kingston upon Thames
Surrey
KT1 1RR
Registered in England and Wales No: 2749906

Please consider the environment before printing

---


Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a good layout module?
5) What are the attributes of a bad layout module?

Thanks

SteveT

On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:
 Hi,

 I just wanted to share a simple and probably imperfect layout module for
 LyX 1.6. I do not know much about LaTeX, so I used the examples provided
 with LyX and google to create this file. I called it
 moremathsfunctions.module (it should be placed in the layouts folder
 in the lyx 1.6 preference folder of your home directory -- in
 Application Data for windows users), and here is the content (between
 the dashed lines, so people can comment on the code):

 
 #\DeclareLyXModule{More Maths Functions}
 #DescriptionBegin
 #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic 
 inverse hyperbolic functions,
 #Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
 (letters and mathematical
 #notation).
 #DescriptionEnd

 # Author : Olivier Ripoll

 Format 7

 Requires  amsmath,mathrsfs

 AddToPreamble
   \DeclareMathOperator{\sinc}{sinc}
   \DeclareMathOperator{\sgn}{sgn}
   \DeclareMathOperator{\erf}{erf}
   \DeclareMathOperator{\erfc}{erfc}
   \DeclareMathOperator{\FT}{\mathscr{F}}
   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
   \DeclareMathOperator{\logten}{log_{10}}
   \DeclareMathOperator{\logtwo}{log_2}
   \DeclareMathOperator{\sech}{sech}
   \DeclareMathOperator{\csch}{csch}
   \DeclareMathOperator{\arsinh}{arsinh}
   \DeclareMathOperator{\arcosh}{arcosh}
   \DeclareMathOperator{\artanh}{artanh}
   \DeclareMathOperator{\arcoth}{arcoth}
   \DeclareMathOperator{\arsech}{arsech}
   \DeclareMathOperator{\arcsch}{arcsch}
   \newcommand{\Floor}[1]
{\left\lfloor {#1} \right\rfloor}
   \DeclareMathOperator{\floor}{floor}
   \newcommand{\Ceil}[1]
{\left\lceil #1 \right\rceil}
   \DeclareMathOperator{\ceil}{ceil}
 EndPreamble
 

 As the description says, this module simply defines several useful math
 functions that are not available by default (I hope I did not overwrite
 existing LaTeX stuff). There are two versions of the floor and ceil
 functions, the one with a capital letter must be followed by \{xxx}
 where xxx is the number to which it is applied. It provides an aspect
 like in http://en.wikipedia.org/wiki/Floor_function

 I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
 reference for the functions I added. And before someone says so, Fourier
 transform and its inverse are not functions, but I do not care ;-)

 I hope this can be helpful to someone. I like this layout module feature
 a lot, I created another one with custom char styles for filenames and
 code, based on Martin Vermeer's logicalmkup.module.

 Small question: should I change the Format 7 to Format 8 ?

 Best regards,

 Olivier

 PS: be careful, some lines are wrapped by the mail agent in the
 description.


Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
On Tuesday 19 August 2008 13:16, Olivier Ripoll wrote:

 This layout module is simply adding the definitions to the preamble.
 Then, when you type in a formula \erf for instance, it will not be
 interpreted by LyX (unless you use preview-latex stuff). But when
 generating the pdf, they will be correctly interpreted as functions
 (i.e. not in italic, and with a small space afterwards).
 The advantage of having them in a layout module is that you do not have
 to add them in a preamble by hand. Just add the module to the document
 settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .

 Of course if someone has any ideas to provide more functionality, any
 idea is welcome (that's the reason for posting the module).

 You can also have layouts that will create text styles or environments,
 and those will appear in some menus automatically. That's how I have
 implemented my filename and code text styles. See the
 logicalmkup.module file for an example or my module below.
 When I add my customstyles.module to the document settings, two
 entries appear in the Edit-Text Style menu for using them. And when I
 use them, LyX correctly change the text style accordingly. Here it is
 for reference:

 ---
 #\DeclareLyXModule{Custom Styles}
 #DescriptionBegin
 #Custom character styles for code, filename.
 #DescriptionEnd

 # Author : Olivier Ripoll (based on layout by Martin Vermeer)

 Format 7

 InsetLayout CharStyle:Filename
   LyxType   charstyle
   LabelString   filename
   LatexType command
   LatexName filename
   Font
 Series  Bold
 Family  Typewriter
   EndFont
   Preamble
   \newcommand{\filename}[1]{\texttt{\textbf{#1}}}
   EndPreamble
 End


 InsetLayout CharStyle:Code
   LyxType   charstyle
   LabelString   code
   LatexType command
   LatexName code
   Font
 Family  Typewriter
   EndFont
   Preamble
   \newcommand{\code}[1]{\texttt{#1}}
   EndPreamble
 End
 ---

 Note that I am pretty sure you can create shortcuts for accessing the
 styles using what is described on the wiki:
 http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles

 Best regards,

 Olivier

Oh,

Maybe I do understand it. Is a layout module just a chunk of debugged 
LyX/LaTeX code that would normally go in a layout file, and gets included in 
the layout file by reference? So you could mix and match layout modules to 
get a more granular modularization, similar to #include in C?

So is it a way to write once, use many times? Is it a way to use 
known-debugged LyX/LaTeX code? And is it a way for all of us to trade 
debugged and tested code without throwing in every silly little feature we 
put in our book?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Interesting thread on Slashdot

2008-08-21 Thread Steve Litt
On Thursday 21 August 2008 10:24, Helge Hafting wrote:
 killermike wrote:
  Steve Litt wrote:
  Again, a great application for LyX assuming the tech doc is over
  10,000 words long. Shorter docs are easier in quick and dirty OO.
 
  I don't want to come off as someone who is purely defensive of LyX but
  I beg to differ with this point. I write all of my articles in LyX and
  I don't see how it would be easier in OO. Basic HTML output is one of
  the most important things to me when writing articles.
 
  There are things that I wouldn't write in LyX, such as a letter. I try
  to do everything in LyX if I can though. I tell myself that I'm
  getting a bit of extra LyX practice, if nothing else.

 I find LyX fine for letters too - with a suitable document class.
 This way I get printed folding marks so I know it will fit the envelope
 when I fold it,
 and the address is always positioned so it shows through the envelope
 window.

I write letters in LyX too. The letter template makes it brutally easy, except 
you need to remember to insert the \date{9/9/2099} via ERT or every time you 
print it the date will change. Also, I usually change it to a 12 point font. 
You can't automatically assume the recipient has excellent vision.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



1.5.6: Are layouts now findable in the current directory?

2008-08-22 Thread Steve Litt
Hi all,

I remember a discussion, following my disappearing styles problem accompanied 
by a double listing of the document class, that the intent was to have layout 
files findable within the current directory, so that symlinks in 
$HOME/.lyx/layouts are no longer necessary. 

My experimentation with lyx 1.5.3 indicated that the $HOME/.lyx/layouts links 
were still necessary with 1.5.3. Yesterday, as a result of new hardware and a 
Mandriva upgrade, I compiled and installed LyX 1.5.6. I noticed that with 
1.5.6, it appeared to pick up layout files in the current directory (the one 
housing the book file itself).

Is my impression correct, that 1.5.6 reads layout files in the current 
directory.

I could see the ability to read it in the current directory to be either a 
gain or a loss. However, in my situation, the way I do my work, having it 
find the layout file in the current directory is a huge benefit to me.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Any words of wisdom switching from 1.4.2 to 1.5.6?

2008-08-22 Thread Steve Litt
Hi all,

As a result of a hardware upgrade and a switch from Mandriva 2007 to Mandriva 
2008.1, I'm upgrading to LyX 1.5.6 and abandoning the 1.4.2 that came with my 
old Mandriva 2007. On the old computer, I kept 1.4.2 in parallel with 1.5.3.

My newer books were compiled in 1.5.3, and all appeared to compile reasonably 
well in 1.5.6. All the ones compiled in 1.4.2 have at least some problems, 
though in the case of one book it was simply the way URLs were styled -- easy 
to fix.

I have one book written in stone age LyX in 2001, using Dekl Tsur's color 
character style workaround. It's been upgraded to 1.4.2, and compiles on 
1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in 
1.5.6. But it has to be done :-)

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Any words of wisdom switching from 1.4.2 to 1.5.6?

2008-08-23 Thread Steve Litt
On Saturday 23 August 2008 06:40:32 am killermike wrote:
 Steve Litt wrote:
  I have one book written in stone age LyX in 2001, using Dekl Tsur's color
  character style workaround. It's been upgraded to 1.4.2, and compiles on
  1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in
 
 
  1.5.6. But it has to be done :-)

 Would it be worth waiting for 1.6? 

Definitely not. There's a high probability that 1.6 will require a Qt version 
higher than what my distribution gives me, requiring a HUGE expenditure of 
effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 
2007. I've had this problem several times.

Therefore, I limit LyX upgrades to versions giving a must have capability. 
For me, there have been only two must have capabilities -- character styles 
and outline mode.

I'll probably stick with 1.5.6 until upgrading to Mandriva 2009 in mid 2009. 
Layout modules are pretty darned cool, but I can live without them for 
another year.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



New ps2pdf can screw up, or else Acroread 8 screws up

2008-08-23 Thread Steve Litt
Hi all,

The new ps2pdf can screw up -- it can fail to correctly show Author, Title and 
the like when viewed in Acroread 8. I haven't tried viewing PDFs built with 
new ps2pdf on old Acroreads, so I can't draw a definitive conclusion.

So I used ps2pdf12, and all the properties read correctly within Acroread 8. 
In my case, an old, lowest common denominator PDF is best. YMMV.

But be aware, if your properties start screwing up in Acroread 8 (or maybe 
other acroreads), it might be as simple as your version of ps2pdf.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Package ifpdf Error: Name clash, \ifpdf is already defined.

2008-08-23 Thread Steve Litt
Hi all,

One of my books, that used to compile, now gives me the following error 
message:

Package ifpdf Error: Name clash, \ifpdf is already defined.

I can toggle the symptom on and off by including or excluding the following:


\usepackage[bookmarks, 
plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]
{hyperref}


Trouble is, without that line, I can't get clickable chapters in the table of 
contents. Also, another one of my books has that line and doesn't exhibit 
this symptom.

I've tried exploiting the differences, but with two 100 page books, each with 
sizeable layout files, I'm hoping one of you has seen this before so I don't 
need to keep carving things in half til I can toggle the problem with 
something other than the hyperref package.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Package ifpdf Error: Name clash, \ifpdf is already defined.

2008-08-23 Thread Steve Litt
On Saturday 23 August 2008 07:43:30 pm Steve Litt wrote:
 Hi all,

 One of my books, that used to compile, now gives me the following error
 message:

 Package ifpdf Error: Name clash, \ifpdf is already defined.

 I can toggle the symptom on and off by including or excluding the
 following:


 \usepackage[bookmarks,
 plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]
 {hyperref}

More info. I got the problem down to a single hello world lyx file and a 7 
line layout file. I can now toggle the problem by changing the layout's base 
document class between memoir and book. The original was written with memoir 
and fails. Changing it to book allows it to compile.

S, I need to find a hyperref substitute that works within memoir. As I 
remember, memoir is pretty sophisticated, so it probably has its own hyperref 
substitute.

Anyone have any ideas?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Memoir/hyperref conflict is a known issue

2008-08-23 Thread Steve Litt
Hi all,

I need your help. It turns out to be a known problem that you can't use 
hyperref with Memoir. However, there's supposedly a fix, known as 
memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you 
\usepackage{hyperref}, they can coexist. See this:

http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us

However, when I make a trivial latex file based on the preceding document, it 
fails. Here's the file:

\documentclass{memoir}
\usepackage{hyperref}
\usepackage{memhfixc}
\usepackage{mempatch}
\begin{document}
hello world.
\end{document}

And here's the error message it produces:

(/usr/share/texmf/tex/latex/oberdiek/kvoptions.sty)
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf/tex/latex/url/url.sty)
(/usr/share/texmf/tex/latex/oberdiek/bitset.sty
(/usr/share/texmf/tex/latex/oberdiek/intcalc.sty)
(/usr/share/texmf/tex/latex/oberdiek/bigintcalc.sty
(/usr/share/texmf/tex/latex/oberdiek/pdftexcmds.sty)))
(/usr/share/texmf/tex/latex/oberdiek/kvsetkeys.sty)
(/usr/share/texmf/tex/latex/oberdiek/atbegshi.sty
(/usr/share/texmf/tex/latex/oberdiek/ifpdf.sty

! Package ifpdf Error: Name clash, \ifpdf is already defined.

See the ifpdf package documentation for explanation.



If I comment out the hyperref, it compiles perfectly.

Can someone please help me:

1) Please try to reproduce my results with the file I've quoted in here
2) Please make suggestions of how I can have colored, clickable table of 
contents in my Ebook.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Memoir: Any possible way to have clickable table of contents?

2008-08-24 Thread Steve Litt
Hi all,

I'm not finding any way to include hyperref in a Memoir derived document 
class, and I'm getting orders requiring me to do so. Before I spend a couple 
days reworking a finished book's layout file to be derived from Book instead 
of Memoir, does anyone know a way to have a clickable table of contents (and 
cross references) in a Memoir derived document?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Memoir/hyperref conflict is a known issue PARTIALLY SOLVED

2008-08-25 Thread Steve Litt
First, thanks to all you LyX'ers -- the ones writing me both onlist and 
offlist. There's no way I would have solved this without you.

Second, I'm really bent out of shape (American idiom for extremely angry) 
because those fool packagers at Mandriva put in a 2004 Memoir package into 
Mandriva 2008.1. I've got nine months to get over my anger, but right now I'm 
inclined to switch to another distro next summer.

The big clue came when several of you said you couldn't reproduce my symptom 
on my 5 line LaTeX program. That pointed a very accusing finger at *MY* 
Memoir package installation. Looking at its files, I saw they were from 2004. 
So I downloaded a 2008 Memoir. My 5 line LaTeX program compiled, so I knew I 
was on the right track.

Unfortunately, my actual LyX book got approximately several hundred errors. 
Google was my friend, and I found out that to complete the installation, I 
had to do this:

latex memoir.ins

So I did that, but my LaTeX program still got a couple hundred errors. This 
time, however, most of the errors seemed to be associated with Enumerate, so 
I commented out my LaTeX code that compressed enumerate vertically. There 
were still some errors, so I commented out similar compression code in 
itemize and the table of contents. It compiled with hyperref included, and 
gave me a clickable table of contents.

What remains now is to find a different way to code my list compressions, and 
test everything else to make sure there are no other problems.

If anyone reading this list is using Mandriva 2008.x, be VERY careful, and 
don't assume your tetex package is correct or up to date.

In hindsight, I made the classic troubleshooting mistake of proceeding on an 
untested and invalid assumption -- in this case the assumption being that my 
tetex installation was solid. The several of you who responded telling me my 
program compiled correctly on your setups helped cast the light of day on 
that invalid assumption, leading to at least a partial solution.

Thank you all very much!!!

SteveT

On Monday 25 August 2008 11:25:25 am Eran Kaplinsky wrote:
  Steve Litt
  Sat, 23 Aug 2008 18:43:52 -0700
 
  Hi all,
 
  I need your help. It turns out to be a known problem that you can't use
  hyperref with Memoir. However, there's supposedly a fix, known as
  memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
  \usepackage{hyperref}, they can coexist. See this:
 
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2
 006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/
 2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
 
  However, when I make a trivial latex file based on the preceding
  document, it fails. Here's the file:
 
  \documentclass{memoir}
  \usepackage{hyperref}
  \usepackage{memhfixc}
  \usepackage{mempatch}
  \begin{document}
  hello world.
  \end{document}

 Most of my documents are with memoir and hyperref, with no problem. I
 usually have:

 \usepackage{hyperref}

 \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
 urlcolor=black}

 \usepackage{memhfixc}


 But, I tries your document and it works, too ...


 Eran



Re: Memoir/hyperref conflict is a known issue PARTIALLY SOLVED

2008-08-25 Thread Steve Litt
On Monday 25 August 2008 02:41:41 pm you wrote:
 On Mon, Aug 25, 2008 at 2:15 PM, Steve Litt
 [EMAIL PROTECTED]wrote:

 snip

  So I did that, but my LaTeX program still got a couple hundred errors.
  This time, however, most of the errors seemed to be associated with
  Enumerate, so
  I commented out my LaTeX code that compressed enumerate vertically. There
  were still some errors, so I commented out similar compression code in
  itemize and the table of contents. It compiled with hyperref included,
  and gave me a clickable table of contents.
 
  What remains now is to find a different way to code my list compressions,
  and
  test everything else to make sure there are no other problems.

 Have you looked in Memoir's manual, searching for \tightlists, \tightlist
 and \firmlist?

 Bennett

Thanks Bennett,

\tightlists kinda sorta helped, so I made a new environment called 
\supertightlists with even tighter parameters. That worked a little better, 
though not as tight as the original or as I'd like it, but good enough.

It's now not perfect, but it's good enough to offer customers, so thank you 
very much!

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Memoir/hyperref conflict is a known issue PARTIALLY SOLVED

2008-08-26 Thread Steve Litt
On Tuesday 26 August 2008 04:39:00 am José Matos wrote:
 On Monday 25 August 2008 19:15:38 Steve Litt wrote:
  Second, I'm really bent out of shape (American idiom for extremely angry)
  because those fool packagers at Mandriva put in a 2004 Memoir package
  into Mandriva 2008.1. I've got nine months to get over my anger, but
  right now I'm inclined to switch to another distro next summer.

 Hi Steve,
   first I must say that I can understand your anger. :-)

   OTHO I would like to give the other side of the coin. I am a Fedora
 packager and from our point of view (la)tex packaging is a mess. One of the
 things that takes time with a new set of packages is to guarantee that
 everything works and that there are no new problems when using different
 packages together.

 Also from Fedora point of view we need to review the licenses to ensure
 that all the packages have the right license (allow us to redistribute and
 modify) with the non-commercial clause (as an example).

   In conclusion for us to update the tex distribution is always an 
 adventure
 (not necessarily in the best sense). I know that things have been
 improving, as this has been a problem for long time, but we are still not
 there where some random packager can feel confident to update a package
 like memoir to the latest version in an easy way.


Thanks José,

I never really thought of it from the packager's point of view, always 
figuring those guys were so Linuxly smart that somehow getting the package 
combo would be easy for them. But now that you mention it, I consider 
compiling LyX with a recent Qt4 a burden, so I can't even imagine how 
difficult it would be to put together a whole distro.

Thanks for the different perspective.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Steve Litt
On Wednesday 27 August 2008 06:20:51 am Manveru wrote:
 2008/8/25 Eran Kaplinsky [EMAIL PROTECTED]:
  Steve Litt
  Sat, 23 Aug 2008 18:43:52 -0700
 
  Hi all,
 
  I need your help. It turns out to be a known problem that you can't use
  hyperref with Memoir. However, there's supposedly a fix, known as
  memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
  \usepackage{hyperref}, they can coexist. See this:
 
 
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/
 2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn
 /2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
 
  However, when I make a trivial latex file based on the preceding
  document, it fails. Here's the file:
 
  \documentclass{memoir}
  \usepackage{hyperref}
  \usepackage{memhfixc}
  \usepackage{mempatch}
  \begin{document}
  hello world.
  \end{document}
 
  Most of my documents are with memoir and hyperref, with no problem. I
  usually have:
 
  \usepackage{hyperref}
 
  \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
  urlcolor=black}
 
  \usepackage{memhfixc}
 
 
  But, I tries your document and it works, too ...

 Explanation above leads me to suggestion about checking memoir and
 hyperref packages versions. Steve, can you compare them with Eran?

Hi Manveru,

Great minds think alike. A few days ago when several people were unable to 
reproduce my bug, I also suspected my Memoir package. The suspicion 
heightened with the discovery that my Memoir package was from 2004. So I 
replaced my Memoir package, compiled memoir.ins, and my symptom went away. 
I'm now able to compile my Memoir-derived Ebook.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Can't paste into lyx

2008-08-28 Thread Steve Litt
On Thursday 28 August 2008 07:51:12 am bigblop wrote:
 I use LyX on windows XP.

 I have some text in a .txt file. When I select it and try to paste it into
 LyX nothing happens, but it works the other way around, any fix for this?

I've had a lot of troubles pasting into LyX. IMHO that's one of the things the 
developers should prioritize.

In the meantime, what I do is paste into Vim, and then paste from Vim into 
LyX. Kludgy? Yes. Ugly? Yes. Slow? Yes. Error prone? yes.

But it gets the job done.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Change number in enumerate?

2008-09-03 Thread Steve Litt
On Wednesday 03 September 2008 07:56:18 pm bigblop wrote:
 Is it possible to make an enumeration like this:

 1B. blabla
 2B. blabla
 3B. blabla
 ...

 or

 B1. blabla
 B2. blabla
 B3. blabla

You can certainly do those things making your own list environment. See this:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: OT: post-process postscript or PDF document to add page numbering and footer

2008-09-06 Thread Steve Litt
On Saturday 06 September 2008 09:27:07 pm Jeremy C. Reed wrote:
 Off topic:

 I am looking for a solution to add running page numbering to a postscript
 or PDF document and maybe add a footer or header (maybe with a horizontal
 rule).

 Any tools or suggestions would be appreciated. Or if you know of a good
 forum or mailing list to discuss this, please let me know.

 Thanks!

 The original roff documents use various different roff macros all in one
 book compilation -- the page numbering keeps resetting because they are
 using different macros. Post-processing the PDF or postscript seems to be
 easier than converting the many documents to one macro style or to LyX or
 LaTeX (especially since they continue to be maintained in their original
 formats).

I think possibly pdftk might do it. Google pdftk.

SteveT


Re: Generating PDF/A from LyX/LaTeX

2008-09-09 Thread Steve Litt
On Tuesday 09 September 2008 12:54:38 pm Ernesto Posse wrote:
 This question is not a LyX-only question, but I thought maybe someone
 here could have an idea on this issue.

 Has anyone succeeded in producing a PDF/A file (PDF for archival) from
 LyX/LaTeX? I've tried tools that claim to generate PDF/A from
 PostScript files or PDF files (both for Windows and Linux) but I
 haven't been successful in generating a file which is considered PDF/A
 compliant by at least two different validators, even with the
 following minimal file (in LaTeX) via dvips:

 === file a.tex ===
 \documentclass{article}
 \begin{document}
 Just this line...
 \end{document}
 === end of file ===

 I've tried generating through dvips:

 dvips -o a.ps a.dvi

 or

 dvips -Ppdf -o a.ps a.dvi

 then through ghostscript/ps2pdf as described in
 http://pages.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm (I tried it on both
 Windows Vista and Ubuntu)

 I also tried generating with dvipdf and pdflatex, and then using a PDF
 to PDF/A converter.

 I've tried Acrobat 9 Pro (Distiller on Windows Vista), as well as
 PDF2PDF from pdf-tools.com (On Windows Vista, XP and Ubuntu), PDF
 Quick Master (On Windows XP), and PDF Appraiser (On Windows Vista and
 XP)

 Acrobat Distiller produces a PDF file and claims it is PDF/A
 compliant, but when I run the compliance test within Acrobat, it
 fails! (An Acrobat generated PDF/A file fails the Acrobat PDF/A test!)

 Any ideas on how to generate PDF/A from LaTeX would be welcome...

 Thanks

Hi Ernesto,

This isn't responsive to your question, but maybe, just maybe, it's responsive 
to your situation.

I see nothing but heartache in PDF/A. PDF/A test notwithstanding, I contend 
you don't REALLY know it it will render accurately (or at all) years from 
now. Things happen.

Of all the ways to define data, PDF is one of the most complex. I've modified 
PDFs with pdftk, and (ugh) with Vim. It's ugly, unless you know the whole 
standard by heart. It's not human readable.

More to the point, over years and decades, standards come and go. Those QIC 
tapes I so joyously used in 1994 are unreadable today unless I go out and buy 
a QIC tape drive and somehow get the matching software. Do you really think 
the ISO9660 standard so ubiquitous today will exist in 2050? Me neither. My 
prediction -- .tgz and .zip will be the stuff of old-timer reminiscences by 
then, the way Kaypro computers are today. And PDF, I doubt it will exist.

If something's really important to have throughout the ages, print it to nice, 
acid free paper, and store it appropriately. That will last at least 200 
years.

I called the US trademark office and asked whether I could submit my Ebooks' 
copyright specimens on paper in addition to electronically on CD. They said 
yes, they prefer it that way, because paper stands the test of time, and 
digital representations don't necessarily.

I have handwritten journal pages from the mid 1970's, written in ballpoint pen 
on cheap notebook paper, that are perfectly readable over 30 years later. I 
dare you to read a magtape from 1975.

If you have a lot of docs that must be archived, and space is a concern, 
perhaps microfiche is the way to go. I'd guess that will last at least 30 
years, always assuming they keep making microfiche readers.

If you MUST go digital, I recommend plain text. In 1987, when I first started 
making invoices for customers, I made a very savvy choice. All my invoices, 
from 1987 through the present, have been plain text. Formatting was done by 
inserting space characters. No tabs, which of course can be redefined by the 
rendering software. If you absolutely must go digital with data meant to 
survive a century, plain text is the way to do it. As long as ASCII exists 
(or a codepage that maps to old ASCII), and as long as I keep copying those 
invoices to media that can be read by newly current technologies, my invoices 
will be readable.

Personally, when I hear the words PDF and archive in the same sentence, I 
become very skeptical.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Generating PDF/A from LyX/LaTeX

2008-09-09 Thread Steve Litt
What a nightmare!

What does the university say about validators -- any validator, all 
validators, Adobe's validator?

The PDF/A Wikipedia page makes it look pretty straightforward -- all fonts 
embedded, all fonts legal everywhere, no video, audio or javascript, device 
independent color.

Makes sense when thought about from a portability as opposed to a long term 
archival viewpoint. And it seems straightforward, except for proving it :-)

SteveT

On Tuesday 09 September 2008 02:00:54 pm Ernesto Posse wrote:
 Hi. I do not have a particular preference for PDF/A, but unfortunately
 my university requires electronic thesis submissions to be in PDF/A.
 After seeing that even a minimalistic latex document seems to be
 impossible to convert to  PDF/A, and realizing that there is no
 consistency among PDF/A validators, I'm not becoming a fan of the
 format. Nevertheless, I need to convert my thesis to this format...

 On Tue, Sep 9, 2008 at 1:29 PM, Steve Litt [EMAIL PROTECTED] 
wrote:
  On Tuesday 09 September 2008 12:54:38 pm Ernesto Posse wrote:
  This question is not a LyX-only question, but I thought maybe someone
  here could have an idea on this issue.
 
  Has anyone succeeded in producing a PDF/A file (PDF for archival) from
  LyX/LaTeX? I've tried tools that claim to generate PDF/A from
  PostScript files or PDF files (both for Windows and Linux) but I
  haven't been successful in generating a file which is considered PDF/A
  compliant by at least two different validators, even with the
  following minimal file (in LaTeX) via dvips:
 
  === file a.tex ===
  \documentclass{article}
  \begin{document}
  Just this line...
  \end{document}
  === end of file ===
 
  I've tried generating through dvips:
 
  dvips -o a.ps a.dvi
 
  or
 
  dvips -Ppdf -o a.ps a.dvi
 
  then through ghostscript/ps2pdf as described in
  http://pages.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm (I tried it on both
  Windows Vista and Ubuntu)
 
  I also tried generating with dvipdf and pdflatex, and then using a PDF
  to PDF/A converter.
 
  I've tried Acrobat 9 Pro (Distiller on Windows Vista), as well as
  PDF2PDF from pdf-tools.com (On Windows Vista, XP and Ubuntu), PDF
  Quick Master (On Windows XP), and PDF Appraiser (On Windows Vista and
  XP)
 
  Acrobat Distiller produces a PDF file and claims it is PDF/A
  compliant, but when I run the compliance test within Acrobat, it
  fails! (An Acrobat generated PDF/A file fails the Acrobat PDF/A test!)
 
  Any ideas on how to generate PDF/A from LaTeX would be welcome...
 
  Thanks
 
  Hi Ernesto,
 
  This isn't responsive to your question, but maybe, just maybe, it's
  responsive to your situation.
 
  I see nothing but heartache in PDF/A. PDF/A test notwithstanding, I
  contend you don't REALLY know it it will render accurately (or at all)
  years from now. Things happen.
 
  Of all the ways to define data, PDF is one of the most complex. I've
  modified PDFs with pdftk, and (ugh) with Vim. It's ugly, unless you know
  the whole standard by heart. It's not human readable.
 
  More to the point, over years and decades, standards come and go. Those
  QIC tapes I so joyously used in 1994 are unreadable today unless I go out
  and buy a QIC tape drive and somehow get the matching software. Do you
  really think the ISO9660 standard so ubiquitous today will exist in 2050?
  Me neither. My prediction -- .tgz and .zip will be the stuff of old-timer
  reminiscences by then, the way Kaypro computers are today. And PDF, I
  doubt it will exist.
 
  If something's really important to have throughout the ages, print it to
  nice, acid free paper, and store it appropriately. That will last at
  least 200 years.
 
  I called the US trademark office and asked whether I could submit my
  Ebooks' copyright specimens on paper in addition to electronically on CD.
  They said yes, they prefer it that way, because paper stands the test of
  time, and digital representations don't necessarily.
 
  I have handwritten journal pages from the mid 1970's, written in
  ballpoint pen on cheap notebook paper, that are perfectly readable over
  30 years later. I dare you to read a magtape from 1975.
 
  If you have a lot of docs that must be archived, and space is a concern,
  perhaps microfiche is the way to go. I'd guess that will last at least 30
  years, always assuming they keep making microfiche readers.
 
  If you MUST go digital, I recommend plain text. In 1987, when I first
  started making invoices for customers, I made a very savvy choice. All my
  invoices, from 1987 through the present, have been plain text. Formatting
  was done by inserting space characters. No tabs, which of course can be
  redefined by the rendering software. If you absolutely must go digital
  with data meant to survive a century, plain text is the way to do it. As
  long as ASCII exists (or a codepage that maps to old ASCII), and as long
  as I keep copying those invoices to media that can be read by newly
  current technologies

Re: Generating PDF/A from LyX/LaTeX

2008-09-09 Thread Steve Litt
On Tuesday 09 September 2008 06:25:54 pm Ernesto Posse wrote:
 On Tue, Sep 9, 2008 at 5:56 PM, Steve Litt [EMAIL PROTECTED] 
wrote:
  What a nightmare!

 Indeed.

  What does the university say about validators -- any validator, all
  validators, Adobe's validator?

 They use Acrobat's. It seems that Adobe's Distiller has its own
 validator which is different than Acrobat's, since Distiller says the
 generated file is compliant, but Acrobat says it is not.

Next step -- find a small PDF that the Acrobat validator says complies, and 
try to exploit the differences between that file and your timy LyX-derived 
PDF. Also this will tell you if your particular validator won't pass 
ANYTHING.

SteveT


Sure-fire LyX layout files

2008-09-11 Thread Steve Litt
Hi all,

It seems to me that from the dawn of time (2001 for me), getting LyX to work 
with a layout file anywhere but /home/myuid/.lyx/layouts was extremely 
difficult, with no reproducible procedure. You'd create a symlink from where 
the file really existed to /home/myuid/.lyx/layouts, and then after about an 
hour of fiddling around, the document class would somehow magically show up 
in your list.

It got even worse in 1.5.x when they attempted to recognize layout files in 
the current directory. You could have duplicate copies with all sorts of 
environment-munching disasters, or none, or who knows what.

Yesterday I got a layout file to work the first time. What a refreshing 
difference. Here's what I did:

cd /home/myuid/mybook
Decided my document class should be called infacebook
Created a small layout file as infacebook_layout.src
ln -s /home/myuid/mybook/infacebook_layout.src 
/home/myuid/.lyx/layouts/infacebook.layout
lyx/reconfigure
lyx mybook.lyx
switch document class to infacebook, which is now listed.

The key here is that the actual physical file (as opposed to the symlink name) 
does not end with .layout, so LyX doesn't try to use it as a layout file. LyX 
relies only on the symlink copy in /home/myuid/.lyx/layouts.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Sure-fire LyX layout files

2008-09-11 Thread Steve Litt
On Thursday 11 September 2008 12:02:05 pm Rich Shepard wrote:
 On Thu, 11 Sep 2008, Steve Litt wrote:
  It seems to me that from the dawn of time (2001 for me), getting LyX to
  work with a layout file anywhere but /home/myuid/.lyx/layouts was
  extremely difficult, with no reproducible procedure. You'd create a
  symlink from where the file really existed to /home/myuid/.lyx/layouts,
  and then after about an hour of fiddling around, the document class would
  somehow magically show up in your list.

 Steve,

Most of my layouts are in /usr/local/share/lyx/layouts/, but a few are
 in ~/.lyx/layouts. I've not had any issues using them from either place
 regardless of LyX version.

Yes, if you keep all your layout files in those two places, there will never 
be any problem. My issue is I like to keep my layout source code in the same 
directory as my book source code. Pre 1.5.x, LyX wouldn't look for layout 
files anywhere but /usr/local/share/lyx/layouts or ~/.lyx/layouts, so you'd 
need to create a symlink in a place where LyX looked, namely ~/.lyx/layouts.

However, starting with 1.5.x, LyX looked for layout files in the current 
directory, but sometimes finds them and sometimes doesn't, so if you don't 
have the symlink you might or might not have your document class available if 
you only put the layout file in the current directory. But if you symlink it, 
then you might get duplicates, one in the current directory and one in 
~/.lyx/layouts, in which case all sorts of bad things happen.


I have no LyX layouts with an .src extension.

That's the whole point -- the .src is my deliberate sabotage so that 
incarnation of the file is NOT recognized as a layout. Then the symlink will 
be the only copy seen, and will fire up right away.


Obviously, our milages vary.

The main place our mileages vary is in preferences. You prefer to keep your 
layout source code in ~/.lyx/layouts, and I prefer to keep it in the 
directory with the book. If your preferences shifted to mine, then you'd need 
to do my workaround to get things to consistently work.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Sure-fire LyX layout files

2008-09-11 Thread Steve Litt
On Thursday 11 September 2008 11:51:59 am Steve Litt wrote:
 Hi all,

 It seems to me that from the dawn of time (2001 for me), getting LyX to
 work with a layout file anywhere but /home/myuid/.lyx/layouts was extremely
 difficult, with no reproducible procedure. You'd create a symlink from
 where the file really existed to /home/myuid/.lyx/layouts, and then after
 about an hour of fiddling around, the document class would somehow
 magically show up in your list.

 It got even worse in 1.5.x when they attempted to recognize layout files in
 the current directory. You could have duplicate copies with all sorts of
 environment-munching disasters, or none, or who knows what.

 Yesterday I got a layout file to work the first time. What a refreshing
 difference. Here's what I did:

 cd /home/myuid/mybook
 Decided my document class should be called infacebook
 Created a small layout file as infacebook_layout.src
 ln -s /home/myuid/mybook/infacebook_layout.src
 /home/myuid/.lyx/layouts/infacebook.layout lyx/reconfigure
 lyx mybook.lyx
 switch document class to infacebook, which is now listed.

 The key here is that the actual physical file (as opposed to the symlink
 name) does not end with .layout, so LyX doesn't try to use it as a layout
 file. LyX relies only on the symlink copy in /home/myuid/.lyx/layouts.

 HTH

 SteveT

I should add a couple things:

Before opening mybook.lyx with infacebook document class, you should make a 
brand new document, which can be empty, and set that empty document to 
infacebook document class. If that doesn't work, suspect your layout file has 
errors and fix them.

If necessary, start with this trivial known good layout file to eliminate the 
possibility of your layout source being bad:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{trivialbook}

Input stdclass.inc
#Format 2
Input book.layout

Preamble
EndPreamble

Style TrivItemize
CopyStyle Itemize
End


Of course, you must call this file ./trivialbook_layout.src and follow all the 
symlinking/reconfigure steps in order for it to work. The point is, there's 
now a way to quickly put your layout source code into any directory you want, 
and have it quickly recognized by LyX.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: using lyx in batch mode

2008-09-12 Thread Steve Litt
On Thursday 11 September 2008 08:02:34 pm Travis wrote:
 So I really like lyx for writing; I'm using it in a book which you may view
 here:

 http://www.subspacefield.org/security/security_concepts.html

 In any case, I want to be able to use lyx for editing, but have a script
 or Makefile for each project that generates PDF, HTML or both.

 I'm wondering if anyone else feels that manually exporting these things is
 not the Unix way and if they've cooked together some scripts or makefiles.

 I am well aware of lyx -e, but I've found that it chooses a convertor
 in some manner but I don't know how (the one it chooses is
 suboptimal).  

You can export to LaTeX, and from there you can attack it with the converters 
and utilities of your choice.


 Furthermore, I don't understand the filename.lyxConv 
 convention.  Therefore, I've been avoiding it.

You're doing better than I. I don't even know what the filename.lyxConv 
convention is.

Anyway, the following is a script I use to compile a LyX book. It erases all 
the intermediate files, exports to LaTeX, runs latex on that, then runs dvips 
and ps2pdf to create the PDF. It also checks for compile errors by means of 
checking the length of one of the intermediate files.

==
#!/bin/bash
lyxcommand=lyx-1.5.6
rm -f $1.aux
rm -f $1.dvi
rm -f $1.ps
rm -f $1.pdf
rm -f $1.idx
rm -f $1.ilg
rm -f $1.ind
rm -f $1.log
rm -f $1.tex
rm -f $1.toc
$lyxcommand --export latex $1.lyx
latex $1.tex
makeindex $1.idx
ilglines=`wc -l $1.ilg | cut -d   -f 1`
if test $ilglines = 6; then
latex $1.tex
latex $1.tex

# Two commands below DO NOT ensure embedded fonts.
#   dvips -o $1.ps $1.dvi
#   ps2pdf12 $1.ps

# Two commands below ensure all fonts embedded!
dvips -t letter -Pdownload35 -o $1.ps $1.dvi
ps2pdf12 -dEmbedAllFonts=true $1.ps
#nohup gv $1.pdf  
#exit 0
else
echo ERROR: Inspect $1.ilg and $1.ind!
gvim $1.ilg $1.ind
echo ERROR: Inspect $1.ilg and $1.ind!
exit 1
fi
==

As you can see, my shellscript is basically the same thing as your makefile, 
except you use pdftex and I use dvips and ps2pdf. I'm not sure what benefit 
you'd get out of using a makefile, because I don't see all that many 
dependencies that would change what you need to do.

SteveT


 Also, I'm having to use a manually-compiled tth because my book
 triggered a bug (now fixed but not in ubuntu archives yet) in tth.

 Finally, I'm using images, and they need to be grouped with the book's
 HTML when publishing that way.

 I've been experimenting a bit and this is what I have, but it's suboptimal:

 #! /usr/bin/make

 LYX=lyx

 STAGING=$(HOME)/save/www.subspacefield.org/security/

 # $@ is target of rule
 # $ is first prerequisite
 %.tex: %.lyx
 $(LYX) -e latex $

 %.pdf: %.tex
 pdflatex $

 # Does not work right just yet
 %.html: %.tex
 /home/travis/me/security/tth -t -e2 $

 install: $(TARGETS)
 chmod -R a+rX $^
 cp -pR $^ $(STAGING)

 clean:
 -bash -c 'rm
 $(PAPER).{toc,tex,snm,pdf,out,nav,log,aux,tlg,log,dvi,aux}'

 Anyone else trying similar tricks?




Re: using lyx in batch mode

2008-09-12 Thread Steve Litt
On Friday 12 September 2008 10:46:04 am you wrote:
 Steve Litt wrote:
  Anyway, the following is a script I use to compile a LyX book. It erases
  all the intermediate files, exports to LaTeX, runs latex on that, then
  runs dvips and ps2pdf to create the PDF. It also checks for compile
  errors by means of checking the length of one of the intermediate files.
 
  ==
  #!/bin/bash
  lyxcommand=lyx-1.5.6
  rm -f $1.aux
  rm -f $1.dvi
  rm -f $1.ps
  rm -f $1.pdf
  rm -f $1.idx
  rm -f $1.ilg
  rm -f $1.ind
  rm -f $1.log
  rm -f $1.tex
  rm -f $1.toc

 May I recommend:
 EXTS=aux dvi ps pdf idx ilg ind log tex toc;
 for ext in $EXTS; do rm -f $1.$ext; done
 Makes it just a touch simpler to maintain.

Beauty is in the eye of the beholder. I like the consecutive commands. Of 
course, if I repeatedly had to do different things to the different 
extensions, your method would be the clear winner.


  $lyxcommand --export latex $1.lyx
  latex $1.tex
  makeindex $1.idx

 What does the next line test for?

  ilglines=`wc -l $1.ilg | cut -d   -f 1`

The preceding command delivers the number of lines, and nothing more. Without 
the cut it would deliver something like:

6 mybook.ilg

Of course, a simpler way to accomplish the same end would have been:

cat $1.ilg | wc -l

I was in a hurry when writing that script, and had half my mind on other 
things.


  if test $ilglines = 6; then
  latex $1.tex
  latex $1.tex
 
  # Two commands below DO NOT ensure embedded fonts.
  #   dvips -o $1.ps $1.dvi
  #   ps2pdf12 $1.ps
 
  # Two commands below ensure all fonts embedded!
  dvips -t letter -Pdownload35 -o $1.ps $1.dvi
  ps2pdf12 -dEmbedAllFonts=true $1.ps
  #nohup gv $1.pdf 
  #exit 0

 I take it that you want to be able to use both of these. 

No, I just forgot to remove the non-embedding commands. When selling Ebooks to 
people on unknown systems, I always try to have the PDF be as standalone as 
possible.

 If so, then (as 
 I'm sure you know) you can do it with option processing. Put this at the
 beginning:
 EMBED=;
 while getopts :e opt; do
case $opt in
   e) EMBED=true;;
   \?)echo Unrecognized option:  $opt; exit 1;;
esac
 done
 And then later you can have:
 if [ -z $EMBED ]; then
# do the non-embed thing
 else
# do the embed thing
 fi

That's good info! I've used getopts only in C and Ruby and maybe Perl. I 
didn't know you could do it in shellscripts.

STeveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Problems with 1.6 RC2

2008-09-15 Thread Steve Litt
Hi Richard,

If I read your script correctly, LyX creates pipe files ~/.lyx/lyxpipe.in and 
~/.lyx/lyxpipe.out. I ran LyX and didn't see those pipe files, or anything 
remotely resembling them. I  What am I missing?

I'm using LyX 1.5.6, configured as binary lyx1.5.6 with user directory 
$HOME/.lyx1.5.6. I looked in all the LyX user directories for all other 
versions, no lyxpipe in those either.

It would be kinda cool to have a running instance of LyX, and program it using 
commands to the pipe file.

SteveT

On Monday 15 September 2008 11:51:27 am Richard Heck wrote:
   

 Check out the attached.

 rh

 lyx-script
   #!/bin/bash
 LYX=/usr/local/bin/lyx;
 SYSDIR=${LYX%/bin*}/share/lyx;
 USERDIR=$HOME/.lyx;
 LYXFULL=$LYX -sysdir $SYSDIR -userdir $USERDIR -geometry
 1024x1024+100+100; LYXPIPE=$USERDIR/lyxpipe
 LYXPIPEIN=$LYXPIPE.in;
 LYXPIPEOUT=$LYXPIPE.out;
 CMD=file-open;

 PROG=$(basename $0);
 function printUsage {
 cat EOF
 ###
 USAGE: $PROG [-c] [LYX-COMMANDS]
 $PROG is a simple script to run LyX. Its main purpose is that it will
 open a requested file in a running instance of LyX, if it can find one.

 Argument:
 LYX-COMMANDS: Anything you could pass to LyX.

 Options:
 -c: Re-configure LyX before launching.
 -h: Print this message
 EOF
 }


 CONFIG=;
 #Option processing
 while getopts :c opt; do
 case $opt in
 c )   CONFIG=true;;
 h )   printUsage; exit 0;;
 \? )  printUsage; exit 1;;
 esac
 done

 shift $(($OPTIND - 1));

 if [ ! -x $LYX ]; then
 LYX=$(which lyx);
 if [ ! -x $LYX ]; then
 echo Can't find LyX!;
 exit 1;
 fi
 fi

 if [ -n $CONFIG ]; then
 pushd $USERDIR /dev/null 21;
 if [ $? != 0 ]; then
 echo Couldn't change to user directory $USERDIR!!;
 exit 1;
 fi
 $SYSDIR/configure.py
 popd /dev/null 21;
 fi

 if [ -e $LYXPIPEIN ]; then
 if [ -n $1 ]; then
 echo LYXCMD:lyx-script:$CMD:$1  $LYXPIPEIN;
 exit 0;
 fi
 kdialog --title LyX Running --warningcontinuecancel LyX appears
 to be running. Click Continue to delete the lyxpipe and force a run.; if [
 $? != 0 ]; then exit 0; fi
 rm -f $LYXPIPE
 fi

 $LYXFULL $1;




Re: Finding and replacing quotes

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 02:17:03 am K. Elo wrote:
 Hi,

 how could I find (and replace) quotation marks in LyX? I have selected
 wrong type for quotes and now I should replace all quotes :(

 I have tried to use the -character in find-dialog, but this does not
 work. I also have tried to copy-paste the wrong quote but it does not
 work, either.

 Any ideas how to solve this?

Personally, I'd do it in Vim. In order to know the replacement character, 
within LyX type the beginning and ending code, and then look at them in Vim 
and use them for replacements.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: OT. Insert [lyx] into the Subject

2008-09-22 Thread Steve Litt
On Monday 22 September 2008 03:58:54 pm Pavel Sanda wrote:
  Hi mailing list admin,
 
  Just a minor request.
  As many other mailing lists, I think it would be handy if your 
  listserver would insert [lyx] into the subject field. It would help me a
  lot in order to filter/sort/order  my incoming mails much faster.
 
  why not?

 this is already possible by filtering email headers, for example this line:
 List-Post: mailto:lyx-users@lists.lyx.org
 can be used.

Yeah, but the fact is, if it contained [lyx-users] in the subject, it would be 
more like other mailing lists, and it would be easier to filter by almost any 
email client, without having tocc.


 you can also read http://www.lyx.org/MailingLists for this list netiquette,
 especially the hijacking threads bullet :)

Yeah, he should have composed a brand new message, but that doesn't impact his 
suggestion, which in my opinion is a good one if it's reasonably easy to do.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Unhappy Returns in Word

2008-09-24 Thread Steve Litt
On Wednesday 24 September 2008 09:37:41 am Bruce Pourciau wrote:
 To save my elbow, I asked our secretary to type up a list in Word
 having this structure

 line1[soft return]
 line2[return]
 line3[soft return]
 line4[return]

 and so on (where a soft return on a mac is shift-return) hoping that
 when I copied and pasted into a LyX enumerate environment I would get

 1.line1
   line2

 2.line3
   line4

 and so on. I  get different things depending on the kind of paste in
 LyX I choose, but I do not get what I want. Any help would be
 appreciated.

 Bruce

Hi Bruce,

If it were me, I'd copy the secretary's work into Vim (after exporting to text 
or whatever), and then use Vim's search and replace or other tools to produce 
the equivalent LyX. You can reverse engineer deduce the codes in LyX by 
writing a tiny sample in LyX, then look at the resulting file in Vim.

Everybody,

This is one of many situations where it's vitally important to be able to edit 
a LyX file in a text editor, which is why it's necessary to make sure our new 
XML format is as text editor friendly as possible.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Add line to latex preamble before documentclass-command?

2008-09-26 Thread Steve Litt
On Friday 26 September 2008 05:56:29 am Guenter Milde wrote:
 Christian Richter [EMAIL PROTECTED] schrieb:
  Hello Lyx-Community,
 
  I have a problem with the Lineno-Package (for Line numbering) in
  combination with the RevTex4(article) documentclass.
 
  RevTex4 states that it is incompatible with the lineno-package.
  (http://authors.aps.org/revtex4/revtex4_faq.html).
 
  Nevertheless on
  http://fourforces.wordpress.com/2008/04/24/add-line-numbers-using-linenos
 ty-in-revtex-4/ a workaround is published:
 
  It is necessary to put the Line
  \RequirePackage{lineno}
  in the Latex preamble before(!!!) the documentclass-command!
 
  My question is now: How can I add a line to the beginning of the
  preamble? In Lyx the use-specified commands appear always at the end
  of the preamble..

 The only way I see is to export to LaTeX, insert the line in
 the LaTeX source and run latex (and maybe bibtex and latex again and
 again) by hand.

 Günter

Günter,

Would it work if he made a little layout file with the statement in there, and 
used the layout file?

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Lyx is slow while typing documents (Windows)

2008-10-13 Thread Steve Litt
On Monday 13 October 2008 03:06:53 am Alex wrote:
 2nd attempt at posting this ...

 Hey,

 I have installed Lyx maybe 3-4 months ago, but I have been really using it
 seriously in the past month. I am trying to write my thesis.
 The problem is that the program becomes really, really sllooowww after a
 while. What I mean is that it gets to the point where, while typing, it
 takes 2-3 seconds for *each* character/letter to appear on the screen. I
 can type a whole sentence and then wait 2-3 minutes, but the moment I
 switch to a different Window, LyX stops recording what I had just typed, so
 I have to do it again. As you can imagine, it's hard to be writing a longer
 document in this style.
 I've seen some earlier emails on this forum with similar problems (e.g. 2
 years ago there was a problem on Macs), but no real fixes.

 A little bit about my setup: I am using Windows XP, and I tried LyX
 versions 1.5.6 and 1.6.0 up to RC3 as they came out. Whenever I installed a
 new version, things were fine for a few days, but in at most a week I'm
 back not able to really use Lyx for writing. I even tried switching to a
 new computer, I tried not leaving LyX open for days with the documents I'm
 editing, I tried rebooting and reopening my documents, reinstalling LyX -
 eventually everything fails, and it stays slow even when I had just opened
 the document.

 I can send you the file I'm currently working on, if anyone wants to
 reproduce the problem. I was smart enough to split my thesis into chapters
 in separate files, so right now I have something like 10 pages of text and
 about 10 figures (imported from .eps files). The typing speed was ok at the
 beginning but eventually I had to type my stuff in MS Word and then copy
 into LyX. Now I'm just trying to edit a few minor details in LyX and it's
 being
 impossible... I admit, I have had many programs open at the same time (like
 MS Office, Matlab, Remote Desktop, Acrobat) when I first noticed the
 slowness, but now even after a fresh restart, LyX is too slow for me to
 type anything... I noticed that if I start a new LyX document, I can type
 again fast for the first few lines of text, but what's the maximum size
 document that LyX can handle without getting bogged down? (My file is
 currently only about 50 kB, and included images as little as 100 kB when
 things got really slow. I eventually have added more figures, a couple of
 which are  than 1Mb, but these are kept in separate files after all. Even
 documents that come with Lyx, like the User's Guide, are extremely slow to
 open and/or edit in all versions of LyX 1.5.6 and above.

 I can live with smaller bugs in LyX, but this one above is currently
 preventing me from using all the other capabilities of this program.

 Alex

Hi Alex,

Just for fun, and as corrective maintenance, try deleting all unnecessary 
files from your drive, and then defrag it. Also, check your virtual memory 
settings and make sure your virtual memory file is contiguous, is big enough, 
and doesn't shrink and grow all the time. Make sure you have sufficient 
semiconductor RAM (I have no idea how much you need for Windows, LyX and a 
few other apps).

LyX works fine for you on really tiny files, but when they grow to small files 
(~50K), performance is abyssmal. Perhaps files work fine as long as they're a 
single block, but get messed up when they span blocks, because of 
fragmentation. 

Also, perhaps you're swapping between semiconductor RAM and virtual memory. 
That would produce the one keystroke every 3 seconds symptom you describe. 
Check for sufficient semiconductor RAM, and make sure it isn't all being used 
by some process (you know how Windows just loves to load up all sorts of 
stuff at startup, especially if the Windows was installed by the guys you 
bought your computer from).

I'm not saying any of my suspicions are right -- I'm just saying these are 
easy checks to make, and should be made on ANY computer to assure continued 
efficient running.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Lyx is slow while typing documents (Windows)

2008-10-13 Thread Steve Litt
On Monday 13 October 2008 02:44:39 pm Alex wrote:
 Steve Litt [EMAIL PROTECTED] writes:
  I'm not saying any of my suspicions are right -- I'm just saying these
  are easy checks to make, and should be made on ANY computer to assure
  continued efficient running.
 
  SteveT
 
  Steve Litt
  Recession Relief Package
  http://www.recession-relief.US

 Thanks, Steve, I hope the messages you get from your stockbroker are just
 as full of subtle humor :) 

No such luck. My stockbroker's funeral is Thursday. It's going to take the 
undertaker that long to eliminate the squished from 47 floor fall look.

 I've already been helped though - all I needed 
 to do is to rewrite Windows to work seamlessly with LyX.

I already did that. I overwrote Windows with Linux :-)

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Spellchecker

2008-10-13 Thread Steve Litt
On Monday 13 October 2008 04:23:06 pm TheOldFellow wrote:
 On Mon, 13 Oct 2008 20:55:24 +0200
 Joost Verburg

 [EMAIL PROTECTED] wrote:
  TheOldFellow wrote:
   How do I set the spellchecker to English-English (i.e. as written in
   England) instead of American-English?
 
  You should set the document language to British.
 
  Joost

 Thanks.

 However, that is really appalling.  My language is called English.  I
 will just about stand up for English(UK), but British, never.  What
 about Gallic, Cornish and Welsh - three completely different British
 languages?

 I have decided to call Dutch, Netherlandian from now on.

 How do I make a formal objection to the project authorities, who I
 assume are from South-but-not-as-far-as-Mexico-North-America?  You
 know, the people who speak Usaian.   You can't go around calling
 people's languages whatever you like you know.  They get very angry.

 The best solution is to call the menu item 'Spelling' rather than
 'Language' - then British is an appropriate choice.

 R.

Yeah! While we're making formal objections to a project whose list we first 
posted to today, I post the following formal objections:

* Make the tan background white so as to not clash with room decoration
* The appalling printer icon should look more like a printer
* The noun font icon should be female

S.



Fwd: Tracey Carpenter/GB/INT/Kelly is out of the office.

2008-10-13 Thread Steve Litt
Please, please, PLEASE kick off and permanently ban from the mailing list all 
email addresses from kellyservices.co.uk. This has been happening for a year, 
it's rude, and it's annoying.

Thanks

SteveT
--  Forwarded Message  --

Subject: Tracey Carpenter/GB/INT/Kelly is out of the office.
Date: Monday 13 October 2008
From: Tracey Carpenter [EMAIL PROTECTED]
To: Steve Litt [EMAIL PROTECTED]


I will be out of the office starting  09/25/2008 and will not return until
10/17/2008.

Due to ill health I am not in the business until 17th October.  In the
meantime please do not hesitate to contact my senior consultants Mel
Woolston and Leigh Fellerman on 0207 630 5133 who will be happy to assist.
Best wishes,
Tracey

Kelly Services... we see work from a People perspective

We are currently recruiting for experienced Consultants and
Managers to work across our branch network, if you know of someone
who you feel would be suited to our business, contact our Internal
Recruitment Team on 0870 609 1698.

Find out more at www.kellyservices.com

About Kelly Services
Kelly Services, Inc. (NASDAQ: KELYA, KELYB) is a Fortune 500
company headquartered in Troy, Mich., offering staffing solutions
that include temporary staffing services, outsourcing, vendor
on-site and full-time placement.  Kelly operates in 32 countries
and territories.  Kelly provides employment to more than 750,000
employees annually, with skills including office services,
accounting, engineering, information technology, law, science,
marketing, creative services, light industrial, education, and
health care.  Revenue in 2006 was $5.6 billion. 

CONFIDENTIAL
The information contained in this email and any attachment is
confidential. It is intended only for the named addressee(s). If
you are not the named addressee(s) please notify the sender
immediately and do not disclose, copy or distribute the contents to
any other person other than the intended addressee(s)

Kelly Services (UK) Ltd.
Registered Office:
Apple Market House
17 Union Street
Kingston upon Thames
Surrey
KT1 1RR
Registered in England and Wales No: 2749906

Please consider the environment before printing 


---


Re: dependency hell while compiling lyx 1.5.6 from source

2008-10-18 Thread Steve Litt
On Saturday 18 October 2008 07:38:24 pm Pavel Sanda wrote:
  ~
   the thing is that as I read online in order to install qt 4 you need
  libqt4-core and then to install libqt4-core you need ... so you will
  be dealing with an apparently endless dependency
  ~
   There should be a way to deal with this, right? What is it?

 isn't this the job of your linux distro to care about the dependencies?
 pavel

Oh not that again! Let's try to help this guy.

Albretcht: Look through the LyX-Users archives for a thread with subject Why 
oh why did you drop xforms? It's a long and sometimes contentious thread, 
but it shows a solution to the problem. Be aware that after a botched compile 
attempt where dependencies aren't met, you need to remove the tree and 
re-untar the tarball. That was the main piece of information I didn't have at 
first.

In August 2008 I tried again, and that time I had to use rpm with the 
dreaded --nodeps in order to get it to work.

If you were thinking of upgrading to the latest version of your distro, this 
would be an excellent time to do so. I had horrid problems compiling 1.5.x on 
Mandriva 2007, but on Mandriva 2008 it compiled effortlessly because Mandriva 
2008 had the necessary version of qt4.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Number of documents prepared with LyX? (Was: Frustrated user)

2008-10-25 Thread Steve Litt
On Friday 24 October 2008 06:17:34 pm Christian Ridderström wrote:
 On Wed, 22 Oct 2008, Mike Ressler wrote:
  I can assure you that LyX has been used to write hundreds of
  dissertations, theses, and scholarly papers

 Interesting question... how many such documents have been written using
 LyX?

I don't know how scholarly my books are, but I've written the following 
books in LyX:

* Troubleshooting Techniques of the Successful Technologist (309 pages)
* Manager's Guide to Technical Troubleshooting (201 pages)
* Twenty Eight Tales of Troubleshooting (221 pages)
* Troubleshooting: Just the Facts (82 pages)
* Rapid Learning for the 21st Century (136 pages)
* Learn Vim Tonight (94 pages)

Some of my earlier books were written in WordPerfect and MS Word, but once I 
discovered LyX, all further books were written in LyX.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: enumerate list, text interruption, continued enumereted list with continue number

2008-10-29 Thread Steve Litt
On Wednesday 29 October 2008 01:10:56 pm Vincent van Ravesteijn - TNW wrote:
 Jon Bendtsen wrote:
  Hi
 
  I want to make an enumerated list, interrupt it by some text and
  continue the enumerated list with the approprate number
 
  1 one
  2 two
  interrupt text
  3 three
  4 four
 
 There's a LaTeX package that does this, but I can't remember
 what it is called. Anyone?
 
 You can also try searching on ctan.org.
 
 rh

 It's called 'mdwlist' according to this thread:
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg07142.html

 Vincent

Another way to do it is to use LyX's Increase Depth command. See attached 
LyX file.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



test.lyx
Description: application/lyx


Re: enumerate list, text interruption, continued enumereted list with continue number

2008-10-29 Thread Steve Litt
On Wednesday 29 October 2008 01:36:29 pm Richard Heck wrote:
 Steve Litt wrote:
  On Wednesday 29 October 2008 01:10:56 pm Vincent van Ravesteijn - TNW 
wrote:
  Jon Bendtsen wrote:
  Hi
 
  I want to make an enumerated list, interrupt it by some text and
  continue the enumerated list with the approprate number
 
  1 one
  2 two
  interrupt text
  3 three
  4 four
 
  There's a LaTeX package that does this, but I can't remember
  what it is called. Anyone?
 
  You can also try searching on ctan.org.
 
  rh
 
  It's called 'mdwlist' according to this thread:
  http://www.mail-archive.com/lyx-users@lists.lyx.org/msg07142.html
 
  Vincent
 
  Another way to do it is to use LyX's Increase Depth command. See
  attached LyX file.

 The difference is that mdwlist will restore the original margins,
 whereas this puts the left margin where the margin of the list was.

Oh. I'd assumed you'd WANT the subordinate text to be indented.

Thanks

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: [Fwd: Re: Word processor bashing]

2008-11-05 Thread Steve Litt
. 
Then, on a day when I've got my tech hat on, I improve the style in my layout 
file, using a small document with which to test it.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Word processor bashing

2008-11-05 Thread Steve Litt
On Wednesday 05 November 2008 04:24:46 am killermike wrote:

 Obviously most word processors now have styles, for example. Ironically,
 the buggy and inconsistent styles support in Open Office 0.9x was one of
 the things made me investigate LyX. I presume that this shortcoming has
 been fixed now.

:-)

Don't be too sure of that!

STeveT


Re: Adding page breaks?

2008-11-07 Thread Steve Litt
On Friday 07 November 2008 06:27:11 am Keith Roberts wrote:
 Hi all. I have some content that I want on the same page. At
 the moment it is spread across the bottom of one page, and
 goes to the top of the next one.

 Is there any way to put a page break in the document to
 force the following content to all appear together, on the
 next page please?

I believe \newpage or Insert-Formatting-Page_Break or something like that 
will do that for you, but I don't think that's what you want. It might really 
look ugly, and every time you modify the doc you'll need to check and maybe 
tweak it.

If it were me, I'd put the material that must be kept together inside a 
minipage or a \parbox. See the embedded objects manual available from your 
LyX help menu.

By putting the material together in a minipage or \parbox instead of 
strongarming a pagebreak, you let LaTeX figure out how to make it all look 
right.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: exam.layout, where ?

2008-11-09 Thread Steve Litt
On Sunday 09 November 2008 11:18:57 am Uwe Stöhr wrote:
 [EMAIL PROTECTED] schrieb:
  I can't find an exam.layout to use exam.cls in lyx?
 
   I used to have a working one but can't remember where I found it. Any
   cue ?

 We don't yet have an exam.layout in LyX. Please add this as enhancement
 request to bugzilla.lyx.org and add me to the CC list. I'll create this
 file for the next release when I find the time.

 regards Uwe

I'm thinking it would be cool to have an exam layout MODULE, so exams and 
quizes and the like can be embedded in books and the like.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Title placement and font size

2011-03-10 Thread Steve Litt
On Thursday 10 March 2011 14:36:00 Marcelo Acuña wrote:
  How can I set the title placement on the first page of my
  article and
  its font size?
  
  I have some requirements from a workshop that wants the
  title to start at
  3.49 cm from the top of the page and in 14pt font.
 
  For handle chapter titles you can use titlesec package.
  I don't know if handle title of article.
 
 Marcelo

This is just one man's opinion, but I never use the document class's features 
for the front matter. I just use custom environments and ERT (embedded LaTeX) 
to place all elements of the front matter -- the title, the author, the cover 
image, the copyright page, the dedication and acknowledgements, the here's 
how you use this book, the about the author, etc. The way I see it, every 
element of the frontmatter is a one-off thing, and one-off things are ideal 
for fingerpainting.

Once I get into the mainmatter, I'm just the opposite -- no ERT, all 
environments and character styles, because consistence is the name of the game 
in the mainmatter.

SteveT

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



Re: Title placement and font size

2011-03-10 Thread Steve Litt
On Thursday 10 March 2011 15:05:03 Rob Oakes wrote:
  This is just one man's opinion, but I never use the document class's
  features for the front matter. I just use custom environments and ERT
  (embedded LaTeX) to place all elements of the front matter -- the title,
  the author, the cover image, the copyright page, the dedication and
  acknowledgements, the here's how you use this book, the about the
  author, etc. The way I see it, every element of the frontmatter is a
  one-off thing, and one-off things are ideal for fingerpainting.
 
 I actually go one step further. I crate all of the frontmatter using a
 matching stylesheet in Scribs. I then add the material using PDFpages.
 
 To that end, I also disable the \maketitle macro so that I can still use
 \author, \title, etc. and have all of my headers and footers look correct.
 
 \renewcommand{\maketitle}{}

Pretty slick! I'm gonna do that from now on (diable maketitle, not necessarily 
build frontmatter in Scribus). The thing is, every eBook I sell is 
personalized with the customer's name, so it has to be built on the spot, and 
I'm not sure I want to have that dependent on Scribus as well as LyX/LaTeX.

Thanks for the great idea!

SteveT

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



Re: Title placement and font size

2011-03-11 Thread Steve Litt
On Friday 11 March 2011 17:37:43 Charlie wrote:
 On Thu, 10 Mar 2011 13:05:03 -0700
 
 Rob Oakes lyx-de...@oak-tree.us wrote:
   This is just one man's opinion, but I never use the document
   class's features for the front matter. I just use custom
   environments and ERT (embedded LaTeX) to place all elements of the
   front matter -- the title, the author, the cover image, the
   copyright page, the dedication and acknowledgements, the here's
   how you use this book, the about the author, etc. The way I see
   it, every element of the frontmatter is a one-off thing, and
   one-off things are ideal for fingerpainting.
  
  I actually go one step further. I crate all of the frontmatter using
  a matching stylesheet in Scribs. I then add the material using
  PDFpages.
  
  To that end, I also disable the \maketitle macro so that I can still
  use \author, \title, etc. and have all of my headers and footers look
  correct.
  
  \renewcommand{\maketitle}{}
 
 Tried your good idea Rob:
 Created a front page
 and used Insert-File-External Material
 Inserted the .pdf document, but couldn't get it to be placed on the
 first page in either article (KOMA-Script) or book (KOMA-Script)
 
 It always inserted onto page 2 - obviously missing something or doing
 something wrong.
 
 Could you please give me a hint what that might be.
 
 As always - Thanks in advance,
 Charlie

Hi Charlie, 

My bad. I knew that would be an issue and forgot to talk about it. I solved 
this with something like the following:

\frontmatter\thispagestyle{empty}\setcounter{page}{1}
\enlargethispage{1.50in}
~\\[-1.7in]\leftskip -1.83in\rightskip -1.0in

You have to enlarge the page a little bit, and then you need to center the PDF 
just right. Obviously your numbers will be a little different than mine.

I think you might need to \usepackage{setspace} to get it done right, or maybe 
another style -- I don't remember.

HTH

SteveT

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



Re: LyX Promotion

2011-03-22 Thread Steve Litt
On Tuesday 22 March 2011 11:58:22 Rich Shepard wrote:
 On Tue, 22 Mar 2011, Rob Oakes wrote:
  When I talk to people about LyX, they seem to think of it as a
  specialized academic writing tool. Basically, a program which helps
  professors and students write a thesis or articles. (To be even more
  narrow, it seems like many think it is for math and physics people to
  write a thesis or article.) Which is to say, a specialized program with
  an incredibly small user base and use.
  
  While that stereotype may be somewhat true (I don't think anyone would
  argue that many of the developers and users are within academics),
 
Feh! I do most of my writing with LyX: proposals, reports, letters,
 newsletter, white papers, etc. I use OO Writer under duress; it's too
 Microsoftish for me.

Oh don't I wish it were too Microsoftish! If it were just like Word/Powerpoint 
I'd use it all the time -- Powerpoint is decent and Word is actually a good 
program. But N, OO imports word docs and changes all styles to 
fingerpainting. An OO made Powerpoint has stuff walking off the screen viewed 
in Powerpoint. I try never to use OO on anything more than three pages long, 
because I end up putting my fist through the wall. OO is utter junk.

The only time I use OO is the anding of the following:

1) The other guy simply MUST work in MS Office
2) The document is relatively simple
3) Exact appearance isn't important

An example is when my editor made queries to my book, and I responded to the 
queries, and the editor responded to my responses, ... I just kept making 
styles to accommodate ever increasing levels of response, and somehow the 
styles survived the round trip from MSWord to OO and back.

The next major revision of my courseware will be All-Beamer-All-The-Time (no 
LyX, just Beamer LaTeX). It's 1000 times easier to maintain and personalize 
than OOImpress viewed on MS Powerpoint.

Nowadays, all my letters are LyX letter template. Yeah, it's a PITA, and I 
think it's a silly use of LyX, but it's a whole lot better than OOWriter.

When writing a paper 5 pages or less, I use Abiword to get it done in a few 
minutes. Beyond 5 pages, I use LyX. LyX can be a PITA, but at least you know 
it will work.

And of course, when writing anything over 50 pages I use LyX. This is LyX's 
intended usage, and who in their right mind would use anything else for 50+ 
page docs?

OO has the worlds ugliest native file format. Several XML files zipped up. 
These files resemble a severely denormalized database -- everything depends on 
everything else, and any given change can affect four or five different XML 
sections and maybe multiple files. As a practical matter, I find it impossible 
to work with OO native format. Contrast this with LyX, which so far is fairly 
easy to write and parse from a Perl or Lua program.

Friends don't let friends use OO.

SteveT

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



Default label???

2011-03-22 Thread Steve Litt
Hi all,

I'm now labelling all 57 chapters of my new book, and what a PITA!

First of all, there's no hotkey -- I have to do Insert-Label on every one. 
But even worse, the label defaults to the first three words, and often the 
first word is The. Is there a way to have the label default to the first 
five words? Or, perhaps give us a way to highlight the entire title and have 
that govern the label? Right now highlighting is no different from putting the 
cursor at the start, except that highlighting increases the risk of erasing 
the highlighted text.

I think that label insertion is common enough that it should be a fast 
process, and people's priorities differ enough that the default number of 
words should be changeable.

SteveT

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



Re: LyX Promotion

2011-03-23 Thread Steve Litt
On Tuesday 22 March 2011 23:27:45 David L. Johnson wrote:
 On 03/22/2011 10:58 PM, John McCabe-Dansted wrote:

  3) Not WYSIWYG.  Normal users clearly expect WYSIWYG. WYSIWYG and
  WYSIWYM don't need to be mutually exclusive.
 
 They are to an extent, since WYSIWYG really means that all the document
 contains is what you see on the screen, without additional structure
 that properly formats it for a number of different export situations.

That's not true at all. OpenOffice, MSWord, Abiword and Kompozer are all 
WYSIWYG, and all of them can be used to write styles based content that gives 
structure to the document.

 
 Think about writing a document in word.  You spend time getting the
 spacing right, the margins to look right, and align all the bits of text
 by hand.  

That's not true at all. In 1999, before knowing about LyX, I wrote a 317 page 
styles based book in MS Word, and you'd better believe the spacing, margins 
and alignment were all governed by styles and not by one-off formatting.

I think the LyX community does itself a grave disservice emphasizing this 
WYSIWYG vs WYSIWYM thing. If I were going to enumerate the good things about 
LyX, it would be something like this:

* It typesets better and more consistently than its non-TeX based competitors.
* It deletes unintentional double spaces and double newlines.
* It always calculates references, TOC and indices correctly, unlike others.
* The black on tan is readable and soothing to the eyes for long workdays.
* Its simple native format invites programmatic document creation and editing.
* It's free software, which protects your documents from vendor lock-in.
* It's an incredibly fast authoring environment.

 
 Ignoring the difficulty
 
  in implementing for a while, having a WYSIWYG mode would be great.
  After the content is complete, I go though a cycle of: Notice
  something weird with the line-breaking in the PDF, muck around with
  the LyX source hoping it fixed the problem;
 
 No.  TeX handles all that, don't ask users to spend effort in dealing
 with how lines break.  Write the paper, let TeX format it.  I would not
 want to worry about how it looks on the page while writing, that is a
 bad habit that you can avoid with LyX.

I have to disagree again. If there's something weird with the line-breaking 
in the PDF, then it will make the reader uncomfortable, and you can't just say 
Let TeX handle it, because apparently it didn't, and the reader must be 
comfortable. Long words, URLs, monospaced type are just a few of the things 
that make funny line breaks in default-formatted LyX docs. And by funny line 
breaks I mean lines walking right off the page, which is a fatal error as far 
as the reader's concerned. Most such problems can be handled by \sloppy, but 
unless you want the whole doc sloppy, you must do that on a paragraph by 
paragraph basis.

When I began using LyX in 2001 and complained about the prodigious difficulty 
of making your own paragraph styles, some people told me just use the 
defaults. Scuse me? LyX didn't provide a Warning style, and my readers needed 
one. It didn't provide a Story style, and my readers needed one. Saying to 
just use the defaults is a lot like telling a programmer to use standard 
cooked input on a keyboard driven menu system. Sure, it's easier for the 
programmer, but the user has to hit double the keystrokes, and he'll hate the 
end product.

I wrote an article about some of this ten years ago:

http://www.troubleshooters.com/linux/lyx/bestandworst.htm

SteveT

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



Re: Default label???

2011-03-23 Thread Steve Litt
On Wednesday 23 March 2011 09:04:05 you wrote:
 On 03/22/2011 07:33 PM, Liviu Andronic wrote:
  On Tue, Mar 22, 2011 at 11:26 PM, Steve Litt sl...@troubleshooters.com 
wrote:
  Hi all,
  
  I'm now labelling all 57 chapters of my new book, and what a PITA!
  
  First of all, there's no hotkey -- I have to do Insert-Label on every
  one.
  
  At least for this you can easily define a custom shortcut. See the
  docs (Customization and Functions, I think).
 
 How about alt-i, l? (Keyboard-based menu access.)
 
  But even worse, the label defaults to the first three words, and often
  the first word is The. Is there a way to have the label default to
  the first five words?
  
  I have no idea, but this might be hardcoded. You have always the
  option to change it in the sources and rebuild it for you needs.
  Otherwise perhaps file a bug report.
 
 Rainer's idea about this is OK, but it seems a lot of work for not much
 payoff.
 
 Richard

Hi Richard,

You'd have a new respect for the payoff after labeling 55 chapters with more 
than 3 words, and many start with The or A.

If Rainer's idea is too much work, an easier route could be made. Somewhere in 
the code is a constant, variable or magic number describing the max length in 
words of a default label. Just use that constant, variable or magic number to 
set a variable, and then override the variable based on an environment 
variable if the environment variable exists. I'd guess it would be about a ten 
minute change.

Then, if that environment variable solution becomes popular, at a later time 
the number of words can be set using a genuine configuration screen.

How does that sound?

Thanks

SteveT

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



Re: LyX Promotion

2011-03-23 Thread Steve Litt
On Wednesday 23 March 2011 09:54:29 you wrote:

 As for Word/OO--LyX interoperability, that seems a chimera. How can
 LyX ever be interoperable with Word, when even the LaTeX/LyX roundtrip
 will not get you back the document you started from? It seems to me
 that a more reasonable goal would be to have a Word-output function
 that strips all formatting except the semantically relevant items
 (emphasis, etc) and produce a clean Word file ready to be imported
 into a typesetting program or to be sent to Word-only people. 

Even better, in addition to exporting emphasis and noun, have it export the 
named but empty styles (environments and character styles) used in the doc, so 
the word doc has the styles and the text marked up with those styles. Then all 
that remains is to go in and modify those styles in MSWord or OOffice to 
produce the desired look. After all, modifying a style in Word is five 
minutes, not five hours.

This is a wonderful idea. Now if we can only go the other direction...

Thanks

SteveT

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



Re: LyX Promotion

2011-03-24 Thread Steve Litt
On Thursday 24 March 2011 07:01:19 Rainer M Krug wrote:
 On 24/03/11 11:29, Guenter Milde wrote:
  On 2011-03-23, Steve Litt wrote:

  This is a wonderful idea. Now if we can only go the other direction...
  
  I think we should have semantic import/export filters in addition to
  visual ones for all relevant document formats.
 
 I absolutely agree - this would make life so much easier: you can write
 in LyX, export sematically to doc / odt and do the formating in word /
 openoffice / libreoffice if the editor / conference only provides a
 specific word template.
 
 Definitely a priority.

I'm not quite sure what you guys mean by semantic import/export, but if you 
mean exporting the text marked up with (empty) styles and the (empty) style 
definitions so all I have to do with the MSWord file is fill in the styles, 
then I'm on it like a squirrel on a tree. Let me tell you why.

The (insert your own curse phrase here) fools controlling the various eBook 
formats have made it almost necessary to use MSWord as the input to the eBook 
conversion process. Saaayyy what??? So let me get this straight. I write 
my book in a good software like LyX, and then have to rewrite it in (insert 
your favorite phrase meaning incompetent here) MSWord in order to put it on 
a Kindle? Really?

You know, if we're really considering this, there should be an option to 
convert what we call Part, Chapter, Section, Subsection... to MSWord's 
Header1, Header2, Header3, Header4 etc. And of course we need to do it 
configurably because not everyone uses parts and not everyone uses chapters. 
I'm attaching part of my VimOutliner to LyX converter so you can see how I 
implemented a similar level to level mapping in that software.

Thanks

SteveT

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

1: Chapter   
2: Section
3: Subsection
4: Subsubsection 
5: Paragraph 
6: Subparagraph  
7: Garbage7   
bodytext: Standard


otl2lyx.awk
Description: application/awk


Correct paging on PDFs with chapter*

2011-03-24 Thread Steve Litt
Hi all,

My book has 57 chapters whose environment is Chapter. THen it has an Epilogue 
and three Appendices whose environments are Chapter* because I don't want them 
to have chapter numbers. The book's table of contents gets the page numbers 
right, but the PDF's clickable links in the Table of Contents and its sidebar 
clickable Table of Contents both bring you to wrong places when you click 
them. Specifically, they bring you to points in the book earlier than the 
desired place. I've already tried including package tcloft and using 
\cleardoublepage at the end of preceding chapters, and nothing worked.

I need to find a way around this, either by fixing the clickability of 
Chapter* within PDFs, or using Chapter and somehow suppressing chapter 
numbering and the use of the word Chapter. Any ideas?

Thanks

StevET

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



Re: Correct paging on PDFs with chapter* SOLVED

2011-03-24 Thread Steve Litt
Hi all,

The documented, correct, and functional fix for this is to use the 
\phantomsection command before every \addcontentsline command. The reason is 
the hyperref package has a hard time with \addcontentsline and so the hyperref 
package offers the \phantomsection command as an official workaround.

So when you guys come up with situations where \addcontentsline produces the 
numerically right page numbers in print but goes to the wrong page when 
clicked, suspect this hyperref anomole and try the \phantomsection official 
workaround.

Thanks

SteveT

On Thursday 24 March 2011 15:57:34 Steve Litt wrote:
 Hi all,
 
 My book has 57 chapters whose environment is Chapter. THen it has an
 Epilogue and three Appendices whose environments are Chapter* because I
 don't want them to have chapter numbers. The book's table of contents gets
 the page numbers right, but the PDF's clickable links in the Table of
 Contents and its sidebar clickable Table of Contents both bring you to
 wrong places when you click them. Specifically, they bring you to points
 in the book earlier than the desired place. I've already tried including
 package tcloft and using \cleardoublepage at the end of preceding
 chapters, and nothing worked.
 
 I need to find a way around this, either by fixing the clickability of
 Chapter* within PDFs, or using Chapter and somehow suppressing chapter
 numbering and the use of the word Chapter. Any ideas?
 
 Thanks
 
 StevET
 
 Steve Litt
 Recession Relief Package
 http://www.recession-relief.US
 Twitter: http://www.twitter.com/stevelitt



More hyperref bogosity

2011-03-24 Thread Steve Litt
Hi all,

I have an appendix listing the several processes in my book, with cross 
references pointing to the pages on which these processes are discussed, using 
a text:myprocess-discussion-start and text:myprocess-discussion-end labels 
within the book's text. All of the cross references print the correct page 
number, but several go to the wrong page (an earlier page) if you click them. 
However, many of the cross references go to the correct page when clicked. I 
see no distinction between the ones that screw up and the ones that work 
correctly.

Before I take a half a day or more slowly deconstructing this 110,000 word 
book to form a small test case, does anyone have any ideas why some cross 
references would screw up?

Thanks

SteveT

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



Chapter* is making me crazy again

2011-03-27 Thread Steve Litt
Hi all,

Yet another problem with Chapter*. I have some appendices at the end of the 
book which I put as Chapter* instead of Chapter so they wouldn't be identified 
as Chapter 58: Appendex A on the page header or in the table of contents. It 
didn't work out too well.

The page headers for Appendex A shows the header for the last chapter made 
with Chapter instead of Chapter*. In other words, the Appendix's page header 
shows something like  Chapter 57: Lastchaptertitle.

I'm using a document class derived from class Book, and it's waaay too 
late to change to Memoir or Koma or any of those, and I don't like them 
anyway.

I've attached a 2 chapter sample that clearly shows the problem on its PDF 
output's last page.

Another problem is my super-duper date-showing header reverts to the one last 
shown in a legitimate chapter.

I spoze there are two ways I can handle this. I could make the appendices 
chapters and include ERT like this just before they start:

\renewcommand{\thechapter}{ }\renewcommand{\chaptername}{ }

I'd need to do something similar with the date variable used in the date 
header, which isn't that hard.

Or I could find some way to make Chapter* influence \thechapter and 
\chaptername and the like.

Any ideas?

Thanks

SteveT

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



testbug.lyx
Description: application/lyx


Re: Dissapeared content

2011-03-28 Thread Steve Litt
On Monday 28 March 2011 14:48:38 Pereyra, Victor wrote:
 I am writing a book and I had all the chapters in separated .lyx files.
 I was trying to put everything together and I did no succeed. Now all my
 .lyx files are empty while the .lyx~ seem to be OK. How can I recuperate my
 content (i.e., the .lyx files?). I also have the .odf but those are
 probably useless. Thanks.

If this happened to me, the VERY FIRST thing I'd do is copy off the directory 
tree as it currently exists. That way, at least I could keep going back to my 
current condition if attempts to resolve make things worse.

You do have daily backups, don't you?

SteveT

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



Re: contrast of pdf files

2011-03-28 Thread Steve Litt
On Monday 28 March 2011 16:16:38 Paul Sutton wrote:
 Hi
 
 I produce a newsletter for my local rugby club, in a mix of LyX and
 LaTeX, I have been informed that for some people the pdf is hard to read,
 
 I just wondered if there was anything I could do about this, perhaps as
 its a pdf with black text and a white background is there a way to alter
 the back ground colour of the pdf file so its slightly off white, which
 could make it easier to read.

Hi Paul,

My experience has been that LyX's default font is so light and thready that 
it's hard to read. Lacks contrast. I set it to Century Schoolbook and that 
problem goes away.

SteveT

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



Re: Suggestions on which revision control system to use with LyX?

2011-03-28 Thread Steve Litt
On Monday 28 March 2011 17:18:47 stefano franchi wrote:
 Dear all,
 
I have decided to take the plunge and start to use a revision
 control system for all or almost all my projects from here on.
 However, I have no experience with any of the many options available
 (i.e. RCS, SVN, Git?, etc.). In other words, I must  learn how to use
 the system *and* learn how to use it from within LyX: I am a totally
 blank slate, in other words, unhampered by previous knowledge. I
 wonder if anyone could offer feedback on the systems they use?
 
 I will use it only for LyX (and LaTeX), for individual or very
 small-team projects (5 people). My preferences are the ease to
 integration with Lyx and easy repository maintenance (the criteria may
 be contradictory, of course).  I took a look at the wiki pages and the
 instructions on the help docs, but neither was very helpful at my
 stage (of ignorance). They all assume you have already decided which
 system to use, and provide instructions on how to use them from LyX.
 
 On the other hand, all the non-LyX sources of information I found are
 targeted at coders, typically working in large teams, with elaborate
 technical discussions of several complex use cases that seem not
 applicable for document-based repositories with individual- or small
 team access. I may be wrong, of course.
 
 Any suggestions is very welcome.

I haven't started using version control yet, but all my friends love Git.

SteveT

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



Re: Chapter* is making me crazy again WORKED AROUND

2011-03-29 Thread Steve Litt
On Sunday 27 March 2011 19:52:42 Steve Litt wrote:
 Hi all,
 
 Yet another problem with Chapter*. I have some appendices at the end of the
 book which I put as Chapter* instead of Chapter so they wouldn't be
 identified as Chapter 58: Appendex A on the page header or in the table
 of contents. It didn't work out too well.
 
 The page headers for Appendex A shows the header for the last chapter made
 with Chapter instead of Chapter*. In other words, the Appendix's page
 header shows something like  Chapter 57: Lastchaptertitle.
 
 I'm using a document class derived from class Book, and it's waaay too
 late to change to Memoir or Koma or any of those, and I don't like them
 anyway.
 
 I've attached a 2 chapter sample that clearly shows the problem on its PDF
 output's last page.
 
 Another problem is my super-duper date-showing header reverts to the one
 last shown in a legitimate chapter.
 
 I spoze there are two ways I can handle this. I could make the appendices
 chapters and include ERT like this just before they start:
 
 \renewcommand{\thechapter}{ }\renewcommand{\chaptername}{ }
 
 I'd need to do something similar with the date variable used in the date
 header, which isn't that hard.
 
 Or I could find some way to make Chapter* influence \thechapter and
 \chaptername and the like.
 
 Any ideas?

So here's what I ended up doing. From an authoring standpoint it's ugly, but 
the output the user sees is fine, so what the heck. This works when the 
desired Chapter* are all at the end, with no further Chapter headings or 
anything that should be in Mainmatter.

After my chapters comes and Epilogue, which shouldn't have a chapter number, 
and then come three Appendices, which shouldn't have chapter numbers. So 
before the Epilogue I put in the following ERT:

\renewcommand{\hdrcolon}{ }
\renewcommand{\thechapter}{~}{ }
\renewcommand{\chapenglish}{ }
\backmatter

The first three commands blank out things like the word Chapter, the chapter 
number, and the colon that follows the chapter number in the headers. Note 
that \hdrcolon and \chapenglish are my own creations -- I've manually set my 
headers in my layout. Then I declare \backmatter, which does the following:

* Eliminates the words Chapter, the chapter number, and colon from the 
header.
* Eliminates the chapter number from the table of contents entry

Now if I'd had my druthers, I'd have wanted my Epilogue to be in the 
mainmatter, but this workaround demands it be in the backmatter. Fine, but I 
still want the user to think of the Epilogue as part of the book's text. So 
what I do is put a blank line in the table of contents following the Epilogue. 
Here's how. Between the end of the Epilogue and the start of Appendix A I 
include the following ERT:

\addcontentsline{toc}{chapter}{~}

There we go. There's the kludgy Steve Litt we all know and love. He just 
inserted a blank contents line. What can I say, it works, and if the reader 
clicks on the blank chapter nothing happens, which is what you want.

Hey people, I didn't promise it would be pretty :-)

SteveT

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



Re: More hyperref bogosity SOLVED

2011-03-29 Thread Steve Litt
On Thursday 24 March 2011 17:28:57 Jacob Bishop wrote:
 On Thu, Mar 24, 2011 at 3:10 PM, Steve Litt 
sl...@troubleshooters.comwrote:
  Hi all,
  
  I have an appendix listing the several processes in my book, with cross
  references pointing to the pages on which these processes are discussed,
  using
  a text:myprocess-discussion-start and text:myprocess-discussion-end
  labels within the book's text. All of the cross references print the
  correct page number, but several go to the wrong page (an earlier page)
  if you click them.
  However, many of the cross references go to the correct page when
  clicked. I
  see no distinction between the ones that screw up and the ones that work
  correctly.
  
  Before I take a half a day or more slowly deconstructing this 110,000
  word book to form a small test case, does anyone have any ideas why some
  cross references would screw up?
 
 I really don't know all that much about this problem. All I know is that
 when I did my thesis in LyX, I had some links going to wrong pages. To fix
 it, I had to use some ERT with \phantomsection in certain places, if I
 remember correctly. It's my understanding this has to do with how the marks
 are set for hyperref to deal with them. I'm certain there are others who
 know more, but this might help.
 
 Jacob

Hi all,

It was exactly what Jacob said, and it's actually a well known problem with a 
well known solution.

Hyperref was never meant to go with just any old label. Hyperref was built to 
refer to the current chapter, section, subsection, subsubsection, etc, 
containing the label. It's also meant to refer to the inside of a float, but 
that's beyond the scope of the current discussion.

Anyway, remember this: when you create a crossreference to a label, the page 
number is exactly that of the label, but hyperref jumps to the beginning of 
the smallest containing chapter, section, subsection etc containing that 
label.

So the hyperref people made the \phantomsection command to make a little tiny 
fake section. Whenever you make a label that isn't at the front of a chapter, 
section etc and isn't in a float, if you're using hyperref you MUST put an ERT 
\phantomsection immediately before the label. This will cure the problem I 
mentioned.

Remember, the \phantomsection goes before the *label*, not before the 
crossreference.

Happy hyperreffing.

SteveT

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



Re: Editing Process

2011-04-02 Thread Steve Litt
On Saturday 02 April 2011 11:03:00 Julien Rioux wrote:
 On 02/04/2011 9:55 AM, Bruce Pourciau wrote:
  A journal has the tex file I exported from my lyx file. Their editing
  process goes like this: they mark places in that tex file where they
  want revisions, attach it to an email to me, I make the revisions in
  that marked up tex file and send it back to them.
  
  Now I'm comfortable working with LyX, but not at all comfortable working
  with a tex file directly. I'm worried that I'll make errors in the
  editing process and that it will take me much longer to make revisions,
  if I have to work with the tex file directly. I know I can import the
  tex file they send me -- a revision of the original tex file generated
  by my lyx file -- but if I do this, make the changes they want in lyx,
  and then export a tex file, can I be sure that this would result in the
  same tex file that would have resulted from working directly on the tex
  file they sent me?
  
  A second question: this journal does accept Word file submissions, but
  they much prefer tex files (naturally). I imagine that the editing
  process is different for Word submissions, probably more like what I
  would prefer: they tell me what they want changed, I make the changes in
  LyX, and then send them a new tex file exported from my revised lyx
  file, even if that exported tex file is different (due to the
  import/export process, not just the revisions) from the tex file that
  would have resulted from working on the tex file directly. In this
  process, my lyx document is always the final say on the state of the ms
  at any time, at least until I send them the final tex file at the end of
  the process. I'm tempted to write back to the editors and say that I
  want my manuscript to enjoy the editing process of a Word submission. Do
  you think that's justified?
  
  Bruce
 
 Save yourself from the tex - lyx - tex cycle, as it is known to be
 incomplete. So I see two ways forward (not counting the Word alternative)
 
 1) Use your original LyX file. Always only modify the original LyX file,
 and use .tex at the last stage (export). For this method, you will first
 need to figure out what is different, between the .tex file you sent to
 the editors, and the .tex file you received from them. Identify those
 changes and make the same changes in your LyX file. Then identify the
 things they want you to change, and make the changes in your LyX file.
 When done, export to .tex and send the file.
 
 2) Just go with editing the .tex file. At the editing stage, you will
 only be changing a few sentences here and there anyway. If you need to
 modify math formulas and are intimidated by this, fire up LyX with a new
 file, write down how the formula should look like, open the ViewSource
 panel, and copy/paste to your .tex file.

3) Ask your editors if, just possibly, they might use LyX on their end. Who 
knows, they might like it. For all the reasons you mention, if I were a 
professional editor I'd HATE working directly in LaTeX, and I'd LOVE working 
in LyX, always assuming I could agree with the author on which LyX version.

SteveT

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



Re: LyX Outline

2011-04-13 Thread Steve Litt
Wrong tool. To outline LyX documents you need VimOutliner 
(http://www.vimoutliner.net). Much faster outlining, much more useful 
outlining. Then, when your outline is done, you can convert it to LyX. 
Attached is the conversion tool I use, along with a sample level-environment-
table file. It spits out LyX code out stdout, you capture that in a file, and 
paste it into a dummy LyX file. That gives you your outline in the proper LyX 
environments.

I've used VimOutliner to outline the following books:

* Troubleshooting Techniques of the Successful Technologist (  100,000 words)
* Manager's Guide to Technical Troubleshooting
* Rapid Learning for the 21st Century
* Troubleshooting: Just the Facts
* Learn Vim Tonight
* Quit Joblessness: Start Your Own Business
* Thriving in Tough Times (  85,000 words)
* My new so far untitled book due in May (  100,000 words)

VimOutliner's the only outlining tool I've seen fast enough to keep up with my 
mental activities, so I never forget an idea while messing with my outliner. I 
can't imagine outlining a book using any other software.

SteveT


On Wednesday 13 April 2011 10:26:47 Chris Hulme-Lowe wrote:
 Hello LyXers,
 
 I'm trying to use LyX to outline a paper I'm working on, and though
 I'm generally very satisfied with the way it works I'm coming across
 one little problem. When I open the outline window LyX cuts off all of
 the names of my sections, subsections, and paragraphs after 38
 characters. Does anyone know if there's a way to allow the outline
 window to print out more characters? Moreover, someone I've been
 corresponding with through a LyX user forum has suggested that this
 might be a bug. Is anyone aware of whether it is indeed a bug, or just
 a setting somewhere in the program?
 
 I'm running OSX Leopard (10.5.8) and LyX 2.0.0rc2.
 
 Any help would be greatly appreciated!
 
 Chris Hulme-Lowe
 University of Minnesota
 Department of Psychology

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



otl2lyx.awk
Description: application/awk
0: Part   
1: Chapter
2: Section
3: Subsection
4: Subsubsection
5: Paragraph
6: Subparagraph  
7: Garbage7
bodytext: Standard


Re: Timeline generation

2011-04-18 Thread Steve Litt
On Monday 18 April 2011 03:09:53 Walter wrote:
 Hi all,
 
 Does anyone have a good solution to generate timelines?
 
 Features that are required:
  - Allows marking of both specific events (point in time) and
 periods (range in time)
 
 Features that are highly desired:
  - Properly functional unicode support (right to left support not
 required at this stage, but otherwise font switching for arbitrary
 languages)
 
 Features that would be a bonus:
  - Handles the case of 'so many elements you'd be lucky to get them to
 fit on a page' elegantly (eg: by scaling layout down to a minimum
 threshold size for legibility, then page-splitting)
  - Accepts input as a simply delimited text file (ala graphviz .dot
 files or mscgen .msc files)
 
 Any recommendations would be appreciated.
 
 I have seen a few non-LyX specific solutions already but they all seem
 to lack what I want.  Having said that, if all else fails I suppose I
 could try to write one (with only required features), maybe call it
 'escgen' (event sequent chart generator) in deference to its high
 quality predecessor. However, it seems like a good example in raw TeX
 would be enough for me to get some macros going and a more elegant
 solution (ie: no need to re-implement unicode font support, no need to
 step out to an external generation/update process). Could anyone point
 one out?
 
 Cheers
 
 - Walter


Hi Walter,

That would be SUCH a cool addition to LyX (or anything else). Timelines are 
the kind of thing that when you need them, you *really* need them.

Am I correct to assume that it would take the form of several lines per page, 
each with a certain arbitrary range of dates, along with specific dates, 
events and ranges? Sort of like sheet music, right?

One thing I'd caution about. You said:
  - Handles the case of 'so many elements you'd be lucky to get them to
 fit on a page' elegantly (eg: by scaling layout down to a minimum
 threshold size for legibility, then page-splitting)

There's a huge, very wide variation in visual acuities out there, and if I 
were you I wouldn't make the fonts too small. Better take extra pages. The way 
I see it, there's absolutely no excuse for going less than 11 point on 
anything, 12 point is better, and if normal LyX did 14 point, I might be using 
14 point.

I don't know whether plain old LaTeX handles Unicode, but if it does, your 
desire doesn't sound undoable in LaTeX. I bet you could write a script in Lua, 
Perl, Python or Ruby that takes a date file (all the dates and date ranges and 
their names), and a properties file (margins, years per line, whether to page 
break before and/or after the timeline), and have your program write the LaTeX 
for inclusion in your LyX document. Or maybe you could have the properties be 
LaTeX commands, make up some environments and commands, and have the LaTeX in 
your new LaTeX command or whatever read from the date file.

All I know is this would be really cool, and please let us know when you've 
found a solution.

SteveT

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



Re: Viewing

2011-04-23 Thread Steve Litt
On Saturday 23 April 2011 11:20:09 Hal Kierstead wrote:
 While working on a LyX document it would be nice to be able to quickly see
 the the pdf view, just as one can when working on a tex document.  The
 problem I have is that to view changes I must close the current view
 reopen it and then navigate to the the current position, and maybe even
 reposition the window.  Is there a more automated way to do this?
 
 Thanks,
 
 Hal

Hi Hal,

Here's what I do on my Linux LyX setup.

Whenever I want to see exactly how it looks, I press Ctrl+D and it compiles up 
a new .dvi file and puts the .dvi file in a .dvi viewer. Elapsed time, about a 
five seconds for a 110,000 word book, on an Intel Core2 Duo @ 2.53GHz with 4GB 
RAM -- in other words, a 2 year old box using Ubuntu and LyX 1.6.5.

No need to exit out of anything. Just press Ctrl+D and 5 seconds later this 
110,000 word doc pops up in a viewer. This is a 350 page document: For a 20 
page doc it would probably be a fraction of a second.

The layout and look of a .dvi file is almost identical to that of a PDF. As a 
matter of fact, many PDFs are made by dvi to ps to pdf. On my machine, going 
to PDF that way takes 23 seconds rather than the 5 of going to dvi.

HTH

StevET

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



Single quotes don't pair up

2011-04-26 Thread Steve Litt
Hi all,

I have an entire 110,000 word book in which single quotes don't pair up, but 
instead both the opening and closing single quote look exactly like the 
character on the key of my keyboard. How can I get LyX to automatically pair 
the quotes up like it does with doublequotes?

My font is New Century Schoolbook (and I like it that way), my language is 
English, my quote style is both double quotes on top, my document class is 
based on Book and I don't think I did anything to modify quoting.

I suppose I could manually replace all leading single quotes with grave 
symbols (lower case tilde), but I'm hoping there's a more automatic way to do 
it. Maybe there's a package somewhere?

Thanks

SteveT

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



Re: Single quotes don't pair up

2011-04-26 Thread Steve Litt
On Tuesday 26 April 2011 05:46:02 Jürgen Spitzmüller wrote:
 Steve Litt wrote:
  I have an entire 110,000 word book in which single quotes don't pair up,
  but  instead both the opening and closing single quote look exactly like
  the character on the key of my keyboard. How can I get LyX to
  automatically pair the quotes up like it does with doublequotes?
 
 In input: Alt+ will produce correct single quotation marks. With LyX 2.0
 and advanced search/replace, you can directly replace ' by real single
 quotation mark insets.

Thanks Jürgen,

I found that Alt+Shift+ made quotes that somehow matched up.

I'd rather ask a stupid question than make a stupid mistake. In American 
English, should the opening matched single quote look like a six and the 
closing one look like a nine? That's how mine is, although of course the six 
and nine don't have actual loops.

See attached PDF:

Thanks

SteveT

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



matched_singlequote_example.pdf
Description: Adobe PDF document


Re: Single quotes don't pair up

2011-04-26 Thread Steve Litt
On Tuesday 26 April 2011 08:22:14 you wrote:
 On 04/26/2011 05:33 AM, Steve Litt wrote:
  Hi all,
  
  I have an entire 110,000 word book in which single quotes don't pair up,
  but instead both the opening and closing single quote look exactly like
  the character on the key of my keyboard. How can I get LyX to
  automatically pair the quotes up like it does with doublequotes?
 
 If you type:
  `this is a quote'
 then LyX is meant to output the two quotes as is, and then LaTeX should
 take care of the rest. That seems to work here, anyway.

Thanks Richard,

I tried it and confirmed that your suggestion produces the same output that 
Jürgen's did. Is there any advantage of one way over the other?

It turns out there aren't that many places where this is a problem, and the 
editor identified them all, so fixing it manually is practical.

Thanks

SteveT

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



Re: Single quotes don't pair up SOLVED

2011-04-26 Thread Steve Litt
On Tuesday 26 April 2011 17:38:15 Steve Litt wrote:
 On Tuesday 26 April 2011 08:22:14 you wrote:
  On 04/26/2011 05:33 AM, Steve Litt wrote:
   Hi all,
   
   I have an entire 110,000 word book in which single quotes don't pair
   up, but instead both the opening and closing single quote look exactly
   like the character on the key of my keyboard. How can I get LyX to
   automatically pair the quotes up like it does with doublequotes?
  
  If you type:
   `this is a quote'
  
  then LyX is meant to output the two quotes as is, and then LaTeX should
  take care of the rest. That seems to work here, anyway.
 
 Thanks Richard,
 
 I tried it and confirmed that your suggestion produces the same output that
 Jürgen's did. Is there any advantage of one way over the other?

I found the answer to this question myself. Jürgen's Alt+Shift+ is MUCH 
better because it puts the actual begin and end quote characters in LyX, 
rather than leaving it to LaTeX to figure out. This means that if I start a 
phrase with a grave accent, end it with a singlequote (apostrophe) but there's 
an apostrophe for a contraction in between, it won't put a closing quote on 
the contraction. For instance, take this sentence.

I already said that 'Billy has an elephant, and it's walking on the 
driveway'.

The preceding sentence would work right with Jürgen's method, but I'm pretty 
sure the grave accent method would put a closing single quote on it's.

Thanks everyone. You really helped me.

SteveT

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



Re: Feature request: the missing element in the LyX office suite

2011-05-04 Thread Steve Litt
On Wednesday 04 May 2011 20:32:03 Charlie wrote:
 If a vote is being taken on this feature request.
 
 I would rather that it doesn't happen, so please put me down as a no.
 
 Please don't do it.

Context? What are we talking about?

Do I really need to research my mailbox to find out?

SteveT

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



Re: How to install Lyx 2.0 side by side with 1.6 on a MAC?

2011-05-08 Thread Steve Litt
On Sunday 08 May 2011 08:58:29 Pierfranco Minsenti wrote:
 Hello,
 
 I would like to know if it is possible and how to install Lyx 2.0
 on a MAC OS X (10.6 Snow Leopard) as a a separate installation so
 that it doesn't interfere with the 1.6 installation.

I have the exact same question but on Ubuntu Linux 10.04 (Lucid).

Thanks

SteveT

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



Knowing everything: was Chapters beginning on even pages

2011-05-12 Thread Steve Litt
On Thursday 12 May 2011 13:02:01 Richard Heck wrote:
 On 05/12/2011 11:56 AM, Alain DIDIERJEAN wrote:
  I'm working on a book. Consist of ordinary text and poems, each
  poem having to be in its own chapter. I'd like these chapters to
  start on odd or even page, without eventually leaving blank
  pages between them. How to achieve that ?
 
 Add the option openany to the class options under
 DocumentSettings.
 
 rh

See Richard, you and probably 20 other people on this list ALWAYS know 
what's available. I've used Openany but didn't remember it. People 
regularly reply to a question How do I make it do such and such?, 
you guys reply oh, you just \usepackage{so_and_so} and you're right, 
it works. You guys have spectacular memories.

Frustrating for me is I have no such memory, and unless I can review 
all my layout files and find an answer, I'll have to re-ask the 
question. CTAN is no help because it lists hundreds of packages, but 
not by function. For whatever reason Google ends up listing solutions 
like I do -- writing a bunch of LaTeX to do the job because the author 
didn't know about a simple package.

I'm thinking if there's a way we can create a document that lists 
packages and other little tricks (openany for instance) **BY 
FUNCTIONALITY**, newbies stand a fighting chance, people like me can 
remember in a matter of minutes rather than hours (or worse yet, 
reinventing the wheel), and people like you will get less of the same 
old questions.

I think the format of this resource should be a single web page with 
lots of links, arranged in a hierarchy. A good example is my Linux 
Library page:

http://www.troubleshooters.com/linux/index.htm

The beautiful thing about this page is you can either drill down, or 
if that doesn't work, you can search the single page for keywords.

Another wonderful thing about it is it's actually maintained as a tab 
indented outline (by VimOutliner or Emacs org mode or with any text 
editor). So adding a new resource is almost instantaneous. Then you 
just run an export program that turns it into an HTML page. In my 
opinion this is much cleaner, easier, and faster than the traditional 
Wiki page.

If you guys want to do it this way I'll be glad to give you the source 
for Linux Library's HTML export, and I'll modify it so that for each 
group you see the navigation down to it. I'll also take a primary role 
in putting this hierarchical list of links together and pointing to 
existing documentation resources, and maybe writing some new ones for 
the project.

If we do this, people with great memories won't be the only ones who 
know everything, and people with great memories will have much more 
time to do real work rather than ask repetitive questions.

Thanks

SteveT

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



Re: Borked 2.0.0 on Mac OS X?

2011-05-12 Thread Steve Litt
On Thursday 12 May 2011 21:17:19 Richard Heck wrote:
 On 05/12/2011 07:54 PM, BH wrote:
  LyX depends on the efforts of volunteers --volunteers whose
  patience is sorely tested by sarcasm and vague demands for help
  or improvement.
 
 Amen to that.
 
 rh

Double Amen.

If a person is that mad about LyX, he should do one of these things:

1) Fork the project and do a better job. 

2) Do what I did when I was mad at LyX and try to write equivalent 
software using an outliner and a bunch of Lua scripts. 

3) Pay through the nose for an inferior commercial product,have to do 
license tracking, and hope they give better (or even as good) tech 
support than the LyX crew has.

Nothing scientific, but on projects I'm involved with it seems like 
more and more people are saying I can't write code, but please do 
this you fill in the major job for me.

SteveT

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



<    1   2   3   4   5   6   7   8   9   10   >