Re: Fw: Postscript preview

2006-08-05 Thread Paul A. Rubin

LB wrote:


Ok, it tried this.  I commented out SET LC_ALL=en_EN.  This resulted in 
a different image having the preview problem.
I placed SET XX=Y in lyx.bat and the preview problem moved back 
to the original image.  The same happens when I comment out the other 
line in the lyx.bat.


I also added extra lines in lyx.bat such as SET XX=Y this 
however did not make any difference as far as image preview is concerned.


This is again confusing, though perhaps no more confusing than the fact 
that deleting unneeded environment variables (other than LC_ALL and the 
aiksaurus one) did not help.


Another puzzling thing is that the preview problem jumps between two 
specific figures eventhough I have many figures in the document and many 
of them are generated with Matlab.  The preview problem however never 
affects figures generated with other programs.


Is there anything that the names/paths of the two affected figures have 
in common which is not shared by the other files.  For instance, are 
they the longest paths, do they lie deeper in the directory tree than 
other figures, ... ?


Stephen's idea of a second Ghostscript installation strikes me as 
possible but unlikely (and unlikely to be the culprit), since there 
would need to be something causing ImageMagick to alternate between the 
two GS installations on a figure-by-figure basis within the document 
(meaning that something in the figure names/paths would have to be 
triggering the switching).  Also, Mathematica exports EPS without using 
GS and without installing its own GS, so I suspect the same might be 
true of MATLAB.  Still, the whole bug is unlikely, so we shouldn't 
presume anything.


It would be nice if we could intercept the call from IM to GS and see 
what's being passed, but so far I have not figured out how.


/Paul



Re: menu-open documents

2006-08-05 Thread Paul A. Rubin

Jens Noeckel wrote:

Hi,

in LyX 1.4.2 on Mac OS X, I'm missing a LyX function that used to work 
in LyX 1.3.6: menu-open documents which used to bring up a menu with 
all open buffers that I could then navigate with the arrow keys. Under 
xemacs.bind, this function is bound to C-x C-b. I've looked at the list 
of lfuncs and tried various things but nothing brings up this buffer 
menu anymore. When I enter menu-open documents in the minibuffer, LyX 
does NOT complain that the function is unknown, and echos the correct 
keybinding for it in the status line. But no buffer menu appears. So I'm 
suspecting this is a bug.


No, it's just a consequence of changes to the menus from 1.3.x to 1.4.x.

Try menu-open view.  The menu-open command emulates your clicking on 
a menu (or typing its accelerator key).  The old documents menu is 
gone, and the new document menu only applies to the current buffer. 
The list of loaded documents is now at the bottom of the view menu.


/Paul



Re: Fw: Postscript preview

2006-08-06 Thread Paul A. Rubin

Stephen Harris wrote:


The MATLAB Component Runtime (MCR) 7.0 and 7.1 do not contain a
copy of the GhostScript program included with MATLAB. Therefore,
applications deployed on a target machine rely on a locally-
installed version of GhostScript, if one exists, for exporting
some graphics. Since the version of GhostScript installed on the
target machine may be different than the one included with MATLAB,
the command line parameters potentially may be different as well.
This difference causes an error in some instances.



I think this supports the possibility of a Ghostscript conflict and that
Matlab comes with its own version of Gs.


It does indeed.  So I agree that hypothetically Leo's MATLAB 
installation could be generating PS files (using it's own copy of GS) 
that would be indigestible to LyX-ImageMagick-GS (using a different 
copy of GS in the last step).


That still raises the question of why those images would be successfully 
displayed in LyX (same LyX-ImageMagick-GS sequence) if an environment 
variable is deleted ... unless deletion of the environment variable 
affected which copy of GS was used (both on the command path?) ... in 
which case the bug would disappear, not switch to a different image.


All that said, this bug is clearly not playing fair, so it would be a 
good idea for Leo to check into this just to rule it out.


/Paul



Re: menu-open documents

2006-08-07 Thread Paul A. Rubin

Jens Noeckel wrote:


On Aug 5, 2006, at 2:40 PM, Paul A. Rubin wrote:


Jens Noeckel wrote:

Hi,
in LyX 1.4.2 on Mac OS X, I'm missing a LyX function that used to 
work in LyX 1.3.6: menu-open documents which used to bring up a 
menu with all open buffers that I could then navigate with the arrow 
keys. Under xemacs.bind, this function is bound to C-x C-b. I've 
looked at the list of lfuncs and tried various things but nothing 
brings up this buffer menu anymore. When I enter menu-open 
documents in the minibuffer, LyX does NOT complain that the function 
is unknown, and echos the correct keybinding for it in the status 
line. But no buffer menu appears. So I'm suspecting this is a bug.


No, it's just a consequence of changes to the menus from 1.3.x to 1.4.x.

Try menu-open view.  The menu-open command emulates your clicking 
on a menu (or typing its accelerator key).  The old documents menu 
is gone, and the new document menu only applies to the current 
buffer. The list of loaded documents is now at the bottom of the 
view menu.


Thanks, that's what I wanted to know. So it would probably be a good 
idea to permanently modify the versions of emacs.bind and xemacs.bind 
that are shipped with LyX 1.4.2 accordingly: i.e, replace the line

\bind C-x C-bmenu-open documents
by
\bind C-x C-bmenu-open view
in order to get back that emacs-like feature. Looks like none of the 
other standard bind files makes use of that particular function...



Agreed.  I'll put it in bugzilla if it's not already there.

/Paul



Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Paul A. Rubin

Martin A. Hansen wrote:

reconstruct bug:

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to the next
line 1 char before the end of the line.



I can't reproduce this (LyX 1.4.2, WinXP).

/Paul




Re: input not placed correctly after linebreak

2006-08-07 Thread Paul A. Rubin

Todd Denniston wrote:


Replication info
A) File-New
B) set (using mouse) Enumerate as layout
C) type first lineenter
D) type second lineenter
E) type third lineenter
F) click between d  l of second line
G) cursor right over to the end of line and pres Ctrl-enter
H) click between d  l of second line
I) cursor right over to the end of line
J) cursor right once more (to take you past the Ctrl-enter)
K) type a
L) recognize that you now have for the second line:
second lineaCtrl-enter

the expected result was:
second lineCtrl-entera

note that even though the cursor is on the third line (second line of 
the enumerated item #2) any character you type at this point ends up on 
the second line.


Also happens on WinXP.

/Paul



Re: How to automatically label equations in LyX?

2006-08-07 Thread Paul A. Rubin

Michael wrote:

Is there a way to mark an equation to be labled automatically, and make it
work with instant equation previewer?

I am using the latest 1.4.2 Lyx on Windows XP SP2.

Thanks a lot!



With the cursor inside the equation, Insert-Label... and give the label 
a name.


/Paul




Re: Line skipped in LyX display after leaving math inset

2006-08-07 Thread Paul A. Rubin

Jens Noeckel wrote:

Hi,
another annoying little misbehavior of LyX 1.4.2 (on Mac OS X):

To explain what's going on, I attached a screenshot which shows two 
paragraphs containing a couple of inline math insets 
(\sin\alpha=\varepsilon). The top-most line overhangs the second line 
because the paragraph break makes the second line quite short.


If I put the cursor into the first math inset (on the first line) and 
press the down arrow, the cursor moves to the second line right below, 
as it should. If I instead put the cursor into the second math inset 
(still on the first line, but overhanging the empty space of the second 
line), I get a different reaction when pressing the down arrow: coming 
out of the math inset, the cursor now skips to the THIRD line (i.e., the 
first line of the new paragraph), instead of jumping to the end of the 
second line, as it should (and as it used to do in LyX 1.3.6).


I'm attaching the LyX file as well. To see what I saw, it's best to 
maximize the window as shown in the screenshot.


Confirmed on WinXP.  Note that if the cursor is positioned just outside 
the second math inset (the one overhanging empty space) on either side, 
down arrow drops to the end of the second line, as it should.  Only with 
the cursor inside the second inset does down arrow crash through to the 
third line.


/Paul



Re: How to automatically label equations in LyX?

2006-08-07 Thread Paul A. Rubin

Paul A. Rubin wrote:

Michael wrote:
Is there a way to mark an equation to be labled automatically, and 
make it

work with instant equation previewer?

I am using the latest 1.4.2 Lyx on Windows XP SP2.

Thanks a lot!



With the cursor inside the equation, Insert-Label... and give the label 
a name.




Oops: the idea was to automatically number *all* equations.  This is on 
the wish list for a future version.  Meanwhile, two suggestions (both 
from JMarc, I believe) seem to work:


(a) insert into preamble

\renewcommand\[{\begin{equation}}
\renewcommand\]{\end{equation}}

or

(b) bind command-sequence math-display; math-number; to some key 
combination and use that whenever you want to insert a display formula.


I think I saw this come up recently on the list, so I added a page to 
the Wiki Tips section.


/Paul



Re: what is the Key sequence to add a column in math editing mode?

2006-08-07 Thread Paul A. Rubin

Michael wrote:

If a have an array in math editing box: using \array,

what is the key combination sequence to add a column?

I found Ctrl - Enter can add a row, but adding a column needs Ctrl W,
then press I, and then press C, this is too troublesome,

is there a way to make it simpler and fast?



I assume that M-m c i is also too tedious?  Other than that, the only 
way I know is to use the mouse.  If you activate the math tool bar 
(right-click an empty part of the menu or any tool bar and put a check 
next to math), when you are inside the array there will be buttons to 
add and delete both rows and columns.


/Paul




Re: Another math inset - cursor problem

2006-08-08 Thread Paul A. Rubin

Jens Noeckel wrote:

Hi again,

I'm stumbling upon inset-related problems in LyX 1.4.2 a lot, it seems. 


You are, indeed, the master of this.  ;-)

Here is another one: take a math inset that's a few environments deep, 
like e.g. a vector which consists of an array inside a left-right 
bracket combination. If I have one such vector in a large document, say 
as a displayed equation, and then scroll until that equation is at the 
very top of the screen, then the mouse can get trapped inside the math 
inset.  As usual, this is something that didn't happen in LyX 1.3.6.


To reproduce this, one needs to arrange things just right, so I'm 
attaching a screenshot showing the situation. I've shrunk the LyX window 
such that the vector inset is at the top of the screen, but there are 
some more lines of text hidden above the visible screen. Now I put the 
cursor into the vector by clicking the mouse there. Then I try to use 
the up arrow to get out of the math environment and to scroll to the top 
of my document. But the hidden lines preceding the math formula are 
never scrolled into view. The cursor cycles indefinitely inside the 
bracket environment.


Confirmed on WinXP (LyX 1.4.2).

/Paul



Re: A Spell Checker Error

2006-08-08 Thread Paul A. Rubin

Rich Shepard wrote:

  Running 1.4.2 on linux here. Evoked the spelling checker on a short
article and fixed the errors it found. Then I ran the source through
pdflatex.

  While reading the typeset document, I saw the word, 'th .' How strange,
I thought. Sure enough, the spelling check missed that, but a search for 
the

string found it.

  I've no idea how this slipped past the gates, but it's worrisome that I
cannot count on aspell (I don't recall if it's that or ispell) to catch my
typos.



Interesting.  I tried this (using Aspell, the only game in town for us 
Windows users).  It catches 'th' without a period, ignores 'th.' (which 
makes some sense -- could be an abbreviation), and ignores 'th .' (space 
before the period).  That last one should be an unambiguous error -- if 
it's an abbreviation, the space is wrong.  So it seems that either LyX 
is not passing the space to Aspell or Aspell is ignoring the space.


Tried to test which by running Aspell directly on a text file with the 
same error, but I only have the binaries for Aspell 0.50.3 installed, 
and that didn't even find 'th' by itself (which the portion of Aspell 
0.60.whatever used by LyX does catch).


/Paul



Re: could not open temporary directory in .

2006-08-08 Thread Paul A. Rubin

Michael Chen wrote:

Dear there,

I just deleted all contents in the path preference, and closed the
Lyx. Now I can not start Lyx, the error messege is Could not create a
temporary directory in . Make sure that this path exists and is
writable and try again. How can I get out of it? Thanks.

(I am using Lyx 1.4.2 under Windows.)


Open Windows Explorer and navigate to C:\Documents and Settings\your 
login id here\Application Data\LyX1.4.x and open the file named 
'preferences' in a text editor (e.g., notepad).  Scroll down until you see


#
# FILE SECTION ##
#

and beneath it type something like

\tempdir_path C:\Temp

(changing the directory to whatever you want).

Save the modified file and try to open LyX.

/Paul




Re: Windows LyX Installation - need to install Lyx on same drive as Miktex.

2006-08-08 Thread Paul A. Rubin

Andrew Nelson wrote:

Hi,

I recently had problems with installing the Lyx executable (1.4.2) under WinXP.

My Miktex distribution was on my d: drive.  I was installing Lyx to c:.  


Whenever I tried to output a document Lyx stalled on the 1st Latex run.  I
checked that Latex was ok from a DOS prompt, it was.  I checked all the Lyx
paths, they were correct.

I was stumped, however, it seems that Lyx has to be on the same drive as Latex
for it to work properly.  


I.e. don't install Miktex on D: and install Lyx on C:.



I haven't tried this, but I don't see why LyX should need to be on the 
same drive as MiKTeX, as long as all paths are correctly set.  You might 
try starting LyX from a command prompt with 'lyx -dbg latex' and see if 
attempting to View-DVI or File-Export-DVI generates any helpful messages.


/Paul



Re: Question

2006-08-09 Thread Paul A. Rubin

William Koshak-NASA wrote:

QUESTION
I am running an older version of Lyx that I downloaded about 1 year ago,
and I have the following question:  I make alot of display and inline
equations within Lyx, but none  of them  come up  readible from the Lyx
user interface, so I have to constantly hit the View PDF or View DVI
tool to get a view of the equation that I typed in. Isn't there a way to
have the Lyx user interface show the equation (as I type it) and as it
will actually look when printed?

Thank you.



What you are asking for is called instant preview and it has been 
available since at least LyX 1.3.7 (I don't recall it being in 1.3.6, 
but then my memory is notoriously unreliable).  Please see 
http://wiki.lyx.org/LyX/InstantPreview for details relating to preview 
in LyX 1.3.x.


/Paul




Re: Fw: Postscript preview

2006-08-09 Thread Paul A. Rubin

LB wrote:
I think this supports the possibility of a Ghostscript conflict and 
that

Matlab comes with its own version of Gs.


I actually have three versions of gs.exe. Cygwin has two. One in 
cygwin\bin directory and one in cygwin\usr\X11R6\bin directory.
Matlab has its own version as well. My install of gs (8.14) has two 
files in bin directory: gswin32.exe and gswin32c.exe


Please suggest what I can do to investigate this further.

Leo


Having already generated the image files in MATLAB, try temporarily 
hiding all the Cygwin and Matlab copies of the GS executable (say by 
adding a $ to the start of their names, which is easy to undo 
afterward).  Then run LyX and see if the images load properly.


I'm not positive that ImageMagick runs the GS executable (as opposed to 
accessing a GS library directly), but I think it does.


/Paul



Re: Fw: Postscript preview

2006-08-09 Thread Paul A. Rubin

LB wrote:
I think this supports the possibility of a Ghostscript conflict and 
that

Matlab comes with its own version of Gs.


I actually have three versions of gs.exe. Cygwin has two. One in 
cygwin\bin directory and one in cygwin\usr\X11R6\bin directory.
Matlab has its own version as well. My install of gs (8.14) has two 
files in bin directory: gswin32.exe and gswin32c.exe


Please suggest what I can do to investigate this further.

Leo





Oops, forgot something.  If I understood Stephen's concerns correctly, a 
second experiment might be in order -- having renamed the unofficial 
GS executables, try reproducing the images from Matlab using the 
official version of GS.  (I'm not a Matlab user, so I don't know 
exactly what this would entail, but you might have to modify some 
setting in Matlab that holds the path to GS, or you might need the 
official GS bin directory on the command path, or worst case you might 
need to copy the official GS files, both executable and library, into 
the Matlab directory where the Matlab-installed GS currently lives.)


/Paul




Re: Fw: Postscript preview

2006-08-09 Thread Paul A. Rubin

TechTonics wrote:

LB wrote:
I have changed the names (decreased by one character) of the figures 
that were given me problems and they are now previewing fine!!!


Great! One of the great Presidents said persistence is a
far better quality than talent or genius. Still seems like
a surprising way to fix it unless the 1 character decrease
was removing a forbidden character used in the filenames.


Which would not explain why futzing with the environment variables cured 
(or at least moved) the bug.  Then again, perhaps I'm asking too much of 
the bug as far as consistency goes.


This brings me back to my thesis that somewhere there is a buffer 
overflow.  How/why it would involve both the file paths/names and 
environment variables beats me, but I'll take another shot on the 
developer list and see what shakes.


/Paul



Re: Idea for meta-search in wiki. Help wanted.

2006-08-10 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:


However, what if the search page contained additional links and forms 
that let you search more than just the wiki? How about searching this 
mailing list? Or searching Herbert's tips and tricks on LaTeX?


Good idea.  I've got all these bookmarked, but I think a number of 
people don't know what resources there are.  If we're going to put 
possible search venues on the wiki, being able to access them from the 
wiki makes sense.


My idea is simply that if you can't find what you're looking for on the 
wiki, you want to search for the information elsewhere. So why not make 
this easier. A very easy way to improve the situation is to simply add 
links to the search page, e.g. something saying:


Click here to go and search the users' list

Any of us can edit the search page to add links. Just edit this page

http://wiki.lyx.org/Site/Search

All this requires is that we now the URI of the page to go to in order 
to search. This is where I need help. I'd like to know of useful places 
to go to in order to search for information related to LyX, e.g. how do 
we search the archives of the users' list? How do we search Herbert's 
Tips and Tricks?


You don't even have to e-mail me this information. I just created this page

http://wiki.lyx.org/Site/SearchExternally

so feel free to go there and add the links. I'll take care of it from 
there.


Ah, but e-mailing the list is so much less work (for me).  :-)


However, we can probably do better than just a link to some other site. 
Given a search URI and its format, i.e. how the search parameters map 
to the URI, I can easily create a form that allows the user to submit 
the actual search from the wiki page.


An example is a google search for 'lyx', 'clever' and 'ideas':

http://www.google.com/search?q=lyx+clever+ideas

So if I have the URI that's needed in order to search for instance the 
mail archive for the words idea and clever, it should be easy for me 
to modify the search page so that this is possible.


What I don't know is how this URI should look, and how the search terms 
should be inserted. I'd like some help with that.


That looks good for Google, with the addition that you might want to 
allow quoted phrases (lyx and clever ideas becomes 
lyx+%22clever+ideas%22 in googlish).  For the mailing list, the GMANE 
server URI would look like


http://search.gmane.org/?query=lyx+clever+ideagroup=gmane.editors.lyx.general 



(changing 'general' to 'devel' for the developer mailing list).


This can possibly be taken even a step further, by taking the result of 
the external search and showing it inside the wiki page. Opinions on if 
this is actually useful or not are most welcome.


I would be inclined to display the result in a child window.  That way, 
the user isn't bumped off the wiki.  On the other hand, for people using 
tabbed browsers (which I do), it might be better just to use a regular 
HREF link.  I'm not sure whether ctrl-click on a link with a child 
target opens a new tab or not.  (Some portion of my brain knows this, 
but it's currently on strike.)


/Paul



Re: Installation of Lyx 1.4.1 and 1.4.2 on WinXP: missing windefault

2006-08-11 Thread Paul A. Rubin

Graeme Handisides wrote:

Hi,

I just tried to install both 1.4.1 and 1.4.2 on WinXP and have the problem 
that it then refuses to start because windefault is missing. I assume this 
refers to windefault.ui. What has gone wrong here? Or more to the point, how 
do I replace this file. I have tried several different installation methods, 
and they all produce the same error. I have had Lyx installed before without 
problems, but this time the configuration doesn't seem to have worked properly.




Ok, I'll bite:  what's windefault.ui?  I have LyX 1.3.7, 1.4.1 and 1.4.2 
installed on WinXP, and none of them have that file.


I think the following fix should work.  Navigate to C:\Documents and 
Settings\your id here\Application Data\LyX1.4.x\, open the preferences 
file in a text editor (e.g., notepad), and insert the line


\ui_file default

at the end.  If you don't have a preferences file, copy lyxrc.defaults 
to lyxrc and stick it in there.  (Or stick it in lyxrc.defaults, even 
though editing that file is apparently equivalent to tearing the tag off 
a mattress.)


HTH,
/Paul



Re: Is there a Zoom In/Out in LyX?

2006-08-11 Thread Paul A. Rubin

Micha Feigin wrote:



Lyx is not designed to have an horizontal scroll bar because the text is
supposed to just flow over the side to the next line. Also, usually, if the
formula flows over the side it usually means that it will flow over the side of
the page in the printout.



I fairly routinely encounter problems with math insets that fit on the 
page in the produced document (and fit on the LyX page as instant 
preview images), but don't fit on screen when I'm editing them 
(particularly if I have LyX windowed).  Expanding LyX to full screen 
sometimes helps, but sometimes I have real problems editing the tail end 
of a formula (I can cursor there, but it's off-screen so I can't see 
where I am or what I'm doing).


I don't know that LyX needs a horizontal scrollbar, but maybe it needs 
to wrap inset source code better when the cursor is in the inset.


/Paul



Re: Is there a Zoom In/Out in LyX?

2006-08-12 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:



Actually, there has been an horizontal scrollbar in the inset itself
at some point of time. 


But not currently, right?  Because I am not getting any scrollbar when 
editing insets.


Is this on the to-do list, or should someone enter it as a bug/enhancement?

/Paul




Re: Debugging python scripts called by LyX

2006-08-12 Thread Paul A. Rubin

Giovanni Luca Ciampaglia wrote:

Hello, I've just upgraded LyX using LyXWinInstaller 2.51 (it runs smooth
so far, thanks Uwe!), but I'm experiencing an annoying error message
when I tell LyX to upgrade the DVI view with C-d. The error happens in
the clean_dvi script and it doesn't tell what kind of problem is there.
What option should I use from the command line to have LyX report the
error from the python interpreter?


Try starting LyX from a command prompt with 'lyx.exe -dbg graphics' and 
see if you get an error message in the command shell window.


/Paul




Re: Is there a Zoom In/Out in LyX?

2006-08-13 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:

Paul == Paul A Rubin [EMAIL PROTECTED] writes:


Paul Jean-Marc Lasgouttes wrote:

 Actually, there has been an horizontal scrollbar in the inset
itself at some point of time.


Paul But not currently, right? Because I am not getting any scrollbar
Paul when editing insets.

No, it was at some time of some development branch :)

Paul Is this on the to-do list, or should someone enter it as a
Paul bug/enhancement?

Well I think people do know that this is needed. But it is a bit
difficult technically, though I think Andre' wrote a good part of the
infrastructure. 


You can maybe enter an enhancement bug

JMarc



Done.

/Paul




Re: Debugging python scripts called by LyX

2006-08-13 Thread Paul A. Rubin

Giovanni Luca Ciampaglia wrote:


Hello,
this is what LyX dumps to screen. It doesn't tell, though, what happens
with python.
--
Giovanni
   





insetgraphics::latex: Filename = C:/Documents and Settings/Administrator/My 
Documents/Tesi/usi_terreno.eps
Message = 
Opts = scale=0.75
Before = \includegraphics[scale=0.75]
after =
Recognised Fileformat: eps
Recognised Fileformat: eps
findTargetFormat: PostScript mode
 we have: from eps to eps
the orig file is: C:/Documents and Settings/Administrator/My 
Documents/Tesi/usi_terreno.eps
InsetGraphics::latex outputting:
\includegraphics[scale=0.75]{0C__Documents_and_Settings_Administrator_My_Documents_Tesi_usi_terreno}
pplatex: Process input file tesi.dvi
pplatex: tesi.dvi: Permission denied
Error: Non riesco a convertire il file

Si Ί verificato un errore mentre python C:/Program Files 
(x86)/LyX14/Resources/scr era in esecuzione


The error seems to be occurring before the clean_dvi.py script executes. 
 What happens if you View-DraftDVI (which skips the clean_dvi.py 
script)? Does the LaTeX log file (Document-LaTeX Logfile) indicate that 
LaTeX ran successfully (Output written on tesi.dvi ... at or near the 
bottom of the log)?


/Paul



Re: Table fill

2006-08-13 Thread Paul A. Rubin

Christiaan J Pauw wrote:


Is there a way to fill a table row  with a certain shadinglike in a
wordprocessor.



Try the colortbl package.

/Paul



Re: New to LyX 1.4

2006-08-15 Thread Paul A. Rubin

Georg Baum wrote:

Am Dienstag, 15. August 2006 21:05 schrieb Gunnar:

So, finaly I'm taking the step to 1.4 from 1.3.7
I have some customizations all over the the .lyx directory, keybindings, 
external templates, etc.


Is there something I should do before chaning to 1.4 except making a 
backup 

copy?


You'll need to update the external templates by hand, see the documentation 
and the external_templates file shipped with LyX 1.4.


Some keybindings might not work (some lfun names were changed). AFAIK 
everything else should continue to work.




Also,, the menus were rearranged, so any key bindings that invoked a 
menu item (say by the menu-open lfun) needs to be checked and possibly 
updated.


/Paul



Re: Pasting with the mouse middle button inside math mode

2006-08-15 Thread Paul A. Rubin

Georg Baum wrote:

Am Dienstag, 15. August 2006 21:11 schrieb Paul Smith:

Dear All

Selecting a piece of text and clicking on the middle button of the
mouse pastes the selected text, with *no* need of CTRL+c. A similar
procedure worked fine inside math mode, but not anymore on LyX 1.4.2
(on Fedora Core 5). Is it possible to have that so useful feature
back?


Indeed. Note that you must leave the selected text highlighted before 
clicking the middle mouse button if this text is from LyX and no ther 
window, i.e. you must not first click with the left button to position the 
cursor, but if you followed this rule it used to work. Do you remember the 
last version that worked?




Worked for me in 1.3.7, not in 1.4.1.

/Paul



Re: PDF update under Windows

2006-08-17 Thread Paul A. Rubin

Ernesto Posse wrote:

Hi. I have a problem with LyX 1.4.2. under Windows. When using any of
the update PDF options in the View menu PDF viewers cannot update
the generated PDF, and some give an error. I found a fix in the LyX
wiki at

http://wiki.lyx.org/Windows/LyXWinTips

that suggests creating a PDFview.cmd script with the following code

if not exist %~dpn1~%~x1 goto :go
pdfclose --file  %~dpn1~%~x1
del %~dpn1~%~x1
:go
copy %1 %~dpn1~%~x1
pdfopen --file %~dpn1~%~x1
exit


Try changing all instances of %~dpn1~% to %~dpn1-tmp%.


and putting this script as well as pdftools (pdfopen and pdfclose)
somewhere in the path, and then changing the associated viewer for PDF
from auto to PDFview.

 I've done all of these things, but it doesn't workl. I tried with
different PDF viewers (Acrobat, Foxit, eXpertPDF,)


I'm not positive, but I think this automatically uses whichever viewer 
is the Windows default for opening PDFs (Acrobat Reader on my system, 
and probably on yours).



and none of these
work: LyX fails to even launch the viewers, and there is not message
given. Even starting LyX from a console window doesn't show any
messages, even after adding an echo something at the beginning of
the PDFview.cmd, which suggests that LyX is not running PDFview.cmd,
but I am sure it is in the path. I even tried putting it in the
lyx/bin and in my ~/.lyx directory but to no avail.


My preference is to put the three files in a directory of their own, and 
put it on the LyX path prefix.  That way, if I upgrade to a newer 
version of LyX, I just have to set the path and converter, and don't 
have to worry about reinstalling the files.




 Does anyone know whether this is a bug or if not, what to do to make
the update PDF options work under Windows?


It works fine for me.  I think there are just small errors in your .cmd 
file.  Incidentally, what you have is an accurate transcription of what 
is on the wiki, so apparently that was either recorded incorrectly or is 
out of date.


/Paul



Re: Short titles in fancyheader: delayed reaction

2006-08-19 Thread Paul A. Rubin

Catherine Heyrendt wrote:


When I use the ERT \chaptermark{my shorter title} in order to have a 
shorter chapter title in the header, there is a delayed reaction. It 
works well for all pages, but not for the first page, the one with the 
actual chapter title. Instead, I get the full title inelegantly cut in 
the header. Any ideas how to get the chapter title page to work too?


The problem was mentioned almost 3 years ago (see below) but I couldn't 
find any answers.




Google fancyplain.  This is an alternative page style (also defined in 
fancyhdr.sty IIRC) that allows you to specify headers/footers separately 
for ordinary pages (which fancy style does) and for title pages 
(including first page of a chapter), which fancy style skips.  I'm not 
sure, but I think this will help.


/Paul



Re: tex4ht just doesn't work for me ...

2006-08-19 Thread Paul A. Rubin

Stephen Harris wrote:



Perhaps you've been bitten by a mad wolverine? 


Mad wolverine is redundant -- they're all crazy buggers.

/Paul



Re: Problem to download english dictionary during instalation of LyX1.4.2 on Windows XP

2006-08-21 Thread Paul A. Rubin

Jean-Pierre Chretien wrote:

Date: Sat, 19 Aug 2006 17:25:13 +0200
From: Amir Navot [EMAIL PROTECTED]
To: lyx-announce@lists.lyx.org
Subject: Problem to download english dictionary during instalation of LyX1.4.2 
on Windows XP

During the installation of LyX1.4.2 (Wiki) on Windows XP, I get the
following message:
Failed to download the English spell checker dictionary. Would you like to
try again? (connecting to host)
retry doesn't work as well.
When trying to run spell checker I am getting the message: Spellchecker
could not be started. No word list can be found for the language en_US.


I took the liberty to answer to lyx-users, lyx-announce does not seem 
appropriate here.

I have the same problem (maybe the download site changed and the installer is 
not up to date ?).
Anyway you may download the dictionaries from here
http://wiki.lyx.org/Windows/Aspell6
and install manually.


I have Aspell installed in C:\Aspell. LyX1.4.1 works with no problems.



This is suprising, as lyx-1.4.1 and lyx-1.4.2 sould share the same Aspell6 
dictionaries ?



That was my thought too, but I had LyX 1.4.1 working with both English 
and German dictionaries, and when I installed 1.4.2 it would not 
spell-check German on my laptop and would not even spell-check English 
on my home PC.  The solution on both machines was to reinstall the data 
files from the wiki.  Reinstalling the dictionaries themselves did not 
seem to be necessary, at least on the PC (I did it on the laptop without 
stopping to check whether it was necessary).


/Paul




Re: 'subfigure' package on windows

2006-08-22 Thread Paul A. Rubin

John Pye wrote:

Hi again,

I did try the Repository menu. I just pointed it to a directory where I
had placed the single file, subfigure.cab. Obviously it requires some
kind of index file in addition, but i can't find out what that should
be. It seems silly to download the whole repository just for this one
file -- a file that I already have.


Ok, you can try the following.  (A good stiff drink beforehand to settle 
the nerves might be warranted, and personally I would keep the bottle 
handy.)


1.  Put subfigure.cab in a temporary directory and open a command prompt 
there.


2.  Execute

expand subfigure.cab . -F:*

(note that the -F switch is case-sensitive).  If Windows complains that 
it can't find the expand command, you'll need to search for expand.exe 
under C:\Windows, but I'm betting it's on your command path.


3.  Move subfigure.sty and subfigure.cfg to an appropriate subdirectory 
under either your texmf or localtexmf root.  (My suggestion would be 
localtexmf\tex\latex\subfigure\, which you will need to create.)


4.  Move subfigure.tpm to wherever TPM files go to hang out 
(texmf\tpm\packages\ or localtexmf\tpm\packages\ ?).


5.  Move subfigure.dvi (the manual) to an appropriate directory, say 
localtexmf\doc\latex\subfigure\.


6.  Run the MiKTeX Options application, and click the Refresh button 
(Refresh FNDB in the most recent version) on the General tab.


7.  See if subfigure works.  If not, find where you stashed that bottle.

8.  Assuming it works, feel free to discard subfigure-src.cab (unless 
you plan to modify the source code), README (which may be accurate 
w.r.t. the source files but does not entirely match the non-source 
content of the CAB file), and subfigure.cab itself.


HTH,
/Paul



Re: There's no HTML in view menu

2006-08-22 Thread Paul A. Rubin

Adinda Praditya wrote:

Hi list,...

I have lyx-1.3.6 , ilatex2html-pngicons and latex2html installed from
suse-10.1 distro. I put this parameter:

latex2html -no_subdir -split 0 -show_section_numbers $$i

on LaTeX - HTML converters on LyX preferences. Reconfigured and restarted
LyX. but i still can't view HTML. Did i miss something? Please help.



Did you set a viewer for HTML?  I haven't used 1.3.6 in a l-o-n-g time 
(hint), but installing/reconfiguring 1.3.7 does not set a viewer for HTML.


/Paul



Re: There's no HTML in view menu

2006-08-23 Thread Paul A. Rubin

Adinda Praditya wrote:

I think i changed the viewer (only the parameter) and it works well on
my other SuSE (ver. 10.0). That's why i'm wondering why there's no
HTML.



Are your LyX configurations (or at least the portions relating to 
converting to and viewing HTML) the same on both SuSE distros?  If yes, 
have you tested latex2html on SuSE 10.1?


/Paul



tabular*

2006-08-23 Thread Paul A. Rubin

Hi,

I suspect I'm doomed to disappointment here, but is there a way to get 
LyX to treat a table as tabular* rather than just tabular environment? 
I know I can do it in ERT, but I was hoping to exploit the table editor 
and layout features in the GUI but get it typeset as tabular*.


Alternatively, is there a slick way in LyX to get a table to stretch 
from margin to margin (width of table = textwidth)?  I can do it with 
tabular* by inserting some stretch along with the alignment for one of 
the columns.  I could probably do it by creating an extra row that 
spanned all columns and putting a zero-height rule in there, but that 
would screw up the vertical size of the table.


/Paul



Re: embedded fonts in pdf output

2006-08-24 Thread Paul A. Rubin

Robert Neumann wrote:
I use lyx 1.3.4 and the package mathptmx to create a pdf which then is 
manually processed with adobe acrobat. Sometimes there are difficulties and I 
have been asked, whether the fonts are embeddet in the pdf file. Is there a 
way to control or change this?

Thanks
Robert



I'm not positive, but I'm pretty sure that if you use pslatex as the 
document default font, it will reduce (but not zero out) the number/size 
of embedded fonts.


/Paul




Re: Error converting to loadable format

2006-08-24 Thread Paul A. Rubin

Wan Kuang wrote:

I recently upgraded to Lyx 1.4.2 and noticed that all EPS figures won't
load. The error message says

convert: unable to open image `eps:/Users/max/Desktop/TWI_Sensor.eps':
No such file or directory.
convert: missing an image filename
`ppm:/tmp/lyx_tmpdir5678NZIGui/TWI_Sensor5678sgWtgy.ppm'.
/Applications/LyX.app/Contents/Resources/scripts/convertDefault.sh ERROR
Execution of convert failed.

Any idea? Thanks.

Wan



First question: does /Users/max/Desktop/TWI_Sensor.eps exist?  (You 
didn't specify your OS.  If it's pretty much anything other than 
Windows, keep in mind that paths are case-sensitive.)


Second question: if the file exists, does the account under which you're 
running LyX have read access to it?


/Paul




Re: Centering Spacing

2006-08-25 Thread Paul A. Rubin

Jean-Pierre Chretien wrote:

Cc: LyXFolks lyx-users@lists.lyx.org
From: Bruce Pourciau [EMAIL PROTECTED]
Subject: Re: Centering Spacing
Date: Fri, 25 Aug 2006 08:38:58 -0500
To: Jean-Pierre Chretien [EMAIL PROTECTED]

But why would the inter-paragraph spacing change when the paragraphs  
are centered? Before centering, there was no extra line between the  
one-line paragraphs.


You're right, center is a so-called displayed-paragraph environment (which 
adds
space above and below at each occurrence), so this is one situation where you 
need to use line breaks
to format one single centered paragraph.
So you type in the single lines separated by C-enter, then you center the 
paragraph.

Sorry for the misleading answer.



I think you're right about centering automatically adding a small amount 
of vertical space, but what Bruce encountered (and I can confirm) is a 
change in LyX behavior.  In LyX 1.4.2, the LyX-LaTeX conversion inserts 
a \par inside each centering environment, which LyX 1.3.7 does not.  My 
vote would be that 1.3.7's behavior was correct.


/Paul



Re: Aspell and language de_CH

2006-08-25 Thread Paul A. Rubin

david wrote:

Hello

How can I get aspell to use the language German Switzerland (de_CH)?

If I chose Deutsch (neue Rechtschreibung) in the document properties
(format/document) I get an error message:
The file /usr/lib/aspell/ngerman could not be opened for reading.

If I chose Deutsch the language German Germany (de_DE) is used.

Thanks!
David



What happens if you put de_CH in Tools-Preferences-Language 
settings-Spellchecker-Alternative language?


/Paul




Re: tabular*

2006-08-27 Thread Paul A. Rubin

Enrico Forestieri wrote:

I am afraid LyX does not support the tabular* environment. However
there is way to obtain what you are looking for. Please have a look
at the attached .lyx file


Thanks, Enrico!  This should do the job (relatively painlessly).

/Paul




Re: Postscript Printer Question

2006-08-29 Thread Paul A. Rubin

Bruce Pourciau wrote:
This is a LaTeX rather than LyX question. Concerning the quality of the 
output -- specifically for printing LaTeX and eps files, but also more 
generally -- what would be the difference between printer A and printer 
B, if A is described as having standard postscript support, while B, 
under printer fonts, says 26 scalable fonts but there's nothing 
about postscript support. We will be getting a new printer for the 
department of mathematics, and we'll need good reasons if we ask for the 
more expensive printer A.


Any help would be appreciated.

Bruce



Printers that advertise standard Postscript support typically have a 
set of Type 1 Adobe fonts in firmware.  That allows the printer driver 
to print glyphs from those fonts on the printer without resorting to 
bitmaps.  I'm not sure how many Type 1 fonts there are all told, but I'm 
sure I've seen printers that advertised 35 or more Type 1 fonts in 
firmware.  The extent to which you get mileage out of the built-in fonts 
is obviously proportional to the likelihood that users employ those 
fonts in their documents.  I think you get a bit of a speed boost using 
fonts the printer has in firmware; whether the output quality is better 
may depend on printer resolution and some other factors, so I'm less 
sure there is an advantage there.


If printer B has 26 scalable fonts that are not Adobe fonts (and are not 
MS TrueType fonts), then my guess is that you won't get any mileage out 
of them.  I've seen printers once or twice that had a few non-Adobe 
fonts, but they were fonts I never used (and did not have installed on 
my PCs).


For either printer, if a font is encountered that is not Adobe Type 1, 
the used glyphs from that font will probably be embedded in the 
document, and I think the driver for either should be able to handle 
that.  If a font is neither embedded in the document nor recognized, I 
think the driver will use a map to substitute some font it (or the 
printer) knows, and that can produce some butt-ugly output.


For what it's worth, I turn all my LyX output into PDFs and print them 
on an HP multifunction ink-jet that does not contain any Postscript font 
support whatsoever.  I also tend to use the ae or lmodern fonts, even 
when generating PDFs (although occasionally I will use pslatex, which 
might match the embedded Type 1 fonts if I had embedded Type 1 fonts, 
which I don't).


/Paul



Re: Upright greek letters in normal text and math mode

2006-08-30 Thread Paul A. Rubin

Reinhard Mayr aka Czerwinski wrote:

Ciao Miki,

thanks for your reply!

To be honest, this is not exactly what I am looking for because all letters in 
math mode now changed their (actual nice) shape and, moreover, are no longer 
italic.

The math panel offers a drop-down list for different text styles, but these DO 
NOT work for greek letters. Usually, the italic letters are fine, but for units 
(e.g. µm) always upright letters should be used. For this reason I would like 
to be able to use upright greek letters in both math mode and standard 
environment.

Can anyone help or provide a pointer?



There are TX fonts and PX fonts (which I think extend Times and Palatino 
respectively) that include some upright Greek letters, such as \muup for 
upright mu.  I don't have them, and I can't find TX on CTAN (but can 
find PX), so I'm not sure if these will do what you want.


/Paul



Re: Trouble again with instant preview...

2006-08-31 Thread Paul A. Rubin

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




When instant preview is enabled, LyX exports each distinct math inset to 
a separate tex file in the temp directory, and names them 
0lyxpreview.tex, 1lyxpreview.tex, etc.  So 0lyxpreview.tex would 
contain all the headers for a normal LaTeX file, but the only contents 
of the document is your first math inset.


Did you look in the temporary directory (while LyX was running) to see 
if 0lyxpreview.tex was written there?


/Paul



Re: writing two consecutive cases in AMS article

2006-08-31 Thread Paul A. Rubin

Andrew Corrigan wrote:

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?




Stick a line containing {} in ERT (and nothing else) between them, and 
make it a standard paragraph.  I've attached a minimal example.


/Paul



cases.lyx
Description: application/lyx


Re: Using aspell 0.6 with lyx 1.4.2 and other applications on windows xp

2006-09-03 Thread Paul A. Rubin

David Halpern wrote:

Hi,
I have installed Lyx 1.4.2 on my pc running windows xp. During the
installation process aspell 0.6 was also installed because I didn't have 
it.

How can I use aspell outside lyx? I cannot find the executable anywhere on
my pc but aspell works within lyx. I would like to be able to use aspell in
xemacs and also from the command line. How can I do this without installing
the stand-alone aspell? If I do install the latter will it conflict with 
the

one that gets installed by lyx 1.4.2 setup program?
Any helps in these matters would be greatly appreciated.

David Halpern



I'm not sure that you got the Aspell executables.  LyX has Aspell 
support built in, and just needs some library files (which the LyX 
developers have packaged for us).  Back when I was on LyX 1.3.x, I 
installed Aspell 0.5.  When I upgraded to LyX 1.4.1, and then 1.4.2, I 
had to install pieces of Aspell 0.6, but I'm pretty sure the only 
executable I have is the 0.5 one, which implies that LyX 1.4.2 doesn't 
need (an probably doesn't install) the full Aspell executable.


If you have the full installation, there should be an Aspell directory 
somewhere.  It used to be mandatory that it be C:\Aspell, but I think 
now it can be anywhere, so check c:\Program Files if you don't find it 
under the root.  If you find it, look in the bin subdirectory for 
aspell.exe.  If it's there, that's what you run (from a command prompt). 
 If you can't find it, chances are you don't have it.  You can download 
it from the official Aspell site (which I inconveniently forget just now).


/Paul




[LyX 1.4.2/Win XP] Aspell using wrong personal dictionary

2006-09-05 Thread Paul A. Rubin
In LyX 1.4.2, adding words during a spell check puts them in a new 
personal dictionary in the document source folder.  With previous 
versions, the new words were added to a global personal dictionary in 
the Aspell installation folder.  I much prefer the latter behavior, 
since it does not require me to add the same word over and over.  Is 
there any way to restore this behavior with LyX 1.4.2?


TIA,
Paul



Re: Importing/installing a new class

2006-09-07 Thread Paul A. Rubin

cesco wrote:

Hi,

I have to write a document according to the settings given in the latex
file IEEEtrans.cls but I don't know how to import it in LyX neither I
found a description of how this could be done. IEEEtrans is a type of
document I can select from the list of documents type in LyX, but when
I select it an error message tells me that the class IEEEtrans is
missing. I found the file on the web but I don't know where to copy it or
how to install/import it. I'm running the latest version of LyX on Win32, so I
don't know how to update the latex distro and how to issue, like you would do in
linux, the command texhash. Could anyone help?

Thanks and regards
Francesco




What LaTeX distro are you running on the Windows box?  If it's MikTeX, 
just use the MikTeX package manager to install the 'ieeetran' package.


/Paul



Re: Filename in document

2006-09-08 Thread Paul A. Rubin

Stephen Buonopane wrote:


On Sep 8, 2006, at 6:55 AM, Susanne Gütter wrote:


Dear lyx-user,

how can I get the name of my document into the document or into the 
preview?

I don't find any solution in the references.

Regards

Susanne


The latex command is \jobname

I use the following in ERT to put it in the lower right corner (with 
fancy pagestyle)

\rfoot{\textrm{\tiny \jobname}}


This looks like it would be a useful tip to add to the Wiki.

/Paul




Re: [WinXP, LyX 1.4.2] Export to pdf with pdflatex

2006-09-08 Thread Paul A. Rubin

Florian Kamm wrote:

Hello everybody,

I encountered a problem when I tried to export a lyx document to pdf 
using pdflatex. The first run is correctly started but will never stop, 
so I have to kill lyx manually. I am wondering where the problem is, 
because I actually can launch pdflatex from texlipse (an eclipse plugin) 
with success and from the command line, of course.

So what's going wrong with lyx here?
I am currently using a customized cls/layout style file with the newest 
Miktex distribution.
I hope someone out there could give me any hints or point me to a 
workaround.


Regards

Florian Kamm
Humboldt-University Berlin, Germany




What happens if you view the document with View-PDF (pdflatex) in LyX? 
 Does it display and, if not, does the LaTeX log file (Document-LaTeX 
log) reveal anything about the problem?


If View-PDF (pdflatex) hangs with no log entry, try exporting the 
document as a LaTeX file and then run pdflatex against it from the 
command line.  Does that work, and/or does the log reveal anything?


/Paul




Re: [WinXP, LyX 1.4.2] Export to pdf with pdflatex

2006-09-08 Thread Paul A. Rubin

Florian Kamm wrote:



the View-PDF (pdflatex) causes the same bahavior I described above. 
Then I looked into the temporary folder LyX was using during the run. 
Surprisingly I found a fine pdf-file, correctly put together (the toc, 
normal text and bibliography). But LyX still hangs and needs to killed 
via process manager. The log-file doesn't report any problems. Further 
launching from the command line works well.




Does the document contain graphics and, if so, are they intact in the 
pdf output file?


Someone had a problem similar to this generating LaTeX output -- turned 
out to be something pplatex was doing in post-processing -- but I have 
not seen this with pdflatex.  You might try the following:  Open a DOS 
prompt in the LyX bin directory, and start LyX with 'lyx -dbg latex'. 
Then open the document and either export or view using pdflatex.  The 
DOS window will get a lot of debugging output, but only the chunk just 
before the hang will be of interest.


When the hang occurs, take a look in the task list and see if you can 
see pdflatex still running.  The most likely explanation for LyX hanging 
would be that pdflatex never exits.  (If it exited with an error code, I 
assume LyX would register that, although I can't swear that it would.)


/Paul



Re: lyx and beamer

2006-09-08 Thread Paul A. Rubin

Tino Langer wrote:

Hello,

I want to use lyx to write some slides with the beamer package. Is it 
possible to do this? I use miketex 2.5, installed the beamer package, 
did a reconfigure of lyx but can not find beamer as document type. How 
to do this?


thanx, nice day - Tino



LyX is a great way to write beamer slides.  Assuming that you are using 
LyX 1.4.x, do the following.  Locate miktex root 
directory\tex\latex\beamer\lyx\layouts\beamer.layout, copy it, and put 
the copy in C:\Documents and Settings\your login id\Application 
Data\LyX1.4.x\layouts\.  Then start LyX, run Tools-Reconfigure, exit 
and restart LyX.  Beamer should show up in the list of document types.


/Paul



Re: Navigating in a big document

2006-09-09 Thread Paul A. Rubin

Elver Loho wrote:

I was wondering... How do you guys navigate around in large files?


I avoid large files ... because I avoid doing the amount of work needed 
to generate one.  :-)


I've got a 40-some page screenplay and working with it is a bit of a
pain. It would be great if I could collapse scenes into just the scene
header (int/ext) when not working directly with them. Sort of like
most code editors allow.



This may be clunky, but (assuming you have LyX 1.4.x) you could put each 
scene in a separate branch.  Go to Document-Settings-Branches, type 
Scene_1 (or whatever label you wish, but no spaces allowed) into the 
field labeled New:, and click Add.  Repeat ad nauseum.  Then highlight 
each scene and click (De)activate.  (I'm assuming that you want all 
scenes printed when you display/print/export the document.)  You can 
optionally assign background colors to their boxes.  Click OK when done.


Now position the cursor where you want to enter a scene and click 
Insert-Branch-Scene_1 (or whichever scene label applies). Type the 
scene in the branch box.  If you already have it typed, highlight it and 
then click Insert-Branch-Scene_1, and the highlighted text will be 
moved into the branch box.


Branch boxes can be collapsed and expanded by clicking on them.  When 
collapsed, the first few characters are displayed, so it might be 
helpful if your scenes started with meaningful labels.


/Paul



Re: [WinXP, LyX 1.4.2] Export to pdf with pdflatex

2006-09-09 Thread Paul A. Rubin

Florian Kamm wrote:

Well, I followed your suggestions and it seems that LyX hangs while 
pdflatex is scanning the .aux file (which contains the correct 
information if I open it manually). For debugging reasons I deleted the 
bibliography stuff, but the problem still exists. If I stop the scanning 
by pressing Ctrl-C the pdf generation will succeed.
Is it possible that the problems are caused by my - possibly buggy - cls 
style file?




You said that if you use File-Export-LaTeX and then run pdflatex 
manually, the document compiles correctly (nothing hangs), right?  If 
so, then it shouldn't be the class file, because the same class file is 
being used in the manual run.  If I'm wrong about exporting to LaTeX 
working, then that suggests either the class file or the document itself 
has something funny in it.


If pdflatex is hanging while scanning the auxiliary file, it could be 
that the file is terminated incorrectly (so that pdflatex is waiting for 
more input), or it could be that something has a lock on the file (and 
pdflatex is waiting to begin reading it).


Do you have labels and cross-references in the document?  IIRC, the .aux 
file is also used for cross-references, not just citations.  I'm not 
sure what one could do with a cross-reference that would cause pdflatex 
to hang -- missing labels would not cause that -- but perhaps if a label 
contains a non-latin character it might cause a problem.  (I'm groping 
in a very dark place here.)


/Paul



Re: [WinXP, LyX 1.4.2] Export to pdf with pdflatex

2006-09-11 Thread Paul A. Rubin

Florian Kamm wrote:


Compiling the document manually works very well, in my case I do
- pdflatex example.tex
- bibtex example
- pdflatex example.tex
- pdflatex example.tex
and it finishes successfully.



I take that to mean that your class file is not the culprit, and there 
is nothing off in your .bib file.  There have been reports of problems 
that traced back to a defective entry in a .bib file, but that would not 
seem to be the case here.


If pdflatex is hanging while scanning the auxiliary file, it could be 
that the file is terminated incorrectly (so that pdflatex is waiting 
for more input), or it could be that something has a lock on the file 
(and pdflatex is waiting to begin reading it).


This might be possible, but how to debug?
In a posting from the texlipse mailing list I read about texify. So I 
replaced the pdflatex.exe command in LyX with texify.exe plus additional 
  parameters for pdf generation and then I could export my LyX documents 
to pdf. And there were no errors...


Did the additional parameters cause pdflatex to be run, or was the PDF 
output generated by a different mechanism (for instance, ps2pdf)?


Do you have labels and cross-references in the document?  IIRC, the 
.aux file is also used for cross-references, not just citations.  I'm 
not sure what one could do with a cross-reference that would cause 
pdflatex to hang -- missing labels would not cause that -- but perhaps 
if a label contains a non-latin character it might cause a problem.  
(I'm groping in a very dark place here.)


No, but the .aux file contains some data about footnotes (in my document 
class I use the footmisc package) as well as citation data.


Hypothetically, an unreadable character in a footnote could cause 
problems -- I think I've seen reports that traced back to foreign (at 
least, non-English) characters in footnotes -- but that would not 
explain why you have no problem running the document manually.


When you run manually, do you do it by exporting a .tex file and then 
running?  If so, have you tried executing View-LaTeX (pdflatex), 
killing the job when it hangs, then running pdflatex (then bibtex, then 
pdflatex twice more) against the .tex file in the temp directory?  If 
that hangs where running against an exported copy succeeds, that would 
suggest that there is something in the copy exported to the temp file 
(either in the .tex file or in the .bib file) causing the problem.  The 
two exports are not identical: LyX modifies file names and paths in the 
copy exported to the temp directory.


/Paul



Re: table-editing a mess

2006-09-12 Thread Paul A. Rubin

Sven Schreiber wrote:

Hi,
I have just almost gone crazy editing a table that was too large to fit
on screen. (Yes I reduced the font/screen zoom to work around, thank
you. No, I won't upgrade my monitor just yet, sorry.)

Together with many other quirks of table editing, especially in the
dialog that seems to be broken in many respects, but also slow
responsiveness to typing, these problems almost made me go back and
write the table in plain latex directly.

I think that is a serious warning sign! I love Lyx, especially because
math and table editing is so much easier than with a (even good) text
editor. IMHO, these are the strenghts that Lyx should expand, and not
all is well in those areas.

I am aware there is a shortage of developers, so priorities have to be
carefully chosen. I am not questioning the usefulness of what is
currently being done, but I do have the feeling that fixing some
long-standing issues receives less attention than introducing new features.

The latter is more fun, and so the situation is perfectly
understandable, and it probably happens with every software project. But
IMHO it is also the reason why the userbase of lyx is far from what it
could be!

This is intended as constructive criticism, please take it as such, not
as any kind of attack. Thank you for your hard work.



I don't recall having any problems with the table dialog (other than 
having to remember that some field entries don't take effect if I click 
out of the field rather than hitting enter), and response speed to 
typing is not a problem (possibly because I tend to work with relatively 
small documents), but I definitely agree that it's a PITA having 
portions of a table off screen.  Without lateral scrolling, the only way 
to get to the off-screen parts is with the cursor keys (or the tab 
key?), and the cursor key causes the display to jump around in what I 
consider to be unpredictable ways.


This is also a problem with math insets that run off the screen.  My 
biggest wish for LyX right now would be a horizontal scroll bar for math 
insets and tables that don't fit on screen.  This was discussed on the 
list (maybe for math insets?) not too long ago, but I can't find an 
enhancement request in bugzilla, so I guess nobody ever submitted it.


/Paul



Re: renaming section numbering

2006-09-12 Thread Paul A. Rubin

pol wrote:

I have renamed section numbering as the following (rather long) string:

{Title \arabic{section}:}

In the table of contents, section 'numbers' appear overlappped to section
names. 
See enclosed test file.
Is that a bug? 


No, it's LaTeX behaving normally.

Any hints to fix that? 


Assuming that you really want the TOC to include the word Title at the 
start of each chapter (??), you need to tell LaTeX to allocate more 
space for chapter numbers in the TOC.  Have a look at the labelwidth 
entries in


http://www.tug.org/TeXnik/mainFAQ.cgi?file=tocloft/TOC

with particular note of the tocloft package (which might be the least 
painful way to do it).


/Paul



Re: single spacing does not work

2006-09-13 Thread Paul A. Rubin

Urijah Kaplan wrote:

Hello,

I just installed LyX for the first time yesterday. Whenever I select a paragraph
to be single-spaced (I highlighted the paragraph, pressed the paragraph
settings button, and changed spacing from default to single) it gives an error
message and does not work. The first time I did this and tried rendering to dvi,
it complained about a missing setspace.sty. I reinstalled LyX this time with
the bundled installer (lyx-142-1-bundle.exe.) and this time it gives me a
different error, LaTeX Error: Environment singlespace undefined and LaTeX
Error: \begin{document} ended by \end{singlespace}. When installing, I was
Administrator, and set installation for all users with the packages. The only
other non-default setting I used was by indicating I was also using Hebrew.

I am using Windows Server 2003 (32-bit). Rendering the included documents (like
the tutorial) to dvi works fine.

Thank you very much for your help, and for what looks like to be a great 
program!




Works for me (albeit on Win XP, not WinServer 03).  The first error 
sounds like you don't have the setspace package installed, which you 
need if you're going to vary the spacing of pieces of the document.  If 
you open a DOS windows and type 'kpsewhich setspace.sty', do you get 
back a path to the file?  If not, try installing it.  (If you're using 
MikTeX, you can run MikTeX's Package Manager from the program menu and 
use it to install setspace.  If you're using a different LaTeX 
distribution, it may mean downloading the package yourself and manually 
installing it.)


If you have setspace.sty, in LyX click Help-LaTeX Configuration, scroll 
down to section 7.13 (or just search for setspace), and see if it says 
'yes'.  If not, LyX didn't find setspace during installation, which 
means (assuming you have it installed) something burped during the 
installation.


If you have setspace and LyX knows you have setspace, the best I can 
suggest is cutting down your document to a minimal example that screws 
up and then posting it to the list.  Sometimes things get out of order, 
or the document gets damaged, but the only way I know to diagnose that 
is to look at the source code, and you have to know what you're 
looking for.  Which means consulting the experts on the list.  (Which 
excludes me.)


/Paul



Re: single spacing does not work

2006-09-14 Thread Paul A. Rubin

Urijah Kaplan wrote:

Thank you for the reply; alas I am still not fully operational.


Not to worry, I haven't been for years.  ;-)


I didn't have setspace.sty on my system (I did a full system search) so I went
to the MikTeX package manager to download it. I downloaded it (after a few of
the listed repositories bounced me for some reason) but when I went to the LaTeX
Configuration 7.13 was a no, as were quite a few other packages (4.x 6.x 7.x I
think) I decided to update MikTeX to 2.5 and see if that would help, no go.


Sorry, I forgot to say that if you had to install setspace you would 
also have to reconfigure and restart LyX.  I see you got there on your 
own eventually.


 I

went to the  LyX-Tools-Reconfigure and after many many pop-up to download
files, it seems to have finished. I shut down LyX and restarted my computer. I
went to LaTeX Configuration and Lo! there were many more yeses, including 7.13.
I went to my little document (it's just three lines, nothing special) selected
single spacing, tried to render to dvi, and now get a brand new error the
package download pop-ups I saw when I reconfigured saying that the required
file tex\latex\setspace\setspace.sty is missing and needs to be downloaded. I
press install, it pops up again, the document renders, but without the single
spacing I wanted. I close down yap, make a change (so I don't get the cached
dvi) CTRL-D, and the same download pop-up appears. If I press cancel instead of
install I get a pop-up that say an empty output file was generated click okay,
get a familiar LaTeX error message that File 'setspace.sty' not found. By the
way, I checked, and it *is* in the E:\texmf\tex\latex\setspace folder (E: is my
boot drive.) Any suggestions?


The pop-ups are coming from MikTeX, not LyX, so apparently MikTeX is 
confused about the status of setspace -- although if LyX has a yes next 
to it in the LaTeX Configuration page, it means that MikTeX knew it was 
there when LyX reconfigured.  If you run 'kpsewhich setspace.sty' from a 
DOS prompt, does it find the copy in E:\...\setspace?


You can try the following (although it shouldn't be necessary): Run the 
MikTeX Options program from the Start menu, and on the General tab click 
Refresh FNDB.  (No restart or reconfiguring of LyX is required after this.)


/Paul



Re: ABNT Class

2006-09-14 Thread Paul A. Rubin

Carlos Knauer wrote:

Hello.
I want to use abnt class on LyX.The file abnt.layout is 
atC:\Arquivos de

programas\LyX141\Resources\layouts , but LyX doesn't recognize it. What is
wrong ?

Thanks,



Did you reconfigure LyX after installing the layout file?

/Paul




Re: single spacing does not work

2006-09-15 Thread Paul A. Rubin

Urijah Kaplan wrote:

Cheers--
I did everything you suggested, and there are no more error messages.

Jeers--
It only kinda works.

The original document rendered as dvi without complaint, but did not 
heed my single spacing instructions. I thought that might be something 
to do with my original file, so I made a new one with just three lines, 
and no other formatting but single spacing. It worked!


If the entire document is single-spaced, then the setspace package is 
not used.


But when I right, 
left, or center align it (with the paragraph dialog) it doesn't work (It 
double spaces, I think). It only works with the default alignment of 
justified. B!


Is there any kind of example LyX document with different formatting 
tests? For all I know there might be many other problems with my 
installation

preventing documents from rendering correctly.


I've attached a document that is double-spaced by default, but the 
middle paragraph is single-spaced and right-justified.  I used the 
paragraph settings dialog both from the Edit menu and from the tool 
button (not that it should matter), and it worked both ways.


Thanks so much for your help.
(And no, I was not fully operational either even before using LyX.)


Well, perhaps LyX will set you right.  :-)


spacing.lyx
Description: application/lyx


Re: String with actual date (+ time)

2006-09-16 Thread Paul A. Rubin

Hellmut Weber wrote:

Hi list,
quite often I would like to insert the actual date (and time) into my 
LyX text as a string. (Printing the document this date would be always 
the same in contrast to \today.)


Does anybody have an idea how this could be realised in LyX? As menu 
item? As Icon? As key stroke sequence (which I would prefer ;-)?


Actually I'm using LyX-1.3.5 with KDE-3.4 but in a few days I will start 
using LyX-1.4.2 with KDE-3.5.2 on my new machine.


Greetings from Munich

Hellmut




Half an answer:  Type M-x to open the command minibuffer, then 
date-insert (enter) in the minibuffer to insert the date at the current 
cursor position.  You could bind the date-insert command to a key 
combination for easy access.  I don't know any way to insert the current 
time, though.  Maybe something with a shell script?  (Or bug the 
developers to add a time-insert LFUN?)


/Paul



Re: single spacing does not work

2006-09-17 Thread Paul A. Rubin

Urijah Kaplan wrote:

Attached is a sample document, with a pdf (dvipdfm)  I made from it. (Save
As..is grayed out in Yap. Why??)


Don't know why, but that's true here too, and not just for your 
document.  I'd never noticed it before, because I've never had a reason 
to try to save a DVI file from Yap.  (The file already exists, else Yap 
couldn't be displaying it, and AFAIK Yap cannot modify a file.)  To save 
a DVI from LyX, you can just use File-Export-DVI.


Here is the outcome

Right--Single--wrong
Justified--Single
Left--Single--wrong
Center--Single--wrong
Justified--Default
Justified--Double
Right--Double
Right--Custom-3

Any thoughts?


I'm pretty sure you're bumping into a LaTeX issue.  (Disclaimer:  I'm 
not a TeXpert, so believe the following at your own peril.) The attached 
revision of your file displays the way I think you intended (other than 
that the justified/default spaced paragraphs have a somewhat funky 
spacing of the first line, which I think would be improved if you turned 
off the option to indent the first line of each paragraph).


What's going on is that each of your verses, as typed into your original 
document, is actually four paragraphs (one per line).  Using default 
spacing, and with the setting that paragraphs start with an indented 
line rather than with extra vertical space, this works ok, because when 
you left-align or justify them each line indents the same amount as its 
mates (and of course the indentation is irrelevant when you center- or 
right-align).


When you deviate from default spacing, however, LaTeX automatically 
inserts some extra vertical space before and after the spacing changes. 
 Since each line is a new paragraph for you, this extra spacing is 
inserted around each line, hence the distinct deviation from 
single-spacing in the output.


In the attached version, I merged each verse into a single paragraph by 
changing paragraph breaks to line breaks (C-enter rather than enter), as 
signified by the arrows at the ends of the lines.  The fourth line of 
each verse ends with a paragraph break (enter rather than C-enter).


Hope that makes sense.

/Paul


help2.lyx
Description: application/lyx


Re: Linebreaking fails for url at end of line

2006-09-17 Thread Paul A. Rubin

Chris Lale wrote:

Juergen Spitzmueller wrote:

Chris Lale wrote:
 

Is there any way to force LyX to treat the url as an ordinary long word
that cannot be split with a hyphen?



You are aware of Insert-URL?

  


Thanks for the suggestion. This is a pretty good solution. 
Unfortunately, the url or pathname is split between lines. So I get:


http://tuxmobil.
org/pcmcia_linux.html

and

/etc/network/
interfaces

But, they are splitting intelligently.

Chris.



You might want to take a look at 
http://thread.gmane.org/gmane.editors.lyx.general/32114/focus=32119 and 
at the documentation at the end of the url.sty file.  There are also 
some LaTeX settings (sorry, don't recall them offhand) for convincing 
LaTeX to be more or less anal about paragraph boundaries.  Part of your 
problem is that LaTeX does not automatically assume (I think) that an 
unbreakable word at the end of an overlong line gets wrapped to the next 
line -- it chooses between wrapping to the next line or violating the 
right margin based on some rules for evaluating which is worse.  Picture 
a very long URL that would go one or two characters into the right 
margin; wrapping it to the next line produces an extremely short 
preceding line.  There's a way to make LaTeX more reluctant to go into 
the margin (and therefore less finicky about short lines), but that's 
the setting I'm forgetting.


HTH,
/Paul


/Paul




Re: single spacing does not work

2006-09-18 Thread Paul A. Rubin

Urijah Kaplan wrote:
Oh--I figured out the right address thing--the right address setting! 
Who da thunk?


I guess I am now fully operational. :-)




Careful.  The Gods of Computing regard statements like that as a challenge.

/Paul



Re: optional arguments for theorems?

2006-09-21 Thread Paul A. Rubin

John Perry wrote:

Hello,

It is not uncommon in LaTeX to include optional arguments to 
theorem-like environments, for example


   \begin{theorem}[Buchberger, 1965]
...
   \end{theorem}

The result (which can vary according the style file) should look 
something like


   Theorem 1 (Buchberger, 1965) ...

(See the section on theorems of the LaTeX User's Guide and Reference 
Manual, page 59 in my version.)


For the life of me, I can't see how to pass this oprtional argument in 
Lyx. I looked in the help manuals. I've downloaded  browsed the source 
code, thinking that if the feature hasn't been implemented, I might as 
well make myself useful and modify the code myself. Unfortunately, my 
analysis skills aren't what they should be; after spending a few hours 
trying to figure out which class generates the LaTeX code to start a 
theorem-like environment (I was looking for \\begin{ but that failed), 
I figured I'd do better to ask someone.


If the mechanism exists in Lyx already, I'd love to know it. If it 
doesn't, I'm still willing to make the change myself, if someone can 
direct me to the files in the source code where I should look.


regards
jack perry


At the very beginning of the Theorem environment, try insert an ERT 
inset (the TEX button on the toolbar), and in it type [Buchberger, 
1965] (no quotes) plus maybe a trailing space.


/Paul




Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Paul A. Rubin

Juergen Spitzmueller wrote:

Paul Fenner wrote:

Can somebody please point me in the right direction to create handouts from
my beamer presentation. I have tried to follow the Beamer Class Tutorial
but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.


To generate simple Handouts (i.e. the slides printed on a sheet), 


1. enter handout to Document-Settings-Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View-PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen



I use just step 1 to generate handouts (which are one slide to a page). 
 To get multiple slides on a page, I generate the handout file with one 
slide per page, open the file in Acrobat Reader, and print it using a 
drive that outputs a PDF file (PDFCreator in my case).  The printer 
options allow you to do 2, 4 or 6 slides per page, pick paper size, and 
pick portrait or landscape orientation.  If you take this route, be sure 
to select the option to stretch pages to the page margins.


/Paul




Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul A. Rubin

Paul Schwartz wrote:



Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the uninstaller program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.


Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
major problems.  (They all share configuration info, so preference 
changes in one apply to all, but to date I have not found any conflicts 
there.)


Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.

My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.


The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.

Have you checked Control Panel-Add/Remove Programs to make sure that 
1.4.1 is not listed there?  If it is, you should be able to uninstall it 
from there.


I just crawled my registry and didn't find anything particularly funky 
associated with the directory in which I have 1.4.1 installed.  So if I 
wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
 install 1.4.3 first (in a different directory) and make sure it works 
(!); note down the path to 1.4.1 and then delete its root directory and 
all subdirectories; then either (a) quit while I'm ahead and live with a 
little harmless clutter in the registry or (b) run a registry cleaner 
program that hopefully would delete any keys referring to the now 
nonexistent 1.4.1 directory or (c) run regedit, search for all 
references to the deleted directory and manually delete them.


HTH,
Paul



Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item Toggle read-only|Q buffer-toggle-read-only

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File-New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



LyX 1.4.3/Aspell problem (WinXP)

2006-09-22 Thread Paul A. Rubin

Hi,

I just installed 1.4.3 in parallel with 1.4.2 and 1.4.1.  (As usual, 
thanks to the developers for cranking out another new and improved 
version, and to all involved with the Windows port.)  During the 
installation process, I think the installer parked some Aspell-related 
files under C:\Documents and Settings\what_a_handsome_guy\Application 
Data\Aspell.  That is to say, the files are there now, I don't remember 
if they were there before, and during the installation progress report I 
think I saw something on the what I'm up to line about something going 
in up there.


I already had Aspell 0.50, the necessary bits of 0.60, and assorted 
dictionaries installed under C:\Aspell.  The problem is, when I try to 
check spelling in 1.4.3, I'm informed that 'No word lists can be found 
for the language en_US'.  On the other hand, 1.4.2 (which is using the 
same preferences file etc.) seems to have no trouble finding them.  I'm 
hoping I don't have to reinstall Aspell each time there's an upgrade to 
LyX.  Any ideas what I can do to cure this?


Thanks,
Paul (whose spelling, while good, is not entirely perfect)



Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-23 Thread Paul A. Rubin

Paul Schwartz wrote:

In fact there is so many aside programs with LyX that I am always afraid 
to miss one and for that reason, till today, each time I have fully update 
(reinstalling everything).
But, if I follow you properly, when you have got one installation, let us 
say 1.4.1, you just need to install 1.4.3 and keep former Miktex, 
ImageMagick, Ghostscript, Aspell ( I am not sure ) and GSView or to update 
them directly.

As such I should have just to download LyX 1.4.3. Am I correct ?



Yes, that is correct.  Once you have all the ancillary programs 
installed (although calling MikTeX ancillary is a bit of the tail 
wagging the dog), you need only upgrade LyX itself (using the more 
compact of the installers).  Similarly, ImageMagick, Ghostscript/GSView 
and MikTeX can be upgraded independently.  (I would be a bit hesitant to 
upgrade Aspell, as the connections from LyX to Aspell are hard-wired.) 
In point of fact, I don't know that I've ever upgraded ImageMagick, I 
upgrade Ghostscript at best sporadically, but I do try to keep MikTeX up 
to date, and that seems to work well for me.


/Paul



Re: lyx-143-2.exe for windows doesn´t work.

2006-09-25 Thread Paul A. Rubin

Mukhtar Ullah wrote:

sk [EMAIL PROTECTED] writes:


just to let you know, I have the same problem with 143-2 for windows.




The same problem here with LyX 143-2 for Windows-XP. What's going on here?

Mukhtar




I just saw an announcement on the developer list that a -3 version of 
the Windows installer will be on the FTP server soon that purportedly 
solves the problem.  (Seems to be something relating to whether the 
right bits of Visual C++ already exist on your system?  Must be I got 
lucky on this one; 1.4.3-1 worked for me.)


/Paul



Re: How to use style file

2006-09-25 Thread Paul A. Rubin

winson wrote:

Hello there:

I am planning to submit a paper to a journal. The
format of the journal paper is provided as a style
file, say 'ndst.sty'. 


I am using LyX 1.42 on Windows XP. Following the
instructions in 'Customization' manual, I did the
following:

1)I made a copy of 'artical.layout', and renamed it to
'ndst.layout'.

2)I modified the top lines of 'ndst.layout' to
#% Do not delete the line below; configure depends on
this
#  \DeclareLaTeXClass[article,
ndst.sty]{article(ndst)}

Preamble
\usepackage{ndst}
EndPreamble

The remaining lines of 'ndst.layout' are kept
unchanged.

After I reconfigured LyX and re-started LyX, the
document classs Article(ndst) is still marked as
'UnAvailable'.

This may be caused by that the system could not locate
file 'ndst.sys', as I am not sure where to put it. I
would appreciate if anyone can give me some help on
how to configure LyX on Windows XP, so that the
document class in style file can be applied to my
paper.



If you have not already done so, you first need to put ndst.sty in a 
directory where LaTeX will find it and then refresh the LaTeX file name 
database.  After that, you need to reconfigure and restart LyX.


Where to put ndst.sys is somewhat up to you.  If you have a localtexmf 
directory defined, my suggestion would be to put it in a directory such 
as localtexmf\tex\latex\ndst (which you will need to create).  If you 
don't have a localtexmf, you can put it under texmf\tex\latex\ndst, 
where texmf is the root of your LaTeX distribution.  (If you're a 
MikTeX user, which is likely, try running


kpsewhich article.cls

from a DOS prompt.  It should cough up blah/blah/blah/base/article.cls. 
 Change 'base' to 'ndst' and put it there.)


As to how you refresh the file name database, that varies by LaTeX 
distribution.  If you're a MikTeX user, run the Options application from 
the Start menu and click 'Refresh FNDB' on the General tab.  Then 
reconfigure/restart LyX


/Paul



Re: Debugging python scripts called by LyX

2006-09-26 Thread Paul A. Rubin

Giovanni,

One of the developers starting experiencing similar symptoms.  His post 
([EMAIL PROTECTED]) to the developer list 
suggests that it might be tied to an upgrade from MikTeX 2.4 to 2.5.  He 
thinks it only occurs when trying to update a DVI that yap currently has 
open.  I can't recall the original symptoms you reported, so I'm not 
sure if this is consistent with your experiments.


/Paul



Re: incompatibility of layouts bteween version 1.3 and 1.4

2006-09-26 Thread Paul A. Rubin

nicolas roy wrote:
Dear all, 


First sorry for bothering. I should first check in the archive if my
issue was not already discussed, but the webpage of the archived list
does not function.
Up to recently, i had Lyx 1.3.6 and i used several layout (for
mathematics article, with theorem environnments) that i found on
internet (they were some months/years ago available on the Lyx
webpage). 
Unfortunately, since i updated to 1.4 version, these old layouts do not

function any more. Therefore, the environments of all my old documents
are completely messed-up.
Nevertheless, i read somewhere that lyx 1.4 should automaticaly update
the layouts files. 


Does anyone have an idea/comment ??
Thanks, in advance.


In the .../scripts directory of 1.4.x, do you have a Python script named 
layout2layout?  If so, you might try running it manually against your 
old layouts.


/Paul



Re: LyX143-3 works

2006-09-27 Thread Paul A. Rubin

Giovani Baratto wrote:
The lyx 1.4.3-3 install now and run. However, the math fonts 
are wrong for me.


Giovani




Do you have the BaKoMa fonts installed?  If not, you can get them (at 
least for Windows) from 
ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.1.zip.  Note that with 
Windows it's not enough to unzip the files; you need to run the Fonts 
applet (from Control Panel) and install them.


/Paul




Re: What happened to the tool bar buttons: view dvi/pdf and refresh dvi?

2006-09-27 Thread Paul A. Rubin

Graeme Handisides wrote:

Hi,
 
I have previously used Lyx 1.4.1 and 1.4.2. on Win XP. After installing 1.4.3 I

deinstalled 1.4.2.
Under my previous installation the default toolbar had 3 buttons to produce a
dvi preview, refresh the dvi and preview a pdf file. These have now disappeared
and as I used them quite a bit, I would like to know how to get them back. Can
anybody help me on this one. I have looked at the ui files, but it didn't help
much, except to confirm that these buttons no longer seem to exist.
 


Try the following:

1.  Copy stdtoolbars.ui from the Resources\ui folder under the LyX 
installation directory, and park the copy in C:\Documents and 
Settings\your id\Application Data\LyX1.4.x\ui.


2.  Use a text editor to add the following lines to the copy:

  Separator
  Item View DVI buffer-view dvi
  Item Update DVI buffer-update dvi
  Item View PDF buffer-view pdf2

The last line is set to use pdflatex to generate the PDF views, because 
that's what I always use.  If you want to use a different compilation 
method, change 'pdf2' to 'pdf', 'pdf3' or whatever the file type is (in 
the File formats dialog under Preferences) for you preferred route.


You can put them at the end of the standard toolbar (just after Item 
insert table ...) or the extra toolbar (just after Item Thesaurus 
...), whichever you prefer.


3.  Start LyX and see if you like what you get.

I didn't find an icon for viewing PDF files, so apparently you get a 
generic gear icon.


/Paul



Re: Textclass other errors on new install

2006-09-27 Thread Paul A. Rubin

Russell W. Behne wrote:
I just (re)installed Linux (Mandriva 2006) on cleanly formatted partitions, 
and when I open LyX (ver 1.3.5) I get an error message saying:


Textclass error
The document uses a missing TeX class article.
LyX will not be able to produce output.

Other documents give the same error, but for a different tex class, depending 
on whatever one that document is supposed to be using. I also noticed that 
there's no longer several menu items, things like previewing in PS or PDF, 
and exporting to anything other than ascii. 

I have another directory, /usr/local/texmf/tex/latex where I keep style files 
that I downloaded. (I keep them there to both make them available to all 
users, and to survive formats and reinstalls of other partitions.) After 
every reinstall I run this command sequence from a batch file:


rm -f /usr/share/texmf/web2c/texmf.cnf
cp /usr/local/texmf/texmf.cnf /usr/share/texmf/web2c/texmf.cnf
/usr/bin/mktexlsr

where /usr/local/texmf/texmf.cnf is a custom texmf.cnf that makes LyX 
recognize these files. (/usr/local is a separate partition, _all_ other 
partitions were formatted during this reinstall.) (Some files I wanted to 
keep were copied to another drive prior to doing the format.)


Unfortunately, in addition to the previously mentioned problems, LyX can't 
find these files anymore, even after I ran the batch file.  (This batch file 
has always worked for me prior to this latest install.)


I'm baffled. What's wrong, and what need I do?



Did you reconfigure LyX after you ran the batch file?

/Paul




Re: Including a figure in the title page in LyX (again)

2006-09-27 Thread Paul A. Rubin

Horacio Emilio Pérez Sánchez wrote:

Hello,

I have a big lyx document (book format) and I want to include a graphic 
or logo in the very first page of the title, and above the title. I have 
tried inserting a figure float, but then the title breaks to the two 
following page. Has somebody succeed in this in LyX (not in Latex)?


Thanks.

P.D. I tried the solution proposed my Jose Matos (Fri 28 Jul 2006), but 
that is a Latex solution (that I think is difficult to implement in LyX) 
and the package he refers in the link (myTitlePage.sty) does not exists; 
I can not find it.





Try the following:  Place the cursor where you want the title and change 
the environment to Title as usual. Insert a two-row, one-column table 
and turn off the table borders. Type the title into the second row. 
Click into the first row and use Insert-Graphics... to insert your logo 
(no float!).


/Paul



Re: toggle math mode

2007-11-09 Thread Paul A. Rubin

Uwe Stöhr wrote:

Joris van Zwieten schrieb:


By the way, I'm using version 1.3.7. and I do not seem to have an
entry called 'Source' in the 'View' menu. Is this correct? 


You need LyX 1.5 for this feature. The actual version of LyX is 1.5.2.

regards Uwe



Prior to 1.5.2, you can go to Preferences - File formats, select LaTeX, 
and assign a text viewer program in the viewer slot.  (On Windows, I 
like the free TextView program.)  Save the change, and make sure that 
the app you selected is on your system path (or else provide the full 
path to it).  I think you'll need to restart LyX.  Thereafter, you 
should have LaTeX as an option on the View menu.  Unlike the 1.5.2 
feature, this will not take you directly to the position in the source 
code where your cursor lies; it will open the entire .tex file.  Still, 
I got good use out of it prior to 1.5.2.


/Paul



Re: Script Conversion Failure

2007-11-09 Thread Paul A. Rubin

Bruce Pourciau wrote:

Sorry, here's my question with a corrected title:

When I try to open example lyx files posted on this list, I get a 
conversion script failure: filename.lyz is from an earlier version of 
lyx, but the lyx2lyx script failed to convert it I'm running LyX 1.4.1. 
Must I upgrade to 1.5?


Bruce



I suspect the error message is misworded.  Most of the examples posted 
recently on the list have been in the current file format (current = 
used by 1.5.1 and 1.5.2; this is obviously a moving target).  So the 
issue would be that the file was written in a later format, not an 
earlier one.


The lyx2lyx script has an optional argument indicating the format to 
which to convert.  (It also has an optional from argument, though I 
don't see in the code where that is used.  But then I don't really speak 
Python.)  It might be that if you acquire just the lyx2lyx directory 
from 1.5.x, and have a reasonably up-to-date version of Python 
installed, you could convert recent files backward to 1.4.x.  It looks 
to me as though the script I have in 1.5.2 is designed for backward as 
well as forward conversions.  But the script that shipped with 1.4.x 
would not be able to convert to/from 1.5.x formats.


/Paul



Re: what happened to AMS article in 1.5.2?

2007-11-09 Thread Paul A. Rubin

Srinivas Nedunuri wrote:

I used to have no problem setting my documents to “article (AMS)” but with
1.5.2  I get an error message saying that the AMS article class layout isn’t
usable, probably because a latex class is missing. I would check for the
missing class if I knew where to look.


At a DOS prompt, run 'kpsewhich amsart.cls'.  It should tell you the 
path to the AMS article class (such as C:/Program Files/MiKTeX 
2.6/tex/latex/amscls/amsart.cls).


How does Lyx know where to find Latex? 


It expects the LaTeX (in this case MikTeX) bin directory to be on either 
you system command path or the the LyX path prefix (Tools - Preferences 
- Paths - PATH prefix).  If it's not, article (AMS) won't be the only 
problem; you won't be able to use any classes, and probably won't be 
able to open the help files.



Also, I heard there’s something you have to do to update MikTex or
something.


I doubt you would need to update MikTeX to use the latest AMS layouts, 
but it's generally a good idea to run MikTeX's update manager periodically.


If kpsewhich finds the AMS article class file, check lyx 
root\Resources\layouts and make sure that amsart.layout is there.  If 
so, maybe try to reconfigure and restart LyX.


/Paul



Re: Table View Positioning Bug when Math Editor Field is focused

2007-11-10 Thread Paul A. Rubin

Mirko Briemle wrote:

Hi,

I recognized a table view positioning bug in lyx 1.5.2 when I work with a big 
table and
want to enter a math formula. This means, when I make a table that is wider 
than my
screen and than click on one of the right columns, the focus moves with the 
cursor to the
right so this column is in the center of the focus. Now, if I want to enter a 
math
formula and click the Insert Math button, the focus switches back to the very 
left
column. I then have to enter the math formula without seeing what I enter.

Is there a way to fix this?


Other than editing the formula elsewhere in the document, then cutting 
it and pasting it into the table cell, I don't know a workaround.  It's 
a variant of bug 4190, and has already been reported.


/Paul



Re: layout file not applicable

2007-11-12 Thread Paul A. Rubin

Melanie Rau wrote:

Dear Lyx-Users,

I  installed the 15.2.1-Version via LyX-1.5.2-1-Installer-Bundle.exe
When I trie to open a document, I receive the following error-message 
(as I installed a German Version, I tried to translate,the original 
error message is attached as a gif-file): xyz.layout file is not 
applicable. it is very likely that a necessary latex-class or style-file 
is not available.
I tried to find a solution in the help-documents, but I failed. Thanks a 
lot for your help!

Melanie






The most likely reason for this is that your MikTeX installation is 
missing a class or style file that the layout file requires.  For 
instance, someone recently reported the same error message when trying 
to use the article (APA) layout.  It turned out that he had the APA 
class file installed, but not apacite.sty, which the layout file requires.


Which layout is causing you the problem?

/Paul



Re: LyX 1.5.2 not outputing to DVI, PDF and PS

2007-11-14 Thread Paul A. Rubin

Luís Batalha wrote:

Hi there,

I have installed LyX 1.5.2 on Windows XP (running LyX-1.5.2-1-Installer.exe)
and was not able to make DVI, PS, PDF right from the start. When I try to
export one of the templates or tutorial, or whatever to one of these formats
I get these messages:
 
LyX: Document class not available

The layout file requested by this document, article.layout, is not usable.
This is probably because a LaTeX class or style file required by it is not
available. See the customization documentation for more information. LyX
will not be able to produce output.
 
I click OK and the document shows up in input mod (LyX), but when I try to

export it to one of the three formats I get this:
No information for exporting the format DVI
No information for exporting the format PDF
No information for exporting the format Postscript

When I open the document settings tab I see that all the document classes
are unavailable.
  
I have MikTeX 2.5 and installed and uninstalled LyX a couple of times

without success. What might be the problem and how can I deal with it?

I am new to LyX and this is probably just trivia.



Most likely LyX cannot find MikTeX.  Is the MikTeX bin directory on your 
system command path?  If you open a DOS prompt and run 'kpsewhich 
article.cls', does it report back the path to article class file?


If MikTeX is not on the system path, try adding it to the system path 
and then reconfigure (Tools menu) and restart LyX.  If MikTeX is on the 
path and kpsewhich finds article.cls, try opening a DOS prompt in the 
parent directory of your user directory (Help - About LyX will tell you 
the user directory -- it's typically C:\Documents and 
Settings\you\Application Data\lyx15\, so you want the prompt in 
...\Application Data).  From there, run


path to LyX\python\python.exe path to LyX\Resources\configure.py

and keep an eye on the output.  Early on, it will indicate it is looking 
for LaTeX, and you should get a 'yes' for latex.exe.  If you do not, 
it's still not seeing MikTeX, or MikTeX is somehow broken.


/Paul



Re: errors during the latex run

2007-11-16 Thread Paul A. Rubin

e-letter wrote:

Readers,

I am trying to create a custom bibtex style file, using the merlin.mbs
function. When I try to preview the lyx document in the di viewer I
get an error about the latex run, furthermore stating I should try to
fix them.

How do I find out what were the errors in the first instance?



Document - LaTeX Log should show them.

/Paul



Re: Change PDF viewer (windows)

2007-11-24 Thread Paul A. Rubin

Tobias Krause wrote:

Hi,

how can I change the PDF viewer - without changing the windows default 
PDF viewer?

I tried changing Viewer in Tools -- Preferences -- File formats, but

   * absolut path did not work
   * adding the path to the viewer exe to Tools -- Preferences --
 Paths -- PATH prefix did not help
   * now I put the pdf viewer exe in the LyX bin folder - this works,
 but isn't there another way?

Regards, Toby




I have done this in the past by putting the path to the viewer in the 
PATH prefix.  I assume that you also specified the viewer in the File 
formats (and then clicked Modify followed by Save)?


Can you specify which viewer you tried and exactly what you did in both 
the PATH prefix and the formats section?


/Paul



Re: X-fonts (pleeeeeeeeease help)

2007-11-24 Thread Paul A. Rubin

Grzegorz Sójka wrote:

Hi there,

I have a problem with lyx-1.3.6. The mathematical signs like \cup \cap
\int are not displayed. Instead of it I get empty square. I have no idea
what I should look for. Please help.

Thanks in advance for any suggestions.

Best regards.

Greg

PS. I'm using X11-org-6.9.0



You may be missing the necessary display fonts.  Have a look at 
http://wiki.lyx.org/FAQ/Qt for various ways to install suitable fonts.


/Paul



Re: Live Latex Editing

2007-11-24 Thread Paul A. Rubin

Atakan Kubilay wrote:

This is just
a call for an added feature I have sorely felt the absence of: I want
to be able to edit Latex code-not just preview it-while typing.


Someone else suggested/requested this recently.  I'm not sure if it was 
entered into bugzilla as an enhancement request.



I
know it can be a big mess if a novice Latexer edits the code, but
there can just be a big warning message like that appears on the top
of the document.


It's more complicated than that.  If you modify the LaTeX source (as 
opposed to entering LaTeX in an ERT box), LyX would have to 
reverse-engineer your changes in order to keep the display correct. 
(With ERT, LyX makes no attempt to format your entry for the display.) 
So you now require LyX to understand a virtually unlimited amount of 
LaTeX syntax (I say unlimited because, of course, LaTeX is designed to 
be extended by macro packages).


/Paul



Re: problems with amsart layout

2007-11-24 Thread Paul A. Rubin

Antonio José Guirao Sánchez wrote:
Hello,  in the wiki we can find two layout for amsart. Since I 
downloaded the version 1.5.2 for windows, automatically i  downloaded  
the same version of this layout. However I have realized of a  big 
problem of that layout.  I wrote a paper  with  several  lemmas, 
propositions and theorems, but the first environment of this kind 
appearing in the paper was a lemma. I couldn't obtain a pdf file from 
this. I realized that amsart. layout version 1.5.2 added some lines 
defining the respective environments but exactly in the order the were 
appearing. So first is was defined lemmas and secondly theorem. But this 
is a problem since the definition of the lemma depends on the counter 
associated to the theorem which is defined afterwards.


OOPS!  I verified this.  The attached version of amsmaths.inc should fix 
it.  You can either put this in ~/.lyx/layouts or overwrite the original 
in the layouts directory with it.  I'll post it to the wiki shortly.


I solved this problem with amsart. layout version 1.4. But this layout 
also has a problem. When I want to write an Abstract, since I am Spanish 
I select the type of paragraph Resumen but the environment lyx 
introduce is not what I want. It introduces something like 
\begin{summary}\end{summary}. I know that this has a simple solution 
writing just a ERT command. But I know that LyX recognizes the paragraph 
ABSTRACT. The point is that, maybe is a mistake in the amsart. layout o 
is a problem with the translation to Spanish.


I think this is a translation issue.  Is it also a problem with 1.5?


I can fix this layout for me but I prefer if someone can take a look on 
it and create a good layout for amsart, which is  in my opinion, one of 
the most used layouts.


Well, we've been trying to produce a good layout for amsart (and its 
plain and sequential variants), but that seems to be proving a bit 
elusive.  :-)  If you find further bugs (or missing features), please 
post them here, and someone will attempt a fix.


/Paul
# Author : David L. Johnson [EMAIL PROTECTED]
# Probably broken by Jean-Marc Lasgouttes [EMAIL PROTECTED]
# modified and modularized by Emmanuel GUREGHIAN [EMAIL PROTECTED]
# This version has Theorems and other results numbered in one sequence, and all
# numbered environments (figures as well) containing the section number.
# (Themorem (1.1), Corollary (1.2) Theorem (1.3), etc.
# These are only the theorems styles environnements
# Tinkered with Sep. '07 by Paul Rubin [EMAIL PROTECTED]

# The environnements defined (regular and starred) are :
# - Theorem
# - Corollary
# - Lemma
# - Proposition
# - Conjecture
# - Criterion
# - Algorithm
# - Axiom
# - Definition
# - Example
# - Condition
# - Problem
# - Exercise
# - Remark
# - Note
# - Notation
# - Claim
# - Summary
# - Acknowledgement
# - Conclusion
# - Fact
# - Assumption
# - Case (regular only -- defined as an enumeration)

Format 4


Counter
Name theorem
Within   section
End

# Define thm up front, in case it is invoked by a lemma/conjecture/...
# before the first (if any) instance of Theorem.
Preamble
 \theoremstyle{plain}
 \newtheorem{thm}{Theorem}[section]
EndPreamble

Style Theorem
MarginFirst_Dynamic
LatexType Environment
LatexName thm
#DependsOn TheoremStyle
NextNoIndent  1
LabelSep  xx
ParIndent MMM
ParSkip   0.4
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Counter
LabelCounter  theorem
LabelString   Theorem @[EMAIL PROTECTED]
Font
  Shape   Italic
  SizeNormal
EndFont
LabelFont
  Shape   Up
  Series  Bold
EndFont
End


Style Theorem*
CopyStyle Theorem
LatexName thm*
LabelType Static
LabelString   Theorem.
Preamble
  \theoremstyle{plain}
  \newtheorem*{thm*}{Theorem}
EndPreamble
End


Style Corollary
CopyStyle Theorem
LatexName cor
LabelString   Corollary @[EMAIL PROTECTED]
Preamble
  \theoremstyle{plain}
  \newtheorem{cor}[thm]{Corollary}
EndPreamble
End


Style Corollary*
CopyStyle Theorem*
LatexName cor*
LabelString   Corollary.
Preamble
  \theoremstyle{plain}
  \newtheorem*{cor*}{Corollary}
EndPreamble
End


Style Lemma
CopyStyle Theorem
LatexName lem

Re: Live Latex Editing

2007-11-24 Thread Paul A. Rubin

Ryan Cross wrote:


Correct me if I'm wrong, but the understanding you are referring to is
already available - it is the relyx command that is used when
opening/importing a latex file. So, what this is a request for is a relyx in
place option - which is listed on the wiki with several other feature
requests. With that in mind, I don't think this request is quite as
complicated as you make out - but i'm not a lyx developer.


That sounds about right ... with the observation that relyx will convert 
an entire document, not just a modified section.  I don't know the 
workings of relyx, so I don't know if it would be easy to have an 
on-the-fly relyx convert just modified pieces of a document.  If it has 
to convert the entire document, that has implications for usability when 
working on a large document.


The other issue is that I think relyx tends to leave some chunks of 
LaTeX as raw LaTeX (in ERT boxes).  I'm not sure about this because I 
virtually never use relyx (lack of need).  If I'm right, then a tweak of 
the raw LaTeX followed by an on-the-fly relyx might convert what was 
previously a non-ERT element of the document into ERT.  Turning a table, 
for instance, into ERT costs you substantial editing ease.


I'm not a developer, though, so an expert opinion would be useful here.

/Paul



Re: lyx equivalent to writer styles

2007-11-25 Thread Paul A. Rubin

e-letter wrote:


In writer I can format text with a style and in turn edit that style,
e.g. format the text into title case.

How do I change the 'section' style, for example to have italicised text?


LyX has user-designable styles, but AFAIK only for ordinary text.  This 
is in part a LaTeX limitation: LaTeX formats headings differently than 
regular text.


To address your specific example, you can load the sectsty package in 
the preamble and use the macros it provides (such as 
\allsectionsfont{...}) to change the font for section headings.  I 
believe you can also accomplish this with the titlesec package.  Note 
that changes you make with either of these will not be reflected in the 
GUI, only in the final output.


/Paul



Re: Change PDF viewer (windows)

2007-11-25 Thread Paul A. Rubin

Tobias Krause wrote:



Yes, I did exactly the same - and it did not work when I tried it last 
time...
First I realized that whitespace in the viewer name are not supported so 
I changed the name of the viewer binary...


Whitespace is allowed in the path prefix, though.  I just installed 
PDF-XChangeViewer for test purposes.  I did the default installation, 
put the path (including spaces) in the path prefix, and put the name of 
the .exe file (which contains no spaces) in the viewer slot of the file 
format.  I assume you did this below, since you were able to load the 
viewer (and generate the URL message).


Just now I tried changing the viewer again (to write a correct answer) 
and for what ever reason it worked except the thing that PDF-XChange 
Viewer (http://www.docu-track.com/home/prod_user/pdfx_viewer) does not 
accept the file path (while it does if it is the system standard for 
PDFviewing): it say Invalid URL.
But since I set PDF-XChange Viewer just for testing purpose I don't care 
at the moment - but it's still kind of weird: where is the difference in 
the ways LyX calls the viewer?


The problem in this case is that LyX uses Unix-style separators (/) in 
the file path.  Windows understands these correctly, so most 
applications work, but for some reason PDF-XChangeViewer chokes on them. 
 I verified this by starting PDF-XChangeViewer from the command line, 
giving it the path to the temp buffer PDF file (in quotes).  With DOS 
separators (\) it works, with Unix separators it gives the URL message.


If you ultimately settle on a viewer that has this problem, one solution 
would be to set the viewer field in the LyX file format entry to a batch 
file that converts the path and then invokes the viewer.  This would be 
easy to do if you have sed installed.  (The GnuWin32 version is a free 
download.)


/Paul



Re: X-fonts in XP

2007-11-25 Thread Paul A. Rubin

Sandor Szabo wrote:


I have the almost same problem in Windows XP,
there are some  invisible greek characters.
I use LyX 1.4.3-5.
The instructions seems to be good in Linux, but how
can I adopt them for XP?



1.  Download the Bakoma4LyX fonts (there's a zip file on the wiki IIRC).

2.  Unzip the archive in a temp directory.

3.  Open the Windows font applet (from the Control Panel).  Find the 
eight fonts in the archive and delete them if present.  (They may or may 
not be installed already.)


4.  Use the font applet to install the fonts from the temp directory. 
After they are installed, you can delete them from the temp directory, 
but it might be a good idea to hang onto the zip archive as a backup. 
I've had to reinstall the fonts once or twice to fix font glitches with 
LyX 1.3.x and 1.4.x (but not 1.5.x, at least so far).


4a.  If there's a fonts subdirectory under the LyX root directory, I 
suggest deleting it and its contents.


/Paul



Re: font embedding

2007-11-25 Thread Paul A. Rubin

Alexander Sklar wrote:
 


How do I make sure all the fonts in my pdf generated by LyX has all the
necessary fonts embedded and subset?


Good idea.  I was at a conference a couple of weeks ago where close to 
1/3 of the presenters used Beamer (I had no idea it was that popular 
here in the States), and at least one of them ran into a problem with 
missing fonts that caused his math formulas to evaporate.  (Consolation: 
 a similar problem afflicted close to half the people using 
Powerpoint.)  I suspect this was due to borrowing the first presenter's 
laptop.


(I guess the trick would be to pass -dSubsetFonts=true -dEmbedAllFonts=true
to ps2pdf but how do I do that from LyX?)



DISCLAIMER:  I have not tried this myself (I use pdflatex, and seem to 
get lucky with the fonts).


Go to Tools - Preferences - Converters, highlight Postscript - PDF 
(ps2pdf), type the options you want into the Extra flag field, then 
click Modify and Save.  You may have to exit and restart LyX to have it 
take effect (I'm not sure).


HTH,
Paul



Re: Errors with AMS documentclass

2007-11-26 Thread Paul A. Rubin
Antonio José Guirao Sánchez wrote:
 We were speaking about that some emails before. You have just to go to
 wiki.lyx.org and download the last version of ams layouts. This works fine.
 
 Wang Yongqiao escribió:
 I am writing a book with AMS book document.When I convert it to dvi or 
 pdf, the following erros are found:

 LaTeX Error: No counter 'thm' defined.
 LaTeX Error: No counter 'thm' defined.
 LaTeX Error: Environment defn undefined.
 LaTeX Error: \begin{document} ended by \end{defn}.


I've been told this is fixed in the next version.

/Paul



Re: Ams latex and lyx

2007-11-27 Thread Paul A. Rubin

Gerardo Oleaga wrote:

Hello

I have some problems with lyx 1.5 and ams article documentclass. It does 
not recognize the size of the graphics, and is not compiling the 
document. I tried to put them inside a figure environment, but the error 
persists.


Can you give me any advice?

thank you

Gerardo.



This does not sound like something that would be specific to the AMS 
document classes.  Can you post a minimal example (LyX file and graphic)?


/Paul



Re: Math subject classification

2007-11-28 Thread Paul A. Rubin

David L. Johnson wrote:

Philipp Schlicht wrote:

Hi,

in my Lyx version 1.5.1 the environment subjectclass produces the 
output 1991 Mathematics Subject Classification instead of the 
current 2000 Mathematics subject classification (see AMS website).


Huh.  I thought that was fixed.  It is in my 1.5.2 -- although it could 
be that I changed that myself.  However, I think not, I think this was 
installed from the source.


It's fixed in the official version.

Philipp, you can download an updated amsdefs.inc from the wiki.  You 
might in fact want to download the entire updated ams package, since 
some other bugs relating to numbering issues were also fixed.  The files 
 (and a list of changes) can be found at http://wiki.lyx.org/Layouts/AMS.


/Paul



Re: thm counter

2007-11-29 Thread Paul A. Rubin

Philipp Schlicht wrote:

Hi,

there is a problem with the thm counter in Lyx version 1.5.2 that wasn't there in 1.5.1. 

I get the LaTeX Error: No counter 'thm' defined, but I can compile no problem if I add an extra theorem in the beginning. 

The problem might be that I have a Fact before the first Theorem but the counter 'thm' is only defined after the first theorem (or lemma etc?). 


Is there a way to fix this?

Thanks in advance,
Philipp


Known error in the AMS definitions (my fault, I think).  It's fixed in 
1.5.3.  Meanwhile, you can download a patched copy of the AMS layout 
files from http://wiki.lyx.org/Layouts/AMS.


Sorry.

/Paul



Re: Tables - gap in borders

2007-11-29 Thread Paul A. Rubin

Graham Griffiths wrote:

Graham Griffiths [EMAIL PROTECTED] writes:

I need to include math symbols in tables and when a superscript is present 
there is not enought clearance between the symbol and the cell top border.


Thanks for the suggestions - they should do the trick. However, I would like a 
clean solution if possible.


Regards,

Graham






Not sure if this is pertinent, but I'm struggling to adapt an article to 
the LaTeX style specified by the INFORMS journal Operations Research. 
Their style file adds a couple of macros, \up and \down, to be used in 
table rows that follow respectively precede a horizontal rule.  The 
purpose is to add a bit of vertical space between rules and table 
entries.  The style files can be downloaded from the INFORMS web site 
(www.informs.org, then drill down to the journal submission 
information), if you'd care to see how they do it.


/Paul



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