Re: Strange behavior LyxWin qt 1.3.5 - possibly relating to Bibtex

2005-05-31 Thread Ekkehart Schlicht

Matej wrote:

Could you please some description of the solution here, 
please, so that it could be found in archives?



Mike noted that, with babel+fancyhdr+natbib
the problem occurs in large documents with

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\fancyhead[CE]{\MakeUppercase\leftmark}
\fancyhead[CO]{\MakeUppercase\rightmark}

and seems to be due to the \MakeUppercase command. If you
move this to the marking commands like

\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{#1}}}

\fancyhead[CE]{\leftmark}
\fancyhead[CO]{\rightmark}

the problem does not occur. The reason remains opaque.

Ekkehart



lyx pipe

2005-05-31 Thread Wolfgang Engelmann
Having installed JabRef I would like to pipe citations into Lyx. According to 
the Extended Lyx help file I have to have the Lyx Server activated and need 
for that the entrance
\serverpipe/home/my-home-directory/.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
BearbeitenEinstellungenPaths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

But when I try to pipe a reference from the bib-file into the lyx document, it 
does not work and says, the pipe does not work.

Could somebody kindly give me a hint?


Wolfgang 


Re: lyx pipe

2005-05-31 Thread Jean-Pierre Chretien

From: Wolfgang Engelmann [EMAIL PROTECTED]
To: Lyx Lyx-Usergroup lyx-users@lists.lyx.org
Subject: lyx pipe
Date: Tue, 31 May 2005 10:35:13 +0200

Having installed JabRef I would like to pipe citations into Lyx. According to 
the Extended Lyx help file I have to have the Lyx Server activated and need 
for that the entrance
\serverpipe/home/my-home-directory/.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
BearbeitenEinstellungenPaths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

I have to set
/home/jp/.lyxpipe
to make it work with tkbibtex
(/home/jp/ fails).
I guess it must be similat with JabRef.

HTH

-- 
Jean-Pierre



Re[2]: find/replace saving permanent

2005-05-31 Thread Andrei Popov
Hello Paul,

Monday, May 30, 2005, 10:53:59 PM, you wrote:

 Perhaps you should do your find/replace work in a better text
 editor, such as vim. Or in your CAT (computer-aided translation)
 program?

 Kevin: could you please give me an example of a CAT program?

There are generally two types of CAT software -- MT (machine
translation) and TM (translation memory) software.

TM-software is like @Prompt(www.datacal.com/s-promt-eng-rus.htm) or
babelfish.altavista.com, the software really translates for you, but
the quality is often lousy, and there are glaring mistakes.

Translation Memory software, by contrast, is a tool for professionals
that operates with sentences and phrases, not individual words,
features a consistent glossary, fuzzy matches and more.

It does NOT translate for you, but rather presents you with matches
for things you previously translated. Works great with software
documentation, btw.

Nowadays the line between MT and TM is blurred a bit, since many MT
solutions try to incorporate TM features.

What software is available depends on the OS. For Windows you can use
Trados (TM, costs a lot!), for Linux there's OmegaT (GPL, TM,
Java-based, so really cross-platform).

I don't know of any decent MT software for Linux (like @Prompt for
Win32) except Pravda, but it's English-Russian only.

Besides, if quality translation is your goal, I'd never recommend
Machine Translation anyway. Go for Translation Memory solutions.

-- 
WBR,
Andrei Popov

Using LyX 1.3.4 on Linux



Re: lyx pipe

2005-05-31 Thread Kevin Pfeiffer
Jean-Pierre Chretien writes:
 Having installed JabRef I would like to pipe citations into Lyx.
  According to the Extended Lyx help file I have to have the Lyx
  Server activated and need for that the entrance
 \serverpipe/home/my-home-directory/.lyxpipe
 in preferences
 and it also referes to the Lyx Documentation (without specifying
  which).
 
 I went to
 BearbeitenEinstellungenPaths
 in Preferences
 and selected /home/wolfgang
 in Lyx-Server-Weiterleitung

 I have to set
 /home/jp/.lyxpipe
 to make it work with tkbibtex
 (/home/jp/ fails).
 I guess it must be similat with JabRef.

I have ~/.lyx/lyxpipe but the key point is that bibliography tool and 
LyX agree on the path _and_ pipename!

In some documentation (perhaps even from LyX?) you'll also see 
~/.lyxpipe (with a leading dot and no .lyx directory). This caused me 
some confusion initially as well.

To make things slightly more confusing, lyxpipe is only the root 
basename; when the pipes are created, LyX appends .in and .out 
automatically so that if you look in the directory where they are located 
you'll see lyxpipe.in and lyxpipe.out

-K

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: lyx pipe

2005-05-31 Thread Jean-Pierre Chretien

From: Kevin Pfeiffer [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Subject: Re: lyx pipe
Date: Tue, 31 May 2005 09:43:23 +0200

Jean-Pierre Chretien writes:


I have ~/.lyx/lyxpipe but the key point is that bibliography tool and 
LyX agree on the path _and_ pipename!

OK, tkbibtex waits for ~/.lyxpipe.in, and no other place.


In some documentation (perhaps even from LyX?) you'll also see 
~/.lyxpipe (with a leading dot and no .lyx directory). This caused me 
some confusion initially as well.

To make things slightly more confusing, lyxpipe is only the root 
basename; when the pipes are created, LyX appends .in and .out 
automatically so that if you look in the directory where they are located 
you'll see lyxpipe.in and lyxpipe.out

Sure, the reference that you should type in the layout-Inputs menu is
some_path_to_lyxpipe/.lyxpipe
If set in the home dir, you should control that
-lyx
-ls ~/.lyxpipe*
gets the created pipes, which are destyot]yed upon normal quit of lyx, but NOT
by abnormal action (lyx fault or window/os exit).
As the message tells you, you must clean ~/.lyxpipe.* in that case, as
the pipe does not work.

-- 
Jean-Pierre




Re: Force in-line equations to one line

2005-05-31 Thread Johan Ingvast
On Tue, 31 May 2005, Roger McMurtrie wrote:

 Does anybody know how to stop, other than forcing a line break, a short 
 in-line equation from being split into two parts by an automatic line break?
Put it inside a box, using ert, something like
ERT \mbox{

your equation

ERT }


It should also be possible to have the mbox inside the mathenvironment but
I did not get it to work when I tried, so have the mbox outside using
erts.

/johan


-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas --- Walking robot proj
tel +46 (0)8 790 95 36  mob. +46 (0)70 34 34 498



Re: lyx pipe

2005-05-31 Thread Geoffrey Lloyd
It depends what system you are running Lyx on.  If it is a Windows box the 
pipe feature doesn't work.


Geoff
- Original Message - 
From: Wolfgang Engelmann [EMAIL PROTECTED]

To: Lyx Lyx-Usergroup lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 9:35 AM
Subject: lyx pipe


Having installed JabRef I would like to pipe citations into Lyx. According 
to
the Extended Lyx help file I have to have the Lyx Server activated and 
need

for that the entrance
\serverpipe/home/my-home-directory/.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
BearbeitenEinstellungenPaths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

But when I try to pipe a reference from the bib-file into the lyx 
document, it

does not work and says, the pipe does not work.

Could somebody kindly give me a hint?


Wolfgang





Re: lyx pipe

2005-05-31 Thread Wolfgang Engelmann
Am Dienstag, 31. Mai 2005 10:25 schrieb Geoffrey Lloyd:
 It depends what system you are running Lyx on.  If it is a Windows box the
 pipe feature doesn't work.

SuSe9.2

I want to thank all those who gave hints. I think my problem was that I have 
under /home
/home-matrox-suse
and /home/wolfgang
and that my .lyx was on the wrong one

Will rearrange it and try again

thanks anyway

Wolfgang


Re: lyx pipe

2005-05-31 Thread G. Milde
On 31.05.05, Jean-Pierre Chretien wrote:
 From: Kevin Pfeiffer [EMAIL PROTECTED]
 Jean-Pierre Chretien writes:

 I have ~/.lyx/lyxpipe but the key point is that bibliography tool and 
 LyX agree on the path _and_ pipename!
 
 OK, tkbibtex waits for ~/.lyxpipe.in, and no other place.

A file ~/.tkbibtexrc with the line

   set LyXpipe $env(HOME)/.lyx/lyxpipe

will change this to the modern default.
 

 Sure, the reference that you should type in the layout-Inputs menu is
 some_path_to_lyxpipe/.lyxpipe

I'd prefer

  some_path_to_lyxpipe/lyxpipe_base_name

(no dot in the basename, if the path is already hidden) with the two most
common cases

  ~/.lyxpipe(old)
  ~/.lyx/lyxpipe(new)


Günter

-- 
G.Milde web.de


float wrap for equations and figures

2005-05-31 Thread Ingar Pareliussen
Hi

I am trying to get floatwrap working in a document with both equations and 
figures (floatflt). I started by having only equation and thus I redefined 
the figure caption to Equation and it worked like a charm, but now I need to 
put some figures in there as well...

So I tried to define my own figure float environment, but I have problems. As 
I do not really know what I am doing ;) I would be obliged if someone could 
try to point me in the right direction. 

How do I get a new figurefloat environment with its own counters and 
figurename without changing the figurefloat ?

Ingar






Latex import...AGAIN!

2005-05-31 Thread Nicolas
Hei!

I know this issue has already been treated in this list
(http://www.mail-archive.com/lyx-users@lists.lyx.org/msg39543.html), but I
still do not manage to make it work. 
I am using Lyx 1.3.5 in windows. I have also installed Python 2.4.1.
Firsdt, I tried to use the new tex2lyx tool:

$tex2lyx.exe -f -sysdir C:\tools\latex\lyx\share\lyx file.tex file.lyx

But i get this error:
package
binary_dir C:/tools/latex/lyx/bin/
system_support C:/tools/latex/lyx/share/lyx
build_support
user_support C:/Documents and Settings/humcasma/Application
Data/lyx/
locale_dir C:/tools/latex/lyx/share/locale/
document_dir C:/Documents and Settings/humcasma/My Documents
temp_dir C:/DOCUME~1/humcasma/LOCALS~1/Temp/
home_dir C:/Documents and Settings/humcasma
/package

Ignoring options 'T1' of package fontenc.
LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]
Error: Textclass '' is missing a defaultstyle.
Assertion triggered in const LyXLayout_ptr LyXTextClass::operator[](const
std::string) const by failing check !name.empty() in file
lyxtextclass.C:800

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

I know this error has previously been reported in this list
(http://www.mail-archive.com/lyx-users@lists.lyx.org/msg29951.html), but no
answer was given.

Any hint?


I have also tried to import with the old Relyx. In that case I manage to
create a Lyx 2.15 file:

$.\perl.exe -S .\reLyX -f file.tex
reLyX directory is: C:/tools/latex/lyx/share/lyx/reLyX
Use of uninitialized value at
C:/tools/latex/lyx/share/lyx/reLyX/reLyXmain.pl line 58.
reLyX, the LaTeX to LyX translator. Revision date 2003/01/20

Reading LaTeX command syntax
(file.tex: Splitting Preamble
Creating LyX preamble
Reading layout file
Cleaning... Translating... Writing... )
Deleting temp files
Finished successfully!

I also manage to obtain a 221 version lyx file by running either the lyx2lyx
program that comes with tex2lyx, or the original one:

$python C:\tools\latex\lyx\share\lyx\lyx2lyx\lyx2lyx --to 221 --output
file_221.lyx file.lyx

But I get this message: Version does not match file format, discarding it.

And  when I open the file in Lyx I get these errors:

Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
LyX: \end_deeper: depth is already null [around line 1595 of file
C:/tools/latex/lyx/bin/file_221.lyx]
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: Tabular
ERROR (Paragraph::DepthHook): no hook.
ERROR (Paragraph::DepthHook): no hook.
ERROR (Paragraph::DepthHook): no hook.
...

I really need to make this work, so if someone can help me I would be very
grateful! Thanks in advance!

Regards, 
Nicolás








Re: Latex import...AGAIN!

2005-05-31 Thread Georg Baum
Nicolas wrote:

 Ignoring options 'T1' of package fontenc.
 LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
 C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]

That file is broken and was fixed 2 weeks ago. Replace it with the version
you can get at
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
and try again.

It seems that the tex2lyx packages on the wiki need to be updated!


Georg



Re: Latex import...AGAIN!

2005-05-31 Thread Angus Leeming
Georg Baum wrote:
 Ignoring options 'T1' of package fontenc.
 LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
 C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]
 
 That file is broken and was fixed 2 weeks ago. Replace it with the
 version you can get at
 http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
 and try again.

Are you sure that's the reason? MaxCounter dissappeared from the layout 
files in November 2003 (Eg llncs.layout revision 1.11). It appears that 
the problem is that tex2lyx is accessing LyX 1.3.5's layout files, no?

Ie, if you were to remove the -sysdir ... part of the command:

$tex2lyx.exe -f -sysdir C:\tools\latex\lyx\share\lyx file.tex file.lyx

then things would just work.

 It seems that the tex2lyx packages on the wiki need to be updated!

Thanks for the heads up. I'll try and do so ASAP.

-- 
Angus



Re: Latex import...AGAIN!

2005-05-31 Thread Georg Baum
Angus Leeming wrote:

 Georg Baum wrote:
 That file is broken and was fixed 2 weeks ago. Replace it with the
 version you can get at
 http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
 and try again.
 
 Are you sure that's the reason?

Not at all. Thanks for the correction. Nevertheless there were still errors
in some layout files that Jean-Marc fixed 2 weeks ago. I remember having
problems with MaxCounter just the day before that fix, but that was another
layout file.


Georg



colorizing section headings

2005-05-31 Thread Peter Harkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to colorize my section headings, and I can't quite get it
right. I've got some LaTeX (below) that's almost it, but the background
box is taller than I want; I'd like it to only be a little taller than
the text of the section heading. Can anyone tweak this to the right
height?

\usepackage{color}
\let\mySection\section
\renewcommand\section[1]{%
\protect\textcolor{blue}{%
\colorbox{green}{%
\parbox{\columnwidth}{%
\mySection[#1]{#1}
}%
}%
}%
}%


In case you're wondering, the ugly blue on green is just for testing.


- --
Peter Harkins-ph at malaprop.org-http://malaprop.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: If you don't know what this is, it's OK to ignore it.

iD8DBQFCnI9Va6PWv6+ALKoRAg5jAJ90HiO32yDQqjhZXoItaMJGfWARbQCeN4Kr
SmUTjfeXNfrIAHiU4ijN/oA=
=bVIr
-END PGP SIGNATURE-


Bug in the navigate menu (was: Navigate menu: Refs mean labels?)

2005-05-31 Thread Sven Schreiber
Sven Schreiber wrote:

 While creating a formal bug in bugzilla for my suggestion to include all
 inset types in the navigate menu (1895), I stumbled over the following
 thing:
 
 The Navigate-Refs menu entry doesn't take me to the next ref inset, but
 to the next label inset. (lyx 1.3.5 on windows) Is this a bug or a feature?
 

Since nobody answered the previous message I chose a more dramatic title
this time ;-)

If nobody tells me the good reason for the above behavior, I am going to
post another formal bug.

Or am I the only one who is experiencing this, maybe windows-specific or
whatever? Is it me who is mis-interpreting labels as refs or vice versa?

I'm all ears...
Sven


Re: Bug in the navigate menu

2005-05-31 Thread Jean-Marc Lasgouttes
 Sven == Sven Schreiber [EMAIL PROTECTED] writes:

Sven Since nobody answered the previous message I chose a more
Sven dramatic title this time ;-)

Sven If nobody tells me the good reason for the above behavior, I am
Sven going to post another formal bug.

As far as I know, this jumps to the label corresponding to the ref at
cursor. Does this answer your question? 

JMarc


Re: colorizing section headings

2005-05-31 Thread Matej Cepl
Peter Harkins wrote:
 I'm trying to colorize my section headings, and I can't quite get it
 right. I've got some LaTeX (below) that's almost it, but the background
 box is taller than I want; I'd like it to only be a little taller than
 the text of the section heading. Can anyone tweak this to the right
 height?
 
 \usepackage{color}
 \let\mySection\section
 \renewcommand\section[1]{%

You cannot change sections so easily -- use titlesec package (it has
extensive documentation how to use it).

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
But if we find we have left our bones to bleach in these desert
sands for nothing, beware the fury of the legions...
  -- Centurion in a letter home from North Africa
 3rd Century




Re: Bug in the navigate menu (was: Navigate menu: Refs mean labels?)

2005-05-31 Thread Juergen Spitzmueller
Sven Schreiber wrote:

 The Navigate-Refs menu entry doesn't take me to the next ref inset, but
 to the next label inset. (lyx 1.3.5 on windows) Is this a bug or a
 feature?
 
 
 Since nobody answered the previous message I chose a more dramatic title
 this time ;-)
 
 If nobody tells me the good reason for the above behavior, I am going to
 post another formal bug.

The naming has been changed in the development version (1.4) to Goto Label
recently. For the 1.3.x version, such a change is not intended, I think.

Jürgen



Re: Bug in the navigate menu

2005-05-31 Thread Sven Schreiber
Jean-Marc Lasgouttes wrote:

Sven == Sven Schreiber [EMAIL PROTECTED] writes:
 
 
 Sven Since nobody answered the previous message I chose a more
 Sven dramatic title this time ;-)
 
 Sven If nobody tells me the good reason for the above behavior, I am
 Sven going to post another formal bug.
 
 As far as I know, this jumps to the label corresponding to the ref at
 cursor. Does this answer your question? 
 
 JMarc
 
 
Yes it does, thank you. I was confused by the current situation because
of three things:
1. Calling this ref is really counter-intuitive; Jürgen said in the
other reply that in the future this will be called goto label, which
is much better, so thanks for that change.
2. The cursor just seems to jump somewhere into the appropriate
paragraph, not right next to the label, so the intended functionality
doesn't become very obvious to the uninitiated. (This is probably a
known issue I would assume.)
3. My document just has quite a few labels and cross-refs, so that made
it more difficult for me to disentangle things (as if you cared...)

-sven


Re: Latex import...AGAIN!

2005-05-31 Thread Angus Leeming
Angus Leeming wrote:
 It seems that the tex2lyx packages on the wiki need to be updated!
 
 Thanks for the heads up. I'll try and do so ASAP.

I've updated the tex2lyx packages for Windows and for Fedora Core 3.

-- 
Angus



Re: Generating PDF files with pdftex/pdftex_t type images

2005-05-31 Thread Omair-Inam Abdul-Matin

Ok,

tex2pdf was behaving strangely.  I changed my pdflatex program to 
tex2pdf (I followed all the instructions for configuring, etc. on the 
tex2pdf site).  When I tried to convert to pdf most of the times I would 
get the message,


'tex2pdf' is not recognized as an internal or external command,
operable program or batch file.

The weird thing is, some of the times a pdf file was generated. 
Unfortunately, in the images that came out the latex text was displayed 
but not the postscript part (the lines and other stuff).


I use the perl script that I've given at the end of the message for 
batch converting all my xfig images into pdftex, pstex or eps format as 
needed. Then I'm using pdflatex inside LyX for the export.  However, I 
had to solve a number of problems on windows:


1. The pdftex/pdftex_t combo file exported by xfig causes an error in 
pdflatex since pdftex is not recognized as an image format.  However, if 
I change the pdftex file to pdf and change the 
\includegraphics{file.pdftex} statement in the pdftex_t file to 
\includegraphics{file.pdf} it works fine.  The script basically 
automates this process.
2. The pdftex file generated by xfig is normally rotated so that when 
the pdf is generated the image needs to be rotated to be placed 
properly. To solve this I need to use fig2dev with the -p flag (portrait 
mode)


Some more info about the script for those that are interested.
I'm typing up my thesis which is located in multiple directories, each 
of which has an images subdirectory.  The script looks for a tex_images 
file which contains a list of all the images in the directory which 
contain latex text and must therefore be converted to pstex/pdftex 
format.  It then iterates through each fig image and converts it to a 
pdftex and pstex, or eps format as needed.


My LyX version is 1.3.5 and I'm using the fig2dev script that comes with 
cygwin... for those who are interested.


Omair

#! /usr/bin/perl
sub read_file_names {
my($file_name);
$file_name = @_[0];
open(FILE_HANDLE,$file_name) ||
die unable to open $file_name;
while(chomp($line = FILE_HANDLE)) {
#print next filename: $line\n;
$file_names{$line} = ;
}
return %file_names;
}

sub create_tex_image {
my $dir, $prefix, $ext;
($dir, $prefix, $tex_ext, $img_ext,$img_out_ext) = @_;
$tex_filename = $dir/$prefix.$tex_ext;
open TEMP_FILE, $tex_filename or die Couldn't open 
$prefix.$tex_ext;

print TEMP_FILE \\begin{picture}(0,0)\%\n;
print TEMP_FILE \\includegraphics{$prefix.$img_out_ext}\%\n;
#print \\includegraphics{$prefix.$img_out_ext}\%\n;
print TEMP_FILE \\end{picture}\%\n;
close TEMP_FILE or die Couldn't close $prefix.$tex_ext;
# append tex stuff to includegraphics text
$cmd = fig2dev -L $tex_ext $dir/images/$prefix.fig  $tex_filename;
print $cmd . \n;
system($cmd);
$cmd = cp $dir/$prefix.$tex_ext ./;
print $cmd . \n;
system($cmd);
$cmd = fig2dev -L $img_ext -p 1 $dir/images/$prefix.fig  
$dir/$prefix.$img_out_ext;

print $cmd . \n;
system($cmd);
$cmd = cp $dir/$prefix.$img_out_ext ./;
print $cmd . \n;
system($cmd);
}

sub my_main {
# the directories in my thesis directory
@dirs = qw/design impl survey/;
[EMAIL PROTECTED] = qw/survey/;
foreach $dir(@dirs) {
opendir(CUR_DIR,$dir/images);
print( Processing directory: $dir  \n);
# read file names from tex_images
%filenames = read_file_names($dir/images/tex_images);
#print %filenames;

# iterate thru files in directory
while ($name = readdir(CUR_DIR)) {

if ($name =~ /\.fig$/) {
($prefix, $suffix) = split /\./,$name;
#print Checking for $prefix\n;
if (exists($filenames{$prefix}))  {
# create pdftex and pstex files
print Creating $prefix.pdftex...\n;
create_tex_image($dir,$prefix,pdftex_t,pdftex,pdf);
create_tex_image($dir,$prefix,pstex_t,pstex,pstex);
}
else {
# create eps files
print Creating $prefix.eps...\n;
$cmd = fig2dev -L eps $dir/images/$name 
. $dir/images/$prefix.eps;
print($cmd\n);
system($cmd);
}
}
}
}

}

# main method
my_main();

Jean-Pierre Chretien wrote:

To: lyx-users@lists.lyx.org
From: Angus Leeming [EMAIL PROTECTED]
Subject: Re: Generating PDF files with pdftex/pdftex_t type images
Date: Mon, 30 May 2005 17:08:00 +0100

Omair-Inam Abdul-Matin wrote:



Hi,

I'm using Windows and I'm having trouble generating PDF files of
documents in which I have some Xfig images with Latex text in them.




I've tried using tex2pdf on windows.  With tex2pdf the error message is
suppressed but my final pdf file still doesn't include 

help! which version??

2005-05-31 Thread Srinivas Nedunuri
Hello, I am trying to install Lyx on my machine (a Dell running Debian 
Linux). I went to the download page for binaries and was confronted with 
the following list


File: lyx-1.3.5-1fc2_qt.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1fc2_qt.i386.rpm 	5945 
KB 	12/07/04 	13:30:00
File: lyx-1.3.5-1fc2_xforms.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1fc2_xforms.i386.rpm 
5822 KB 	12/07/04 	13:33:00
File: lyx-1.3.5-1fc3_qt.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1fc3_qt.i386.rpm 	5784 
KB 	03/09/05 	09:39:00
File: lyx-1.3.5-1mdk101_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1mdk101_qt.i586.rpm 
6290 KB 	01/07/05 	14:32:00
File: lyx-1.3.5-1mdk10_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1mdk10_qt.i586.rpm 
5771 KB 	12/07/04 	13:35:00
File: lyx-1.3.5-1rhel3_qt.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1rhel3_qt.i386.rpm 
5022 KB 	12/07/04 	13:37:00
File: lyx-1.3.5-1suse90_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1suse90_qt.i586.rpm 
6365 KB 	12/07/04 	13:39:00
File: lyx-1.3.5-1suse90_xforms.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1suse90_xforms.i586.rpm 	6276 
KB 	12/07/04 	13:42:00
File: lyx-1.3.5-1suse91_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1suse91_qt.i586.rpm 
6270 KB 	12/07/04 	13:44:00
File: lyx-1.3.5-4macos_aqua.tgz 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-4macos_aqua.tgz



Can anyone tell me which version it is I need?
thanks


Re: help! which version??

2005-05-31 Thread Angus Leeming

Srinivas Nedunuri wrote:
Hello, I am trying to install Lyx on my machine (a Dell running Debian 
Linux). I went to the download page for binaries and was confronted with 
the following list


[ snip list ]


Can anyone tell me which version it is I need?


None of them :) It's on apt.
http://www.linuxquestions.org/questions/showthread.php?threadid=256875


thanks





help with layouts listbox in toolbar

2005-05-31 Thread solfog
I have lyx from debian unstable 1.3.4, and lyx --version shows:
Configuration
  Host type:  i686-pc-linux-gnu
  Special build flags:warnings assertions
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (3.3.3)
  C++ Compiler flags:  -g -O2 -fno-exceptions -W -Wall
  Linker flags:
  Frontend:   qt
Qt version:   3.2.3
  LyX binary dir: /usr/bin
  LyX files dir:  /usr/share/lyx


My problem is: when clicking on the layouts listbox of the toolbar, lyx (or qt)
tries to show *all* the layouts on the same window which is impossible because
there are a lot and I can't scroll down to get the one I want.
I'd like the listbox to display a list with a scrollbar, which it used to do a
while ago before I had to reinstalled debian.


Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri
I installed the Windows version of Lyx on my machine. However, when I try to 
start up Lyx, I get an error message that says lyx wasn't able to find any 
layout description... Check the contents of the file textclass.lst. I looked 
at textclass.lst in .../lyx/share/lyx but I really have no idea what I'm 
looking for.

(Also, when I first started up Lyx, and tried to install the ieeetrans package 
from the internet, the program started thrashing the disk and eventually just 
died. The above is the mssage I get when I subsequently start it up again)

thanks

RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Do you have miktex installed?

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 7:52 PM
To: lyx-users@lists.lyx.org
Subject: Problem w/ Windows install: no layout description

I installed the Windows version of Lyx on my machine. However, when I try to
start up Lyx, I get an error message that says lyx wasn't able to find any
layout description... Check the contents of the file textclass.lst. I
looked at textclass.lst in .../lyx/share/lyx but I really have no idea what
I'm looking for.

(Also, when I first started up Lyx, and tried to install the ieeetrans
package from the internet, the program started thrashing the disk and
eventually just died. The above is the mssage I get when I subsequently
start it up again)

thanks



Re: Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri
Yes I do. It initially asked me about installing MikTeX and wanted to know
the name of the local package it was located in (or something like that). I
gave it the location of my MixTex install (as well as the local folder) but
it didn't like either one, so I just had it skip that step

- Original Message - 
From: Steven Ning [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 10:36 PM
Subject: RE: Problem w/ Windows install: no layout description



 Do you have miktex installed?

 Steven

 -Original Message-
 From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 31, 2005 7:52 PM
 To: lyx-users@lists.lyx.org
 Subject: Problem w/ Windows install: no layout description

 I installed the Windows version of Lyx on my machine. However, when I try
to
 start up Lyx, I get an error message that says lyx wasn't able to find
any
 layout description... Check the contents of the file textclass.lst. I
 looked at textclass.lst in .../lyx/share/lyx but I really have no idea
what
 I'm looking for.

 (Also, when I first started up Lyx, and tried to install the ieeetrans
 package from the internet, the program started thrashing the disk and
 eventually just died. The above is the mssage I get when I subsequently
 start it up again)

 thanks



RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Gah, no read-receipts please!

-Are you running the lyx version compiled with qt-noncommercial?
-if you type latex into a command prompt, does it run latex?

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 8:57 PM
To: Steven Ning; lyx-users@lists.lyx.org
Subject: Re: Problem w/ Windows install: no layout description

Yes I do. It initially asked me about installing MikTeX and wanted to know
the name of the local package it was located in (or something like that). I
gave it the location of my MixTex install (as well as the local folder) but
it didn't like either one, so I just had it skip that step

- Original Message -
From: Steven Ning [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 10:36 PM
Subject: RE: Problem w/ Windows install: no layout description



 Do you have miktex installed?

 Steven

 -Original Message-
 From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 31, 2005 7:52 PM
 To: lyx-users@lists.lyx.org
 Subject: Problem w/ Windows install: no layout description

 I installed the Windows version of Lyx on my machine. However, when I try
to
 start up Lyx, I get an error message that says lyx wasn't able to find
any
 layout description... Check the contents of the file textclass.lst. I
 looked at textclass.lst in .../lyx/share/lyx but I really have no idea
what
 I'm looking for.

 (Also, when I first started up Lyx, and tried to install the ieeetrans
 package from the internet, the program started thrashing the disk and
 eventually just died. The above is the mssage I get when I subsequently
 start it up again)

 thanks



RE: LyXwin not finding miktex -- SOLVED

2005-05-31 Thread Steven Ning
Ah, I found out what was going on. After I put the miktex binaries directory
in my PATH, I had to remove the .lyx folder in C:\Documents and
Settings\user and THEN let it reconfigure. It works now!

Thanks for the help!
Steven



Re: Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri

- Original Message - 
From: Steven Ning [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 11:23 PM
Subject: RE: Problem w/ Windows install: no layout description



 Gah, no read-receipts please!
sorry bout that. I turned it off

 -Are you running the lyx version compiled with qt-noncommercial?

 -if you type latex into a command prompt, does it run latex?
I am using the Windows binary. It's not supposed to require anything but
MikTex and some fonts (see http://home.versatel.nl/rareitsma/lyx/)


 Steven

 -Original Message-
 From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 31, 2005 8:57 PM
 To: Steven Ning; lyx-users@lists.lyx.org
 Subject: Re: Problem w/ Windows install: no layout description

 Yes I do. It initially asked me about installing MikTeX and wanted to know
 the name of the local package it was located in (or something like that).
I
 gave it the location of my MixTex install (as well as the local folder)
but
 it didn't like either one, so I just had it skip that step

 - Original Message -
 From: Steven Ning [EMAIL PROTECTED]
 To: lyx-users@lists.lyx.org
 Sent: Tuesday, May 31, 2005 10:36 PM
 Subject: RE: Problem w/ Windows install: no layout description


 
  Do you have miktex installed?
 
  Steven
 
  -Original Message-
  From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, May 31, 2005 7:52 PM
  To: lyx-users@lists.lyx.org
  Subject: Problem w/ Windows install: no layout description
 
  I installed the Windows version of Lyx on my machine. However, when I
try
 to
  start up Lyx, I get an error message that says lyx wasn't able to find
 any
  layout description... Check the contents of the file textclass.lst. I
  looked at textclass.lst in .../lyx/share/lyx but I really have no idea
 what
  I'm looking for.
 
  (Also, when I first started up Lyx, and tried to install the ieeetrans
  package from the internet, the program started thrashing the disk and
  eventually just died. The above is the mssage I get when I subsequently
  start it up again)
 
  thanks



RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Yes, according to that site, there are three versions to download. Are you
using the one called lyx-1.3.5-win32-nc.exe?
Also, latex.exe comes with miktex. If you can't run latex from any directory
in your command prompt, I'm pretty sure you need to add the miktex bin
directory to your windows PATH variable so LyX can find miktex. (see my
thread LyXwin not finding miktex)

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 9:51 PM
To: Steven Ning
Cc: lyx-users@lists.lyx.org
Subject: Re: Problem w/ Windows install: no layout description


 Gah, no read-receipts please!
sorry bout that. I turned it off

 -Are you running the lyx version compiled with qt-noncommercial?

 -if you type latex into a command prompt, does it run latex?
I am using the Windows binary. It's not supposed to require anything but
MikTex and some fonts (see http://home.versatel.nl/rareitsma/lyx/)


 Steven



Re: Strange behavior LyxWin qt 1.3.5 - possibly relating to Bibtex

2005-05-31 Thread Ekkehart Schlicht

Matej wrote:

Could you please some description of the solution here, 
please, so that it could be found in archives?



Mike noted that, with babel+fancyhdr+natbib
the problem occurs in large documents with

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\fancyhead[CE]{\MakeUppercase\leftmark}
\fancyhead[CO]{\MakeUppercase\rightmark}

and seems to be due to the \MakeUppercase command. If you
move this to the marking commands like

\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{#1}}}

\fancyhead[CE]{\leftmark}
\fancyhead[CO]{\rightmark}

the problem does not occur. The reason remains opaque.

Ekkehart



lyx pipe

2005-05-31 Thread Wolfgang Engelmann
Having installed JabRef I would like to pipe citations into Lyx. According to 
the Extended Lyx help file I have to have the Lyx Server activated and need 
for that the entrance
\serverpipe/home/my-home-directory/.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
BearbeitenEinstellungenPaths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

But when I try to pipe a reference from the bib-file into the lyx document, it 
does not work and says, the pipe does not work.

Could somebody kindly give me a hint?


Wolfgang 


Re: lyx pipe

2005-05-31 Thread Jean-Pierre Chretien

From: Wolfgang Engelmann [EMAIL PROTECTED]
To: Lyx Lyx-Usergroup lyx-users@lists.lyx.org
Subject: lyx pipe
Date: Tue, 31 May 2005 10:35:13 +0200

Having installed JabRef I would like to pipe citations into Lyx. According to 
the Extended Lyx help file I have to have the Lyx Server activated and need 
for that the entrance
\serverpipe/home/my-home-directory/.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
BearbeitenEinstellungenPaths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

I have to set
/home/jp/.lyxpipe
to make it work with tkbibtex
(/home/jp/ fails).
I guess it must be similat with JabRef.

HTH

-- 
Jean-Pierre



Re[2]: find/replace saving permanent

2005-05-31 Thread Andrei Popov
Hello Paul,

Monday, May 30, 2005, 10:53:59 PM, you wrote:

 Perhaps you should do your find/replace work in a better text
 editor, such as vim. Or in your CAT (computer-aided translation)
 program?

 Kevin: could you please give me an example of a CAT program?

There are generally two types of CAT software -- MT (machine
translation) and TM (translation memory) software.

TM-software is like @Prompt(www.datacal.com/s-promt-eng-rus.htm) or
babelfish.altavista.com, the software really translates for you, but
the quality is often lousy, and there are glaring mistakes.

Translation Memory software, by contrast, is a tool for professionals
that operates with sentences and phrases, not individual words,
features a consistent glossary, fuzzy matches and more.

It does NOT translate for you, but rather presents you with matches
for things you previously translated. Works great with software
documentation, btw.

Nowadays the line between MT and TM is blurred a bit, since many MT
solutions try to incorporate TM features.

What software is available depends on the OS. For Windows you can use
Trados (TM, costs a lot!), for Linux there's OmegaT (GPL, TM,
Java-based, so really cross-platform).

I don't know of any decent MT software for Linux (like @Prompt for
Win32) except Pravda, but it's English-Russian only.

Besides, if quality translation is your goal, I'd never recommend
Machine Translation anyway. Go for Translation Memory solutions.

-- 
WBR,
Andrei Popov

Using LyX 1.3.4 on Linux



Re: lyx pipe

2005-05-31 Thread Kevin Pfeiffer
Jean-Pierre Chretien writes:
 Having installed JabRef I would like to pipe citations into Lyx.
  According to the Extended Lyx help file I have to have the Lyx
  Server activated and need for that the entrance
 \serverpipe/home/my-home-directory/.lyxpipe
 in preferences
 and it also referes to the Lyx Documentation (without specifying
  which).
 
 I went to
 BearbeitenEinstellungenPaths
 in Preferences
 and selected /home/wolfgang
 in Lyx-Server-Weiterleitung

 I have to set
 /home/jp/.lyxpipe
 to make it work with tkbibtex
 (/home/jp/ fails).
 I guess it must be similat with JabRef.

I have ~/.lyx/lyxpipe but the key point is that bibliography tool and 
LyX agree on the path _and_ pipename!

In some documentation (perhaps even from LyX?) you'll also see 
~/.lyxpipe (with a leading dot and no .lyx directory). This caused me 
some confusion initially as well.

To make things slightly more confusing, lyxpipe is only the root 
basename; when the pipes are created, LyX appends .in and .out 
automatically so that if you look in the directory where they are located 
you'll see lyxpipe.in and lyxpipe.out

-K

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: lyx pipe

2005-05-31 Thread Jean-Pierre Chretien

From: Kevin Pfeiffer [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Subject: Re: lyx pipe
Date: Tue, 31 May 2005 09:43:23 +0200

Jean-Pierre Chretien writes:


I have ~/.lyx/lyxpipe but the key point is that bibliography tool and 
LyX agree on the path _and_ pipename!

OK, tkbibtex waits for ~/.lyxpipe.in, and no other place.


In some documentation (perhaps even from LyX?) you'll also see 
~/.lyxpipe (with a leading dot and no .lyx directory). This caused me 
some confusion initially as well.

To make things slightly more confusing, lyxpipe is only the root 
basename; when the pipes are created, LyX appends .in and .out 
automatically so that if you look in the directory where they are located 
you'll see lyxpipe.in and lyxpipe.out

Sure, the reference that you should type in the layout-Inputs menu is
some_path_to_lyxpipe/.lyxpipe
If set in the home dir, you should control that
-lyx
-ls ~/.lyxpipe*
gets the created pipes, which are destyot]yed upon normal quit of lyx, but NOT
by abnormal action (lyx fault or window/os exit).
As the message tells you, you must clean ~/.lyxpipe.* in that case, as
the pipe does not work.

-- 
Jean-Pierre




Re: Force in-line equations to one line

2005-05-31 Thread Johan Ingvast
On Tue, 31 May 2005, Roger McMurtrie wrote:

 Does anybody know how to stop, other than forcing a line break, a short 
 in-line equation from being split into two parts by an automatic line break?
Put it inside a box, using ert, something like
ERT \mbox{

your equation

ERT }


It should also be possible to have the mbox inside the mathenvironment but
I did not get it to work when I tried, so have the mbox outside using
erts.

/johan


-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas --- Walking robot proj
tel +46 (0)8 790 95 36  mob. +46 (0)70 34 34 498



Re: lyx pipe

2005-05-31 Thread Geoffrey Lloyd
It depends what system you are running Lyx on.  If it is a Windows box the 
pipe feature doesn't work.


Geoff
- Original Message - 
From: Wolfgang Engelmann [EMAIL PROTECTED]

To: Lyx Lyx-Usergroup lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 9:35 AM
Subject: lyx pipe


Having installed JabRef I would like to pipe citations into Lyx. According 
to
the Extended Lyx help file I have to have the Lyx Server activated and 
need

for that the entrance
\serverpipe/home/my-home-directory/.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
BearbeitenEinstellungenPaths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

But when I try to pipe a reference from the bib-file into the lyx 
document, it

does not work and says, the pipe does not work.

Could somebody kindly give me a hint?


Wolfgang





Re: lyx pipe

2005-05-31 Thread Wolfgang Engelmann
Am Dienstag, 31. Mai 2005 10:25 schrieb Geoffrey Lloyd:
 It depends what system you are running Lyx on.  If it is a Windows box the
 pipe feature doesn't work.

SuSe9.2

I want to thank all those who gave hints. I think my problem was that I have 
under /home
/home-matrox-suse
and /home/wolfgang
and that my .lyx was on the wrong one

Will rearrange it and try again

thanks anyway

Wolfgang


Re: lyx pipe

2005-05-31 Thread G. Milde
On 31.05.05, Jean-Pierre Chretien wrote:
 From: Kevin Pfeiffer [EMAIL PROTECTED]
 Jean-Pierre Chretien writes:

 I have ~/.lyx/lyxpipe but the key point is that bibliography tool and 
 LyX agree on the path _and_ pipename!
 
 OK, tkbibtex waits for ~/.lyxpipe.in, and no other place.

A file ~/.tkbibtexrc with the line

   set LyXpipe $env(HOME)/.lyx/lyxpipe

will change this to the modern default.
 

 Sure, the reference that you should type in the layout-Inputs menu is
 some_path_to_lyxpipe/.lyxpipe

I'd prefer

  some_path_to_lyxpipe/lyxpipe_base_name

(no dot in the basename, if the path is already hidden) with the two most
common cases

  ~/.lyxpipe(old)
  ~/.lyx/lyxpipe(new)


Günter

-- 
G.Milde web.de


float wrap for equations and figures

2005-05-31 Thread Ingar Pareliussen
Hi

I am trying to get floatwrap working in a document with both equations and 
figures (floatflt). I started by having only equation and thus I redefined 
the figure caption to Equation and it worked like a charm, but now I need to 
put some figures in there as well...

So I tried to define my own figure float environment, but I have problems. As 
I do not really know what I am doing ;) I would be obliged if someone could 
try to point me in the right direction. 

How do I get a new figurefloat environment with its own counters and 
figurename without changing the figurefloat ?

Ingar






Latex import...AGAIN!

2005-05-31 Thread Nicolas
Hei!

I know this issue has already been treated in this list
(http://www.mail-archive.com/lyx-users@lists.lyx.org/msg39543.html), but I
still do not manage to make it work. 
I am using Lyx 1.3.5 in windows. I have also installed Python 2.4.1.
Firsdt, I tried to use the new tex2lyx tool:

$tex2lyx.exe -f -sysdir C:\tools\latex\lyx\share\lyx file.tex file.lyx

But i get this error:
package
binary_dir C:/tools/latex/lyx/bin/
system_support C:/tools/latex/lyx/share/lyx
build_support
user_support C:/Documents and Settings/humcasma/Application
Data/lyx/
locale_dir C:/tools/latex/lyx/share/locale/
document_dir C:/Documents and Settings/humcasma/My Documents
temp_dir C:/DOCUME~1/humcasma/LOCALS~1/Temp/
home_dir C:/Documents and Settings/humcasma
/package

Ignoring options 'T1' of package fontenc.
LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]
Error: Textclass '' is missing a defaultstyle.
Assertion triggered in const LyXLayout_ptr LyXTextClass::operator[](const
std::string) const by failing check !name.empty() in file
lyxtextclass.C:800

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

I know this error has previously been reported in this list
(http://www.mail-archive.com/lyx-users@lists.lyx.org/msg29951.html), but no
answer was given.

Any hint?


I have also tried to import with the old Relyx. In that case I manage to
create a Lyx 2.15 file:

$.\perl.exe -S .\reLyX -f file.tex
reLyX directory is: C:/tools/latex/lyx/share/lyx/reLyX
Use of uninitialized value at
C:/tools/latex/lyx/share/lyx/reLyX/reLyXmain.pl line 58.
reLyX, the LaTeX to LyX translator. Revision date 2003/01/20

Reading LaTeX command syntax
(file.tex: Splitting Preamble
Creating LyX preamble
Reading layout file
Cleaning... Translating... Writing... )
Deleting temp files
Finished successfully!

I also manage to obtain a 221 version lyx file by running either the lyx2lyx
program that comes with tex2lyx, or the original one:

$python C:\tools\latex\lyx\share\lyx\lyx2lyx\lyx2lyx --to 221 --output
file_221.lyx file.lyx

But I get this message: Version does not match file format, discarding it.

And  when I open the file in Lyx I get these errors:

Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
LyX: \end_deeper: depth is already null [around line 1595 of file
C:/tools/latex/lyx/bin/file_221.lyx]
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: Tabular
ERROR (Paragraph::DepthHook): no hook.
ERROR (Paragraph::DepthHook): no hook.
ERROR (Paragraph::DepthHook): no hook.
...

I really need to make this work, so if someone can help me I would be very
grateful! Thanks in advance!

Regards, 
Nicolás








Re: Latex import...AGAIN!

2005-05-31 Thread Georg Baum
Nicolas wrote:

 Ignoring options 'T1' of package fontenc.
 LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
 C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]

That file is broken and was fixed 2 weeks ago. Replace it with the version
you can get at
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
and try again.

It seems that the tex2lyx packages on the wiki need to be updated!


Georg



Re: Latex import...AGAIN!

2005-05-31 Thread Angus Leeming
Georg Baum wrote:
 Ignoring options 'T1' of package fontenc.
 LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
 C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]
 
 That file is broken and was fixed 2 weeks ago. Replace it with the
 version you can get at
 http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
 and try again.

Are you sure that's the reason? MaxCounter dissappeared from the layout 
files in November 2003 (Eg llncs.layout revision 1.11). It appears that 
the problem is that tex2lyx is accessing LyX 1.3.5's layout files, no?

Ie, if you were to remove the -sysdir ... part of the command:

$tex2lyx.exe -f -sysdir C:\tools\latex\lyx\share\lyx file.tex file.lyx

then things would just work.

 It seems that the tex2lyx packages on the wiki need to be updated!

Thanks for the heads up. I'll try and do so ASAP.

-- 
Angus



Re: Latex import...AGAIN!

2005-05-31 Thread Georg Baum
Angus Leeming wrote:

 Georg Baum wrote:
 That file is broken and was fixed 2 weeks ago. Replace it with the
 version you can get at
 http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
 and try again.
 
 Are you sure that's the reason?

Not at all. Thanks for the correction. Nevertheless there were still errors
in some layout files that Jean-Marc fixed 2 weeks ago. I remember having
problems with MaxCounter just the day before that fix, but that was another
layout file.


Georg



colorizing section headings

2005-05-31 Thread Peter Harkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to colorize my section headings, and I can't quite get it
right. I've got some LaTeX (below) that's almost it, but the background
box is taller than I want; I'd like it to only be a little taller than
the text of the section heading. Can anyone tweak this to the right
height?

\usepackage{color}
\let\mySection\section
\renewcommand\section[1]{%
\protect\textcolor{blue}{%
\colorbox{green}{%
\parbox{\columnwidth}{%
\mySection[#1]{#1}
}%
}%
}%
}%


In case you're wondering, the ugly blue on green is just for testing.


- --
Peter Harkins-ph at malaprop.org-http://malaprop.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: If you don't know what this is, it's OK to ignore it.

iD8DBQFCnI9Va6PWv6+ALKoRAg5jAJ90HiO32yDQqjhZXoItaMJGfWARbQCeN4Kr
SmUTjfeXNfrIAHiU4ijN/oA=
=bVIr
-END PGP SIGNATURE-


Bug in the navigate menu (was: Navigate menu: Refs mean labels?)

2005-05-31 Thread Sven Schreiber
Sven Schreiber wrote:

 While creating a formal bug in bugzilla for my suggestion to include all
 inset types in the navigate menu (1895), I stumbled over the following
 thing:
 
 The Navigate-Refs menu entry doesn't take me to the next ref inset, but
 to the next label inset. (lyx 1.3.5 on windows) Is this a bug or a feature?
 

Since nobody answered the previous message I chose a more dramatic title
this time ;-)

If nobody tells me the good reason for the above behavior, I am going to
post another formal bug.

Or am I the only one who is experiencing this, maybe windows-specific or
whatever? Is it me who is mis-interpreting labels as refs or vice versa?

I'm all ears...
Sven


Re: Bug in the navigate menu

2005-05-31 Thread Jean-Marc Lasgouttes
 Sven == Sven Schreiber [EMAIL PROTECTED] writes:

Sven Since nobody answered the previous message I chose a more
Sven dramatic title this time ;-)

Sven If nobody tells me the good reason for the above behavior, I am
Sven going to post another formal bug.

As far as I know, this jumps to the label corresponding to the ref at
cursor. Does this answer your question? 

JMarc


Re: colorizing section headings

2005-05-31 Thread Matej Cepl
Peter Harkins wrote:
 I'm trying to colorize my section headings, and I can't quite get it
 right. I've got some LaTeX (below) that's almost it, but the background
 box is taller than I want; I'd like it to only be a little taller than
 the text of the section heading. Can anyone tweak this to the right
 height?
 
 \usepackage{color}
 \let\mySection\section
 \renewcommand\section[1]{%

You cannot change sections so easily -- use titlesec package (it has
extensive documentation how to use it).

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
But if we find we have left our bones to bleach in these desert
sands for nothing, beware the fury of the legions...
  -- Centurion in a letter home from North Africa
 3rd Century




Re: Bug in the navigate menu (was: Navigate menu: Refs mean labels?)

2005-05-31 Thread Juergen Spitzmueller
Sven Schreiber wrote:

 The Navigate-Refs menu entry doesn't take me to the next ref inset, but
 to the next label inset. (lyx 1.3.5 on windows) Is this a bug or a
 feature?
 
 
 Since nobody answered the previous message I chose a more dramatic title
 this time ;-)
 
 If nobody tells me the good reason for the above behavior, I am going to
 post another formal bug.

The naming has been changed in the development version (1.4) to Goto Label
recently. For the 1.3.x version, such a change is not intended, I think.

Jürgen



Re: Bug in the navigate menu

2005-05-31 Thread Sven Schreiber
Jean-Marc Lasgouttes wrote:

Sven == Sven Schreiber [EMAIL PROTECTED] writes:
 
 
 Sven Since nobody answered the previous message I chose a more
 Sven dramatic title this time ;-)
 
 Sven If nobody tells me the good reason for the above behavior, I am
 Sven going to post another formal bug.
 
 As far as I know, this jumps to the label corresponding to the ref at
 cursor. Does this answer your question? 
 
 JMarc
 
 
Yes it does, thank you. I was confused by the current situation because
of three things:
1. Calling this ref is really counter-intuitive; Jürgen said in the
other reply that in the future this will be called goto label, which
is much better, so thanks for that change.
2. The cursor just seems to jump somewhere into the appropriate
paragraph, not right next to the label, so the intended functionality
doesn't become very obvious to the uninitiated. (This is probably a
known issue I would assume.)
3. My document just has quite a few labels and cross-refs, so that made
it more difficult for me to disentangle things (as if you cared...)

-sven


Re: Latex import...AGAIN!

2005-05-31 Thread Angus Leeming
Angus Leeming wrote:
 It seems that the tex2lyx packages on the wiki need to be updated!
 
 Thanks for the heads up. I'll try and do so ASAP.

I've updated the tex2lyx packages for Windows and for Fedora Core 3.

-- 
Angus



Re: Generating PDF files with pdftex/pdftex_t type images

2005-05-31 Thread Omair-Inam Abdul-Matin

Ok,

tex2pdf was behaving strangely.  I changed my pdflatex program to 
tex2pdf (I followed all the instructions for configuring, etc. on the 
tex2pdf site).  When I tried to convert to pdf most of the times I would 
get the message,


'tex2pdf' is not recognized as an internal or external command,
operable program or batch file.

The weird thing is, some of the times a pdf file was generated. 
Unfortunately, in the images that came out the latex text was displayed 
but not the postscript part (the lines and other stuff).


I use the perl script that I've given at the end of the message for 
batch converting all my xfig images into pdftex, pstex or eps format as 
needed. Then I'm using pdflatex inside LyX for the export.  However, I 
had to solve a number of problems on windows:


1. The pdftex/pdftex_t combo file exported by xfig causes an error in 
pdflatex since pdftex is not recognized as an image format.  However, if 
I change the pdftex file to pdf and change the 
\includegraphics{file.pdftex} statement in the pdftex_t file to 
\includegraphics{file.pdf} it works fine.  The script basically 
automates this process.
2. The pdftex file generated by xfig is normally rotated so that when 
the pdf is generated the image needs to be rotated to be placed 
properly. To solve this I need to use fig2dev with the -p flag (portrait 
mode)


Some more info about the script for those that are interested.
I'm typing up my thesis which is located in multiple directories, each 
of which has an images subdirectory.  The script looks for a tex_images 
file which contains a list of all the images in the directory which 
contain latex text and must therefore be converted to pstex/pdftex 
format.  It then iterates through each fig image and converts it to a 
pdftex and pstex, or eps format as needed.


My LyX version is 1.3.5 and I'm using the fig2dev script that comes with 
cygwin... for those who are interested.


Omair

#! /usr/bin/perl
sub read_file_names {
my($file_name);
$file_name = @_[0];
open(FILE_HANDLE,$file_name) ||
die unable to open $file_name;
while(chomp($line = FILE_HANDLE)) {
#print next filename: $line\n;
$file_names{$line} = ;
}
return %file_names;
}

sub create_tex_image {
my $dir, $prefix, $ext;
($dir, $prefix, $tex_ext, $img_ext,$img_out_ext) = @_;
$tex_filename = $dir/$prefix.$tex_ext;
open TEMP_FILE, $tex_filename or die Couldn't open 
$prefix.$tex_ext;

print TEMP_FILE \\begin{picture}(0,0)\%\n;
print TEMP_FILE \\includegraphics{$prefix.$img_out_ext}\%\n;
#print \\includegraphics{$prefix.$img_out_ext}\%\n;
print TEMP_FILE \\end{picture}\%\n;
close TEMP_FILE or die Couldn't close $prefix.$tex_ext;
# append tex stuff to includegraphics text
$cmd = fig2dev -L $tex_ext $dir/images/$prefix.fig  $tex_filename;
print $cmd . \n;
system($cmd);
$cmd = cp $dir/$prefix.$tex_ext ./;
print $cmd . \n;
system($cmd);
$cmd = fig2dev -L $img_ext -p 1 $dir/images/$prefix.fig  
$dir/$prefix.$img_out_ext;

print $cmd . \n;
system($cmd);
$cmd = cp $dir/$prefix.$img_out_ext ./;
print $cmd . \n;
system($cmd);
}

sub my_main {
# the directories in my thesis directory
@dirs = qw/design impl survey/;
[EMAIL PROTECTED] = qw/survey/;
foreach $dir(@dirs) {
opendir(CUR_DIR,$dir/images);
print( Processing directory: $dir  \n);
# read file names from tex_images
%filenames = read_file_names($dir/images/tex_images);
#print %filenames;

# iterate thru files in directory
while ($name = readdir(CUR_DIR)) {

if ($name =~ /\.fig$/) {
($prefix, $suffix) = split /\./,$name;
#print Checking for $prefix\n;
if (exists($filenames{$prefix}))  {
# create pdftex and pstex files
print Creating $prefix.pdftex...\n;
create_tex_image($dir,$prefix,pdftex_t,pdftex,pdf);
create_tex_image($dir,$prefix,pstex_t,pstex,pstex);
}
else {
# create eps files
print Creating $prefix.eps...\n;
$cmd = fig2dev -L eps $dir/images/$name 
. $dir/images/$prefix.eps;
print($cmd\n);
system($cmd);
}
}
}
}

}

# main method
my_main();

Jean-Pierre Chretien wrote:

To: lyx-users@lists.lyx.org
From: Angus Leeming [EMAIL PROTECTED]
Subject: Re: Generating PDF files with pdftex/pdftex_t type images
Date: Mon, 30 May 2005 17:08:00 +0100

Omair-Inam Abdul-Matin wrote:



Hi,

I'm using Windows and I'm having trouble generating PDF files of
documents in which I have some Xfig images with Latex text in them.




I've tried using tex2pdf on windows.  With tex2pdf the error message is
suppressed but my final pdf file still doesn't include 

help! which version??

2005-05-31 Thread Srinivas Nedunuri
Hello, I am trying to install Lyx on my machine (a Dell running Debian 
Linux). I went to the download page for binaries and was confronted with 
the following list


File: lyx-1.3.5-1fc2_qt.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1fc2_qt.i386.rpm 	5945 
KB 	12/07/04 	13:30:00
File: lyx-1.3.5-1fc2_xforms.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1fc2_xforms.i386.rpm 
5822 KB 	12/07/04 	13:33:00
File: lyx-1.3.5-1fc3_qt.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1fc3_qt.i386.rpm 	5784 
KB 	03/09/05 	09:39:00
File: lyx-1.3.5-1mdk101_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1mdk101_qt.i586.rpm 
6290 KB 	01/07/05 	14:32:00
File: lyx-1.3.5-1mdk10_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1mdk10_qt.i586.rpm 
5771 KB 	12/07/04 	13:35:00
File: lyx-1.3.5-1rhel3_qt.i386.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1rhel3_qt.i386.rpm 
5022 KB 	12/07/04 	13:37:00
File: lyx-1.3.5-1suse90_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1suse90_qt.i586.rpm 
6365 KB 	12/07/04 	13:39:00
File: lyx-1.3.5-1suse90_xforms.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1suse90_xforms.i586.rpm 	6276 
KB 	12/07/04 	13:42:00
File: lyx-1.3.5-1suse91_qt.i586.rpm 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-1suse91_qt.i586.rpm 
6270 KB 	12/07/04 	13:44:00
File: lyx-1.3.5-4macos_aqua.tgz 
ftp://ftp.lyx.org/pub/lyx/bin/1.3.5/lyx-1.3.5-4macos_aqua.tgz



Can anyone tell me which version it is I need?
thanks


Re: help! which version??

2005-05-31 Thread Angus Leeming

Srinivas Nedunuri wrote:
Hello, I am trying to install Lyx on my machine (a Dell running Debian 
Linux). I went to the download page for binaries and was confronted with 
the following list


[ snip list ]


Can anyone tell me which version it is I need?


None of them :) It's on apt.
http://www.linuxquestions.org/questions/showthread.php?threadid=256875


thanks





help with layouts listbox in toolbar

2005-05-31 Thread solfog
I have lyx from debian unstable 1.3.4, and lyx --version shows:
Configuration
  Host type:  i686-pc-linux-gnu
  Special build flags:warnings assertions
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (3.3.3)
  C++ Compiler flags:  -g -O2 -fno-exceptions -W -Wall
  Linker flags:
  Frontend:   qt
Qt version:   3.2.3
  LyX binary dir: /usr/bin
  LyX files dir:  /usr/share/lyx


My problem is: when clicking on the layouts listbox of the toolbar, lyx (or qt)
tries to show *all* the layouts on the same window which is impossible because
there are a lot and I can't scroll down to get the one I want.
I'd like the listbox to display a list with a scrollbar, which it used to do a
while ago before I had to reinstalled debian.


Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri
I installed the Windows version of Lyx on my machine. However, when I try to 
start up Lyx, I get an error message that says lyx wasn't able to find any 
layout description... Check the contents of the file textclass.lst. I looked 
at textclass.lst in .../lyx/share/lyx but I really have no idea what I'm 
looking for.

(Also, when I first started up Lyx, and tried to install the ieeetrans package 
from the internet, the program started thrashing the disk and eventually just 
died. The above is the mssage I get when I subsequently start it up again)

thanks

RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Do you have miktex installed?

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 7:52 PM
To: lyx-users@lists.lyx.org
Subject: Problem w/ Windows install: no layout description

I installed the Windows version of Lyx on my machine. However, when I try to
start up Lyx, I get an error message that says lyx wasn't able to find any
layout description... Check the contents of the file textclass.lst. I
looked at textclass.lst in .../lyx/share/lyx but I really have no idea what
I'm looking for.

(Also, when I first started up Lyx, and tried to install the ieeetrans
package from the internet, the program started thrashing the disk and
eventually just died. The above is the mssage I get when I subsequently
start it up again)

thanks



Re: Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri
Yes I do. It initially asked me about installing MikTeX and wanted to know
the name of the local package it was located in (or something like that). I
gave it the location of my MixTex install (as well as the local folder) but
it didn't like either one, so I just had it skip that step

- Original Message - 
From: Steven Ning [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 10:36 PM
Subject: RE: Problem w/ Windows install: no layout description



 Do you have miktex installed?

 Steven

 -Original Message-
 From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 31, 2005 7:52 PM
 To: lyx-users@lists.lyx.org
 Subject: Problem w/ Windows install: no layout description

 I installed the Windows version of Lyx on my machine. However, when I try
to
 start up Lyx, I get an error message that says lyx wasn't able to find
any
 layout description... Check the contents of the file textclass.lst. I
 looked at textclass.lst in .../lyx/share/lyx but I really have no idea
what
 I'm looking for.

 (Also, when I first started up Lyx, and tried to install the ieeetrans
 package from the internet, the program started thrashing the disk and
 eventually just died. The above is the mssage I get when I subsequently
 start it up again)

 thanks



RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Gah, no read-receipts please!

-Are you running the lyx version compiled with qt-noncommercial?
-if you type latex into a command prompt, does it run latex?

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 8:57 PM
To: Steven Ning; lyx-users@lists.lyx.org
Subject: Re: Problem w/ Windows install: no layout description

Yes I do. It initially asked me about installing MikTeX and wanted to know
the name of the local package it was located in (or something like that). I
gave it the location of my MixTex install (as well as the local folder) but
it didn't like either one, so I just had it skip that step

- Original Message -
From: Steven Ning [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 10:36 PM
Subject: RE: Problem w/ Windows install: no layout description



 Do you have miktex installed?

 Steven

 -Original Message-
 From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 31, 2005 7:52 PM
 To: lyx-users@lists.lyx.org
 Subject: Problem w/ Windows install: no layout description

 I installed the Windows version of Lyx on my machine. However, when I try
to
 start up Lyx, I get an error message that says lyx wasn't able to find
any
 layout description... Check the contents of the file textclass.lst. I
 looked at textclass.lst in .../lyx/share/lyx but I really have no idea
what
 I'm looking for.

 (Also, when I first started up Lyx, and tried to install the ieeetrans
 package from the internet, the program started thrashing the disk and
 eventually just died. The above is the mssage I get when I subsequently
 start it up again)

 thanks



RE: LyXwin not finding miktex -- SOLVED

2005-05-31 Thread Steven Ning
Ah, I found out what was going on. After I put the miktex binaries directory
in my PATH, I had to remove the .lyx folder in C:\Documents and
Settings\user and THEN let it reconfigure. It works now!

Thanks for the help!
Steven



Re: Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri

- Original Message - 
From: Steven Ning [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Tuesday, May 31, 2005 11:23 PM
Subject: RE: Problem w/ Windows install: no layout description



 Gah, no read-receipts please!
sorry bout that. I turned it off

 -Are you running the lyx version compiled with qt-noncommercial?

 -if you type latex into a command prompt, does it run latex?
I am using the Windows binary. It's not supposed to require anything but
MikTex and some fonts (see http://home.versatel.nl/rareitsma/lyx/)


 Steven

 -Original Message-
 From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 31, 2005 8:57 PM
 To: Steven Ning; lyx-users@lists.lyx.org
 Subject: Re: Problem w/ Windows install: no layout description

 Yes I do. It initially asked me about installing MikTeX and wanted to know
 the name of the local package it was located in (or something like that).
I
 gave it the location of my MixTex install (as well as the local folder)
but
 it didn't like either one, so I just had it skip that step

 - Original Message -
 From: Steven Ning [EMAIL PROTECTED]
 To: lyx-users@lists.lyx.org
 Sent: Tuesday, May 31, 2005 10:36 PM
 Subject: RE: Problem w/ Windows install: no layout description


 
  Do you have miktex installed?
 
  Steven
 
  -Original Message-
  From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, May 31, 2005 7:52 PM
  To: lyx-users@lists.lyx.org
  Subject: Problem w/ Windows install: no layout description
 
  I installed the Windows version of Lyx on my machine. However, when I
try
 to
  start up Lyx, I get an error message that says lyx wasn't able to find
 any
  layout description... Check the contents of the file textclass.lst. I
  looked at textclass.lst in .../lyx/share/lyx but I really have no idea
 what
  I'm looking for.
 
  (Also, when I first started up Lyx, and tried to install the ieeetrans
  package from the internet, the program started thrashing the disk and
  eventually just died. The above is the mssage I get when I subsequently
  start it up again)
 
  thanks



RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Yes, according to that site, there are three versions to download. Are you
using the one called lyx-1.3.5-win32-nc.exe?
Also, latex.exe comes with miktex. If you can't run latex from any directory
in your command prompt, I'm pretty sure you need to add the miktex bin
directory to your windows PATH variable so LyX can find miktex. (see my
thread LyXwin not finding miktex)

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 9:51 PM
To: Steven Ning
Cc: lyx-users@lists.lyx.org
Subject: Re: Problem w/ Windows install: no layout description


 Gah, no read-receipts please!
sorry bout that. I turned it off

 -Are you running the lyx version compiled with qt-noncommercial?

 -if you type latex into a command prompt, does it run latex?
I am using the Windows binary. It's not supposed to require anything but
MikTex and some fonts (see http://home.versatel.nl/rareitsma/lyx/)


 Steven



Re: Strange behavior LyxWin qt 1.3.5 - possibly relating to Bibtex

2005-05-31 Thread Ekkehart Schlicht

Matej wrote:

Could you please some description of the solution here, 
please, so that it could be found in archives?



Mike noted that, with babel+fancyhdr+natbib
the problem occurs in large documents with

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\fancyhead[CE]{\MakeUppercase\leftmark}
\fancyhead[CO]{\MakeUppercase\rightmark}

and seems to be due to the \MakeUppercase command. If you
move this to the marking commands like

\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{#1}}}

\fancyhead[CE]{\leftmark}
\fancyhead[CO]{\rightmark}

the problem does not occur. The reason remains opaque.

Ekkehart



lyx pipe

2005-05-31 Thread Wolfgang Engelmann
Having installed JabRef I would like to pipe citations into Lyx. According to 
the Extended Lyx help file I have to have the Lyx Server activated and need 
for that the entrance
\serverpipe/home//.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
Bearbeiten>Einstellungen>Paths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

But when I try to pipe a reference from the bib-file into the lyx document, it 
does not work and says, the pipe does not work.

Could somebody kindly give me a hint?


Wolfgang 


Re: lyx pipe

2005-05-31 Thread Jean-Pierre Chretien

>>From: Wolfgang Engelmann <[EMAIL PROTECTED]>
>>To: "Lyx Lyx-Usergroup" 
>>Subject: lyx pipe
>>Date: Tue, 31 May 2005 10:35:13 +0200
>>
>>Having installed JabRef I would like to pipe citations into Lyx. According to 
>>the Extended Lyx help file I have to have the Lyx Server activated and need 
>>for that the entrance
>>\serverpipe/home//.lyxpipe
>>in preferences
>>and it also referes to the Lyx Documentation (without specifying which).
>>
>>I went to
>>Bearbeiten>Einstellungen>Paths
>>in Preferences
>>and selected /home/wolfgang
>>in Lyx-Server-Weiterleitung

I have to set
/home/jp/.lyxpipe
to make it work with tkbibtex
(/home/jp/ fails).
I guess it must be similat with JabRef.

HTH

-- 
Jean-Pierre



Re[2]: find/replace saving permanent

2005-05-31 Thread Andrei Popov
Hello Paul,

Monday, May 30, 2005, 10:53:59 PM, you wrote:

>> Perhaps you should do your find/replace work in a better text
>> editor, such as vim. Or in your CAT (computer-aided translation)
>> program?

> Kevin: could you please give me an example of a CAT program?

There are generally two types of CAT software -- MT (machine
translation) and TM (translation memory) software.

TM-software is like @Prompt(www.datacal.com/s-promt-eng-rus.htm) or
babelfish.altavista.com, the software really translates for you, but
the quality is often lousy, and there are glaring mistakes.

Translation Memory software, by contrast, is a tool for professionals
that operates with sentences and phrases, not individual words,
features a consistent glossary, fuzzy matches and more.

It does NOT translate for you, but rather presents you with matches
for things you previously translated. Works great with software
documentation, btw.

Nowadays the line between MT and TM is blurred a bit, since many MT
solutions try to incorporate TM features.

What software is available depends on the OS. For Windows you can use
Trados (TM, costs a lot!), for Linux there's OmegaT (GPL, TM,
Java-based, so really cross-platform).

I don't know of any decent MT software for Linux (like @Prompt for
Win32) except "Pravda", but it's English-Russian only.

Besides, if quality translation is your goal, I'd never recommend
Machine Translation anyway. Go for Translation Memory solutions.

-- 
WBR,
Andrei Popov

Using LyX 1.3.4 on Linux



Re: lyx pipe

2005-05-31 Thread Kevin Pfeiffer
Jean-Pierre Chretien writes:
> >>Having installed JabRef I would like to pipe citations into Lyx.
> >> According to the Extended Lyx help file I have to have the Lyx
> >> Server activated and need for that the entrance
> >>\serverpipe/home//.lyxpipe
> >>in preferences
> >>and it also referes to the Lyx Documentation (without specifying
> >> which).
> >>
> >>I went to
> >>Bearbeiten>Einstellungen>Paths
> >>in Preferences
> >>and selected /home/wolfgang
> >>in Lyx-Server-Weiterleitung
>
> I have to set
> /home/jp/.lyxpipe
> to make it work with tkbibtex
> (/home/jp/ fails).
> I guess it must be similat with JabRef.

I have "~/.lyx/lyxpipe" but the key point is that bibliography tool and 
LyX agree on the path _and_ pipename!

In some documentation (perhaps even from LyX?) you'll also see 
"~/.lyxpipe" (with a leading dot and no .lyx directory). This caused me 
some confusion initially as well.

To make things slightly more confusing, "lyxpipe" is only the root 
basename; when the pipes are created, LyX appends ".in" and ".out" 
automatically so that if you look in the directory where they are located 
you'll see "lyxpipe.in" and "lyxpipe.out"

-K

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: lyx pipe

2005-05-31 Thread Jean-Pierre Chretien

>>From: Kevin Pfeiffer <[EMAIL PROTECTED]>
>>To: lyx-users@lists.lyx.org
>>Subject: Re: lyx pipe
>>Date: Tue, 31 May 2005 09:43:23 +0200
>>
>>Jean-Pierre Chretien writes:

>>
>>I have "~/.lyx/lyxpipe" but the key point is that bibliography tool and 
>>LyX agree on the path _and_ pipename!

OK, tkbibtex waits for ~/.lyxpipe.in, and no other place.

>>
>>In some documentation (perhaps even from LyX?) you'll also see 
>>"~/.lyxpipe" (with a leading dot and no .lyx directory). This caused me 
>>some confusion initially as well.
>>
>>To make things slightly more confusing, "lyxpipe" is only the root 
>>basename; when the pipes are created, LyX appends ".in" and ".out" 
>>automatically so that if you look in the directory where they are located 
>>you'll see "lyxpipe.in" and "lyxpipe.out"

Sure, the reference that you should type in the layout->Inputs menu is
/.lyxpipe
If set in the home dir, you should control that
->lyx&
->ls ~/.lyxpipe*
gets the created pipes, which are destyot]yed upon normal quit of lyx, but NOT
by abnormal action (lyx fault or window/os exit).
As the message tells you, you must clean ~/.lyxpipe.* in that case, as
the pipe does not work.

-- 
Jean-Pierre




Re: Force in-line equations to one line

2005-05-31 Thread Johan Ingvast
On Tue, 31 May 2005, Roger McMurtrie wrote:

> Does anybody know how to stop, other than forcing a line break, a short 
> in-line equation from being split into two parts by an automatic line break?
Put it inside a box, using ert, something like
ERT \mbox{

your equation

ERT }


It should also be possible to have the mbox inside the mathenvironment but
I did not get it to work when I tried, so have the mbox outside using
erts.

/johan


-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas <--- Walking robot proj
tel +46 (0)8 790 95 36  mob. +46 (0)70 34 34 498



Re: lyx pipe

2005-05-31 Thread Geoffrey Lloyd
It depends what system you are running Lyx on.  If it is a Windows box the 
pipe feature doesn't work.


Geoff
- Original Message - 
From: "Wolfgang Engelmann" <[EMAIL PROTECTED]>

To: "Lyx Lyx-Usergroup" 
Sent: Tuesday, May 31, 2005 9:35 AM
Subject: lyx pipe


Having installed JabRef I would like to pipe citations into Lyx. According 
to
the Extended Lyx help file I have to have the Lyx Server activated and 
need

for that the entrance
\serverpipe/home//.lyxpipe
in preferences
and it also referes to the Lyx Documentation (without specifying which).

I went to
Bearbeiten>Einstellungen>Paths
in Preferences
and selected /home/wolfgang
in Lyx-Server-Weiterleitung

But when I try to pipe a reference from the bib-file into the lyx 
document, it

does not work and says, the pipe does not work.

Could somebody kindly give me a hint?


Wolfgang





Re: lyx pipe

2005-05-31 Thread Wolfgang Engelmann
Am Dienstag, 31. Mai 2005 10:25 schrieb Geoffrey Lloyd:
> It depends what system you are running Lyx on.  If it is a Windows box the
> pipe feature doesn't work.

SuSe9.2

I want to thank all those who gave hints. I think my problem was that I have 
under /home
/home-matrox-suse
and /home/wolfgang
and that my .lyx was on the wrong one

Will rearrange it and try again

thanks anyway

Wolfgang


Re: lyx pipe

2005-05-31 Thread G. Milde
On 31.05.05, Jean-Pierre Chretien wrote:
> >>From: Kevin Pfeiffer <[EMAIL PROTECTED]>
> >>Jean-Pierre Chretien writes:

> >>I have "~/.lyx/lyxpipe" but the key point is that bibliography tool and 
> >>LyX agree on the path _and_ pipename!
> 
> OK, tkbibtex waits for ~/.lyxpipe.in, and no other place.

A file ~/.tkbibtexrc with the line

   set LyXpipe $env(HOME)/.lyx/lyxpipe

will change this to the "modern" default.
 

> Sure, the reference that you should type in the layout->Inputs menu is
> /.lyxpipe

I'd prefer

  /

(no dot in the basename, if the path is already hidden) with the two most
common cases

  ~/.lyxpipe(old)
  ~/.lyx/lyxpipe(new)


Günter

-- 
G.Milde web.de


float wrap for equations and figures

2005-05-31 Thread Ingar Pareliussen
Hi

I am trying to get floatwrap working in a document with both equations and 
figures (floatflt). I started by having only equation and thus I redefined 
the figure caption to Equation and it worked like a charm, but now I need to 
put some figures in there as well...

So I tried to define my own figure float environment, but I have problems. As 
I do not really know what I am doing ;) I would be obliged if someone could 
try to point me in the right direction. 

How do I get a new figurefloat environment with its own counters and 
figurename without changing the figurefloat ?

Ingar






Latex import...AGAIN!

2005-05-31 Thread Nicolas
Hei!

I know this issue has already been treated in this list
(http://www.mail-archive.com/lyx-users@lists.lyx.org/msg39543.html), but I
still do not manage to make it work. 
I am using Lyx 1.3.5 in windows. I have also installed Python 2.4.1.
Firsdt, I tried to use the new tex2lyx tool:

$tex2lyx.exe -f -sysdir C:\tools\latex\lyx\share\lyx file.tex file.lyx

But i get this error:

binary_dir C:/tools/latex/lyx/bin/
system_support C:/tools/latex/lyx/share/lyx
build_support
user_support C:/Documents and Settings/humcasma/Application
Data/lyx/
locale_dir C:/tools/latex/lyx/share/locale/
document_dir C:/Documents and Settings/humcasma/My Documents
temp_dir C:/DOCUME~1/humcasma/LOCALS~1/Temp/
home_dir C:/Documents and Settings/humcasma


Ignoring options 'T1' of package fontenc.
LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]
Error: Textclass '' is missing a defaultstyle.
Assertion triggered in const LyXLayout_ptr& LyXTextClass::operator[](const
std::string&) const by failing check "!name.empty()" in file
lyxtextclass.C:800

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

I know this error has previously been reported in this list
(http://www.mail-archive.com/lyx-users@lists.lyx.org/msg29951.html), but no
answer was given.

Any hint?


I have also tried to import with the old Relyx. In that case I manage to
create a Lyx 2.15 file:

$.\perl.exe -S .\reLyX -f file.tex
reLyX directory is: C:/tools/latex/lyx/share/lyx/reLyX
Use of uninitialized value at
C:/tools/latex/lyx/share/lyx/reLyX/reLyXmain.pl line 58.
reLyX, the LaTeX to LyX translator. Revision date 2003/01/20

Reading LaTeX command syntax
(file.tex: Splitting Preamble
Creating LyX preamble
Reading layout file
Cleaning... Translating... Writing... )
Deleting temp files
Finished successfully!

I also manage to obtain a 221 version lyx file by running either the lyx2lyx
program that comes with tex2lyx, or the original one:

$python C:\tools\latex\lyx\share\lyx\lyx2lyx\lyx2lyx --to 221 --output
file_221.lyx file.lyx

But I get this message: "Version does not match file format, discarding it."

And  when I open the file in Lyx I get these errors:

Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: LatexCommand
LyX: \end_deeper: depth is already null [around line 1595 of file
C:/tools/latex/lyx/bin/file_221.lyx]
Solitary \end_inset. Missing \begin_inset?.
Last inset read was: Tabular
ERROR (Paragraph::DepthHook): no hook.
ERROR (Paragraph::DepthHook): no hook.
ERROR (Paragraph::DepthHook): no hook.
...

I really need to make this work, so if someone can help me I would be very
grateful! Thanks in advance!

Regards, 
Nicolás








Re: Latex import...AGAIN!

2005-05-31 Thread Georg Baum
Nicolas wrote:

> Ignoring options 'T1' of package fontenc.
> LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
> C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]

That file is broken and was fixed 2 weeks ago. Replace it with the version
you can get at
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
and try again.

It seems that the tex2lyx packages on the wiki need to be updated!


Georg



Re: Latex import...AGAIN!

2005-05-31 Thread Angus Leeming
Georg Baum wrote:
>> Ignoring options 'T1' of package fontenc.
>> LyX: Unknown TextClass tag `MaxCounter' [around line 22 of file
>> C:/tools/latex/lyx/share/lyx/layouts/llncs.layout]
> 
> That file is broken and was fixed 2 weeks ago. Replace it with the
> version you can get at
> http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
> and try again.

Are you sure that's the reason? MaxCounter dissappeared from the layout 
files in November 2003 (Eg llncs.layout revision 1.11). It appears that 
the problem is that tex2lyx is accessing LyX 1.3.5's layout files, no?

Ie, if you were to remove the "-sysdir ..." part of the command:

$tex2lyx.exe -f -sysdir C:\tools\latex\lyx\share\lyx file.tex file.lyx

then things would "just work".

> It seems that the tex2lyx packages on the wiki need to be updated!

Thanks for the heads up. I'll try and do so ASAP.

-- 
Angus



Re: Latex import...AGAIN!

2005-05-31 Thread Georg Baum
Angus Leeming wrote:

> Georg Baum wrote:
>> That file is broken and was fixed 2 weeks ago. Replace it with the
>> version you can get at
>> http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/llncs.layout
>> and try again.
> 
> Are you sure that's the reason?

Not at all. Thanks for the correction. Nevertheless there were still errors
in some layout files that Jean-Marc fixed 2 weeks ago. I remember having
problems with MaxCounter just the day before that fix, but that was another
layout file.


Georg



colorizing section headings

2005-05-31 Thread Peter Harkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to colorize my section headings, and I can't quite get it
right. I've got some LaTeX (below) that's almost it, but the background
box is taller than I want; I'd like it to only be a little taller than
the text of the section heading. Can anyone tweak this to the right
height?

\usepackage{color}
\let\mySection\section
\renewcommand\section[1]{%
\protect\textcolor{blue}{%
\colorbox{green}{%
\parbox{\columnwidth}{%
\mySection[#1]{#1}
}%
}%
}%
}%


In case you're wondering, the ugly blue on green is just for testing.


- --
Peter Harkins-ph at malaprop.org-http://malaprop.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: If you don't know what this is, it's OK to ignore it.

iD8DBQFCnI9Va6PWv6+ALKoRAg5jAJ90HiO32yDQqjhZXoItaMJGfWARbQCeN4Kr
SmUTjfeXNfrIAHiU4ijN/oA=
=bVIr
-END PGP SIGNATURE-


Bug in the navigate menu (was: Navigate menu: "Refs" mean labels?)

2005-05-31 Thread Sven Schreiber
Sven Schreiber wrote:

> While creating a formal bug in bugzilla for my suggestion to include all
> inset types in the navigate menu (1895), I stumbled over the following
> thing:
> 
> The Navigate-Refs menu entry doesn't take me to the next ref inset, but
> to the next label inset. (lyx 1.3.5 on windows) Is this a bug or a feature?
> 

Since nobody answered the previous message I chose a more dramatic title
this time ;-)

If nobody tells me the good reason for the above behavior, I am going to
post another formal bug.

Or am I the only one who is experiencing this, maybe windows-specific or
whatever? Is it me who is mis-interpreting labels as refs or vice versa?

I'm all ears...
Sven


Re: Bug in the navigate menu

2005-05-31 Thread Jean-Marc Lasgouttes
> "Sven" == Sven Schreiber <[EMAIL PROTECTED]> writes:

Sven> Since nobody answered the previous message I chose a more
Sven> dramatic title this time ;-)

Sven> If nobody tells me the good reason for the above behavior, I am
Sven> going to post another formal bug.

As far as I know, this jumps to the label corresponding to the ref at
cursor. Does this answer your question? 

JMarc


Re: colorizing section headings

2005-05-31 Thread Matej Cepl
Peter Harkins wrote:
> I'm trying to colorize my section headings, and I can't quite get it
> right. I've got some LaTeX (below) that's almost it, but the background
> box is taller than I want; I'd like it to only be a little taller than
> the text of the section heading. Can anyone tweak this to the right
> height?
> 
> \usepackage{color}
> \let\mySection\section
> \renewcommand\section[1]{%

You cannot change sections so easily -- use titlesec package (it has
extensive documentation how to use it).

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
But if we find we have left our bones to bleach in these desert
sands for nothing, beware the fury of the legions...
  -- Centurion in a letter home from North Africa
 3rd Century




Re: Bug in the navigate menu (was: Navigate menu: "Refs" mean labels?)

2005-05-31 Thread Juergen Spitzmueller
Sven Schreiber wrote:

>> The Navigate-Refs menu entry doesn't take me to the next ref inset, but
>> to the next label inset. (lyx 1.3.5 on windows) Is this a bug or a
>> feature?
>> 
> 
> Since nobody answered the previous message I chose a more dramatic title
> this time ;-)
> 
> If nobody tells me the good reason for the above behavior, I am going to
> post another formal bug.

The naming has been changed in the development version (1.4) to "Goto Label"
recently. For the 1.3.x version, such a change is not intended, I think.

Jürgen



Re: Bug in the navigate menu

2005-05-31 Thread Sven Schreiber
Jean-Marc Lasgouttes wrote:

>>"Sven" == Sven Schreiber <[EMAIL PROTECTED]> writes:
> 
> 
> Sven> Since nobody answered the previous message I chose a more
> Sven> dramatic title this time ;-)
> 
> Sven> If nobody tells me the good reason for the above behavior, I am
> Sven> going to post another formal bug.
> 
> As far as I know, this jumps to the label corresponding to the ref at
> cursor. Does this answer your question? 
> 
> JMarc
> 
> 
Yes it does, thank you. I was confused by the current situation because
of three things:
1. Calling this "ref" is really counter-intuitive; Jürgen said in the
other reply that in the future this will be called "goto label", which
is much better, so thanks for that change.
2. The cursor just seems to jump somewhere into the appropriate
paragraph, not right next to the label, so the intended functionality
doesn't become very obvious to the uninitiated. (This is probably a
known issue I would assume.)
3. My document just has quite a few labels and cross-refs, so that made
it more difficult for me to disentangle things (as if you cared...)

-sven


Re: Latex import...AGAIN!

2005-05-31 Thread Angus Leeming
Angus Leeming wrote:
>> It seems that the tex2lyx packages on the wiki need to be updated!
> 
> Thanks for the heads up. I'll try and do so ASAP.

I've updated the tex2lyx packages for Windows and for Fedora Core 3.

-- 
Angus



Re: Generating PDF files with pdftex/pdftex_t type images

2005-05-31 Thread Omair-Inam Abdul-Matin

Ok,

tex2pdf was behaving strangely.  I changed my pdflatex program to 
tex2pdf (I followed all the instructions for configuring, etc. on the 
tex2pdf site).  When I tried to convert to pdf most of the times I would 
get the message,


'tex2pdf' is not recognized as an internal or external command,
operable program or batch file.

The weird thing is, some of the times a pdf file was generated. 
Unfortunately, in the images that came out the latex text was displayed 
but not the postscript part (the lines and other stuff).


I use the perl script that I've given at the end of the message for 
batch converting all my xfig images into pdftex, pstex or eps format as 
needed. Then I'm using pdflatex inside LyX for the export.  However, I 
had to solve a number of problems on windows:


1. The pdftex/pdftex_t combo file exported by xfig causes an error in 
pdflatex since pdftex is not recognized as an image format.  However, if 
I change the pdftex file to pdf and change the 
\includegraphics{file.pdftex} statement in the pdftex_t file to 
\includegraphics{file.pdf} it works fine.  The script basically 
automates this process.
2. The pdftex file generated by xfig is normally rotated so that when 
the pdf is generated the image needs to be rotated to be placed 
properly. To solve this I need to use fig2dev with the -p flag (portrait 
mode)


Some more info about the script for those that are interested.
I'm typing up my thesis which is located in multiple directories, each 
of which has an images subdirectory.  The script looks for a tex_images 
file which contains a list of all the images in the directory which 
contain latex text and must therefore be converted to pstex/pdftex 
format.  It then iterates through each fig image and converts it to a 
pdftex and pstex, or eps format as needed.


My LyX version is 1.3.5 and I'm using the fig2dev script that comes with 
cygwin... for those who are interested.


Omair

#! /usr/bin/perl
sub read_file_names {
my($file_name);
$file_name = @_[0];
open(FILE_HANDLE,$file_name) ||
die "unable to open $file_name";
while(chomp($line = )) {
#print "next filename: $line\n";
$file_names{$line} = "";
}
return %file_names;
}

sub create_tex_image {
my $dir, $prefix, $ext;
($dir, $prefix, $tex_ext, $img_ext,$img_out_ext) = @_;
$tex_filename = "$dir/$prefix.$tex_ext";
open TEMP_FILE, ">$tex_filename" or die "Couldn't open 
$prefix.$tex_ext";

print TEMP_FILE "\\begin{picture}(0,0)\%\n";
print TEMP_FILE "\\includegraphics{$prefix.$img_out_ext}\%\n";
#print "\\includegraphics{$prefix.$img_out_ext}\%\n";
print TEMP_FILE "\\end{picture}\%\n";
close TEMP_FILE or die "Couldn't close $prefix.$tex_ext";
# append tex stuff to includegraphics text
$cmd = "fig2dev -L $tex_ext $dir/images/$prefix.fig >> $tex_filename";
print $cmd . "\n";
system($cmd);
$cmd = "cp $dir/$prefix.$tex_ext ./";
print $cmd . "\n";
system($cmd);
$cmd = "fig2dev -L $img_ext -p 1 $dir/images/$prefix.fig > 
$dir/$prefix.$img_out_ext";

print $cmd . "\n";
system($cmd);
$cmd = "cp $dir/$prefix.$img_out_ext ./";
print $cmd . "\n";
system($cmd);
}

sub my_main {
# the directories in my thesis directory
@dirs = qw/design impl survey/;
[EMAIL PROTECTED] = qw/survey/;
foreach $dir(@dirs) {
opendir(CUR_DIR,"$dir/images");
print(" Processing directory: $dir  \n");
# read file names from tex_images
%filenames = _file_names("$dir/images/tex_images");
#print %filenames;

# iterate thru files in directory
while ($name = readdir(CUR_DIR)) {

if ($name =~ /\.fig$/) {
($prefix, $suffix) = split /\./,$name;
#print "Checking for $prefix\n";
if (exists($filenames{$prefix}))  {
# create pdftex and pstex files
print "Creating $prefix.pdftex...\n";
_tex_image($dir,$prefix,"pdftex_t","pdftex","pdf");
_tex_image($dir,$prefix,"pstex_t","pstex","pstex");
}
else {
# create eps files
print "Creating $prefix.eps...\n";
$cmd = "fig2dev -L eps $dir/images/$name "
. "$dir/images/$prefix.eps";
print("$cmd\n");
system($cmd);
}
}
}
}

}

# main method
_main();

Jean-Pierre Chretien wrote:

To: lyx-users@lists.lyx.org
From: Angus Leeming <[EMAIL PROTECTED]>
Subject: Re: Generating PDF files with pdftex/pdftex_t type images
Date: Mon, 30 May 2005 17:08:00 +0100

Omair-Inam Abdul-Matin wrote:



Hi,

I'm using Windows and I'm having trouble generating PDF files of
documents in which I have some Xfig images with Latex text in them.




I've tried using tex2pdf on windows.  With tex2pdf the error message is
suppressed 

help! which version??

2005-05-31 Thread Srinivas Nedunuri
Hello, I am trying to install Lyx on my machine (a Dell running Debian 
Linux). I went to the download page for binaries and was confronted with 
the following list


File: lyx-1.3.5-1fc2_qt.i386.rpm 
 	5945 
KB 	12/07/04 	13:30:00
File: lyx-1.3.5-1fc2_xforms.i386.rpm 
 
5822 KB 	12/07/04 	13:33:00
File: lyx-1.3.5-1fc3_qt.i386.rpm 
 	5784 
KB 	03/09/05 	09:39:00
File: lyx-1.3.5-1mdk101_qt.i586.rpm 
 
6290 KB 	01/07/05 	14:32:00
File: lyx-1.3.5-1mdk10_qt.i586.rpm 
 
5771 KB 	12/07/04 	13:35:00
File: lyx-1.3.5-1rhel3_qt.i386.rpm 
 
5022 KB 	12/07/04 	13:37:00
File: lyx-1.3.5-1suse90_qt.i586.rpm 
 
6365 KB 	12/07/04 	13:39:00
File: lyx-1.3.5-1suse90_xforms.i586.rpm 
 	6276 
KB 	12/07/04 	13:42:00
File: lyx-1.3.5-1suse91_qt.i586.rpm 
 
6270 KB 	12/07/04 	13:44:00
File: lyx-1.3.5-4macos_aqua.tgz 




Can anyone tell me which version it is I need?
thanks


Re: help! which version??

2005-05-31 Thread Angus Leeming

Srinivas Nedunuri wrote:
Hello, I am trying to install Lyx on my machine (a Dell running Debian 
Linux). I went to the download page for binaries and was confronted with 
the following list


[ snip list ]


Can anyone tell me which version it is I need?


None of them :) It's on apt.
http://www.linuxquestions.org/questions/showthread.php?threadid=256875


thanks





help with layouts listbox in toolbar

2005-05-31 Thread solfog
I have lyx from debian unstable 1.3.4, and lyx --version shows:
Configuration
  Host type:  i686-pc-linux-gnu
  Special build flags:warnings assertions
  C   Compiler:   gcc
  C   Compiler flags: -g -O2
  C++ Compiler:   g++ (3.3.3)
  C++ Compiler flags:  -g -O2 -fno-exceptions -W -Wall
  Linker flags:
  Frontend:   qt
Qt version:   3.2.3
  LyX binary dir: /usr/bin
  LyX files dir:  /usr/share/lyx


My problem is: when clicking on the layouts listbox of the toolbar, lyx (or qt)
tries to show *all* the layouts on the same "window" which is impossible because
there are a lot and I can't scroll down to get the one I want.
I'd like the listbox to display a list with a scrollbar, which it used to do a
while ago before I had to reinstalled debian.


Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri
I installed the Windows version of Lyx on my machine. However, when I try to 
start up Lyx, I get an error message that says "lyx wasn't able to find any 
layout description... Check the contents of the file "textclass.lst"". I looked 
at textclass.lst in .../lyx/share/lyx but I really have no idea what I'm 
looking for.

(Also, when I first started up Lyx, and tried to install the ieeetrans package 
from the internet, the program started thrashing the disk and eventually just 
died. The above is the mssage I get when I subsequently start it up again)

thanks

RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Do you have miktex installed?

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 7:52 PM
To: lyx-users@lists.lyx.org
Subject: Problem w/ Windows install: no layout description

I installed the Windows version of Lyx on my machine. However, when I try to
start up Lyx, I get an error message that says "lyx wasn't able to find any
layout description... Check the contents of the file "textclass.lst"". I
looked at textclass.lst in .../lyx/share/lyx but I really have no idea what
I'm looking for.

(Also, when I first started up Lyx, and tried to install the ieeetrans
package from the internet, the program started thrashing the disk and
eventually just died. The above is the mssage I get when I subsequently
start it up again)

thanks



Re: Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri
Yes I do. It initially asked me about installing MikTeX and wanted to know
the name of the local package it was located in (or something like that). I
gave it the location of my MixTex install (as well as the local folder) but
it didn't like either one, so I just had it skip that step

- Original Message - 
From: "Steven Ning" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 31, 2005 10:36 PM
Subject: RE: Problem w/ Windows install: no layout description


>
> Do you have miktex installed?
>
> Steven
>
> -Original Message-
> From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 31, 2005 7:52 PM
> To: lyx-users@lists.lyx.org
> Subject: Problem w/ Windows install: no layout description
>
> I installed the Windows version of Lyx on my machine. However, when I try
to
> start up Lyx, I get an error message that says "lyx wasn't able to find
any
> layout description... Check the contents of the file "textclass.lst"". I
> looked at textclass.lst in .../lyx/share/lyx but I really have no idea
what
> I'm looking for.
>
> (Also, when I first started up Lyx, and tried to install the ieeetrans
> package from the internet, the program started thrashing the disk and
> eventually just died. The above is the mssage I get when I subsequently
> start it up again)
>
> thanks



RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Gah, no read-receipts please!

-Are you running the lyx version compiled with qt-noncommercial?
-if you type "latex" into a command prompt, does it run latex?

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 8:57 PM
To: Steven Ning; lyx-users@lists.lyx.org
Subject: Re: Problem w/ Windows install: no layout description

Yes I do. It initially asked me about installing MikTeX and wanted to know
the name of the local package it was located in (or something like that). I
gave it the location of my MixTex install (as well as the local folder) but
it didn't like either one, so I just had it skip that step

- Original Message -
From: "Steven Ning" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 31, 2005 10:36 PM
Subject: RE: Problem w/ Windows install: no layout description


>
> Do you have miktex installed?
>
> Steven
>
> -Original Message-
> From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 31, 2005 7:52 PM
> To: lyx-users@lists.lyx.org
> Subject: Problem w/ Windows install: no layout description
>
> I installed the Windows version of Lyx on my machine. However, when I try
to
> start up Lyx, I get an error message that says "lyx wasn't able to find
any
> layout description... Check the contents of the file "textclass.lst"". I
> looked at textclass.lst in .../lyx/share/lyx but I really have no idea
what
> I'm looking for.
>
> (Also, when I first started up Lyx, and tried to install the ieeetrans
> package from the internet, the program started thrashing the disk and
> eventually just died. The above is the mssage I get when I subsequently
> start it up again)
>
> thanks



RE: LyXwin not finding miktex -- SOLVED

2005-05-31 Thread Steven Ning
Ah, I found out what was going on. After I put the miktex binaries directory
in my PATH, I had to remove the .lyx folder in C:\Documents and
Settings\user and THEN let it reconfigure. It works now!

Thanks for the help!
Steven



Re: Problem w/ Windows install: no layout description

2005-05-31 Thread Srinivas Nedunuri

- Original Message - 
From: "Steven Ning" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 31, 2005 11:23 PM
Subject: RE: Problem w/ Windows install: no layout description


>
> Gah, no read-receipts please!
sorry bout that. I turned it off

> -Are you running the lyx version compiled with qt-noncommercial?

> -if you type "latex" into a command prompt, does it run latex?
I am using the Windows binary. It's not supposed to require anything but
MikTex and some fonts (see http://home.versatel.nl/rareitsma/lyx/)

>
> Steven
>
> -Original Message-
> From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 31, 2005 8:57 PM
> To: Steven Ning; lyx-users@lists.lyx.org
> Subject: Re: Problem w/ Windows install: no layout description
>
> Yes I do. It initially asked me about installing MikTeX and wanted to know
> the name of the local package it was located in (or something like that).
I
> gave it the location of my MixTex install (as well as the local folder)
but
> it didn't like either one, so I just had it skip that step
>
> - Original Message -
> From: "Steven Ning" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 31, 2005 10:36 PM
> Subject: RE: Problem w/ Windows install: no layout description
>
>
> >
> > Do you have miktex installed?
> >
> > Steven
> >
> > -Original Message-
> > From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 31, 2005 7:52 PM
> > To: lyx-users@lists.lyx.org
> > Subject: Problem w/ Windows install: no layout description
> >
> > I installed the Windows version of Lyx on my machine. However, when I
try
> to
> > start up Lyx, I get an error message that says "lyx wasn't able to find
> any
> > layout description... Check the contents of the file "textclass.lst"". I
> > looked at textclass.lst in .../lyx/share/lyx but I really have no idea
> what
> > I'm looking for.
> >
> > (Also, when I first started up Lyx, and tried to install the ieeetrans
> > package from the internet, the program started thrashing the disk and
> > eventually just died. The above is the mssage I get when I subsequently
> > start it up again)
> >
> > thanks



RE: Problem w/ Windows install: no layout description

2005-05-31 Thread Steven Ning
 
Yes, according to that site, there are three versions to download. Are you
using the one called "lyx-1.3.5-win32-nc.exe"?
Also, latex.exe comes with miktex. If you can't run latex from any directory
in your command prompt, I'm pretty sure you need to add the miktex bin
directory to your windows PATH variable so LyX can find miktex. (see my
thread "LyXwin not finding miktex")

Steven

-Original Message-
From: Srinivas Nedunuri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 9:51 PM
To: Steven Ning
Cc: lyx-users@lists.lyx.org
Subject: Re: Problem w/ Windows install: no layout description

>
> Gah, no read-receipts please!
sorry bout that. I turned it off

> -Are you running the lyx version compiled with qt-noncommercial?

> -if you type "latex" into a command prompt, does it run latex?
I am using the Windows binary. It's not supposed to require anything but
MikTex and some fonts (see http://home.versatel.nl/rareitsma/lyx/)

>
> Steven