Re: Compilation error with Lyx 1.4.1

2006-06-08 Thread Paul A. Rubin

Carine Simon wrote:

Hello,

I’ve just installed Lyx 1.4.1 under Windows XP with
lyx-1.4.1_win32_setup_v1.exe
ftp://ftp.lyx.org/pub/lyx/bin/1.4.1/lyx-1.4.1_win32_setup_v1.exe . I
am using the sh.exe under cygwin, the Python 2.4, the gs8.51 and
ImageMagick6.7 Q16. 
I can start Lyx with no problem and download a file. But when I want to

compile it with DVI from “edit” menu, I’ve got the following error:
---
Subsistema MS-DOS de 16 bits
---
5367625/3432
La CPU NTVDM ha encontrado una instrucción no permitida. (CPU NTVDM has
found an unallowed instruction)
CS:0fa9 IP:21c6 OP:63 6c 61 64 6f Elija Cerrar para finalizar la
aplicación.

And then 



Would you know where it can come from?
Thanks in advance,
Cheers,
Carine.


Several questions to start:

1.  Does it happen with more than one document?

2.  Does it happen if you click View-DraftDVI rather than View-DVI? 
(View-DraftDVI will not display images, but should display the rest of 
the document.)


3.  What DVI viewer are you using? (If you are using MiKTeX, then 
probably the viewer is yap.)


4.  If you export a document with File-Export-LaTeX, then open a DOS 
window and run latex against the file, does it produce a DVI file, and 
can you view that file?


/Paul



Re: xpm-Konverter?

2006-06-08 Thread Paul A. Rubin

Matthias Schmidt wrote:

Hello,

I`m starting to work with Lyx again with Lyx 1.4.1 (windows
installer, german).

I cannot view the tutorial als a PDF-file: I get the information:
Keine Information vorhanden, um Dateien im xpm-Format nach png zu
konvertieren. Definieren Sie einen Konverter in den Einstellungen.

What kind of konverter is this? What do I have to do?



This is confusing:  the message refers to needing a mechanism for 
converting XPM graphics images to PNG format.  What is confusing is that 
(a) the LyX tutorial has no images and (b) the default conversion script 
should in any case be able to handle the conversion.


Do you have ImageMagick installed, and if so, what version?  (LyX should 
default to using ImageMagick's convert utility to convert XPM to PNG.)


/Paul



Re: long standing annoyance with tables

2006-06-09 Thread Paul A. Rubin

Leuven, E. wrote:

Dear LyX-users,

On the developers list we are presently discussing default behavior with respect to how lines are set when inserting a new tabular. 


There is some reluctance to change default behavior even if the rationale 
behind the default is not that clear.

To move the discussion forward I would like to know what default lyx-users 
would prefer when they insert a tabular:

1. The current line settings
2. A blank tabular (ie no lines set)

Thanks for letting me know.

Edwin



As I indicated on the developer list, given those two choices, I would 
(much) prefer the second.  Given the diversity of responses, though 
(approximately evenly split between 1, 2 and what I would characterize 
as neither of the above), I think we're seeing support for a 
user-configurable default option.


With things like margins and line spacing in the document settings 
dialog, we have an option to Save as Document Defaults.  Perhaps the 
same could be used with the table dialog (in other words, manually 
configure lines once and save that configuration as the default).


Alternatively (and not mutually exclusively), the table dialog could 
offer a few alternatives: all lines; no lines; single horizontal line 
after first row; ...


Happily making work for the developers,
/Paul



Re: Equations and Bibliography

2006-06-09 Thread Paul A. Rubin

Julio Rojas wrote:
Hi. I'm writing my equationsusing Ctrl-Shift-M but no numbering 
appears on

the right side of them. I'm using Book class and have automatically
enabled AMS package. What can be happening???


Equation numbering is off by default.  With the cursor in the equation, 
you can toggle numbering with M-m n.  Inserting a label will also cause 
the equation to be numbered.


/Paul



Re: footnote ends up below tables

2006-06-09 Thread Paul A. Rubin

Charles de Miramon wrote:

Curtis Osterhoudt wrote:


Hi, all. I'm using LyX 1.4.1 on Debian, and writing in the koma-script
book class.
  I'm having a problem with footnotes and table floats (it happens with
figure floats, too). In the text, I have a footnote, which I *think*
should go at the very bottom of the page, under everything else (except
the page number, of course). On the same page, if I insert a figure or
table float, and use either default placement or bottom of the page, the
float will end
up below the footnote, with the footnote seeming to  be suspended above
the float. It looks pretty bad.
  Is there any way to fix this?


Footnotes do not mix well with tables in LaTeX. One solution would be to
insert your table in a minipage. Footnotes would be inserted just below the
float but not with other footnotes at the bottom of the page.



The catch is that the footnote here does not need to be part of the 
table.  I can reproduce what Curtis described:  a footnote in the text 
(not in the float), a tabular float set to bottom, and the float is 
printed below the footnote (and above the page number).


It's not specific to the komascript book class, either; the same thing 
happens with article and book, among others.


I have no idea what the fix would be, though.  It seems to be a LaTeX 
issue (not a LyX bug).  It was reported in 1997 and apparently will not 
be changed (unless there was a more recent report that got a different 
reception).  See 
http://www.latex-project.org/cgi-bin/ltxbugs2html?category=LaTeXresponsible=anyonestate=anythingkeyword=pr=latex%2F2482search= 
(sorry for the long URL).


/Paul


/Paul



Re: Instant Preview working in LyX 1.4.1?

2006-06-11 Thread Paul A. Rubin

Rudi Gaelzer wrote:

Is Instant Preview working at all in LyX 1.4.1?
I upgraded from 1.3.7 to 1.4.1 on my Fedora 5 box and mathematical expression 
are not rendered with Instant Preview.  Then, I removed 1.4.1 and installed 
1.3.7 back and it worked again...


Works for me under Windows XP.

/Paul



Re: upper case letter with accentuation

2006-06-11 Thread Paul A. Rubin

paul saumane wrote:


2) In a title, is there a way to mix character size with bolding and
slanting on several lines to reproduce the way it was done on old books.
I tried it using title and ctrl new line but the first line(s) are not
taken into account in the final document.


Give a small example file.


DOCUMENTS (size 12)
SUR LA (size 9)
REVOLUTION (size 16)
DANS VAUCLUSE (12)
(1793 - 1800) (8 BOLD)
I (12 BOLD)



Is the attached what you had in mind?

/Paul


title.lyx
Description: application/lyx


Re: Exporting to DVI in Windows

2006-06-13 Thread Paul A. Rubin

Adrian M. Peter wrote:


I am trying to export my Lyx file to DVI on Windows.  However, the figures
are not appearing in the file.  The YAP complains that the figure is
supposed to located in some Lyx temp directory under my local settings
folder.  Is there a way to fix this?  Why doesn't it just use the current
directory in which the figures are located?  Thank you.



Which version of LyX are you running?

/Paul



Re: Exporting to DVI in Windows

2006-06-13 Thread Paul A. Rubin

Paul A. Rubin wrote:

Adrian M. Peter wrote:


I am trying to export my Lyx file to DVI on Windows.  However, the 
figures

are not appearing in the file.  The YAP complains that the figure is
supposed to located in some Lyx temp directory under my local settings
folder.  Is there a way to fix this?  Why doesn't it just use the current
directory in which the figures are located?  Thank you.



Which version of LyX are you running?



Probably could have saved myself the trouble of asking -- what you 
described occurs in LyX 1.3.x but AFAIK not in 1.4.x.  So one solution 
would be to upgrade to 1.4.1.  Alternatively, you can export the 
document to LaTeX (which will contain the original file paths) and than 
run LaTeX against it manually.


As to the why, when you convert a LyX document containing images to an 
output format, LyX may convert some or all of the images to formats 
other than their original ones, for compatibility with the desired 
output format.  For instance, DVI files can't digest PNG images, so LyX 
will convert any PNG files to EPS format.  The converted images reside 
in the tmp directory while you're viewing the document.  LyX 1.3.x 
exports the LaTeX file it generated in the tmp directory, which contains 
the paths to the converted images.  The converted images, however, 
evaporate when you close the document in LyX (and LyX deletes the tmp 
directory).


In LyX 1.4.x, when you export your document, LyX also exports (to the 
same directory) the converted images, and the exported document uses 
appropriate paths.  The exported image files have mangled names, though 
(which match what's in the DVI export).  On Windows, those names include 
the path to the source file, and so it may be a bit of a (minor) 
security hole to distribute the resulting DVI and images.  For instance, 
if your source directory was under My Documents, the image file names 
will include Documents and Settings, My Documents and, most 
importantly, your logon id.


/Paul




Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Paul A. Rubin

Steve Litt wrote:

Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.


I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:


\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.


Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
Size		Large

  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left

  LeftMarginM
  RightMargin   M
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.


Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.


Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT



Steve,

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


/Paul



Re: postscript converter

2006-06-17 Thread Paul A. Rubin

Karin E wrote:

Hello
i just installed Lyx 1.4.1 for windows with the installer package from wiki.lyx.


Which version of the installer did you use?  There are two linked from 
the wiki, one that installs just LyX (and will take you to the download 
sites for anything else you need) and the other that installs everything 
you lack.


i tried to convert the tutorial to postscript, just for checking if everything
works. I got the following errors:

A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)


I can't reproduce this, but I used the first installer, and I believe 
there are differences in the help files (or at least in the images they 
contain).


and second, there are problems running python (error ocurred running
Lyx141/resources/script/clea


how can I get Lyx work properly? I updated Miktex, and tried reconfigeration of
Lyx. Didn´t work.


Do you have python installed, and is it on either your system command 
path or the LyX path prefix (Tools-Preferences-Paths-PATH Prefix)? 
You can test by typing python -V at a command prompt.  (You'll have to 
cd to the Python directory, or use path to python\python -V, if it's 
not already on the command path.)


/Paul



Re: timestamp of lyx files not updated in windows xp

2006-06-18 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:

hello - i notice a strange problem when using lyx 1.4.1 under windows xp
(various machines): when working on a file and saving it, the Date Modified
and Time attributes are not updated. this is particularly annoying since
my backup strategy is based on the files' modification dates and times. any
ideas? thanks, marco weber (switzerland) ps other files are updated normally,
e.g. the .txt files used with notepad.




Curious, here (also Win XP) when I save with ctrl-S or File-Save, the 
modification time stamp is updated.


/Paul



Re: Inserting a tab indented outline into a lyx document

2006-06-18 Thread Paul A. Rubin

Steve Litt wrote:

Hi all,

In several places in my latest book I need to insert tab indented outlines. 
Here's an example:


Whole program
Initialize
Open input file for read
Open output file for write
Copy
loop
Read input record
Copy to output buffer
Translate characters
Write output record
Finalize
Close input file
Close output file
Print ending message

How do I do that in LyX in such a way that I don't get too much space between 
lines, and it's obvious that this outline is a think in itself and not just 
part of the flow of the document?


I don't know if there's a slick way of doing it, but the attached 
example seems to get the desired end result (albeit with a high degree 
of tedium).  You can experiment with the \setlength commands in the 
preamble to adjust the spacing (see, for instance, 
http://www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-260.html 
for a list of lengths you can play with).  If you're doing this often 
enough, it might be worth modifying a layout to include the new list 
environment.


HTH,
/Paul


lists.lyx
Description: application/lyx


Re: Inserting a tab indented outline into a lyx document

2006-06-19 Thread Paul A. Rubin

Steve Litt wrote:



That works perfectly, and I could make a LyX environment to eliminate the ERT. 
As it turned out, I just used the itemize environment for this particular 
application, but your example showed me how to directly translate my tab 
indented outline into LyX with a simple Ruby script.




You might also have a look at the algorithmicx LaTeX package, which I 
think allows you to customize some of the commands.


/Paul



Re: Instant Preview working in LyX 1.4.1?

2006-06-19 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Is there some way to check out on some error messages that might come up when 
lyx tries to execute the instant preview?




lyx -dbg any (and brace yourself for the flood of messages).

/Paul



Re: Inserting a tab indented outline into a lyx document

2006-06-21 Thread Paul A. Rubin

Paul Johnson wrote:

Seems easier to just use the itemize environment with customized
bullet symbols.  if you use the Document/Settings/Bullets options, you
can eliminate the symbols and then the output looks exactly the way
you want.


I thought about that, but what if you also want bullet lists (with 
normal bullets) in the same document?



It would drive me nuts to keep turning the stevelist special
environment on and off.


Since I'm already nuts, this was not a concern for me.  :-)

/Paul




Re: bibtex my.bst

2006-06-22 Thread Paul A. Rubin

Wolfgang Engelmann wrote:
Springer publisher wants a certain style for references. I tried to make one 
by using 
latex makebst

It produced springer.dbj. springer .bst and springer.log  in my home.

Now I am confused how to proceed. 
The existing bst files are spread in 
/usr/local/texlive/..

/usr/share/texmf/..
/usr/Tex/texmf-dist/bibtex/..

Where should I transfer the produced springer.dbj. springer .bst and 
springer.log?


There's usually a localtexmf directory somewhere.  I'm not a TeXLive 
user, but I suspect it creates an environment variable showing the 
location of localtexmf.  My preference is to create a bibtex directory 
under localtexmf, then create subdirectories for each style I create 
(e.g., .../localtexmf/bibtex/springer).  I don't know if the log file is 
worth keeping, but the other two are.  Once you've placed them there, 
run texhash to update the TeX file database, and then I think you'll 
need to reconfigure LyX so that it sees the .bst file.


Sofar I used in the preamble
\usepackage[authoryear,comma]{natbib}
and
\bibpunct{}{}{}{a}{}{}

What is the procedure to get the new .bst working? 
\usepackage{springer}

after texhash?


After reconfiguring LyX, you should be able to select the .bst file from 
the drop down list of choices.  Unless you are using a Springer style 
file, there is no need for \usepackage{springer}.


\bibpunct determines the way the references are cited in the text?


Yes.

/Paul



Re: bibtex my.bst

2006-06-23 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

After reconfiguring LyX, you should be able to select the .bst file from
the drop down list of choices.  Unless you are using a Springer style
file, there is no need for \usepackage{springer}.



Jean-Marc,


(Not unless my mother was kidding me all those years.)



I followed your advice (thanks) and got this error message:

LaTeX Error: File `babelbst.tex' not found.
 \input{babelbst.tex}
^^M
*** (cannot \read from terminal in nonstop modes)

Google tells me:
No need for creating babelbst.tex anymore. Changing language .mbs option
in makebst resulted in a working .bst file.

But how do I change language .mbs option in makebst?


Disclaimer:  I have not done this myself (being an English-speaker) 
(although the Brits might disagree).  Theoretically, if you run latex 
against makebst.tex and choose merlin as the master file, you should be 
asked what language to use. The default choice is merlin (which means 
English), but you should answer german.mbs, spanish.mbs or whatever 
language you need.  If you want English, the default should be 
merlin.mbs and it should work.  (There is an english.mbs if you want to 
try that.)


Does that help?

/Paul



In the .bst file is e.g.:

%% merlin.mbs  (with options: 
`babel,ay,nat,vonx,nm-rvx,jnrlst,keyxyr,dt-beg,yr-par,yrp-x,note-yr,jttl-rm,vnum-x,num-xser,jnm-x,btit-rm,bt-rm,bkpg-x,blk-com,com-blank,in-col,injnl,fin-bare,pp,ed,abr,ednx,mth-bare,ord,jabr,amper,xand')



Wolfgang






Re: bibtex my.bst

2006-06-24 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

Am Freitag, 23. Juni 2006 18:13 schrieb Paul A. Rubin:

Hi Paul (I am sure your mother was right..)

Disclaimer:  I have not done this myself (being an English-speaker)
(although the Brits might disagree).  Theoretically, if you run latex
against makebst.tex and choose merlin as the master file, you should be
asked what language to use. The default choice is merlin (which means
English), but you should answer german.mbs, spanish.mbs or whatever
language you need.  If you want English, the default should be
merlin.mbs and it should work.  (There is an english.mbs if you want to
try that.)

Does that help?


yes, it does, 

but how do I make changes in the dbj file effective (I want to avoid running 
the latex makebst again). With other words, how do I get my.bst from my.dbj?
Or do I make the changes in bst directly? But what is than the function of the 
dbj?


Wolfgang



The .dbj file is a batch job that is run to generate the .bst file.  If 
you edit the .dbj file directly, just run tex against it to get the new 
.bst file.


/Paul




Re: strange text alignment in tables

2006-06-24 Thread Paul A. Rubin

christiaan pauw wrote:

Hi all

I am writhing a questionnaire in Lyx 1.4.1 on Win XP. The whole thing is
one gigantic table.

I experience very strange effects with the alignment of text both
vertically and horizontally

1. Text in adjacent columns are not aligned even when both are set at
the same vertical alignment. This happens not only but especially when a 
ctr-enter  was used.


2. Multicolunm the cells above and below to disregard their column width
settings

3. Horizontal alignment is not the same for rows either. Sometimes the 
text begins with an indent, sometimes not


4. Setting the column with sometimes does not set the width of the
column but the width of the text within . this is the case
in multicolumns. The problem is that there is no control over the
width of a column when one cell is also part of a multicolumn

Can anyone help

regards
Christiaan

.



It might be best if you posted a minimal example of the problem.

/Paul




Re: importing program code

2006-06-25 Thread Paul A. Rubin

Andrew Harrington wrote:
I am new to Lyx and have no LaTeX experience.  I am writing a sequence 
of Python tutorials in a book document.  I tried switching from default 
book to AMS book because it supports numbered exercises and examples, 
however in the AMS system, each exercise appears to generate a new 
section number.  I do not want exercises to alter the section 
numbering.  I would ideally like exercises to either be numbered 
sequentually throughout the whole tutorial, or probably better, start 
again from 1 in each chapter or maybe section.  Something viewable 
easily in LyX would be good, though I am willing to handle my first ERT's.


Help appreciated.

Thanks,
Andy Harrington




If you put the following in the document preamble, exercises should be 
numbered within sections (but I think with the section number included):


\newtheorem{xcc}{Exercise}[section]
\renewcommand{\xca}{\xcc}

/Paul




Re: Graphics quality in PDF vs. PS, etc.

2006-06-26 Thread Paul A. Rubin

Uwe Stöhr wrote:



As I understood you, you insert the graphics as EPS in LyX and produce 
then the PDF via pdflatex. I also use pdflatex for the PDF-output but 
insert all graphics as PDF. This has the advantage that the compilation 
process is much faster because JPG, PNG, and PDF-graphics can directly 
be embedded into a PDF so that no conversion step is needed. This 
increases the compilation time and avoids your problem.

A very good EPS - PDF converter is Ghostscript (and of course Acrobat).


And if Curtis is using Mathematica to generate the graphs, he can export 
them directly to PDF from Mathematica.


/Paul



Re: Lost Keybindings in 1.4.1

2006-06-27 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:

Rich == Rich Shepard [EMAIL PROTECTED] writes:


Rich   This is frustrating: in 1.4.1 (linux), some of my shortcut
Rich keys no longer work. Same bind file as before. Some that do work
Rich include: C-d View dvi output C-i Italics (emphasize) C-b Bold
Rich C-h Compile with pdflatex

Rich   Some that no longer work include: C-f Find F7 Spellcheck C-s
Rich Save

Rich   Can someone help me understand why, and what I need to do to
Rich get back the full functionality of my keyboard?

What does your preference file look like?

Did you make your own bindings file? Some of the LyX functions changed
names.

JMarc



Is there (or will there soon be) an updated list of function names on 
the Wiki?


/Paul




Re: ECBI1440

2006-07-03 Thread Paul A. Rubin

Kaito wrote:

Hi! Compiling my lyx-file, DVI complains about missing the font ECBI1440!
Where can I get it from, please? Kaito.




You need to install the EC font package.  ECBI1440 is just the bold 
italic version of the EC font at a particular type size.  How you obtain 
and install the EC font package depends on which LaTeX distribution you 
are using.  Once the font is installed, metafont should automatically 
generate ECBI1440 when it is needed.


/Paul




Re: aspell on XP

2006-07-03 Thread Paul A. Rubin

Ed Gatzke wrote:

I have not been able to get spell checking to work on the 1.4.1 LyX build on
Windows XP.

I have installed Aspell-0-50-3-3-Setup.exe and told it to install in C:\Aspell

I have installed aspell6-en-6.0-0.exe in a variety of places, including
C:\Aspell  C:\Aspell\Dictionaries and C:\Aspell\lib


My installation has a C:\Aspell\dict folder that the Aspell installer 
created.  That is where I park dictionaries.


I have reconfigured LyX, and spellcheck is not grayed out.

I have tried to muck around with the preferences file to point directly to the
aspell.exe file.


This should not be necessary.


I keep getting the error dialog, The spellchecker could not be started.  No
word lists can be found for the language en_US.

Any help would be appreciated


Along with the dictionaries, did you install the Aspell 6 data files 
(http://wiki.lyx.org/uploads/Windows/Aspell6/aspelldata-0.60.4-root.exe)? 
  LyX 1.4.1 needs Aspell version 6, but my impression is that version 6 
is not yet a stable release, so the preferred route seems to be to 
install 5 and then add the data files, which are the necessary 
modifications to 5 to let LyX 1.4.1 work with it.



On another note, Alt-F4 does not close the lyx application window.  Meta
bindings work in other cases, and I can modify stuff in my cua.bind but M-F4
binding to lyx-quid does nothing, although C-F4 works.  All windows apps should
responding to alt-f4, so this is annoying to me...


Interestingly, Microsoft itself has been to know to ship Windows 
applications (or at least applets) that do not respond to Alt-F4. I know 
this because I lost the use of my mouse one time during a partial system 
crash and could not kill the window I was in using the keyboard.  (I 
don't recall which applet it was, but it did not have a File-Exit menu 
option, either.)


Anyway, I use cua.bind and M-F4 kills LyX 1.4.1 for me.  Did you modify 
cua.bind to load any other binding files after the line that binds M-F4 
to lyx-quit?  If so, could the binding be overwritten in one of the 
loaded files?


/Paul



Re: Index more small

2006-07-05 Thread Paul A. Rubin

icebna wrote:

Hi all :
I'm sorry. I lost how make that the superscript number are more small. 
Is very big to my work.

Thanks advanced
Miguel



Is this what you need?

http://article.gmane.org/gmane.editors.lyx.general/30672



Re: File with png graphics hangs lyx

2006-07-06 Thread Paul A. Rubin

Sven Schreiber wrote:

Don't know if this is a known bug; when using pdf (pdflatex), Lyx
doesn't respond while waiting for latex run 1 forever. The exported
latex compiles fine directly to pdf with Miktex (using Texniccenter).
Using other pdf-generating profiles works, so this is not a huge issue,
but still.

I attach a minimal example file as well as the exported latex.

Oh, this is on windows, and pdflatex usually works fine for me, but I
don't usually use png graphics.

Thanks,
Sven



I loaded your document into LyX 1.4.1 here (Win XP, MiKTeX but *not* 
Texniccenter), substituted a PNG file I have (you didn't attach yours), 
and viewed it via pdflatex with no problem.  I routinely use PNG images 
in PDF files and have not had LyX hang.


Have you tried other PNG files and had View-PDF (pdflatex) hang?

/Paul




Re: no Comment environment in release 1.4.1 windows version

2006-07-07 Thread Paul A. Rubin

Michael Chen wrote:

Dear all,

I can not find Comment environment in the release 1.4.1 of windows
version. I reinstalled it again, and got nothing.  What can I do?
Thanks in advance.


Michael



Insert-Note-Comment.  It's not an environment in 1.4.1.

/Paul




Re: aspell on XP

2006-07-07 Thread Paul A. Rubin

Ed Gatzke wrote:


Are you sure Alt-F4 kills cmd.exe?  I have tried on a couple of machines and
checked other groups, Alt-F4 does not kill cmd.exe for most.


Well, I just opened a command window on my laptop (XP Pro), ran a 
command in it, hit Alt-F4 and (a) the window vanished and (b) it's not 
showing up on the task list.  So either I killed it or I banished it to 
a parallel universe.  :-)


I haven't tried this on XP Home, though.


As far as I know, I do not have ny sort of remapping or crazy application
running in the background.  All apps but cmd.exe and lyx.exe respond to Alt-F4.  


Using cua.bind, Alt-F3, F4, Alt-4 all can be mapped to kill lyx but not Alt-F4.
 crazy.

If you have any other ideas to try out, let me know.  Thanks!


Well, if it works in other apps, then it presumably has not been 
remapped, so I'm at a loss as to what is going on.  Are your machines 
set up to use a non-English code page?  (I'm groping in the dark here.)


/Paul







Re: Fwd: aspell on XP

2006-07-08 Thread Paul A. Rubin

Steve Harris wrote:



I have LyX 1.4.2 installed and alt-f4 kills lyx but not cmd.exe
My keyboard requires using an F-lock key to enable standard features.



Hmm.  I was going to ask John and Ed whether alt-F4 kills programs other 
than LyX that are being run in shells (rather than as native Windows 
apps) (if I'm expressing that distinction correctly).  My suspicion was 
that maybe failure to kill cmd.exe implied inability to kill anything 
running in a shell.  However, if alt-F4 kills LyX and not cmd.exe for 
you, that shoots a hole in my theory.


I just tried Start-Run-Command to get the old backward-compatibility 
command shell.  Alt-F4 won't kill that for me (I get a nag screen from 
Windows saying I might lose data and asking if I'm sober).  I'm not sure 
what, if anything, that implies.


Stranger and stranger ...

/Paul



Re: Math fonts in win32

2006-07-08 Thread Paul A. Rubin

Thomas Weithöner wrote:

Hi there,
I have spent a number of hours trying to figure out how to get the math
symbols displayed in in the win32 environment. The standard installation
does not allow this. For instance, relations such as \leq result in a dot
displayed instead of the symbol.
I read all FAQ and online help pages but could not find a solution. I also
tried to replace to fonts provided in the standard installation by the
BaKoMa Fonts for LyX-Win package. Nope.
Anybody out there who can help me?
Thanks!
Thomas



Installing the BaKoMa fonts usually fixes this.  Note that unpacking the 
archive and plopping them in an appropriate directory is not enough. 
Did you use the Windows Fonts applet (in Control Panel) and execute 
File-Install New Font... on the BaKoMa fonts?


/Paul




Re: Table with fixed width columns

2006-07-08 Thread Paul A. Rubin

Rich Shepard wrote:

On Fri, 7 Jul 2006, Stefano Franchi wrote:


I am trying to set up a multi-page, fixed width column table, but my
attempts seem to be blissfully ignored by LyX.  That is, I select the
table, go into the pop-up dialog and enter a value in the 'width' 
field. I
did this for all the columns in my table. But nothing happens---as 
soon as

I go into a cell and add content, the cell is horizontally resized. I am
following the exact procedure described in the user's guide, and I would
expect the cell to grow vertically, not horizontally. Can anyone 
enlighten

me on the correct steps to follow? I tried both LyX 1.3 and 1.4, with
identical results. I am on a Mac, BTW.


  Well, you're allowed to use an Apple product.

  I have tables in my book similar to what you're trying to create. By
trial-and-error I discovered that I needed to manually break the cell
content into multiple lines; there is no automagic line wrap. Sometimes I
also dropped the font one size; that made the typeset table look better.



There's automagic line wrap if it likes you (and apparently it likes 
me).  You have to select multicolumn in the table dialog, with the 
cursor in cell in the correct column, and set the width.  (Stefano, did 
you select multicolumn?) Once you do that, and assuming you picked an 
appropriate width, line wrapping should occur automatically for text 
typed into that column (no need for manual breaks).


I'm not positive, but I think LaTeX wants you to leave at least one 
column without a specified width.


/Paul



Re: File with png graphics hangs lyx

2006-07-08 Thread Paul A. Rubin

Sven Schreiber wrote:

Thanks for your reply, Paul.


I loaded your document into LyX 1.4.1 here (Win XP, MiKTeX but *not*
Texniccenter), substituted a PNG file I have (you didn't attach yours),
and viewed it via pdflatex with no problem.  I routinely use PNG images
in PDF files and have not had LyX hang.




Turns out that it doesn't have anything to do with png; for me the hang
is reproducible for any new document if I have a graphics in there
(doesn't matter if eps or png), *and* have the font set to Palatino!

This is really weird because:
1. pdflatex by hand works for me
2. lyx with palatino (w/o graphics) works for me
3. lyx with graphics (and times for example) works for me
4. for Paul everything works also with lyx

 What could it be?

Thanks for help, else I'm going to file a bug report.



The only thing I can suggest is to start lyx with -dbg all, try to 
View-PDF (pdflatex) a file with graphics and Palatino, and see if 
anything helpful is displayed in the shell window at the point where LyX 
goes catatonic.


/Paul



Re: Fwd: aspell on XP

2006-07-09 Thread Paul A. Rubin

Ed Gatzke wrote:


So, cmd.exe and command.exe when started from Start-Run both do not respond to
Alt-F4 for me either.  Other things started from cmd.exe command prompt do
listen to Alt F4 c:\windows\system32\winmine.exe and dvdplay.exe both respond to
Alt-F4.

I run most of my stuff from a cygwin shell, but everything closes on Alt-F4
except cmd.exe and lyx.exe.  Even when I start lyx from the desktop shortcut, it
does not respond to Alt-F4.  Even when I double click on the cmd.exe in
windows/system32 it does not respond to F4.

I have tried cmd.exe on about 6 xp machines, Alt-F4 does nothing on any of them
for cmd.exe.


I finally got around to trying this on my home PC, which runs XP Home 
rather than XP Pro.  Under XP Home, alt-F4 did *not* kill cmd.exe.  On 
my laptop (XP Pro), it does.  I haven't had a chance to try the XP Pro 
machine in my office (as I'm assiduously avoiding going anywhere near 
the office).


The exact lyx installer is the most recent, the 2.0 installer for 1.41

lyxwininstall/LyxWin141Complete-2.01.exe


Even just running lyx.exe (not lyx.bat) appears to open a shell for a second
before the application launches... Very odd, I wonder what is up.  Maybe the
shell is the root of all problems with Alt-F4.


I'm not sure what goes on in that fleeting shell, but according to the 
task manager I use, when you run lyx.exe directly it is not running in a 
shell.  LyX does, however, make extensive use of shell scripts (for 
converting graphics, running the configuration script, etc.), so it may 
be running some quick script at that point.






This stuff is crazy.   I tried posting on some MS help pages, and the MS
experts suggested I use Alt-Space then C, which breaks the standard that Alt-F4
closes everything, like hitting the big red X.


I agree it's strange, but as far back as I can remember, Microsoft's 
insistence that third-party developers adhere to their rules for Windows 
programs has not extended to their own programmers.  Nor have they been 
philosophically consistent.  Thus Windows 3.x came with an FTP client 
that had a GUI, but Windows 95/98 et seq. come only with a DOS FTP 
client -- even though Microsoft has been trying to phase out DOS in the 
last few iterations of Windows.


I'm quite curious why you and Steve and I get three different behavior 
patterns from ostensibly the same OS.  (I'm assuming that you and Steve 
are both using XP Pro, fully patched.)


/Paul



Re: BibTeX Styles

2006-07-09 Thread Paul A. Rubin

Bruce Pourciau wrote:
Anyone know where can I find samples of how the citations and list of 
references come out using various bibtex styles?


Bruce


Google is your friend.  Try bibtex and samples as the keywords.  Of 
particular interest might be:


http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.pdf
http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html

I'm pretty sure I've used the latter, but their server is not responding 
just this moment, so I can't be positive.


/Paul




Wiki idea

2006-07-10 Thread Paul A. Rubin
Would the academics on the list be willing to contribute to a Wiki page 
that paired journals with BibTeX style files that conformed to those 
journals (possibly including custom styles contributed by the writers)?


/Paul



Re: Fwd: aspell on XP

2006-07-10 Thread Paul A. Rubin

Ed Gatzke wrote:
There is a python.exe file in the same directory as the lyx.exe 
executable.  Python opens what looks like a cmd.exe window that you 
can't close with Alt-F4 either.  I wonder if lyx.exe is somehow 
running in a python shell?
No.  LyX runs Python scripts for various things, but LyX itself is not 
written in Python (nor started by a Python script).  On my laptop, 
alt-F4 kills Python windows.


/Paul



Re: Instant-Preview not working - How to troublecheck

2006-07-10 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:

Hi fellow LyXers,

I am sure this must have been discussed here, but I could not
find it :-(


There've been a few messages about people who could not get preview to 
work, but this is the first I recall where it worked and then broke.


In my LyX 1.4.1 for Windows XP,


insert ominous background music here

 instant preview stopped working.

I know it is installed, since I previously used it.
I depend on this feature since I use lots of diagrams (xypics etc).

In my LyX document, the Tools/Preferences/Graphis/Instant Preview
Chooser is set to On ... but nothing happens with my formulae.

pdf-generation works without problems, so it appears not to be
a LaTeX error. Besides, the old documents which used to look so
neat in LyX, are now - well just LaTeX commands - like in ultraedit.


Something may have inadvertently deleted or corrupted something.  Here 
are a few initial things to check:


1.  If you recently upgraded MiKTeX (assuming you're using MiKTeX), you 
might try running MiKTeX Options - General - Format files - Update 
Now.  This is a long-shot, but it can't hurt.


2.  In C:\Program Files\LyX141\Resources\scripts (assuming you installed 
to the default directory), make sure that lyxpreview2bitmap.py and 
lyxpreview_tools.py and .pyc are present.


3.  Make sure preview.sty is still installed (for instance, by running 
'kpsewhich preview.sty' from a command prompt).


4.  Create in LyX a document with a single formula (with Instant Preview 
turned on).  While the document is open, use Windows Explorer to take a 
look into C:\Documents and Settings\your log in id\Local 
Settings\Temp\lyx_tmpdirwhatever\lyx_tmpbuf0.  You should see files 
with the name 0lyxpreview and extensions .tex, .log, .dvi, etc.  If some 
of the ones I listed are missing, that will tell us something.  If they 
are all there, we can try further experiments to narrow down the problem.


HTH,
/Paul



Re: Wiki idea

2006-07-10 Thread Paul A. Rubin

Charles de Miramon wrote:

LB wrote:


I agree. That's a great idea.



http://jo.irisson.free.fr/bstdatabase/index.php 


Cheers,
Charles


Outstanding!  This obviates the need for a wiki page (although perhaps 
someone should link this site on the wiki, since this could turn into a 
FAQ).


/Paul




Re: Fwd: aspell on XP

2006-07-10 Thread Paul A. Rubin

Steve Harris wrote:



I researched and found a few reports complaining about not
being able to close cmd.exe with alt-f4. I found no report
of being able to close cmd.exe shell with alt-f4. I think
Paul has a very talented machine.


Boy, you sure wouldn't know it from its general performance!  :-)


I don't think it is meant
or built to close under native Windows, so use exit return
if you don't want to use the mouse.


Back in the Windows 9x era, I'm pretty sure that a command window was 
designed not to be too easily killed (presumably lest one lose work, 
possibly lest one leave an orphan process around), so I would not be 
surprised if alt-F4 did not kill it.  If you clicked the X (close) box 
in the upper right, you got a stern warning that something dire might 
happen if you really closed it that way.  I haven't seen that warning in 
XP Pro, and if you can kill the shell with the X box, no reason why 
alt-F4 shouldn't do so as well.


/Paul



Re: keyboard access to environment selection menu

2006-07-11 Thread Paul A. Rubin

Sven Schreiber wrote:

Jean-Pierre Chretien schrieb:


Dear all,

how do I activate/access (whatever you call it) the drop-down menu for
setting the paragraph environment without the mouse?



Here (lyx-1.4.1) after Alt-E P I get the paragraph settings window, but then 
it seems that the underlined letters are not active: focus with the arrows is bound to the last

submenu accessed with the mouse (as I use thsi mostly for justification 
control, I can do this effectively
without mouse).



Jean-Pierre, thanks for your reply, but I meant setting the
*environment* (layout), not the other settings.

-sven



M-p (alt-p) followed by a space opens the environment list.  From there, 
repeatedly typing the same letter cycles through all environment names 
starting with that letter.


/Paul




Re: keyboard access to environment selection menu

2006-07-11 Thread Paul A. Rubin

Sven Schreiber wrote:

Paul A. Rubin schrieb:


M-p (alt-p) followed by a space opens the environment list.  From there,
repeatedly typing the same letter cycles through all environment names
starting with that letter.



Thanks alot Paul! I looked in the guides and the wiki and couldn't find
it. Is it documented? Otherwise I will put it up on the wiki.

-Sven



I learned it from someone else on the list.  AFAIK, it's not documented 
directly, but I never looked for it.


/Paul



Re: keyboard access to environment selection menu

2006-07-11 Thread Paul A. Rubin

Jean-Pierre Chretien wrote:
M-p (alt-p) followed by a space opens the environment list.  From there, 
repeatedly typing the same letter cycles through all environment names 
starting with that letter.


I was not aware of this, but it does not work excatly as described here:
I need the arrow keys to parse the environment names from top to bottom.
Are there underlined words in the drop-down list for you ? Mine has none.



No, there are no shortcut letters underlined in the drop-down list. 
It's relatively standard behavior (though I suppose not guaranteed) for 
an active selection box to respond to keystrokes by trying to match the 
start of the selection.  (Try it on a select control on a web page some 
time.)  In fact, with LyX 1.4.1 (on WinXP, anyway), it will match the 
first few characters if you type quickly enough.  For instance, in a 
standard article, 'alt-p (space)' followed by 'ly' will jump to 
'LyX-Code' if you type the 'y' quickly enough; otherwise it will jump to 
 'List' and then ignore the 'y', since no environment starts with 'y'.


This is consistent for me across two XP Pro boxes and one XP Home box, 
and IIRC has worked since LyX 1.3.6 at least.


/Paul




Re: bug(?): strange behavior after ctrl-shift-left

2006-07-11 Thread Paul A. Rubin

Jose' Matos wrote:

  I would like to hear from other windows users. If the bug is not there it 
should be filled in bugzilla to be fixed in 1.4.2.


I can reproduce it (LyX 1.4.1, WinXP).  If I follow Sven's instructions 
and then type the letter 'a', the keyboard is locked out (but the mouse 
still works), the 'a' never shows up on screen, and here's what the 
debug output looks like (from the point immediately after ctrl-shift-left):


Setting key to 65, a
KeySym is a
isOK is 1
isMod is 0
encoding is iso8859-1
Using codec ISO 8859-1
ISOEncoded returning value 97
void LyXFunc::processKeySym(boost::shared_ptrLyXKeySym, 
key_modifier::state)

ction first set to [86]
void LyXFunc::processKeySym(boost::shared_ptrLyXKeySym, 
key_modifier::state)a

tion now set to [86]
void LyXFunc::processKeySym(boost::shared_ptrLyXKeySym, 
key_modifier::state)

ey [action=86][A]
LyXFunc::dispatch: cmd:  action: 86 arg: 'a' x: 0 y: 0
void LCursor::dispatch(const FuncRequest) cmd:  action: 86 arg: 'a' x: 
0 y: 0


 cursor:| anchor:
 inset: 0x1102eac idx: 0 par: 0 pos: 8 | inset: 0x1102eac idx: 0 par: 1 
pos: 0

 selection: 1 x_target: 113

LCursor::dispatch: cmd:  action: 86 arg: 'a' x: 0 y: 0

 cursor:| anchor:
 inset: 0x1102eac idx: 0 par: 0 pos: 8 | inset: 0x1102eac idx: 0 par: 1 
pos: 0

 selection: 1 x_target: 113

virtual void InsetText::doDispatch(LCursor, FuncRequest) [ cmd.action 
= 86]

LyXText::dispatch: cmd:  action: 86 arg: 'a' x: 0 y: 0

Hopefully someone can read that (I can't, other than I get that it's 
reporting my having typed 'a' near the top).


Incidentally, if the first thing you do after ctrl-shift-left is to 
click someplace in the document, or hit the left arrow key, the keyboard 
remains responsive.  (Hitting up, down or right arrow does not avoid the 
problem but also does not cause the keyboard to lock out -- they have no 
effect at all.)  Also, when the keyboard lockout occurs, LyX is 
hammering the CPU (close to 100% load) for a few seconds.  Then it goes 
back to a light load, and the mouse works.


One other odd thing -- the keyboard works for issuing menu commands 
(alt-F x to exit, for instance).


/Paul



Re: \abstractname failure

2006-07-12 Thread Paul A. Rubin

mail.k wrote:

But I am /not /using Babel (to my knowledge, the document is in 
English) and I got the preamble right. 


You may be using Babel anyway.  I'm set up to write in English (true 
English, i.e., the American version :-)) only, and I just created a new 
document with a few words in it and nothing else.  It loads Babel 
anyway.  Try View-LaTeX on your document and see if Babel insinuated 
itself into the preamble.


/Paul



Re: Instant-Preview not working - How to troublecheck

2006-07-13 Thread Paul A. Rubin

Jan Peters wrote:

Hi, i have a problem with instant preview: it simply claims that the
latex compilation failed, see below --- despite that I could compile
it manually. Does anybody know how to fix this?

Thanks,
-Jan

lyx document header finished
command
   python 
'/Applications/LyX.app/Contents/Resources/scripts/lyxpreview2bitmap.py'

png '/tmp/lyx_tmpdir445111RZoo/lyx_tmpbuf0/0lyxpreview.tex' 216 00
faf0e6
   Interpretted as:

   python
   
/Applications/LyX.app/Contents/Resources/scripts/lyxpreview2bitmap.py

   png
   /tmp/lyx_tmpdir445111RZoo/lyx_tmpbuf0/0lyxpreview.tex
   216
   00
   faf0e6
/command
void BufferView::Pimpl::update(Update::flags)[fitcursor = 1,
forceupdate = 0, singlepar = 0]  buffer: 0x15264520
ViewMetricsInfo BufferView::Pimpl::metrics(bool) y1: 0 y2: 731 pit1: 0
pit2: 2 npit: 62 singlepar: 0
void BufferView::Pimpl::updateScrollbar() Updating scrollbar: height:
62 curr par: 0 default height 37
verbose dispatch msg (file-open
/Volumes/Boudin_HomeDir/Publications/Journals/JMLR/2006/JLMR2006.lyx)
latex failed to compile 0lyxpreview.tex
PreviewLoader::finishedInProgress(1): processing failed for python
'/Applications/LyX.app/Contents/Resources/scripts/lyxpreview2bitmap.py'
png '/tmp/lyx_tmpdir445111RZoo/lyx_tmpbuf0/0lyxpreview.tex' 216 00
faf0e6



When you say could compile it manually, does it refer to the original 
document or specifically the math inset (0lyxpreview.tex)?  Are the 
paths in the last message above (to lyxpreview2bitmap.py and to 
0lyxpreview.tex) valid?  And, importantly, is Python installed?  (If you 
open a command prompt in the directory where lyxpreview2bitmap.py lives 
and execute lyxpreview2bitmap.py, do you get a usage message?)


/Paul



Re: beamer.layout on Windows

2006-07-13 Thread Paul A. Rubin

Myriam Abramson wrote:

Hi!

I've installed LyX with the windows installer without problem and the
beamer presentation class appears in the menu. It seems however that
beamer.layout cannot be found. It can be found in the texmf
directories. How can I tell LyX where to find it? Where is the
.lyx/layouts directory on Windows? 


TIA,


   myriam




The user layout directory is C:\Documents and Settings\your 
id\Application Data\LyX1.4.x\layouts\ (at least as of 1.4.1, haven't 
installed 1.4.2 yet).  The system layout directory is LyX installation 
root\Resources\layouts.  I prefer to use the user one, so that 
reinstallation doesn't make the file go away.


/Paul



Re: ANNOUNCE: LyX 1.4.2 is released

2006-07-13 Thread Paul A. Rubin

Rich Shepard wrote:

On Thu, 13 Jul 2006, mail.k wrote:


Is the list a gentlemen's club? ...


  Usually. AFAIK, all the developers are male, and I cannot recall 
flames or

other obnoxious behaviors on this mail list.

Rich



Ah, but this is the *user* list, where (a) not all users are male and 
(b) not all male users are gentlemen (at least according to feedback 
from several of my acquaintances).


/Paul




Re: Export/View to HTML/Word/OO.Writer not working at all

2006-07-14 Thread Paul A. Rubin

Dean O'Connor wrote:


This is my env path value:

PATH=c:\program
files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Perl\bin\;C:\WINDOWS\
system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d
ev\Bu
ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSD
ev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi
n;C:\Program Files\LyX14\python


I don't see a directory for tex4ht on the path (unless I'm missing it).
 
The Miktex directory with the Lyx bundle is: C:\texmf\miktex\bin


If I type convert I get the ImageMagick one.

I also have installed the latest Miktex 2.5 beta (just now) and tried
running htlatex from there.
In a separate command window for that I put its own path at front of
PATH.
Ie. Above path prefixed with: C:\Program Files\MiKTeX 2.5\miktex\bin

In both the bundle and the beta Miktex environments (which use the same
ImageMagick and GS paths) I get the same problem.

If I run htlatex.exe .. They both say: 


C:\texmf\miktex\binhtlatex c:\docs\newfile1.tex
htlatex: the batch script could not be found.

C:\PROGRA~1\MIKTEX~1.5\miktex\binhtlatex c:\docs\newfile1.tex
htlatex: The Windows command script file could not be found.

If I add an empty htlatex.bat file to both directories, it stops that
error, but nothing happens. Ie. It executes that batch file.
Why ? What is it with the batch file ?
Obviously I am missing some fundamental Miktex piece of the puzzle here,
but to be honest both installs were smooth as.

Any ideas ?


Did you download and install tex4ht?  (There are instructions for MiKTeX 
users at 
http://facweb.knowlton.ohio-state.edu/pviton/support/tex4ht.html.)  The 
htlatex.bat file is part of the installation, in htlatex root\bin\win32\.


/Paul



Re: portable Lyx version: live lyx CD or others?

2006-07-15 Thread Paul A. Rubin

Michael Chen wrote:

I think
it is meaningful to produce a portable Lyx, which can be used with
U-disk, CD or DVD. Any suggestions?


There was a discussion on the list not too long ago about running LyX 
from a flash drive.  You might be able to find it in the GMANE list 
archive.  (Sorry, don't recall the details, and in particular whether 
anyone pulled it off.)  It's also on the Wiki in poll of requested 
features (http://wiki.lyx.org/LyX/FeaturePoll).  You might want to chime 
in there.


/Paul



Re: Wiki idea

2006-07-15 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:

On Tue, 11 Jul 2006, Juergen Spitzmueller wrote:


Paul A. Rubin wrote:

http://jo.irisson.free.fr/bstdatabase/index.php


Cheers,
Charles


Outstanding!  This obviates the need for a wiki page (although perhaps
someone should link this site on the wiki, since this could turn into a
FAQ).


Well, this page
http://wiki.lyx.org/BibTeX/Links


If this page points to the answer, what's the question... 42? ;-)


lists that link for ages.


Seriously though.. Paul, as you asked first, could you see if there are 
some words or description you think should be added to that sentence?

Maybe it's just a matter of giving the link a longer description.

/Christian



Ok, mea culpa, it didn't occur to me to look on the Wiki (since it was a 
BibTeX question, not a LyX question).  That said, my approach to 
researching pretty much anything on the Wiki is to use the search 
facility.  So for me the wording on the links page was sufficient. (It 
might not be a bad idea to organize the links into sections, even though 
there are not that many links, but I'll leave that to someone else.) 
What I did is edit Bibtex/PageList to indicate that the links section 
includes tips on styles.  This is (the page list) the first page I would 
check after searching on bibtex, and I would give links a low 
priority since they could be links to anything.  Short of devoting a 
separate page to how to pick a bibtex style, I think this is as much 
as we can do.


On the general question of making the wiki more transparent, I think 
it's in pretty good shape as it is.  To me, the higher priority is to 
get people looking at the wiki in the first place, and secondarily to 
let them know that it includes more than just information about LyX.  To 
that end, I wonder if (down the road) some enterprising developer might 
put a link to the wiki in the LyX help menu?


/Paul



Re: Exporting to pdf on windows XP

2006-07-15 Thread Paul A. Rubin

Myriam Abramson wrote:

I got an error from acroread that the file was corrupted when trying
to view a Lyx document (Beamer presentation) into pdf using pdflatex.
Any ideas?


Maybe a graphic didn't convert properly?  If it repeats, can you post 
the culprit (including any images), or a minimal subset of it that glitches?


/Paul




Re: beamer.layout on Windows

2006-07-15 Thread Paul A. Rubin

Myriam Abramson wrote:

The Framesubtitle feature of
beamer.layout does not seem to exist on Windows though. That's odd. 


Should it?  (Meaning, does it exist as an environment in Linux?)  You 
can enter a frame subtitle by putting \framesubtitle{blah blah blah} in 
ERT as the first thing in the frame title.


/Paul



Re: beamer.layout on Windows

2006-07-16 Thread Paul A. Rubin

Georg Baum wrote:

Am Sonntag, 16. Juli 2006 01:26 schrieb Paul A. Rubin:

Myriam Abramson wrote:

The Framesubtitle feature of
beamer.layout does not seem to exist on Windows though. That's odd. 
Should it?  (Meaning, does it exist as an environment in Linux?)  You 


Yes, it does. Maybe the windows installer includes an outdated 
beamer.layout?



Georg




I do not think the Windows installer has a Beamer layout at all.  (Is 
there not some issue with licensing?)  I use the one that Till Tantau 
ships with Beamer.


At any rate, the FrameSubtitle environment does in fact exist (even in 
Windows); you just have to scroll down the environment list quite a ways 
to find it.  (Myriam:  it's just above Institute, if that helps.)  I 
never put subtitles on frames, so I never bothered to look for it.


I think there's a variant of the layout file floating around from 
somewhere; I seem to (vaguely) recall seeing it mentioned on the list. 
I can only vouch for the one that comes with Beamer (version 1.16).


Sorry, my bad.

/Paul




Re: LyX 1.4.2 and pdflatex

2006-07-16 Thread Paul A. Rubin

Georg Baum wrote:

Am Sonntag, 16. Juli 2006 01:31 schrieb Paul A. Rubin:

Hi all,

First, thanks to the developers for another fine update.  The Windows 
1.4.2 installer ran error-free for me.  However, subsequent to 
installing it, I lost View-PDF (pdflatex) in 1.4.1 (and presumably 
1.4.2, but I'm keeping 1.4.1 as my production version for the moment).


I went into Tools-Preferences ...-Converters, and the LaTeX-PDF 
(pdflatex) converter was gone.  In its place was a LaTeX (pdflatex)-PDF 
(pdflatex) converter, which apparently was not getting the job done.  I 
assume this change occurred when I installed 1.4.2.  Has anyone else 
tripped over this?


That converter is (or should be) actually the same: the pdflatex.exe 
compiler. Does Export-PDF (pdflatex) still exist?



Georg




No in 1.4.1, yes in 1.4.2.  In other words, after 1.4.2 installed (and 
changed the preferences file), it could view/export PDF (pdflatex) but 
1.4.1 could not.  Since LyX to LaTeX conversion is built in (not set 
through preferences), I assume this means that 1.4.2 knows how to 
convert LyX to the new LaTeX (pdflatex) format and 1.4.1 does not.


It's not a huge problem.  It's not a problem at all if you are either a 
trusting and soul and replace 1.4.1 with 1.4.2, or conservative and do 
not upgrade.  It's only an issue for the semi-brave, like me, who 
install the new version but keep the old one.


/Paul



Re: Small problem with Lyx142 windows installer

2006-07-16 Thread Paul A. Rubin

Georg Baum wrote:
Sven, do the *.lst files get regenerated if you do Tools-TeX 
information-rescan?



Georg,

I'm not Sven :-) but I installed 1.4.2 (Joost's installer) and (a) it 
found all the LaTeX stuff during the initial installation and (b) the 
.lst files do get regenerated with a rescan.  Note that I had the .lst 
files left over from 1.4.1, but based on the file dates it appears that 
1.4.2's installer rewrote them.


/Paul



Re: Small problem with Lyx142 windows installer

2006-07-16 Thread Paul A. Rubin
(Disclaimer:  what follows below was done on my laptop, which we've 
established was manufactured in an alternative dimension)


Steve Harris wrote:
No, Tex Information does not work. The Rescan button does not work 
right. I have to run python TeXFiles.py in order to generate a

the .lst files. Rescan does not work at this point. After you copy
the .lst files to ~Resources, then Rescan registers the files in
the Resources directory, nearly instantaneously. Rescan does not
search the texmf directory. I've tested this twice.


Not only does it work for me, but I hid the bstFiles.lst file (by 
renaming it), started LyX 1.4.2, went to Tools-TeX Information-BibTeX 
styles, and bstFiles.lst was reconstituted automagically (without my 
having to click Rescan).  I did this about three times to convince 
myself that the gods were not playing with me.  (If they were, they were 
unusually single-minded about it.)


Python acting on TexFiles.py works right, but the Rescan button
doesn't invoke python texfiles.py it only reads from Resources.

I'm not sure that asking if you have a full Python installed is
relevant. I do, and it is in the Path and works with earlier versions.


Same here.


But the installer (small 9mb) still installs Python into my LyX/lyx14
sub-directory and Msys shell tools too. The installer doesn't check
to see if you already have Python and Msys intalled, it just installs
it again.


Same here.


The reason I questioned the relevance is that I thought
LyX ran executables from its own installation directory first, so
that the Python used was the LyX-owned Python, not the full version.

In any event, whatever python is being used, it correctly runs
python texfiles.py but that action is not connected to Rescan.
Rescan *only* reads the .lst files *after* they have been created,
from the Resource directory (not even from /scripts where they arise).


Works for me (on the laptop -- haven't tried any other machines).

Since Bo also says it does not work (and I'm pretty sure I'm not the 
only Windows user for whom it does work), perhaps we should be looking 
for environmental similarities/differences.


/Paul



Re: Prouncing LyX - help with sound file

2006-07-16 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:

On Sat, 15 Jul 2006, Rich Shepard wrote:




The pronounciation bit is pretty interesting though...

I suspect that the sound snippet where Linus Torvalds pronounces linux 
helped promote linux quite a bit...


Not to mention settling more than a few arguments -- as the developer 
and benevolent god of Linux, he gets the last word on how it's 
pronounced.  I suppose Matthias Ettrich would be the official arbiter of 
pronunciation here?  (And, by the way, you don't want to know how we 
Americans pronounce Matthias.)


It is also interesting how you Americans usually can't hear the 
difference between the vowel sound Swedes/Norwegians make when 
pronouncing LyX compared to eg licks.


Some of us can.  We just can't reproduce it.  Anyway, the official 
American policy on language is (a) pronounce it any way we damned well 
please and then (b) tell you that you're pronouncing it wrong, even if 
the word comes from your native language.  :-)  (In the case of the 
Brits, we will also take time to point out that they spell a lot of 
words incorrectly, such as programme.)




[* ] The advantage with a long vacation is that first you can go away 
with your significant other and then you can also get some playtime on 
your own. In a few days I'll be off to see Vienna and Innsbruck in 
Austria :-)


Now, let me think... in the US you typically have... what.. two weeks?

;-)


Three months (college professor), although I only have one month left.  ;-)

/Paul



Re: LyX 1.4.2 and pdflatex

2006-07-16 Thread Paul A. Rubin

Ed Gatzke wrote:

Yes, thanks for a great new version!  Things run terrrific for me overall.  Even
my silly Alt-F4 to close works in the new version on XP, thanks!


Another thing to add to the mystery of alt-F4.


My only problem so far is the win installer still did not get the equation
instant preview files loaded.


Works out of the box for me.


 From a wiki:

Besides the LaTeX-package preview you need these two files in LyX's
installation subfolder \bin: libnetpbm10.dll pnmcrop.exe 


That's slightly dated. LyX 1.4.2 (the small installer) installs them 
automatically in the latextools folder under the LyX root folder.  Do 
you not have them there?


First, thanks to the developers for another fine update.  The Windows 
1.4.2 installer ran error-free for me.  However, subsequent to 
installing it, I lost View-PDF (pdflatex) in 1.4.1 (and presumably 
1.4.2, but I'm keeping 1.4.1 as my production version for the moment).




I have seen this here as well.  You may want to keep separate folders for each
version of lyx.  I have seen oddness when running both 1.4.1 and 1.4.2 on XP. 


C:/Documents and Settings/username/Application Data/Lyx1.4.x is the working
directory on XP, so make a /Lyx1.4.1 and a /Lyx1.4.2 directory you copy over to
/Lyx1.4.x everytime you start.  You won't be able to run both side by side I
think, but it may help until you swap over to the new version.


Actually, for this problem at least it suffices to add back the 
LaTeX-PDF (pdflatex) converter.  So far, that's the only 
incompatibility I've seen introduced in the preference file, and I'm 
able to run them side-by-side.  Of course, I haven't reconfigured 1.4.2 
since the initial installation, so I don't know if a reconfigure will 
once again vaporize the LaTeX-PDF (pdflatex) conversion path.


/Paul



Re: Latex Logfile in Lyx win 32

2006-07-17 Thread Paul A. Rubin

Jean-Claude Garreau wrote:

Hi,

I recently intalled the win32 version of Lyx 1.4.2, and I can't
view the Latex logfile. It says No LaTeX log file found. Is there a
way to circunvent the problem?

Thanks of any information,


The same thing happens to me (in both 1.4.2 and 1.4.1, although I don't 
know if the latter is the result of 1.4.2 munging a preference setting 
or if it was broken in 1.4.1 as well).


/Paul



Re: LyX142 DVI

2006-07-17 Thread Paul A. Rubin

Mukhtar Ullah wrote:

Hi everyone,
I have installed LyX142 and have a strange problem. When I include a graphics
into my document, the DVI output shows the whole page of the graphics (pdf file)
while it should clip to the bounding box. This was working correctly in Lyx141.
Now with  LyX142, I have to run pdflatex in order to see the correct graphics,
clipped to the bouning box. This is frustrating.

Looking forward to hear something

Mukhtar




Clipping works for me in 1.4.2 (Windows XP).  Can you post a minimal 
example document (plus the graphic file)?


/Paul



Re: interactive viewing of math symbols

2006-07-17 Thread Paul A. Rubin

Shourya Prakash Otta wrote:

Hi,

  I am using Lyx 1.4.2 in windows. I had used earlier Lyx 1.3.6 in 
Linux. In this older linux version, you can start an equation/equation 
array and say \alpha and the math symbol for alpha will appear. 
(assumed that you have the latex-xft fonts installed). I have used this 
feature extensively. In the windows version, this doesn't work. So, in 
LyX 1.4.2, is it a feature or a bug? Any ideas or work arounds ?


  Thanks,
  Shourya




Did you install the BaKoMa math fonts on the Windows box?  (Note:  It's 
not enough to unzip them in the right directory, you have to run the 
Windows font applet and tell it to install them.)


/Paul




Re: Latex Logfile in Lyx win 32

2006-07-17 Thread Paul A. Rubin

Georg Baum wrote:

Paul A. Rubin wrote:


Jean-Claude Garreau wrote:

Hi,

I recently intalled the win32 version of Lyx 1.4.2, and I can't
view the Latex logfile. It says No LaTeX log file found. Is there a
way to circunvent the problem?

Thanks of any information,



The same thing happens to me (in both 1.4.2 and 1.4.1, although I don't
know if the latter is the result of 1.4.2 munging a preference setting
or if it was broken in 1.4.1 as well).


Please start LyX with the -dbg files switch from a command window. You
will see something like

Log name calculated as: xxx.log

in the command window, where xxx.log is the name of the logfile that LyX
tries to read. Does that file exist?


Yes, and it contains the correct content.  Picking up from after where I 
load the document but just before where I execute View-DraftDVI:


Temporary file `C:/Documents and Settings/me/Local Settings/Temp/lyx
_tmpdir2000a03080/2000b03080' created.
Converting from  latex to dvi2
Running pplatex
pplatex: Process input file mgt805syllabus.dvi
pplatex: Copy data to mgt805syllabus.dvi
lyx::sum() using istreambuf_iterator (fast)
lyx::sum() using istreambuf_iterator (fast)
lyx::sum() using istreambuf_iterator (fast)
[this last line is repeated quite a few times]
[here is where I try to read the log file:]
Log name calculated as: C:/Documents and Settings/me/Local Settings/
Temp/lyx_tmpdir2000a03080/lyx_tmpbuf1/mgt805syllabus.log
Log name calculated as: C:/Documents and Settings/me/Local Settings/
Temp/lyx_tmpdir2000a03080/lyx_tmpbuf1/mgt805syllabus.log
Log name calculated as: C:/Documents and Settings/me/Local Settings/
Temp/lyx_tmpdir2000a03080/lyx_tmpbuf1/mgt805syllabus.log

I'm not sure why the log name calculated message occurs three times, 
but the name/path are correct and log file is as expected.  It just does 
not display.  Clicking the update button in the log viewer window has no 
effect (and does not generate any new messages).


/Paul



Re: Latex Logfile in Lyx win 32

2006-07-17 Thread Paul A. Rubin

Georg Baum wrote:

Am Montag, 17. Juli 2006 20:33 schrieb Paul A. Rubin:
Yes, and it contains the correct content.  Picking up from after where I 
load the document but just before where I execute View-DraftDVI:


Temporary file `C:/Documents and Settings/me/Local Settings/Temp/lyx
_tmpdir2000a03080/2000b03080' created.
Converting from  latex to dvi2
Running pplatex
pplatex: Process input file mgt805syllabus.dvi
pplatex: Copy data to mgt805syllabus.dvi
lyx::sum() using istreambuf_iterator (fast)
lyx::sum() using istreambuf_iterator (fast)
lyx::sum() using istreambuf_iterator (fast)
[this last line is repeated quite a few times]


normal.


[here is where I try to read the log file:]
Log name calculated as: C:/Documents and Settings/me/Local Settings/
Temp/lyx_tmpdir2000a03080/lyx_tmpbuf1/mgt805syllabus.log
Log name calculated as: C:/Documents and Settings/me/Local Settings/
Temp/lyx_tmpdir2000a03080/lyx_tmpbuf1/mgt805syllabus.log
Log name calculated as: C:/Documents and Settings/me/Local Settings/
Temp/lyx_tmpdir2000a03080/lyx_tmpbuf1/mgt805syllabus.log

I'm not sure why the log name calculated message occurs three times,


That is normal, too.
 
but the name/path are correct and log file is as expected.  It just does 
not display.  Clicking the update button in the log viewer window has no 
effect (and does not generate any new messages).


Ahh, I know now the problem: another path with spaces bug. See 
http://bugzilla.lyx.org/show_bug.cgi?id=2687



Georg




Easily fixed while awaiting 1.5, then; I can move the temp directory to 
a space-free path.


Thanks,
/Paul




Re: bib to bbl

2006-07-17 Thread Paul A. Rubin

Bruce Pourciau wrote:
Actually, I'm told I should run BibTeX on my source tex file, but when 
I do what I think this means, with a small test file BblTest.tex, I get 
an error message from BibDesk: cannot open file name BibTest.aux


Suggestions?

Bruce

On Jul 17, 2006, at 3:57 PM, Bruce Pourciau wrote:

I've got a .bib file and a .bst style file. A journal tells me to make 
from these a .bbl file, so I can include (as a TeX inset?) the .bbl 
file in my LyX document and/or cut and paste the .bbl file into the 
TeX file. Any suggestions on how to make such a .bbl file? I know I 
need to run BibTeX on the .bib file, but I'm not sure how to do this 
using TeXShop.


Any help would be appreciated.

Bruce





You have to export to latex, run latex against the .tex file (this 
produces the .aux file), then run bibtex against the .tex file.


An easier solution may be to View-DVI in LyX, and (while the DVI file 
is open) cruise to the temp directory LyX is using.  There should be a 
copy of the .bbl file there.


/Paul



Re: LyX142 DVI

2006-07-18 Thread Paul A. Rubin

Mukhtar Ullah wrote:

Paul wrote


No, that was Jean-Pierre.

I loaded your sample document here (LyX 1.4.2 on Windows XP), cropped 
the image enough to verify that it is cropped, and ran View-DVI.  It 
worked correctly.  I'm attaching the modified document (when I loaded it 
there was no cropping, so I made some changes) and a screen-shot of the 
resulting DVI.  Try View-DVI on the modified document.  If it's 
cropped, check the changes I made in the image dialog; if not, let us 
know, and we can try to track down whether your graphics conversions are 
set up incorrectly.


/Paul


dvi_problem.lyx
Description: application/lyx



Re: bib to bbl

2006-07-18 Thread Paul A. Rubin

Bruce Pourciau wrote:
An easier solution may be to View-DVI in LyX, and (while the DVI file 
is open) cruise to the temp directory LyX is using.  There should be a 
copy of the .bbl file there.


Thanks, Paul. How would I find this temporary directory?


You use one of those Mac thingies, right?  Isn't there a way to rub the 
machine's case and then tell the genie what you need?


Alternatively, Tools-Preferences...-Paths-Temp directory should point 
you to the parent directory of the buffer.  You'll have to drill down a 
level or so from there.


/Paul




Re: LyX142 DVI

2006-07-18 Thread Paul A. Rubin

Steve Harris wrote:

Paul A. Rubin wrote:

Mukhtar Ullah wrote:

Paul wrote


No, that was Jean-Pierre.

I loaded your sample document here (LyX 1.4.2 on Windows XP), cropped 
the image enough to verify that it is cropped, and ran View-DVI.  It 
worked correctly.  I'm attaching the modified document (when I loaded 
it there was no cropping, so I made some changes) and a screen-shot of 
the resulting DVI.  Try View-DVI on the modified document.  If it's 
cropped, check the changes I made in the image dialog; if not, let us 
know, and we can try to track down whether your graphics conversions 
are set up incorrectly.


/Paul





The dvi.png looks much better than what I first saw.
But the cropping seems to be off when compared to
the graphic that LyX produces with pdflatex.
I attach a comparison picture, the pdf.png.



Was pdf.png generated from a different source document (different crop 
settings)?  Because when I run View-PDF (pdflatex) on the version of 
the document that I edited and uploaded, I get the same output that 
View-DVI produces.  (Note that I deliberately cropped out most of the 
image, to make it clear that cropping was working.)


/Paul



Re: Suggesting Hyphenation Within URL

2006-07-18 Thread Paul A. Rubin

Rich Shepard wrote:
  I must be missing something simple here, so please be gentle when you 
clue

me in.

  The mechanism for providing hyphenation hints to LaTeX is to put {\-} at
acceptable word breaks. However, when a URL is entered (\usepackage{url} in
the preamble) with \url{some/long/text/here.html}, the hyphenation break is
seen as just more characters to be typeset literally.

  What's the magic incantation to suggest hyphenation breaks within a URL?

Thanks,

Rich



I don't think hyphenating a URL is a good idea, since the dash character 
is legal in a URL (so is that a hyphen, or a dash, asks the reader). 
Hints/instructions for using url.sty are stashed at the end of the file 
(not what I'm used to with LaTeX packages, but so be it).  In 
particular, look for the description of \UrlBreaks and \UrlBigBreaks, 
which control where long URLs are broken.


If you want to specify break points yourself, you might try loading with 
the package with the [obeyspaces,spaces] options (also described in 
url.sty) and then inserting spaces where you want breaks.


/Paul




Re: Revisited: chopped-off brackets in printed PDF

2006-07-19 Thread Paul A. Rubin

Georg Baum wrote:

John Pye wrote:


Here's the really surprising part. When I copy the same PDF file to
another machine (also Win2k, also Acrobat 4.0), it prints out fine,
without the brackets chopped.


That does not match with what I'll write below, but nevertheless...


So I guess the conclusion is that I have a crazy local problem perhaps
with Acrobat or with my printer driver, or with FinePrint (which is from
fineprint.com, btw).

If anyone has any other ideas, please let me know.


I had a similar problem some years ago. In that case all greek letters and
the minus sign in formulas where missing in the printout.

The reason was a bug in Acrobat (also 4.0). It could not read certain
embedded fonts (known bug at adobe IIRC). The solution was to use the .ps
file (made from the same LyX file). Another solution was to upgrade acrobat
to the then current version 5.0, but that was not possible because the pc
with acrobat was tied to the printing machine at the print shop.

Maybe using .ps files or upgrading acrobat works? Good luck!


Georg




The PDF file displays correctly in Acrobat Reader 7.0, so I think that 
Georg must be right -- it must be a problem with the viewer (Acrobat 
4.0).  If you can't upgrade Acrobat and need to print it, you might try 
opening it in Ghostview.


/Paul




Re: how to sort the environments in the upper left corner pull down menu?

2006-07-21 Thread Paul A. Rubin

Bo Peng wrote:

Here is a question along the same lines:  How can I modify the number
of environments shown by default?

By default, it shows 10 different types and you have to scroll up or 
down.


Ideally, I would like all the environments shown with the current
one highlighted.

This has always bugged me, as I find myself scrolling up and down
for some environments.


My solution is to use shortcuts, rather than searching in this list. I
devote Alt-p (M-p) to this, and have shortcuts like:

\bind M-p p   layout Proof
\bind M-p c   layout LyX-Code
\bind M-p a   layout Author
\bind M-p S-A layout Abstract
\bind M-p f   layout BeginFrame

\bind M-p d   layout Definition
\bind M-p S-D layout Description
\bind M-p S-L layout Lemma
\bind M-p S-C layout Corollary
\bind M-p S-T layout Theorem
\bind M-p S-P layout Proposition
\bind M-p S-E layout Example
\bind M-p S-F layout Fact
\bind M-p S-N layout Note

\bind M-p C-d layout Definition*
\bind M-p C-l layout Lemma*
\bind M-p C-c layout Corollary*
\bind M-p C-t layout Theorem*
\bind M-p C-p layout Proposition*
\bind M-p C-e layout Example*
\bind M-p C-f layout Fact*
\bind M-p C-n layout Note*

Note that M-p 1,2,3,4,5 etc are already assigned to chapter, section,
subsection etc.

Bo



Or M-p space to drop the list down, then repeatedly hit the first 
letter of the environment you want (for instance, 'A' to get author) 
until you get it.


/Paul



Re: Lyx Document Error

2006-07-24 Thread Paul A. Rubin

Adrian M. Peter wrote:

I was able to fix the error by removing the Bibtex Bibliography at the end
of the document and reinserting it.  But I have no idea what caused this.
Thanks.

 

  _  

From: Adrian M. Peter [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 12:43 PM

To: 'lyx-users@lists.lyx.org'
Subject: Lyx Document Error

 


Hi,

 


I am working on a 30+ page document in Lyx.  I have be previewing the DVI as
I went along to make sure I did not have any compiling errors.  After I
finished the typing the last section I tried to preview the DVI and got an
error.  I have attached a screen capture of the error.  I went back and cut
our the last section I worked on and this error is still persisting.  I
would appreciate any help on letting me what's going on.  Is Lyx caching the
error so that even if I delete the text it still complains?  If so how can I
fix it.   I am using Lyx 1.4.1 on Windows.  Thank you in advance.

 


Adrian

 





This sort of error is often the result of something getting inserted 
inside something else when it should be inserted outside the something 
else.  If you View-LaTeX (and know in general terms what LaTeX code 
means), you can usually find the problem, but it's often not visible in 
the GUI because the boundaries of constructs/environments/whatever are 
often not clear.  So maybe the bibliography widget got inserted inside 
something else rather than in a fresh paragraph?


Anyway, glad it's fixed.

/Paul




Re: More class files by default

2006-07-25 Thread Paul A. Rubin

Ed Gatzke wrote:
You've probably done this already, but when you add a style or layout or 
anything to the  /usr/share/texmf/tex/latex/ tree, run  the texhash 
program.




The couple of times I have done this, my latex'ing time quadrupled for some
strange reason, so the performance hit was frustrating.  One time dvis and 
fonts got fouled up as well.


There are like three different ways listed to get classes added to latex,
one involves setting a bunch of environment vars as well.   There are two
or three programs that can fix your paths when you make mods, so it is a 
bit screwy having option.


There must be a crapload of cls files for journals and theses out there, 
but I can't see a large portion of them adding up to more than 5 - 10 MB,
especially if you zip the text files initially.  Give the user an option 
to pick the ones they want to install early on, then download them from 
a contrib site if you want.  


It is much easier to have the well-written installer handle it as opposed
to idiot users like me mucking it all up later...





I'm a bit fuzzy on what you're proposing here.  If you add a bunch of 
LaTeX classes that don't have layout files, they won't be usable from 
LyX.  So we're down to classes for which someone has donated a layout 
file.  There are a few floating around that are not part of the LyX 
package (I think there might be a few on the Wiki), but my impression is 
that the number of layout files publicly available but not shipping with 
LyX is a bit small.


As far as the classes/styles themselves (ones that don't come with your 
LaTeX distribution), using LyX rather than the LaTeX distro to install 
them might create some compatibility adventures (if an updated version 
of your distro changes the package installation procedure), and I think 
would be a bit of a pain to program (since installation procedures are 
somewhat platform- and distribution-specific).


What might work would be a wizard that would walk you through the steps.

/Paul




Re: Postscript preview

2006-07-25 Thread Paul A. Rubin

Bo Peng wrote:

The Lyx document and the postscript file are attached.


I can view the figure (converted successfully) under windows, using lyx 
1.4.2.


Bo



Same here (LyX 1.4.2, WinXP).  It takes a couple of seconds on my laptop 
for the image to convert, but convert it does.


/Paul




Re: Sudden lose of keyboard input.

2006-07-25 Thread Paul A. Rubin

Bo Peng wrote:

   What OS? What other processes are running?


Windows 2k. Other processes include cygwin/x, vnc, explorer, firefox.

Bo



Bo,

There's an earlier thread (started with message 
[EMAIL PROTECTED] dated 7/11 from Sven Schreiber, subject 
bug(?): strange behavior after ctrl-shift-left) that describes a bug 
causing keyboard lock-out.  When this one occurs, you can still use 
alt-F etc. to get to the menu, but you can't type (or cursor around) in 
the document pane.


When you lose keyboard control, does that include menu commands?

/Paul




Re: Postscript preview

2006-07-26 Thread Paul A. Rubin

LB wrote:
Ok, this means it has something to do with my setup.  I'm just surprised 
that this one particular figure causes the problem while all others 
figures work just fine.

How can I run Lyx in debug mode to see what is happening?

Leo



From a command shell (either in the LyX bin directory or with it on 
your command path) run 'lyx.exe -dbg any'.  (That produces a ton of 
output -- you might want to try just 'lyx.exe -dbg graphics' first.) 
Adjust 'lyx.exe' to whatever the binary is called on your system.


/Paul



Re: clippping figures in Lyx

2006-07-26 Thread Paul A. Rubin

UK wrote:
The behavior of the CLIPPING function in LyX seems mysterious.  Entering 
numbers for the x,y coordinates (offsets?) of the bottom left or upper 
right does not produce the expected result: things move, but not by the 
correct amounts or even direction.  What am I doing wrong?




They work for me (other than some trial-and-error pain in most cases). 
You need to know the dimensions of the original image, and you need to 
specify units as well as amounts for the offsets.  You also need to 
check the Clip to bounding box option.  Avoid the Get from file 
button, unless you want to use it to get the original dimensions of the 
document.


There was a bug a few versions back that would cause LyX to forget your 
bounding box settings under certain circumstances.  I haven't 
encountered that in recent versions, but you didn't specify a version or 
platform.  It's easy enough to verify that LyX is (or is not) 
remembering your settings, though.


Cheers,
/Paul



Re: Multiple lines in a table cell

2006-07-26 Thread Paul A. Rubin

Steve Litt wrote:

Hi all,

I used to know this, but forgot. When working with a LyX table, how does one 
have multiple lines in one cell? I need more than wordwrap, I need to be able 
to break the lines exactly where I want them broken. Other solutions might 
include an itemize list within the cell, or another table within the cell.


Thanks

SteveT



Specify a fixed width for the column.

/Paul



Re: Postscript preview

2006-07-26 Thread Paul A. Rubin

LB wrote:
I think I'm getting somewhere with this.  It turns out that when I start 
lyx by using lyx.bat file from bin directory I get the problem with the 
figure. However if I run lyx.exe the problem disappears.


This is what my lyx.bat looks like:
@echo off
SET LC_ALL=en_EN
SET AIK_DATA_DIR=C:\LyX\LyX1.4.2\aiksaurus
start LyX C:\LyX\LyX1.4.2\bin\lyx.exe %*

When I comment out line SET AIK_DATA_DIR=C:\LyX\LyX1.4.2\aiksaurus the 
figure gets displayed fine.

Why is this line causing the problem?



It shouldn't be (and on my system it doesn't).  I have the same 
directory and the same batch file (give or take the exact path to the 
LyX directories), and when I load your test document the image previews 
just fine.  Aiksaurus is the thesaurus program used by LyX 1.4.2 (and 
new to this version), and on my system the aiksaurus folder contains two 
data files and nothing else.  Given their names (meanings.dat, 
words.dat), I'm hard-pressed to believe that ImageMagick would be 
mistaking them for some sort of input to the graphic conversion process.


One possibility comes to mind, but it's a real long-shot.  Windows has 
some overall character limit for the environment.  Back in the days of 
Win 3.x, this was a royal PITA, although there were ways to tweak it.  I 
haven't had to mess with it in years, so my impression is that XP and 2K 
have gobs of environment space.  However, if you have enough environment 
variables set (and a long enough command path), maybe possibly 
conceivably you're pushing the character limit.  If you're maxed out, 
maybe the line you're commenting out ate up so enough space that the 
command line for converting your image ran out of room.  (For this to 
make sense, given your ability to display other images, I suspect this 
particular image would need to have a longer than usual name+path.)


Off-hand, the easiest way I can see to test this theory is as follows: 
Revert to the original batch file (i.e., don't comment out the aiksaurus 
line).  Open a command shell and type 'set' to see all the environment 
variables.  Pick a few that don't have anything to do with LyX or 
ImageMagick and get rid of them (by executing 'set variablename=' with 
nothing to the right of the equal sign).  Then run lyx.bat, load your 
document and see if the image displays.


To repeat myself, this is a bit of a grope in the dark.

/Paul



Re: \noun

2006-07-27 Thread Paul A. Rubin

Bruce Pourciau wrote:


I'll try to find out from the journal what they recommend to fix this 
problem. Thanks, Rich.





You might ask the journal whether they apply their own style files or 
macros and, if so, whether they happen to have a macro named \noun 
(which might be redefining the one LyX puts in the exported LaTeX).


/Paul



Re: Postscript preview

2006-07-27 Thread Paul A. Rubin

LB wrote:
I tried that with no success. When starting LyX.exe without the lyx.bat, 
the figure works every time though.


How do I display the shell windows that shows the debug messages? So I 
can see if there are any.



Make a copy of lyx.bat, change the last line to

lyx.exe -dbg graphics

and then run the new batch file.  (You can try -dbg any to get every 
message LyX spews, but be warned that is spews quite a few.)


/Paul



Re: HTML view does not work in LyX 142

2006-07-27 Thread Paul A. Rubin

Nicolás wrote:

Hi!

Calling Vew-HTML in my Lyx 142 Windows XP does not work. There is a 
problem with spaces in file names. The log is below:


Calling htlatex C:/Documents and Settings/pepito/Local 
Settings/Temp/lyx_tmpdir496a03376/lyx_tmpbuf0/MonasDePascua.tex

This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e 2003/12/01
Babel v3.8a and hyphenation patterns for english, french, german, 
ngerman, du

mylang, nohyphenation, loaded.
! I can't find file `C:\Documents.tex'.
* ...keatother\HCode .a.b.c.\input C:/Documents
  and 
Settings/pepito/Loca...

Please type another input file name:



Someone experiencing the same problem?

Cheers,
Nicolás



Yes.  See, for instance, 
http://thread.gmane.org/gmane.editors.lyx.general/31856/focus=31856. 
You can change your temp directory in LyX to something like C:\temp or 
C:\tmp that does not contain spaces, and I think that will cure the 
immediate problem.


/Paul




Re: Postscript preview

2006-07-27 Thread Paul A. Rubin

LB wrote:

Hi

When the image does not preview, the last a few lines in the debug 
window are:

ForkedCallQueue: waking up
LoaderQueue: I'm going to sleep
AFPL Ghostscript 8.14 (2004-02-20)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS

I need to quit Ghostscript at this time to get:
convert.exe: no decode delegate for this image format `file name is 
here.ps'.

convert.exe: missing an image filename `ppm:file name is here.ppm'.
C:/LyX/LyX1.4.2/Resources/scripts/convertDefault.sh ERROR
Execution of convert failed.

Whereas when the image previews ok the last few lines in the debug 
window are:


ForkedCallQueue: waking up
LoaderQueue: I'm going to sleep
ForkedCallQueue: I'm going to sleep
Image conversion succeeded.
Loading image.
Image loading succeeded.
GraphicsImage::getScaledDImensions()
   params.scale   : 100
   width  : 497
   height : 404


It appears that Image conversion succeeded does not appear when the 
image does not show in Lyx.  It also look like that having the file deep 
in a long tree of subdirectories contributes to this problem as the same 
file work fine when placed in C:\ directory.


Why I only have this problem with one particular figure is still very 
puzzling.




When LyX needs to display your image, it calls the convertDefault.sh 
script, which in turn calls ImageMagick's convert.exe program to convert 
test.ps to test.ppm.  ImageMagick then uses Ghostscript to read the .ps 
file.  Judging by the fact that Ghostscript hangs open until you close 
it, and the missing filename bit later on, it looks to me as if the 
ImageMagick-to-Ghostscript call might somehow have lost or mangled the 
file name (?!).  There's some relevant output just above the first line 
you quoted that would help.


If you want to investigate this possibility, try the following.  In the 
LyX Resources\scripts, find convertDefault.sh and open it with a text 
editor (e.g., notepad).  Find the lines


# converts an image from $1 to $2 format
convert -depth 8 $1 $2 || {

and insert

echo Converting $1 to $2 ...

between them.  Then run with -dbg graphics again.  You should get output 
similar to what I got (albeit with different paths):


No converter defined! I use convertDefault.sh
sh C:/Program 
Files/LyX142/Resources/scripts/convertDefault.sh eps:C:
/Documents and Settings/your id here/Desktop/test.ps 
ppm:C:/Temp/lyx_tmpdir5

620a03976/test5620a03976.ppm
ForkedCallQueue: waking up
LoaderQueue: I'm going to sleep
Converting eps:C:/Documents and Settings/your id here/Desktop/test.ps 
to ppm:C

:/Temp/lyx_tmpdir5620a03976/test5620a03976.ppm ...
ForkedCallQueue: I'm going to sleep
Image conversion succeeded.

Do the file names and paths look right when you do this?

/Paul



Re: Postscript preview

2006-07-28 Thread Paul A. Rubin

LB wrote:

Hello

I added the echo line in convertDefault.sh script.  The following are 
the error message that I see:


filetools(getFormatFromContents)
   File type not recognised before EOF!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   File type not recognised before EOF!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   File type not recognised before EOF!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   File type not recognised before EOF!
filetools(getFormatFromContents)
   Couldn't find a known format!
filetools(getFormatFromContents)
   File type not recognised before EOF!
filetools(getFormatFromContents)
   Couldn't find a known format!
Token: 'filename'
Token: '\end_inset'
LoaderQueue: waking up
The font scaling factor is 129.6
LoaderQueue: 1 items in the queue
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
   Attempting to convert image file: C:/path/test.ps
   with displayed filename: C:\path\test.ps
Recognised Fileformat: eps

   The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to jpg
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
   Converting it to ppm format.
Converter c-tor:
   from_file:  C:/path/test.ps
   to_file_base: C:/Documents and Settings/your id 
here/Temp/lyx_tmpdir2744a03372/test2744a03372

   from_format:  eps
   to_format:ppm
build_script ... ready (edgepath.empty())
   No converter defined! I use convertDefault.sh
   sh C:/LyX/LyX1.4.2/Resources/scripts/convertDefault.sh 
eps:C:/path/test.ps ppm:C:/Documents and Settings/your id 
here/Temp/lyx_tmpdir2744a03372/test2744a03372.ppm

ForkedCallQueue: waking up
LoaderQueue: I'm going to sleep
Converting eps:C:/pathtest.ps

  ^
There's a missing separator (/) here.  I'm guessing that's just a typo 
when you transcribed the output, but if not, it might be a clue.


 to ppm:C:/Documents and Settings/your

id here/Temp/lyx_tmpdir2744a03372/test2744a03372.ppm ...
AFPL Ghostscript 8.14 (2004-02-20)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS

Any clues?



Other than that one missing separator, everything looked good right up 
to the point where Ghostscript went stupid on you.  I'm assuming that 
the path is correct (i.e., that C:\path\test.ps is really where 
test.ps is located).  I don't know enough about ImageMagick and 
Ghostscript to know if there's any way to put either into a debug mode 
where we could see what was being passed to Ghostscript.


You said that commenting out the line in lyx.bat that set the aiksaurus 
environment variable fixed the problem, right?  What happens if you 
leave that line in, and use lyx.bat, but hide the Lyx\aiksaurus folder? 
 (An easy way to do this is to rename it to aiksaurus$.)  That would 
tell us whether the bug actually involved any files in the aiksaurus folder.


Also, have you experienced this with any other Postscript image files?

Very mysterious.

/Paul



Re: Postscript preview

2006-07-28 Thread Paul A. Rubin

LB wrote:



I mentioned that editing out aiksaurus line in lyx.bat fixed the 
problem. It turns out that removing SET LC_ALL=en_EN also fixes the 
problem.
Renaming aiksaurus directory however does not fix it. Starting Lyx.exe 
directly also fixes the problem.  It the lyx.bat that causes this 
problem somehow.




Ok, this makes me return to my theory that you are somehow running out 
of environment space.  That would be consistent with the batch file 
symptoms, although why it would affect just the one Postscript image is 
a mystery, as is why freeing space by eliminating some of the other 
environment variables did not fix things.  Is the path to test.ps fairly 
long?  If so, do you cure the problem by copying test.ps to a directory 
with a shorter path (say C:\temp) and pointing test.lyx at the copy?


I tried the -debug All option in ImageMagick.  Amazingly enough, it 
gives no information I can see about calls to Ghostscript, let alone 
what arguments are being passed.


/Paul





Re: Postscript preview

2006-07-28 Thread Paul A. Rubin

LB wrote:
Yes, moving the file test.lyx to C:\ solves the problem. The path to 
test.lyx is fairly long. It's located five directories deep.
The path consists of 68 characters, including C: and \, plus the file 
name.  I have changed figure name to be only one character long, but 
that did not help.


Hmm.  I moved it to a directory seven levels below C:\ with a total path 
length of 159 characters, and it worked for me.


This is what I get when I run set from command line:


[...]


Does not look like a lot of variables?



No.  In fact, it's about 935 characters total; my environment (also Win 
XP) is over 1800 characters.


I saw your other post that this worked in 1.4.1 (presumably from the 
same deep directory).  So there is something in the way LyX 1.4.2 shells 
to the graphics conversion script that has changed and is related to the 
problem.  We also know that it works on my system and not on yours, and 
my environment and command path are both a lot messier than yours.


One other difference I notices is that I have the Ghostscript bin and 
lib directories on my system command path, and you don't.  You must have 
them (as do I) in LyX Tools-Preferences...-Paths-PATH prefix, which 
LyX attaches to the command path when it shells out to a script.  (In my 
case, they end up on the path twice, which is harmless.)  I don't 
suppose that adding them to your path fixes the bug?  (An easy way to 
try this on a temporary basis would be to add the line


SET PATH=C:\path to GS\bin;C:\path to GS\lib;%PATH%

to the lyx.bat file, prior to the start command.)

I have no idea how a couple of environment variables and the length of 
the path to the target file can be interacting, other than if they're 
both being written to a common buffer somewhere (which is overflowing), 
and that seems rather unlikely given that I would be putting more stuff 
in the buffer and not seeing the problem.


/Paul



Re: Postscript preview

2006-07-29 Thread Paul A. Rubin

LB wrote:

Thank you Paul for all your help.

Adding path to GS in lyx.bat did not solved the problem.

I have this feeling that the problem is somehow related to the 
postscript commands inside the figure...


I don't know much about Postscript, but I looked in your test.ps file a 
few days ago and did not see anything that looked like it had the 
potential to conflict with anything in the environment.


When you added the GS path in lyx.bat, did you add the path to the lib 
directory as well as to the bin directory?  The path to the bin 
directory would not seem to be an issue, since GS runs (enough to hang 
open, at any rate).  I thought maybe if the lib directory were not on 
the path, GS might have trouble finding a library file.  (Seems 
unlikely, but then the entire bug passed through 'unlikely' on its way 
to 'impossible' a while ago.)


I'm giving up and going back to use version 1.4.1.



Well, I can't say I blame you ... 1.4.1 worked pretty well for me.  I 
just hope this problem does not recur when we get to 1.5 and there is 
some must have new feature.


I'm going to post this to the developer list, just in case someone 
recognizes what's going on.


/Paul



LyX 1.4.2, Aspell and second languages

2006-07-29 Thread Paul A. Rubin

Hi,

Under Win XP, I have Aspell loaded in C:\Aspell, including the German 
(de_DE) dictionaries.  In the LyX 1.4.2 settings, I have de_DE listed as 
the alternate language.  (The preferences file has


\use_alt_language true
\alternate_language de_DE

in it.)  However, if I try to spell-check a document, LyX pops up a 
complaint that no word lists can be found for the language de_DE.  LyX 
1.4.1 has no problem spell-checking the same document.


Is there some extra incantation I need to do somewhere to get 1.4.2 to 
use the German word lists?


Thanks,
/Paul



Re: 3 column long table and caption

2006-07-30 Thread Paul A. Rubin

Tom Tom wrote:

Dear list,

I do need a long table having three columns with a
caption.
Everything works fine when entering the \caption...
at the end of a two column table. With more columns
however, I do get the following error in the pdflatex
run:

Extra alignment tab has been changed to \cr.
 
You have given more \span or  marks than there were
in the preamble to the \halign or \valign now in
progress.
So I'll assume that you meant to type \cr instead.


Well I cant find any extra alignment tabs in the
file... Am I missing something?
Thanks a lot in advance!!
L.

P.s.: a lyx file demonstrating this is attached



Actually, I'm a bit surprised the first one works -- I didn't know that 
LaTeX would let you put a caption inside a tabular environment.  Is 
there a reason why you're not using a table float (Insert-Float-Table, 
type the caption, hit enter, then insert the longtable)?


/Paul



Re: Help with citation/bibliography style

2006-08-01 Thread Paul A. Rubin

Nicolás wrote:

Hi!

This is probably a latex question but hopefully you can help me.

I would like a bibliography style that inserts citations in the text as:
 [MainAuthor et al., year]

and that creates a bibliography like:
[MainAuthor et al., year] Authors list, ...

I have tried Natbib, but did not manage to achieve what I want 
(citations does not look as [MainAuthor et al., year]). I have also 
tried the authordate.bst style, but the citations appear within 
parentheses (instead of brackets), and in the bibliography the 
references are not labelled (just appear as Authors list, Year, ... )


I hope someone can help me find the right style! Thanks

Cheers,
Nicolás



Have you looked at http://wiki.lyx.org/BibTeX/Links, which numbers among 
its links several related to picking a style (including a very nice 
searchable database)?


/Paul




Re: Postscript preview

2006-08-01 Thread Paul A. Rubin

LB wrote:
When I start lyx1.4.2 I see two black windows (shell windows???) pop-up 
and dissapear before Lyx actually appears.  Lyx1.4.1 only flashes one 
black window.

Does that mean anything?



Normal behavior.  The first window is lyx.bat; as soon as it starts 
lyx.exe, it exits.  The second window is lyx.exe, which has a DOS 
background window temporarily until it dismisses/kills that window.  I 
think.


/Paul





Re: Fw: Postscript preview

2006-08-01 Thread Paul A. Rubin

LB wrote:
I uninstalled Lyx and reinstalled it into c:\lyx\lyx14.  This solved 
my figure problem!!!


Thank you. I can now use 1.4.2


Looks like I spoke too soon.  Now a different figure does not want to be 
displayed.


Leo




But the original one does display, even when loaded from its original 
(deep) directory?


Have you considered offering a small sacrifice (perhaps a wolverine) to 
the gods of computing?


/Paul




Re: Overwrite existing files

2006-08-02 Thread Paul A. Rubin

Ed Gatzke wrote:

Is there any way to turn off the dialog for export errors, for The file already
exists, Overwrite?


I don't think so (short of modifying the source and recompiling).


I select export and switch to another application, a few second later the error
dialog get buried (on XP), and I can't even click the LyX window to get back to
the application (you have to click the dialog or click in explorer.)


Can you click the Show Desktop icon (or type Win-D, where Win is the 
Windows key) to minimize everything, then click the LyX button in the 
task bar and get to the dialog?


/Paul



Re: installing lyx on windows

2006-08-02 Thread Paul A. Rubin

Eric Inazaki wrote:

Does lyx choke (i.e. fail to start) when it's installed in
C:\Program Files directory?  This is with lyx 1.4.2 and
Windows 2000, by the way.


No, it works fine from C:\Program Files\...


This happened to me on my first
installation attempt.  I tried reinstalling to C:\ and that
works okay.  Looking through some of these older messages, it
seems that some folks don't have a problem installing to
Program Files. If that's true, then what gives?


Did it give you a message about not finding class files?  There have 
been instances where LyX installed properly but the configuration script 
failed, and subsequently LyX would not start because it could not find 
the requisite configuration information.  (But it would at least display 
the GUI and cough up a message to that effect.)


A suggestion, if lyx really does have a problem being installed in
Program Files then it'd be nice if that fact were well publicized
(I found no mention of it on the lyx homepage, nor on the wiki).
Also, when I did it, the default installation directory was
C:\Program Files, this should probably be changed.   


Really?  On my systems, I think it defaulted to C:\Program Files\lyx14
 (not positive, since I changed from the default).

By the way, were you logged in with administrator permissions when you 
attempted the installation?


/Paul



Re: installing lyx on windows

2006-08-02 Thread Paul A. Rubin

Eric Inazaki wrote:
Did it give you a message about not finding class files?  There have 
been instances where LyX installed properly but the configuration script 
failed, and subsequently LyX would not start because it could not find 
the requisite configuration information.  (But it would at least display 
the GUI and cough up a message to that effect.)


Right after I installed lyx, it spent a lot of time downloading stuff.
They looked like template files, might have class files, I wasn't paying
that close attention.  And it may or may not have been lyx that was doing
the downloading, could've been MikTeX which I installed at about the
same time.  (The dialog boxes didn't say what program they were affiliated
with).


After LyX installs, it automatically runs a configuration script that, 
among other things, snoops around your LaTeX installation looking to see 
which among a roster of common classes are installed.  That 
information is written to some configuration files.  MikTeX treats this 
the same way it treats a document trying to load a class, and so 
(depending on how you have MikTeX configured) it will either do nothing, 
automatically install the classes, or bug you whether or not to install 
each one.  (I'm category three, so every time I install a new LyX 
version I get multiple nags from MikTeX.)  If you're on the auto-install 
plan, probably that was the downloading you observed.


After all that was done (as near as I could tell), I would go to Start-
Programs and click on lyx then a command window would pop up for about
a half-second, disappear and that's all she wrote.


Well, I'm pretty sure that's not the configuration burped error.


So you're saying that you could install and run lyx at the Program Files
directory, out of the box, with no problems and without having to futz
around with anything?


Windows being Windows, the most I'm willing to say is that LyX typically 
installs properly in C:\Program Files (but your actual mileage, if you 
get any, may vary).


If you clean out an detritus and try another install under C:\Program 
Files, it might fly this time.  If not, try opening a command prompt in 
the LyX bin directory and run lyx.bat from there.  That way, if it spits 
up an error message, you'll have a chance to see it without the window 
closing on you.


/Paul




Re: Overwrite existing files

2006-08-02 Thread Paul A. Rubin

Ed Gatzke wrote:


It is an odd behavior to lose the error dialog under a window.

It gets buried because I tell Lyx to export pdf then switch to another
application.  The error dialog takes a while to pop up and ends up under 
the other application.


This sort of thing occurs to me occasionally with other applications. 
In fact, I've had one or two instances where the error dialog was hidden 
behind the window of the application that generated it (don't ask me how 
this happened, probably Windows being Windows).  That's more difficult 
to recover from, since (assuming the dialog is modal) you can't move the 
top (parent) window because it can't receive focus until you exit the 
dialog, which you can't do because it's hidden.



I tried putting something like
rm -f $$o; ps2pdf $$i $$o
in my lyxrc.defaults for ps conversion to pdf.  This does not get executed 
like a normal bash command for me so it does not act like two separate 
commands.


I tried writing a single shell script that would remove the pdf before 
calling ps2pdf but I now realize lyx is calling stuff in a sandbox /tmp 
directory and then movinig the file to the working directory.  I see my 
script executing, but the pdf in the working directory never gets erased 
and I get the silly error dialog.


Correct.  There is a way, using custom export, to have LyX convert to 
PDF and then pass the PDF to a script you would write (which 
hypothetically could delete the old PDF and then store the new one). 
The problem is that I cannot find a way to communicate, through custom 
export, the working directory (where the old file lives and where the 
new file is to be written).  So unless you wanted the script to prompt 
you for the target directory each time (which is probably more work than 
manually deleting the old PDF), that seems to be no help.


You might file this as a feature request in bugzilla.

/Paul




Re: Fw: Postscript preview

2006-08-03 Thread Paul A. Rubin

LB wrote:


Lyx (or GS) gets stuck at different figures depending on what I 
comment out in lyx.bat.




I want to make sure I'm understanding this correctly:  in a single 
document with multiple images, GS will get stuck on image with the 
original lyx.bat file, then process that image correctly but get stuck 
on a later one if you comment something out of lyx.bat?  (And how far it 
gets depends on what you comment out?)


If so, that really points to a memory buffer issue someplace (but who 
knows where).


/Paul



Re: Fw: Postscript preview

2006-08-03 Thread Paul A. Rubin

LB wrote:
I want to make sure I'm understanding this correctly:  in a single 
document with multiple images, GS will get stuck on image with the 
original lyx.bat file, then process that image correctly but get stuck 
on a later one if you comment something out of lyx.bat?  (And how far 
it gets depends on what you comment out?)




This is what I'm seeing.  Why does 1.4.1 work all the time?  What changed?



Good question.  Another good question is: why only on your machine. 
There must be something specific to your setup interacting with 
something specific to version 1.4.2.


One more little experiment, if you don't mind, just to confirm symptoms: 
 if you comment out one of the SET commands in lyx.bat, but replace it 
with a line of equal length (SET XXX=Y... with 
enough Xs and Ys to match the line you commented out), does the bug move 
to a different image (or disappear)?


This reminds me of a bug I ran into in a computer science class back 
when mainframes ruled.  It made no sense, and was hard to pin down.  So 
I turned in a heap of line printer output showing what was going on, and 
my instructor looked at it and closed the matter by blithely stating 
This can't happen.  (Turned out the computer was subtracting 
incorrectly in an emulation mode.)  So if all else fails, just tell 
yourself that This can't happen and therefore the display is actually 
correct, sensory evidence to the contrary notwithstanding.


/Paul




Re: Flow Chart Drawing For LaTeX/LyX

2006-08-03 Thread Paul A. Rubin

Paul Smith wrote:

Inkscape seems particularly apt to produce flowcharts, as it has got
the 'connectors' features, making the arrows connected even when one
moves the connected frames. And it can save the pictures as vectorial
eps, pdf, and so on.


Inkscape looks pretty nice, but unless I'm missing something, it does 
not support embedded LaTeX commands (and in particular math formulas)?


/Paul



Re: Lyx 1.4.2 for Win doesn't find new installed Tex packages

2006-08-04 Thread Paul A. Rubin

Sebastian Schetter wrote:

Hello!
I installed the bundle version of Lyx 1.4.2. (on a new WinXP system)
Now I installed the koma-skript with the Mik-Tex Package manager. This 
worked well with Lyx 1.4.1. but doesn't work with 1.4.2. Lyx doesn't 
find any new installed package with MikTex.
Has had anybody the same Problem? What can I do, that Lyx finds the 
installed packages?




Did you reconfigure LyX 1.4.2 after installing komascript?

/Paul



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