Re: most lyx-friendly bibtex-format?

2005-07-19 Thread Georg Baum
Sven Schreiber wrote:

> afaik the weaknesses of the used simple bibtex parser are known, but not
> to me, so please what are recommendations for the bibtex file format so
> that the parser won't get confused?

I never had any problems with .bib files that were sanitized by BibTool -
see http://www.gerd-neugebauer.de/software/TeX/BibTool.en.html. BibTool can
read almost every .bib file and make something usable out of it, and it is
highly customizable.


Georg



Re: 1.3.6 for Win

2005-07-19 Thread Georg Baum
Angus Leeming wrote:

> Jean-Pierre Chretien wrote:
>> Since lyx-1.3.6 reads tex2lyx output, the wiki page could be
>> simplified and suggest to replace reLyX by tex2lyx $$i >$$o in
>> Edit->Preference->Conversion->Converters->LaTeX -> LyX menu
>> 
>> I guess the tex2lyx.cmd scipt is not needed any more.
> 
> Indeed. And the tex2lyx package doesn't need to bundle lyx2lyx either.

But the newest tex2lyx produces file format 243, and LyX 1.3.6 can only read
242. So the instructions on the wiki page should be modified:

"You may have to replace LyX.py and lyx_1_4.py of LyX 1.3.6 with the
versions from here:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/lyx2lyx/
"

Jean-Pierre, it would be nice if you could do that and maaybe add some more
details. All files of lyx2lyx except lyx2lyx itself can be replaced with
their 1.4 counterpart without problems.

> I wonder... Can tex2lyx read 1.3.6's textclass files? I.e., does it
> work if you place tex2lyx.exe in C:\Program Files\Lyx-1.3.6\bin ?

No.

> Angus (too lazy to go look at the sources)


Georg (too lazy too, but fortunately knowing the answer by heart)



Re: Toolbar in 1.3.6

2005-07-19 Thread Georg Baum
Geoffrey Lloyd wrote:

http://www.semverteilung.vwl.uni-muenchen.de/mitarbeiter/es/software/ToolbarES.htm
> 
> However when I use it with 1.3.6 some f the icons are not recognised and
> become ? and another is just totally different.
> 
> I have attached the .ui file. Does any one know why this is happening?


The show-forks lfun does not exist anymore. Delete it from the .ui file. The
icons that are not recognized are not part of LyX. If you follow the
instructions on the page above and install them properly they should be
recognized :-)


Georg



Re: 1.3.6 for Win

2005-07-19 Thread Georg Baum
Jean-Pierre Chretien wrote:

> Not tested with a real life tex file, seems that I need to turn Unix EOFs
> into Win EOFs before tex2lyxing.

That should not be needed. What happens if you don't do that?



Georg



Re: 1.3.6 for Win

2005-07-19 Thread Georg Baum
Jean-Pierre Chretien wrote:

> Our messages crossed themselves and don't agree, as I made it work :-(
> I've got to go, to be followed to-morrow...

Maybe my memory was wrong, but I remember that I had problems with 1.3.x
layout files. The fact that it worked for does not neccessaryly mean that
it works for all layout files :-( I would suggest to install the extra
layout files (it is not that much) in order to be safe.


Georg




Re: first impressions of 1.3.6

2005-07-20 Thread Georg Baum
Olivier Ripoll wrote:

> In the past, one could use the nice slanted iint and iiint in LyX, or
> add the wasy package to the preamble. Now, there is no more choice in
> the ui. I think it qualifies as a regression.

I agree. But the old behaviour could lead to LaTeX errors. In order to solve
this we need to know how you produced iint and iiint before. Did you use
amsmath?


Georg



Re: 1.3.6 for Win

2005-07-20 Thread Georg Baum
Jean-Pierre Chretien wrote:

> Going back to testing later, but I don't really understand the layout
> issues: the layouts existing in 1.4 and not in 1.3 will allow tex2lyx to
> convert more latex files, but they won't be usable with 1.3 as the layout
> will be missing.

Yes. But the syntax of the 1.4 layout files is changed. For example I could
not use beamer.layout with 1.4 but had to make some modifications. I'll
attach a diff so you can see the differences.


Georg--- lyx-1.3/lib/layouts/beamer.layout	2004-10-08 10:36:03.0 +0200
+++ lyx-1.4/lib/layouts/beamer.layout	2005-07-01 10:30:29.0 +0200
@@ -13,7 +13,6 @@
 SecNumDepth		2
 TocDepth		2
 DefaultStyle 		Standard
-MaxCounter		Counter_Section
 
 # This is just to show how to declare the default font.
 # The defaults are exactly those shown here.
@@ -70,7 +69,8 @@
   ParSep		0.3
   Align			Left
   AlignPossible		Left
-  LabelType		Counter_EnumI
+  LabelType		Counter
+  LabelCounter		enumi
 End
 
 # Description style definition
@@ -234,32 +234,10 @@
 End
 
 Counter
-  Name subsection
-  Within   section
-End
-
-Counter
-  Name bibitem
-End
-
-Counter
   Name figure
   Name lyxframeend{}\section
 End
 
-Counter
-  Name table
-End
-
-Counter
-  Name enumi
-End
-
-Counter
-  Name enumii
-  Within   enumi
-End
-
 
 # Section style definition
 Style Section
@@ -275,7 +253,8 @@
   ParSep		0.7
   Align			Left
   AlignPossible		Left
-  LabelType		Counter_Section
+  LabelType		Counter
+  LabelCounter  section
   LabelString		"Section "
   OptionalArgs1
 
@@ -313,7 +292,8 @@
   ParSep		0.5
   Align			Left
   AlignPossible		Left
-  LabelType		Counter_Subsection
+  LabelType		Counter
+  LabelCounter  subsection
   LabelString		"Subsection "
   OptionalArgs1
 


Re: first impressions of 1.3.6

2005-07-20 Thread Georg Baum
Jean-Marc Lasgouttes wrote:

>> "Angus" == Angus Leeming <[EMAIL PROTECTED]>
>> writes:
> 
> Angus> I think that the wasysym documentation
> Angus>
> http://www.ctan.org/tex-archive/macros/latex/contrib/wasysym/wasysym.pdf
> Angus> explains what we need to do. Executive summary: Angus>
> \usepackage[nointegrals]{wasysymb} Georg?
> 
> Not, really, because we load wasysymb specifically to get these
> special integrals like \oiint. What we are looking for is a way to get
> the integrals without getting the look wasysym provides.

\iint, \iiint, \nt and \idotsint are also provided by amsmath. We could
delete the current definitions for \iint and \iiint from lib/symbols and
replace it with the following:

\def\iint{\int\kern-6mu\int}
\def\iiint{\int\kern-6mu\int\kern-6mu\int}
\def\nt{\int\kern-6mu\int\kern-6mu\int\kern-6mu\int}
\def\idotsint{\int\kern-3mu\cdots\kern-3mu\int}

That works perfectly on screen, and the output is consistent. But then we
have the old problem again: LyX does not know that these symbols need
amsmath. And we still have no \oiint.

I would prefer the ams versions if possible, since ams is widely available
and looks better than wasy IMHO. We could then hardcode the requirement of
amsmath for the integral symbols into MathMacro::validate().

In the long run we need a way to specify requirements in lib/symbols.

> It seems that the esint.sty package the Herbert pointed to does that.
> The problem is, how common is it?

I don't know. I never heard of it before, and it is not included in tetex
2.0.


Georg



Re: citations and references in multi document files

2005-07-20 Thread Georg Baum
Micha Feigin wrote:

> I just split my thesis into multiple documents as it became impossible to
> handle after the 80 page mark without folding (which AFAIK lyx doesn't
> support).

Do you know View->Navigate?

> Anyway, this works find except for references and citations. references to
> other parts of the document have to be entered manually and I can only
> push
> citations from bibtex as they are not known to the local document and even
> then
> I can't control their format.
> 
> Is there any solution to any of these problems?

Always open the child documents from the main document via the include
button. This assumes that the bibtex database is included in the main
document (you can trigger loading all included documents if you e.g. try to
insert a citation in the main document).


Georg



Re: 1.3.6 for Win

2005-07-21 Thread Georg Baum
Jean-Pierre Chretien wrote:

> Both the Win tex2lyx bundle and the Solaris tex2lyx bundle provide 241
> format, so that copying the binary is enough.

But that will change ;-)

> Ignoring options 'T1' of package fontenc.
> LyX: Unknown TextClass tag `MaxCounter' [around line 15 of file c:\Program
> Fil\LyX-1.4\LyX\Resources\lyx\layouts\beamer.layout] We failed to find the
> layout 'Standard' in the layout list. You MUST investiga! Assertion
> triggered in const LyXLayout_ptr& LyXTextClass::operator[](const
> stdstring&) const by failing check "false" in file lyxtextclass.C:816
> 
> abnormal program termination
> 
> 
> What's surprising is that the same operation performed on the same file on
> Solaris works fine (and the lyx file is correct as the Solaris version
> includes your patch for bug #1910).

I don't know what happens exactly, but I don't care either because LyX 1.4
and tex2lyx are not supposed to read old .layout files (at least until now
- maybe we need a lay2layout converter).

> Anyway beamer is particular as it is not part of the LyX bundle, so we're
> off the baseline distrib here.

I chose it because it uses almost every layout file construct to demonstrate
the file format changes, but you can as well take any "standard" layout
file that uses things like MaxCounter, e.g. docbook.layout.

> Finally calling tex2lyx from lyx does not seem appropriate on the Win port
> since the log remains hidden (I just get a popup about conversion error w
> the above example). Decompressing the tex2lyx bundle, updating the PATH
> and executing in a MinGW window is more informative.
> 
> Correct me there if an monitoring when executing from LyX is possible.

You will see the output if you start LyX from a console window. This applies
to all converters and is identical on all platforms.


Georg



Re: 1.3.6 for Win

2005-07-22 Thread Georg Baum
Jean-Pierre Chretien wrote:

> Maybe the make_tex2lyx_dist.sh could reflect this by bundling in LyX-1.4
> instead of LyX ?

Good idea. Are you volunteering to do so?


Georg



Re: Lyx 1.3.6 and Debian Sarge

2005-07-25 Thread Georg Baum
Angus Leeming wrote:

> ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.3.4.tar.bz2 (LyX 1.3.4 source)
> 
> lyx_1.3.4-2.diff.gz (from Debian)
> ftp://ftp.lyx.org/pub/lyx/stable/patch-1.3.5.bz2
> ftp://ftp.lyx.org/pub/lyx/stable/patch-1.3.6.bz2
> 
> and then build a Debian LyX 1.3.6 package by applying these patches in
> order to the unpacked lyx-1.3.4.tar.bz2 sources.

I was not suggesting that, but it should also work. In the meantime I have
created an updated diff file and a hopefully better description at
http://wiki.lyx.org/LyX/Linux. Please try that instead. I would build
the .debs myself, but I have no clean sarge install and nobody would be
able to install them.


Georg



Re: Lyx 1.3.6 and Debian Sarge

2005-07-25 Thread Georg Baum
Am Montag, 25. Juli 2005 19:55 schrieb samar j. singh:
> It was a dream doing so and running src/lyx brought up lyx 1.3.6. After 
make 
> install, which appeared to run without errors, I got the following error 
> message   when trying to run lyx from the command line. 
> 
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> lyx: cannot connect to X server :0
> 
> Calling up an existing lyx document invokes lyx 1.3.4
> 
> 
> Anything that I can do about this?

I don't know. Probably something went wrong with the install :-(


Georg



Re: Lyx 1.3.6 and Debian Sarge

2005-07-25 Thread Georg Baum
samar wrote:

> Actually there is not much value in 1.3.5 for unix users so it may not be
> worth the trouble.

Both 1.3.5 and 1.3.6 fix a number of bugs, so it is certainly worth it to
install them also for unix users. Normally that does go smooth ithout the
trouble you are having.


Georg



Re: Program to edit the Wiki

2005-07-27 Thread Georg Baum
Juergen Spitzmueller wrote:

> Cut from the file, paste into the wiki's editing widget. Or is there a way
> to do this via script? What does emacs do?

There was an interesting article "Medienpflege im Web Wiki-Inhalte mit
externen Anwendungen bearbeiten" in c't 14/05 about external editors for
mediawiki. See http://www.heise.de/ct/05/14/links/190.shtml,
http://www.heise.de/kiosk/archiv/ct/2005/14/190 and 
http://en.wikipedia.org/wiki/Help:External_editors.
It looks like a nice project for some interested person to adapt it to
pmwiki.


Georg



Re: debug and command line stuff

2005-07-27 Thread Georg Baum
Geoffrey Lloyd wrote:

> Hi
> 
> On many occasions when people have had problems with a Lyx setup the gurus
> have suggested running lyx from the command line using -dbg and then
> certain strings.
> 
> I have had a poke about on the wiki but I can't find a list of possible
> commands. Is there anywhere an equivalent to *nix 'man lyx' so one could
> find out about the options.

Run

lyx -help

for a short option summary and

lyx -dbg

for a list of possible debug flags. Or even run

man lyx

on a unix system (although I don't know whether the manpage is up to date).


Georg



Re: relative paths & beamer & temp directory: possible?

2005-07-28 Thread Georg Baum
Sven Schreiber wrote:

> And I have a "goethe.pdf" file in the "grafiken" directory below the
> location of the lyx-file. This works only if I *don't* activate the
> "temporary directory" thing. (And the relative path thing works outside
> ERT; this success is new on windows, right? Great stuff, this 1.3.6!)
> 
> So does anybody have a workaround or solution, or what am I doing wrong?

You are doing nothing wrong. This is probably bug 1751
http://bugzilla.lyx.org/show_bug.cgi?id=1751

Does the .tex file in the temporary directory contain something like

[EMAIL PROTECTED]

? Does the absolute name of your working directory contain spaces?


Georg



Re: Paste external

2005-07-28 Thread Georg Baum
[EMAIL PROTECTED] wrote:

> Thanks to everyone for the help.  Coverting linebreaks from Mac style to
> UNIX style does the trick (though might it not be possible to program LyX
> to do this step for us?).

It is of course possible and should be done. Could you please file a bug
report on http://bugzilla.lyx.org? Otherwise it will be forgotten.


Georg



Re: relative paths & beamer & temp directory: possible?

2005-07-28 Thread Georg Baum
Sven Schreiber wrote:

> Yes, the first lines are:
> 
> \batchmode
> \makeatletter
> [EMAIL PROTECTED]:/Svens/testlyxtemp//}}
> \makeatother
> 
> (Are the double slashes at the end ok?)

I don't know. Does it work when you remove one slash by hand and run latex
by hand?

> No, as you can see above. But it's on d: whereas lyx is on c:, if that
> matters.

That should not matter, but I don't know for sure. If [EMAIL PROTECTED] is set 
and
if it does not work with one slash (you could also try backslashes instead
of slashes it seems to be a problem of the tex system that you are using.
In this case please ask on the appropriate mailing list and report back the
result.


Georg



Re: [workaround] Re: relative paths & beamer & temp directory: possible?

2005-07-29 Thread Georg Baum
Sven Schreiber wrote:

> So I replaced these two ERT lines: 
> 
> \pgfdeclareimage[width=1.4cm]{goethe}{grafiken/goethe}
> \logo{\pgfuseimage{goethe}}
> 
> with the following ERT one-liner:
> 
> \logo{\includegraphics[width=1.4cm]{grafiken/goethe}}
> 
> ...and that works for me.

Fine. Then there is no LyX problem and your TeX installation is OK, too.

> If you don't have any other graphics inserted 
> via lyx, then you may have to explicitly add \usepackage{graphicx} in
> the preamble (?).

Yes.

> According to the beamer user guide, the only (?) advantage of pgf over
> includegrpahics is this: "However, currently only pgf offers the ability
> to include images that are partly transparent."
> 
> But I still have no clue on why the pgf-thing failed.

It simply looks like pgf is not using [EMAIL PROTECTED] Please file this as a 
bug
to the author of pgf. IMHO all LaTeX packages that include some external
stuff should honour [EMAIL PROTECTED] And if it does not use it it should be
documented.
The documentation says that "\includegraphics is designed better than
pgfbaseimage", but some examplkes of the advantages would be nice.


Georg



Re: Lyx 1.3.6 and Debian Sarge

2005-07-29 Thread Georg Baum
Gerhard Lindel wrote:

> Hello George, I used your instructions on
> http://wiki.lyx.org/LyX/Linux  and it runs in a shell. There is only one
> deb. in the parent-directory and one cannot install it:

This is probbaly the result of the build error below.

> I send as an attachment the last few lines of the shell-output. Perhaps
> it may be
> helpfull.

It looks like something went wrong during the build, process. Unfortunately
I cannot help here. It works flawlessly on my machine (which is basically
sarge but with updated qt and kde, so a .deb created by me would be useless
for others)


Georg



Re: Convert XML to LYX

2005-07-29 Thread Georg Baum
Daniel wrote:

>Hello,
> 
>  Apologies by my poor English.
>  
>  I have a xml file as following:
> 
>  And I would convert this file to a lyx file. The lyx file should be
> something as following:

The easiest method is probably to create a small python script. Use one of
the python XML parsers for reading (see
http://docs.python.org/lib/markup.html) and the LyX.py class from lyx2lyx
for writing the .lyx file. You still need to do some work by hand, but
LyX.py knows about some things, e.g. the header.


Georg



Re: Safe to exchange Lyx documents between Mac and Linux/PC?

2005-07-29 Thread Georg Baum
Janus Sandsgaard wrote:

> I am working on a LyX document on a Linux PC, but from time to time I need
> to work on a laptop. It is safe to move my document between LyX on Mac OSX
> (or WinXP) and Linux?

Yes. Several people I know do this on a regular basis, and the file format
is the same.

> Does the OSX version support NatBib? 

As far as LyX is concerned: Yes.


Georg



Re: tex2lyx Mac undefined symbols

2005-07-31 Thread Georg Baum
Am Samstag, 30. Juli 2005 04:09 schrieb Saul Gelfand:
> Hello,
> 
> I downloaded tex2lyx_MacOSX_21Jul05.zip which expanded to a directory 
> LyX which I then moved to /Applications (there wasnt any installation 
> package or Makefile so I assumed this was all that was necessary with 
> this precompiled binary). When I run tex2lyx from the command line, I 
> get undefined references to symbols it expects to find in 
> /usr/lib/libSystem.B.dylib:

The uploaded tex2lyx was probably built on a newer version of OS X. Try to 
use the recipe on the web site and build your own.


Georg



Re: Lyx 1.3.6 and Debian Sarge

2005-07-31 Thread Georg Baum
Am Freitag, 29. Juli 2005 09:27 schrieb Georg Baum:
> Gerhard Lindel wrote:
> 
> > Hello George, I used your instructions on
> > http://wiki.lyx.org/LyX/Linux  and it runs in a shell. There is only 
one
> > deb. in the parent-directory and one cannot install it:
> 
> This is probbaly the result of the build error below.
> 
> > I send as an attachment the last few lines of the shell-output. 
Perhaps
> > it may be
> > helpfull.
> 
> It looks like something went wrong during the build, process.

It turned out that I uploaded a broken.diff file. Please try again, it 
should now work.


Georg



Re: 1.3.6 Won't Build on Slackware-10.1

2005-08-01 Thread Georg Baum
Rich Shepard wrote:

>I've not before had a problem building lyx. The config.log is attached
> (gzipped). Make failed after 15.5 minutes when I did not specify the qt
> directories; now that I've specified them, it fails in 8 seconds:

>I found nothing pertinent searching the gmane archive. Is this a STL
>issue?

No, but the gmane search function seems to be not so powerful:
http://www.mail-archive.com/lyx-users%40lists.lyx.org/msg40655.html

> Patrick doesn't provide STL in Slackware and that's bitten me a couple of
> times recently.

Then he must provide a really old version of gcc (2.7 or something like
that) or a modified one (the STL is shipped as part of gcc since years). I
doubt that. Why would one want to do that?


Georg



Re: Lyx 1.3.6 and Debian Sarge, something went wrong

2005-08-01 Thread Georg Baum
Gilles Mioni wrote:

> When fakerout was compiling, errors ocurred as :
> 
> *libtool: link: `package.lo' is not a valid libtool object*

That should be fixed by the latest version of
http://wiki.lyx.org/uploads/LyX/Linux/lyx_1.3.6-0.lyx.org.1.diff (uploaded
yesterday). Did you use that?


Georg



Re: Multiple Document windows and unnumbered sections

2005-08-01 Thread Georg Baum
Stacia Hartleben wrote:

> More newbie questions from me that might be a little easier this time!
> 
> 1. I have found that upon opening multiple documents, I can't seem to
> get the previous documents back, although it does ask me if I'd like
> to save them before quitting.

Look in the Documents menu.

> I'm used to windows programs having 
> small little tabs or something to switch between documents.

This is currently not implemented, but recorded as a feature request: 
http://bugzilla.lyx.org/show_bug.cgi?id=1212

> 2. This is probably a really stupid question, but how do I use the
> section thing under the dropdown list without numbering? A friend of
> mine gave me the LaTeX code, but it would be nice to see the headers
> formatted like LyX does but just without numbers.

You should find the sections also in a form with a star in the section drop
down, e.g. "Section" and "Section*". The starred form does exactly what you
want.


Georg



Re: Lyx 1.3.6 and Debian Sarge, something went wrong again

2005-08-18 Thread Georg Baum
Am Freitag, 5. August 2005 14:33 schrieb Jean-Marc Lasgouttes:
> > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> Angus> Jean-Marc Lasgouttes wrote:
> >> Note that we have sarge debs on ftp.lyx.org now (as well as
> >> Ubuntu).
> 
> Angus> I quite like the .deb way of calling stuff
> Angus> lyx-FRONTEND_VERSION-FIXLEVEL.DIST_ARCH.deb although the '-',
> Angus> '_' and '.' still appear rather ad hoc.

_ is the separator between different name components: 
NAME_VERSION_ARCH.deb. - may appear everywhere in NAME, VERSION and ARCH.

> Angus> Anyway, ATM we have a rather eclectic collection of different
> Angus> naming schemes. I wonder if we might settle on just one?
> 
> Sure, but I do not know whether the name matters for debian, and
> whether regular debian user will be able to parse our file names and
> feel at home with them.

There are certain requirements in order to play nice with the packages 
provided by Debian and Ubuntu:

- Nothing in NAME (before the first _) may be changed
- VERSION should parse smaller as 1 according to the debian versioning 
rules. This is ensured by prepending a '0.' in front of it. This makes 
sure that as soon as real Debian packages become available (normally 
starting with revision 1) they are preferred.
- The revision of the used .diff on the wiki (currently 3) should be 
included so that users can easily update packages when new ones become 
available.

Georg



Re: how to insert a label of a figure?

2005-08-26 Thread Georg Baum
Leon Chen wrote:

> Does anyone have the same problem or just me? in the user guide, there
> is some inserted figure reference, which works well. but I just can
> not insert it by myself. :(

Please send a small example file that demonstrates the problem.


Georg



Re: how to insert a label of a figure?

2005-08-26 Thread Georg Baum
Geoffrey Lloyd wrote:

> It makes no difference what the caption begins with, so just go on using
> cap: for figures.

It does make a difference if you use prettyref. I just added this in
bugzilla: http://bugzilla.lyx.org/show_bug.cgi?id=1999


Georg



Re: Wrong numbers of table

2005-08-28 Thread Georg Baum
Am Freitag, 26. August 2005 22:22 schrieb [EMAIL PROTECTED]:

> However, now that I am getting near the end and checking details out, I
> noticed that I get the wrong table numbers when I export a pdf file. The
> navigation menu gives me a correct output (table 1, 2, 3) BUT the list 
of
> table is table 2, 3, 4 and the tables are always referred in the (pdf) 
text
> as 2, 3, 4.

If you manage to create a minimal example file that reproduces this 
problem we could help, but without that it is not possible.

You could also send me the file privetaly if it is not too confidential, 
and I'll have a look.


Georg



Re: No classes

2005-08-28 Thread Georg Baum
Am Samstag, 27. August 2005 21:31 schrieb Paul A. Rubin:
> I wouldn't worry about the LyX layout files, at least for the moment. 
> Going back to the output from the configure script (included in your 
> original post), the configure script was able to find your LaTeX 
> executable.  It did not find the the core set of fonts it seeks (cmex10 
> etc.), and it appears that it could not find the xfonts directory.  I 
> think you'll need to install some fonts:  see http://wiki.lyx.org/FAQ/Qt 
> for details.

The message about the xfonts directory is not important. These fonts are 
type 1 fonts and can not be used with the qt frontend and xft enabled qt 
installations. The truetype fonts that you are mentioning are not checked 
by the configure script.

Georg



Re: gzipped patch

2005-08-29 Thread Georg Baum
Paul Smith wrote:

> Dear All
> 
> From the "LyX 1.3.6 released"of the LyX page, I get the following
> information:
> 
> «Please find enclosed an announcement, some sources in tar.gz format
> (also .tar.bz2 ) and finally a gzipped patch (in .bz2  too). In a few
> days there should also be some binaries.»
> 
> What for is the gzipped patch?

It contains the differences between the sources of LyX 1.3.5 and LyX 1.3.6.
If you have the source of LyX 1.3.5 unpacked already you can use the
gzipped patch to update that to 1.3.6 by doing something like

cd unpacked_sour_dir
gunzip < gezipped_patch | patch -p0

Or you could read the patch literally (after unzipping of course) if you are
interested in the changes in detail.


Georg



Re: Compiling LyX 1.3.6 with qt

2005-08-31 Thread Georg Baum
Luqman H wrote:

> and i got this error, when doing make..
> --
> g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src
> -I../../../src/fronten ds -I../../../images -I./qt2 -I/usr/lib/qt//include
> -I../../../boost -I../../../ src/frontends/controllers -isystem
> /usr/X11R6/include -DQT_CLEAN_NAMESPACE -DQT_ GENUINE_STR
> -DQT_THREAD_SUPPORT -O -MT QPrefs.lo -MD -MP -MF .deps/QPrefs.Tpo -c
>  QPrefs.C
> QPrefs.C: In function `void ::setComboxFont(QComboBox*, const
>std::string&, const std::string&, QFont::StyleHint)':
> QPrefs.C:350: error: no match for 'operator==' in 'QComboBox::text(int)
>const(i) == default_font_name'

See http://www.mail-archive.com/lyx-users%40lists.lyx.org/msg40655.html


Georg



Re: Using Covington (problems with ERT - latex conversion!)

2005-09-02 Thread Georg Baum
Am Freitag, 2. September 2005 00:02 schrieb Stacia Hartleben:
> I am using the package Covington to make numbered linguistic examples.
> The following text displays fine through latex:
> 
> \gll Dit is een Nederlands voorbeeld. 
>  This is a Dutch example. 
> \glt `This is an example in Dutch.'
> 
> But in Lyx, it does not line up like it should. I checked the Latex
> output file and it turned it into this:
> 
> \gll Dit is een Nederlands voorbeeld.
> 
> This is a Dutch example. 
> 
> \glt `This is an example in Dutch.'
> 
> \glend
> 
> Which doesn't line up properly. How can I stop ERT from putting in those 
spaces?

This is a bug that will be fixed in LyX 1.4.0. For now, don't use normal 
linebreaks in ERT, but protected linebreaks (hit Control-Enter). They 
will produce single line breaks in the .tex file.


Georg



Re: language for amsmath

2005-09-05 Thread Georg Baum
Christian Fischer wrote:

> hi everybody,
> i'm using the windows port of lyx 1.3.5. i'm creating a document witch
> the documentclass article{ams}, language is set to german.
> the problem is, when i insert a theorem, a fact or something else, all
> this is english in the created dvi but i want it to be german.
> any ideas?

This is a known shortcomming of LyX, see
http://bugzilla.lyx.org/show_bug.cgi?id=1476.

The workaround is to make a copy of the .layout file that contains the
definitions of these environments and translate the label.


Georg



Re: Turabian Style?

2005-09-09 Thread Georg Baum
Mhac Janapin wrote:

> However, our Department requires us to follow the Turabian Specifications
> in writing our paper. So in wanting to use Lyx, I tried to search for a
> style that follows the Turabian Specifications... and I don't think I
> found one.
> 
> So:
> 1) Is there an existing style available (from users here or even a
> downloadable one) that would follow Turabian?

I don't know of one. Note however that we have no 'styles' in LyX. Whe have
(among other things):

- LaTeX document classes (.cls). These are the 'sytles' in LaTeX. They can
be used in LyX only with an accompanying .layout file that tells LyX what
commands are available and how the document should look like on the LyX
screen. See also http://wiki.lyx.org/Layouts/Layouts.

- LaTeX packages (.sty). Many of them can be loaded into your document with
the \usepackage command in the preamble.

- Citation styles (.bst). These define how the bibliography will look like.
Some of them require an additional .sty file, too.

> 2) If there's none, would it be easy to modify an existing style (without
> resorting much to LaTex)?

That depends. If you find one that is close to turabian you don't need much
LaTeX.

> 3) Do I really have to resort to LaTeX?

It is quite easy to make a LaTeX document class known to LyX, see
http://wiki.lyx.org/Layouts/CreatingLayouts. If you don't have a LaTeX
class it is more difficult.

Searching for turabian latex gave this link:
http://gbsmith.freeshell.org/thesis/LaTeX/. Using this is even more simple,
since it is not a document class but a package file that can be used with

\usepackage{turabian}

in the preamble. The accompanying citation style turabian.bst should be
selectable in the bibtex dialog once it is correctly installed LaTeX-wise
and LyX has been reconfigured.


Georg



Re: OT: tetex RPMs (was: Re: Problems installing 1.3.6-1 RPMs

2005-09-12 Thread Georg Baum
Peter Flynn wrote:

> All that's required is for the maintainer of the tetex RPMs to use
> up-to-date versions from CTAN, and for the author of the embedded
> install script in the LyX RPM to test for a working kpsewhich instead
> of assuming it's in the location the RH tetex RPMs install it.

It does so, but what you are seeing is the rpm dependency of the LyX rpm on
the TeX rpm. If you install LyX from rpm, it will depend on the TeX rpm
(see below). This is done on purpose, otherwise the rpm would be useless
for ordinary users who use the TeX rpm. If you don't have the TeX rpm,
install LyX from source, or use  the --nodeps switch of rpm. As Jose'
wrote: You are on your won if you want to use the LyX rpm without its
dependencies.

> Sorry for the OT flak, but I've been supporting TeX for 20 years, and
> the inconsistencies of the RH tetex RPMs are the biggest headache we
> have.

If that really is the case use something else. The important thing to
remember is: rpm and yum do not know of software that is installed from
something else than rpms. So if you don't install TeX from an rpm you will
get missing dependencies in may TeX related rpms. This is no error, neither
of the packages nor of rpm, it is the way how the rpm system was designed
and works.
You can work around this either with the --nodeps switch of rpm, or by
installing these packages from source.


Georg



Re: Portability to Neo/Open/Star Office?

2005-09-16 Thread Georg Baum
Mike Meyer wrote:

> I haven't been able to find anything to handle the "to" part. Can
> someone provide me with pointers? In a pinch, they can read MSWord doc
> files in Writer.

Try tex4ht. It has a mode to output OpenOffice files.


Georg



Re: Portability to Neo/Open/Star Office?

2005-09-16 Thread Georg Baum
Andre Berger wrote:

> BTW, how would you represent
> 
> htlatex yourdocument.tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo"
>  ^^^
> 
> in a LyX preference file?

Untested:
\converter "latex" "sxw" "\"xhtml,ooffice\" \"ooffice/! -cmozhtf\" \"-coo\" 
$$i" "latex"

If it does not work, please file a bug on bugzilla.lyx.org.

\converter "latex" "sxw" "\"xhtml,ooffice\" \"ooffice/! -cmozhtf\" -coo $$i" 
"latex"

should also work.


Georg



Re: Compiling LyX 1.3.6 with qt: SegFault

2005-09-22 Thread Georg Baum
Jim Osborn wrote:

> In the process of upgrading from KDE 3.4.0 to 3.4.2, I'm trying to
> upgrade from LyX 1.3.5 to 1.3.6. The compile fails with these messages:
> 
> Making all in qt2
> make[5]: Entering directory
> `.../konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2' Making
> all in ui make[6]: Entering directory
> `.../konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2/ui' Making
> all in . make[7]: Entering directory
> `/konstruct/apps/office/lyx/work/lyx-1.3.6/src/frontends/qt2/ui'
> /usr/lib/qt3//bin/uic -tr qt_ -impl BiblioModuleBase.h BiblioModuleBase.ui
> -o BiblioModuleBase.C make[7]: *** [BiblioModuleBase.C] Segmentation fault
> make[7]: *** Deleting file `BiblioModuleBase.C' ---end of
> excerpt--

So the segmentation fault happens when running uic. This should be reported
to trolltech, because it seems to be a bug in uic.
Meanwhile, changing the variable UICFLAGS

UICFLAGS=-tr qt_ -nounload

in src/frontends/qt2/ui/Makefile.am (and src/frontends/qt2/ui/Makefile.in if
you don't have the autotools) cured a similar problem for me.


Georg



Re: How to avoid "\url already defined"?

2005-09-27 Thread Georg Baum
Bo Peng wrote:

> Dear list,
> 
> I  have been annoyed by two problems recently, both related to
> lyx-added latex code  conflicting with customized document classes.
> For example, I am using manual.cls from python to produce a manual.
> However, manual.cls defines \url so it will conflict with the
> \newcommand\url command added by lyx.

Set

ProvidesUrl 1

in the layout file.

> Another case is when a 
> customized latex class (for a journal) loads natbib first but with
> different parameter to  what lyx-loaded natbib uses. If I do not
> select natbib in lyx, I can not use natbib citations although the
> document class supports it. (I know I can use ERT, but...)

Set

ProvidesNatbib 1

in the layout file.


Georg



Re: Slow Display on 1.4cvs

2005-09-28 Thread Georg Baum
Daniel Watkins wrote:

> I'm using 1.4cvs (downloaded and compiled a few hours ago) with the Qt
> front-end. ATM, I'm noticing that LyX is barely keeping up with my
> typing, which is something I hadn't noticed on 1.3.6. Is this just my
> imagination, my computer, or are other people experiencing the same
> thing?

This problem is known, and people are working on it.

> It's not really a major problem, it's more a minor irritation (certainly
> not enough to discourage me from LyX :p).

It is actually a major problem for really long paragraphs. If you are
interested in the details, look at the posts in the developers list of the
last few days.


Georg



Re: \line and justification

2005-09-28 Thread Georg Baum
Christopher M. Jones wrote:

> Hi, all. This is a reiteration of my previous question. Someone
> responded off-list that I should try \newline. Problem with this is that
> what I really want is -inline- 'blanks' that don't break justification.
> If I'm asking this question in the wrong place, then please, someone let
> me know where I can find the answer.

Does \vspace*{1cm} in ERT do what you want? Or do you want an empty space in
the middle of a text row? Then try \hspace*{5cm}.


Georg




Re: Trouble with ispell

2005-09-28 Thread Georg Baum
Luis Angel Fernández Cuadrado wrote:

> Hi,
> 
> I'm using SuSE 9.3 on an AMD64 machine. Normally, I compile LyX from
> source but last time I was a bit lazy and downloded and installed the
> 1.3.6 binary in the LyX ftp site (bin) compiled for SuSE 9.2.

Maybe this is the problem. IIRC the rpm is compiled with aspell support via
library, which is /usr/lib/libaspell.so.15 in SuSE 9.2. Did the rpm install
without problems, or did you need --forde-depends?


Georg



Re: \line and justification

2005-09-29 Thread Georg Baum
Christopher M. Jones wrote:

> No, I am using \line because I want an horizontal line in the place of
> missing words. It's what a Word user would repeatedly hit the _ to do.
> \hspace just leaves an empty space, but has the same problem. Here's a
> sample output so you can see the ugliness that I want to fix.

In your PDF I can see that you sometimes forgot a space after the line, and
therefore line breaking does not work.
Apart from that I fear you have to adjust the line lengths manually to fit
on the page width. Maybe Herbert has a solution to make a "breakable line",
but this is probably not trivial.


Georg




Re: \line and justification

2005-09-29 Thread Georg Baum
Christopher M. Jones wrote:

> justified environment. What would really be great is if I had a command
> to replace typed text with a line of the same length. e.g.
> \hspace{\sizeof{theword}}. This command, of course, does not work. But
> could there be something like it?

Maybe (untested)

\underline{\hphantom{typed text}}

?


Georg



Re: Poor men's scientific workplace.

2005-10-07 Thread Georg Baum
Bo Peng wrote:

> I get his first complain against lyx today: "The lyx file is corrupted
> after I edit your formula, I hope that you can open this file...". The
> real problem, as I later found out, is that he accidentally inserted a
> math symbol \times in a \textrm box, a problem I had asked for a
> thorough solution many times in this list.

This is http://bugzilla.lyx.org/show_bug.cgi?id=1527

[snip complaints]

This is all true. The big problem is that the proper solution (i. e. make
text in mathed behave like normal text) requires non-trivial code and file
format changes. Therefore this bug will not be fixed for 1.4.0.


Georg



Re: An interesting little problem.

2005-10-07 Thread Georg Baum
Bo Peng wrote:

> Dear list,
> 
> To track the changes of a lyx file, I insert $Rev$ in the text. After
> first 'svn ci', $Rev$ is replaced by $Rev: 40 $. However, when I open
> and save this file, $Rev: 40 $ is replaced by $Rev:40$  (blank spaces
> are removed) which can no longer be recognized by subversion.
> 
> Anyone know a quick solution?

I put revision numbers in the preamble, where they are preserved.


Georg



Re: Poor men's scientific workplace.

2005-10-07 Thread Georg Baum
Bo Peng wrote:

> Along the same line, is there any way to prevent a user from using a
> environment in the wrong context? For example, inserting a marginal
> note in a float figure is not allowed in latex, but can be done in
> lyx. Maybe we can disable certain environment/menu items dynamically.
> (I think this is true at some level but I do not know the details.)

Please file this in bugzilla if it is not already there. I don't know if it
is currently possible to prevent things like this.

> Please allow me to re-iterate again here my expectation about lyx:
> there should be no latex error from normal user input, which means
> anything except for ERT and preamble manipulation.

Agreed.


Georg



Re: Poor men's scientific workplace.

2005-10-07 Thread Georg Baum
Bo Peng wrote:

> I was no talking about format tweaking, rather, I was complaining
> about installation, configuration and erroneous error messages when
> entering a small formula. These are things that drive potential lyx
> users away, who I assume are trying lyx/latex exactly because they do
> not want to tweak minor appearance problems.

The last time I installed LyX on winxp with a student the total installation
time was about 20 minutes. This included the prerequisites like minsys,
python etc. as well as tweaking the configuration to include our local
thesis class, toolbar etc. I don't think this time is too long. It was not
difficult either, thanks to the people who created the new installer.

If you have any complaints about installation, configuration or erroneous
error messages please put them in bugzilla with an exact description what
you did, what happened and what you expected to happen. Otherwise the
complaints will be forgotten, and nothing happens.


Georg



Re: Poor men's scientific workplace.

2005-10-08 Thread Georg Baum
Am Freitag, 7. Oktober 2005 20:10 schrieb Bo Peng:
> > The last time I installed LyX on winxp with a student the total 
installation
> > time was about 20 minutes.
> 
> Python, perl, mingw, imagemagik, tetek, lyx (and maybe ghostscript,
> ghostview) in 20 min? I can not believe it.

Sorry, I was a bit unclear. Miktex was already installed. And we did not 
install perl, since it is only needed for the obsolete reLyX. And we had 
a fast connection, so downloading was a matter of seconds.

> > This included the prerequisites like minsys, python etc. as well as
> > tweaking the configuration to include our local
> > thesis class, toolbar etc.
> 
> I must say that you are quick at these tasks.

But apart from the configuration tweaking and the fact that we did not get 
perl I did not need any LyX knowledge.


Georg



Re: Building 1.4pre2 in Ubuntu Hoary

2005-10-10 Thread Georg Baum
[EMAIL PROTECTED] wrote:

> I've got these qt-related packages installed (I searched for 'qt'):
> 
> libqt3c102-mt 3.3.3.4-3
> libqt3-headers3.3.3.4-3
> qt3-dev-tools 3.3.3.4-3

In addition you need at least libqt3-mt-dev, and probably also
libqt3-compat-headers (assuming that the ubuntu package names are the same
as on debian).


Georg



Re: Converting from EPS to JPG

2005-10-10 Thread Georg Baum
Paul Smith wrote:

> Thanks to all who have answered. The picture that I have got is a PS
> file and corresponds to a small rectangular part of an entire part.
> How can I throw away the whole superfluous white space around the
> picture? I have tried GSview to convert the PS file to EPS with 
> automatic calculation of the bound box, but all I get is a blank EPS
> file.

Normally that should work. An alternative is to set the bounding box
manually in LyX (graphics dialog) so that only the interesting part is
shown.


Georg



Re: FW: space between single and right double quote marks

2005-10-12 Thread Georg Baum
Daniel Watkins wrote:

> The word was 'foo'\InsetSpace \thinspace{}

This is 1.4. There is no small space in 1.3, you have to use ERT.


Georg



Re: Presentations using LyX

2005-10-13 Thread Georg Baum
Gour wrote:

> Another option would be to use e.g. inkscape (which provides LaTeX with
> PSTricks macros output format) & to have pgf backe-end so that inkscape
> can integrate LaTeX fonts and macros ready for pgf & inclusion in
> beamer presentation?
> 
> What is the status of SVG support in LyX/LaTeX?

It is the same as with any image format: If you have a converter that
transforms svg in eps (can inkscape do that from the command line?), you
can define it in the preferences and simply include svg figures in your
document. I don't know if the standard converter can handle this
transformation.

You could also write an "external template" to use the "LaTeX with PSTricks
macros output format" of inkscape. This would be very similar to the
existing xfig template.


Georg



Re: 1.4.0pre2/mac crashes

2005-10-15 Thread Georg Baum
Am Samstag, 15. Oktober 2005 20:51 schrieb Andre Berger:
> Whenever I start 1.4.0pre2/mac on Mac OS X 10.4.2 and hit  n>, the app crashes. It won't crash when I use the mouse and select
> File>New.

This known: http://bugzilla.lyx.org/show_bug.cgi?id=2086


Georg



Re: More about foreign languages - No!

2005-10-16 Thread Georg Baum
Am Sonntag, 16. Oktober 2005 17:09 schrieb Daniel Watkins:

> What you in fact need to do is ensure that any of the items that are in
> the wrong language. Select everything that needs to be in Portueguese
> and go to Edit > Text Style. Choose the correct language from the
> Language drop box.

That is Format->Character in 1.3. But if the whole document is in 
portuguese it is better to set the document language. If that does not 
work, check your LaTeX installation, as others pointed out.


Georg



Re: copy and paste between lyx documents does not work

2005-10-17 Thread Georg Baum
Gunnar wrote:

> I'm using Linux and if I open two LyX documents, I can't copy and paste
> between the two windows.

I guess you mean two LyX instances? In this case it is indeed not possible.
If you open both documents in the same LyX instance, you can copy
everything with C-c and C-v.

> I can select text in other windows and paste it by a mouseclick in a LyX
> window.
> Why can't I copy/paste between the LyX windows?

Because it has not been implemented.


Georg




Re: copy and paste between lyx documents does not work - why not?

2005-10-17 Thread Georg Baum
[EMAIL PROTECTED] wrote:

>> I'm using Linux and if I open two LyX documents, I
>> can't copy and paste
>> between the two windows.
> 
> Oh, you can! It's true! :)
> 
>> I can select text in other windows and paste it by a
>> mouseclick in a LyX
>> window.
>> Why can't I copy/paste between the LyX windows?
> 
> Then, do the following: Select the text in your
> first Lyx window, press Ctrl+C, then switch to the
> other Lyx window and press THE MIDDLE BUTTON OF YOUR
> MOUSE! :)

That does only work for text (and looses all formatting), not for tables,
graphics etc. These can only be copied between documents opened in the same
LyX instance.


Georg



Re: Lyx command line question

2005-10-18 Thread Georg Baum
Sanders, Maarten (M.J.L.) wrote:

> I try to use lyx from the command line.
>  
> In lyx 1.4pre2 preview pdflatex goes fine.
>  
> On the commandline I get:
>  
> $ lyx --export latex myfile.lyx
>   ... lot of messages but OK
> $ pdflatex myfile.tex
>  ... goes fine except for an gif image. I can  the latex question
> about an image not being found and the image is not there in the
> resulting pdf.
> Anyone an idea on what to do to get the image?

Please open a bug report in bugzilla and attach a minimal example file +
graphic that demonstrates the problem. LyX 1.4 should convert the image to
a suitable format if necessary, so this looks like you have encountered a
bug.


Georg



Re: Lyx command line question

2005-10-18 Thread Georg Baum
Am Dienstag, 18. Oktober 2005 16:09 schrieb Sanders, Maarten (M.J.L.):
> Georg/Angus,
>
> From within the GUI things work fine. It is just the conversion on the
> commandline that does not do the part where the gif file is converted to
> some format pdflatex understands. Convert is present on my system.
> This could be a bug but also be my understanding of the steps I need to
> take do this from the commandline, e.g.:
>
> $ lyx --export latex mylyxfile.lyx <--works
> $ missing step?? <-- some step to convert all gifs to something pdflatex
> understands

This should be done automatically by LyX.

> $ pdflatex mylyxfile.tex <-- works, except for the gif

There is no missing step. commandline export should produce identical results 
to GUI export.


Georg


PS: Please always reply to the list


Re: Lyx command line question

2005-10-18 Thread Georg Baum
Geoffrey Lloyd wrote:

> Yes it should but you must note that Export->Pdflatex is different to
> Export->latex followed by running pdflatex on the file.
> 
> In the second case the only Export that Lyx is performing is Lyx->tex.
> This will not convert any graphics file formats.

This is true for 1.3.x, but 1.4 converts included graphics files if needed,
and references the converted file in the .tex file. So the procedure

lyx --export latex mylyxfile.lyx
pdflatex mylyxfile.tex

should produce identical results to export->pdflatex from GUI, with one
exception:
lyx --export latex can not know if the produced .tex file will be run
through pdflatex or latex. It assumes latex, and this is the problem here:
The gif file is converted to eps, and the .tex file contains
'\includegraphics{foo}'. latex would find foo.eps (which was created), but
pdflatex would find foo.pdf, foo.png or foo.jpg.

> So I recommend you use png or jpg files in the original dicument.

This is indeed a workaround until we have a 'pdflatex' export format.


Georg



Re: Lyx command line question

2005-10-19 Thread Georg Baum
Am Mittwoch, 19. Oktober 2005 20:51 schrieb Paul Smith:

> I agree, Paul. The reply address should be occupied by the list's 
address.

I don't agree. Read http://www.unicom.com/pw/reply-to-harmful.html, and 
then get a decent email program (or news client, if you read the list via 
gmane). For example, I press L in kmail when I want to answer to the 
list.


Georg



Re: No one answered a simple topic :(

2005-10-22 Thread Georg Baum
Am Samstag, 22. Oktober 2005 00:12 schrieb Rich Shepard:
>No. At least, not for me. I use .eps graphics in book, article, 
report, and
> beamer classes with no problems compiling with pdflatex.

AFAIK eps can not be handled by pdflatex directly, but LyX converts 
included eps files to something that pdflatex can handle.


Georg



Re: Preamble code from the layout file gets "double linespacing"

2005-10-24 Thread Georg Baum
Helge Hafting wrote:

> I just tried recompiling todays cvs.  Running this lyx gave strange
> results.  Any latex code from the preamble gets double linespacing,
> like this:
> 
> \newcommand{\mycommand}{
> 
> \something
> 
> \something
> 
> }
> 
> 
> 
> which go wrong, as paragraph breaks are not allowed in commands.
> I am rebuilding after a make clean, to see if that makes things
> better.

It will not help. You found a bug in the new layout file converter. You need
to add the line

Format 2

as first non-comment line in all layout files that are already in 1.4
format.


Georg



Re: Where can I see what lyx is doing in the background when generating a preview?

2005-10-30 Thread Georg Baum
Am Sonntag, 30. Oktober 2005 00:05 schrieb Paul A. Rubin:
> Sanders, Maarten (M.J.L.) wrote:

> > I already found out things work again when I remove the image from the 
child document OR when I adjust the page margins in the preamble instead 
of with the menu options.

Very strange.

> > I am running 1.4.0pre2. Since I don't want to bug the developers with 
this vague error and I have done so many not normal things to my 
documents I rather try to find out myself first where things go wrong. So 
my question is:
> > 
> > Where can I see what lyx is doing in the background when generating a 
preview?
> > 
> > Thanks,
> > 
> > Maarten
> > 
> 
> I would try starting LyX in debug mode (lyx -dbg all) from a command 
> shell and see what messages turn up during the interlude.

This should read

lyx -dbg any

but gives very much info. I guess that in this case

lyx -dbg graphics

would be better. To get a list of all possible debug switches, type

lyx -dbg


Georg



Re: importing material into figures

2005-11-08 Thread Georg Baum
Am Dienstag, 8. November 2005 18:32 schrieb hagit lev:
> Hi
> I have lots of material - such as Surfer maps, Origin graphs etc. and I 
> wondered if I can import them directly to Lyx or need to export them 
> first to jpeg and only then import ?

You can import any figure material directly if you have a tool that can 
convert it (from the command line) to a format that LyX knows of. You 
then need to define this tool as a converter. The Wiki and Customization 
guide tell you how this works.
If such a tool is not available you need to export the figures. I 
recommend the following formats:
EPS or PDF for vector graphics (i. e. some graphs)
PNG for bitmap figures with a small number of colors (e. g. scanned 
material)
JPEG for bitmals with a lot of colors (e. g. photos), but keep in mind 
that the JPEG format is lossy

> Cause I tried to export surfer to EMF, but the result in the DVI file 
> was a huge picture, and when I tried to minimize it (scaling it to only 
> 20% in the figure dialog box) the quality was horrible.

In  theory EMF would work well for vector graphics. In practice the EMF -> 
EPS converters available on Linux don't work well enough (because EMF and 
WMF formats are no real file formats, but simply a recording of the 
windows API calls that are needed to produce the figure on screen or on 
printer). The situation might be better if you are on windows, I have 
been told that better converters are available on that OS. You might get 
good results with EMF if you specify such a tool as EMF -> EPS converter.


Georg



Re: Suggestion

2005-11-08 Thread Georg Baum
Am Dienstag, 8. November 2005 17:47 schrieb Roy Schestowitz:

> I  noticed  that too, but never complained. I re-adjusted my mind and  
got
> accustomed *over time*. This behaviour is attributed to the LaTeX/LyX 
for-
> mat  underneath, yet a few tweaks could probably correct this.  
Selections
> do  not include the structural information that precedes them, e.g.  
"Sec-
> tion".

IIRC this will be fixed in the upcoming 1.4.0 release.

Roy and Paul, I did not read your suggestions completely, but they look 
sensible at a frist glance. Please file them an enhancement request at 
http://bugzilla.lyx.org so that they will not be forgotten.


Georg



Re: Forget Windows

2005-11-08 Thread Georg Baum
Am Dienstag, 8. November 2005 22:18 schrieb John Coppens:

> Anyway, I see there is some interest (mine included) for a native GTK+
> version, so I'll try and compile one (I suspect it compiles at least?).

Yes, it does, and it is also somewhat useful, since it borrows xforms 
dialogs.

> Who is the person to take contact with for hints/diffs/ etc? Is that 
John
> Spray?

Probably the devel mailing list.


Georg



Re: Write debug info to file

2005-11-08 Thread Georg Baum
Abel Fernández Fernández wrote:

> Is there any way of write debug info in a text file?
> I do this --> lyx -dbg latex
> for show debug info, but this write into console.

You can redirect the standard error output to a file on unix systems:

lyx -dbg latex 2>err.log

On windows it looks maybe different.


Georg



Re: Write debug info to file

2005-11-09 Thread Georg Baum
[EMAIL PROTECTED] wrote:

> On Wed, 9 Nov 2005, Georg Baum wrote:
> 
>> lyx -dbg latex 2>err.log
> 
> I'm guessing this assumes bash or sh as the shell?

Yes.


Georg




Re: Multline subscript / AMS in LyX

2005-11-12 Thread Georg Baum
Rudi Gaelzer wrote:

> Well, OK, thanks anyway, but this is Lamport-style, standard LaTeX.  One
> of the aims of the AMS package, though, is to provide resources that
> render mathematical display that is aesthetically more appealing than
> standard LaTeX...

And it offers a lot of useful tools.

> Just for you to notice the difference between array and subarray
> environments in this case, I'm attaching a small .tex file which compares
> both instances.

And I attach the same file converted to LyX with tex2lyx.

> On Friday 11 November 2005 18:04, Helge Hafting wrote:
>> On Fri, Nov 11, 2005 at 05:33:39PM -0200, Rudi Gaelzer wrote:
>> > Does anyone know if the subarray AMS environment is implemented in LyX
>> > (I mean, not in ERT mode) and how to use it?

It is "semi-supported": It has no GUI entry, and you can't distinguish it
optically in LyX from a normal array, but you can create a 1x1 subarray if
you enter \subarray  in math mode. You can then add columns and rows
or change alignment with the usual tabular commands.
Every AMS construct I know of is at least supported like subarray.


Georg

test_subscript-t2l-221.lyx
Description: application/lyx


Re: Multline subscript / AMS in LyX

2005-11-13 Thread Georg Baum
Am Sonntag, 13. November 2005 17:14 schrieb Rudi Gaelzer:

> Do you know if the package empheq:
> http://www.ctan.org/tex-archive/macros/latex/contrib/mh/doc/empheq.pdf
> is also implemented in LyX?  Among other stuff it creates a box around a 
> system of equations.

No, it is not, but it should be ;-) See 
http://bugzilla.lyx.org/show_bug.cgi?id=2128


Georg



Re: about the window just above the status bar

2005-11-15 Thread Georg Baum
Nusret BALCI wrote:

> Risking to sound silly, what's the window on the
> bottom part of main lyx window, just above the status
> bar for? It looks like kind of command line, but I'm
> not sure: it certainly doesn't understand LaTeX
> commands :), so it should have some other
> functionality. Probably not very important, but I
> wonder.

You are right, it is some kind of command line. It is the so-called
minibuffer and understands "lfuns". See http://wiki.lyx.org/LyX/Mini-buffer
for more info.


Georg



Re: How to create a new page in Lyx?

2005-11-17 Thread Georg Baum
John C. McCabe-Dansted wrote:

> Hmmm, it would make more sense to put Pagebreaks under
> Insert\Special_Character together with linebreaks would it not?

Right. In LyX 1.4 you will see Insert->Special Formatting->Page Break (and
Line Break and a few more).


Georg



Re: LyX and Mathematica

2005-11-18 Thread Georg Baum
Andrzej Tomaszewski wrote:

> Hi All!
> 
> I am asking a question on the list because I could not find anywhere any
> information about integrating LyX and Mathematica.
> 
> I am using W2K OS, LyX 1.3.6-1 and Mathematica 4.1. What exactly have I to
> do in order to be able to use (math-extern mathematica) function?
> Script "configure" does not have an entry for Mathematica, however I have
> tried adding a path to Mathematica binaries to the LyX paths...
> Unfortunately nothing happens...

The reason is that the mathematica interface is only halfway implemented. So
unless you finish the implementation it will not work. :-(


Georg



RE: LyX and Mathematica

2005-11-18 Thread Georg Baum
Andrzej Tomaszewski wrote:

> Does it mean LyX menu entry does nothing at all, or that it's
> functionality is (very) limited?

AFAIK it does nothing at all.

> If the first is true, what about Maxima support?

That should work.

> In the "configure" script 
> I have found only the entries for Octave and Maple - Maple is "a bit" too
> expensive, and Octave is primarily numeric system...

The entries in the configure script are not used. See
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/mathed/math_extern.C?rev=1.47.2.1&only_with_tag=BRANCH_1_3_X&content-type=text/vnd.viewcvs-markup
(function pipeThroughExtern) if you want to know more about the integration
of external mathematical programs with LyX.
I guess that it is not too difficult to finish the mathematica support if
you have a compiler and know a bit C++.


Georg



Re: tex2lyx problems

2005-11-18 Thread Georg Baum
Horacio Emilio Pérez Sánchez wrote:

> Now the script lyx2lyx works with no error messages, so I have a new lyx
> file supposedly for the 1.3.5 version format.
> 
> When I open this file with lyx 1.3.5, there are no errors during the
> import process, but when I compile to pdf, there is a lot of errors.
> 
> It seems to me that, unfortunately, there is already a lot of work to do
> with this program.

I agree with José that it is probably only a minor bug (unless you are doing
some nasty LaTeX tricks).

> So I don't know what to do now. Maybe I will write again the latex
> document in lyx from zero, at least I am sure it will work.

You can send me the original .tex file privately (if it is not too
confidential), so that I can find out what the problem is and probably
solve it. Free software can only be improved if bugs are reported.


Georg



Re: tex2lyx problems

2005-11-18 Thread Georg Baum
Am Freitag, 18. November 2005 17:27 schrieben Sie:
> Here it goes the original tex file. Don't you worry is not confidential at
> all, just for educational purposes.
>
> And if you solve the problem, please tell me or tell the forum so all of us
> can learn from these bugs.

It was very easy:

You had the two commands

\newcommand {\be} {\begin{equation}}
\newcommand {\ee} {\end  {equation}}

in the preamble and used these. This falls under the category "dirty tricks" 
as far as tex2lyx is concerned, because tex2lyx does not know that these 
commands start math mode and does not interpret macros. Everything works well 
if you replace these commands by their definition:

s/^\\be$/\\begin{equation}/
s/^\\ee$/\\end{equation}/

replaced all but one occurence, which I searched and replaced by hand. I 
needed to bind the searched words to the beginning and end of the line, 
otherwise it would also find \begin and \end.


Georg


Re: tex2lyx problems

2005-11-18 Thread Georg Baum
Am Freitag, 18. November 2005 19:03 schrieb Jose' Matos:
>   This could/should go in the wiki I have seen this kind of stuff so 
many 
> times, the problem is that this varies from person.

Yes. Any takers? I have no time at the moment.


Georg



Re: latex import problem

2005-11-21 Thread Georg Baum
Sanda Pavel wrote:

>> Did you try tex2lyx? It may give you better results.
>> See http://wiki.lyx.org/LaTeX/LatexToLyx for available
> 
> that produces lyx, which cant be corectly displayed by the older
> version then lyx 1.4 (which is not yet :)
> compiling devel release is not easy for my configuration now, so
> i will wait for 1.4 release.

tex2lyx does not help in this case. The reason is the non-standard command
\textoverset which is not supported by LyX.
Form your file it seems that \textoverset takes two text arguments (the
style files are not readable):

\textoverset{${\mathchar"0362}$'}{$\sigma$}=\frac{1}{T}

rewrite that as 

\overset{{\mathchar"0362}'}{\sigma}=\frac{1}{T}

and everything should work.


Georg



Re: full list of supported tex/latex/AMS latex commands?

2005-11-21 Thread Georg Baum
Nusret BALCI wrote:

> Hi,
> Is there a full chart of *all* officially supported
> (in the sense that LyX can handle and render them
> without resorting to ERTs) commands available
> somewhere? (or all not available, especially for all
> official latex packages by Latex2 team and for AMS
> packages).

I don't know of such a list (for math, you can use the german document by
Uwe Stöhr in the wiki: http://wiki.lyx.org/LyX/LyXMathebefehle).

> If not, could someone involved in the develeopment
> quickly give pointers to the source code (a release
> version, or CVS, it doesn't matter). Are they all in a
> well-defined place in the source code? (assuming there
> is no official list of supported structures, otherwise
> just documentation is fine).

All AMS math commands that I know are at least "semisupported". That means
that you can type them in math mode, and LyX will recognize them, e.g. type
\subarray  and you'll get an 1x1 AMS subarray.

The file http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/symbols tells
LyX how to handle the math commands that are not hardcoded. You can enter
more commands here if needed.

You can find some commands in the layout files:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/lib/layouts/. Some others
have their own "insets":
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/insets/ (text mode)
and http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/src/mathed/ (math
mode).


Georg



Re: Convert png to eps automatically

2005-11-21 Thread Georg Baum
Gunnar wrote:

> Hi.
> I'm trying to setup a perfect LyX environment in MS windows for users that
> is not very used to LyX/LaTeX.
> The problem I have right now is that they make drawings in MS paint.
> The question: is there any way to make LyX convert png/gif pictures to eps
> automatically? They display the pictures fine , but I can't produce any
> output in pdf files.
> 
> Using imagemagick from the command line, well, I can just forget teaching
> them that.
> The perfect thing would be a "preprocessor" that converts  foo.png to
> foo.eps

You don't need that. You only need to make sure that LyX can find the "sh"
program" from minsys and the "convert" program from ImageMagick. The
installer of LyX 1.3.6 tries to set up the path prefix
(Edit->Preferences->Paths->Path Prefix) to include the needed paths. Did
that not work? If not, does it work if you enter the paths manually?


Georg



Re: Quality of figures

2005-11-24 Thread Georg Baum
> [André]
> 
> Just one more question about the background image. Here, and in the  doc
> you
> sent, too, the picture looks like a badly compressed jpeg,  although we
> feed a
> nice clean eps. I found no information about this,  neither in the
> graphicx nor
> in the eso-pic documentation. Do you have  an idea?

Read the chapter about converters in the customization manual, it describes
how LyX chooses a suitable conversion chain. It is possible that this chain
contains jpeg, that would explain the compression.

> [Roy]
> 
> Good and fair point. *smile* My image was of low quality to begin with
> and at compilation time it was compressed further. From my experience,
> LyX compresses graphics strongly by default.

No. It is the converter that decides whether to compress or not. If the
default converter from ImageMagick is not doing what you want, add a custom
converter in Edit->Preferences.

> [Roy]
> 
> My LaTeX compiler likes PNG and the like, but not EPS. I use the GIMP
> (gimp.org) for format conversions. But 'convert' from ImageMagick can do
> likewise rapidly.

Uwe wrote it already: pdflatex likes png, jpeg and pdf. latex likes eps and
ps. Everything else must be converted. FAIK this is identical in all TeX
distributions.

> [André]
> 
> Yeah, I am using convert for such stuff, too. Funny enough, pdflatex 
> launched from LyX works fine with eps, but not from the command line.

Because LyX converts the image for you if you create the file from LyX. It
does not convert the image if you export the file to .tex (this will be
fixed in 1.4.0).


Georg



Re: lyx on Debian testing

2005-11-28 Thread Georg Baum
Alexandru Cabuz wrote:

> Has anybody found a way to get lyx working on a Debian testing system? It
> seems there is a bug that prevents one from just apt-getting it. See
> http://packages.qa.debian.org/l/lyx.html
> 
> and
> 
>
http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&data=lyx&archive=no&pend-exc=fixed&pend-exc=done&sev-inc=critical&sev-inc=grave&sev-inc=serious
> 
> So is there a way to trick it into installing on a non ia64 machine like
> mine?

Create your own .deb: Apply the diff
http://ftp.debian.org/debian/pool/main/l/lyx/lyx_1.3.6-1.diff.gz, and then

chmod +x debian/rules
fakeroot debian/rules binary

and you are done.


Georg



Re: orientation of .eps figures

2005-11-28 Thread Georg Baum
Richard Sherman wrote:

> Thanks Uwe.
> 
> I'm using Tetex 2.0.2-34 on Mac OS X 10.4.3.
> 
> Here's a Lyx file and the .eps file that belongs in it.

I tested it, and the result is:

dvipdfm fine
pdflatexrotated
ps2pdf  fine

This is the same in tetex 2.02 and tetex 3.0 on linux. I guess that you have
hit a bug (or feature?) of pdflatex.
Ask on the pdftex list (http://tug.org/mailman/listinfo/pdftex) after you
read the manual. I am sure that you'll get an explanation quickly.


Georg




Re: orientation of .eps figures

2005-11-28 Thread Georg Baum
Am Montag, 28. November 2005 19:57 schrieb Herbert Voss:
> Georg Baum wrote:
> > I tested it, and the result is:
> > 
> > dvipdfm fine
> > pdflatexrotated
> 
> and how did you get a pdf file of the eps image ... ;-)
> pdflatex does nothing with the image!

True, if I export to .tex and then run these programs. If I export from 
LyX directly LyX will convert the eps file to pdf, so the fault is not 
with pdflatex but with ghostscript as you already said (which was called 
in my case via "convert").
If I use epstopdf to convert the image it will not be rotated but go to 
the bottom of the page (probably because epstopdf assumes A4 paper size).


Georg



Re: lyx 1.3.6 - g-brief.layout missing ?

2005-11-28 Thread Georg Baum
Am Montag, 28. November 2005 20:02 schrieb Stefan Brunner:

> i have a latex file that uses the g-brief template so when trying to  
> run relyx in the command line i get
> 
> -- snip --
> (offer_de.tex: Splitting Preamble
> Creating LyX preamble
> Cannot find layout file g-brief.layout in dir(s) /Applications/ 
> LyX.app/Contents/Resources/lyx/layouts
> -- snip --
> 
> 
> is it possible (or first - would this solve my problem?)  to install  
> g-brief.layout ?

This file does not exist. Use g-brief-de.layout or g-brief-en.layout 
instead, they both use the g-brief document class.

I think you can call reLyX with

reLyX -c g-brief-de myfile.tex myfile.lyx

If that does not help, copy g-brief-de.layout to g-brief.layout (but that 
would make the resulting document nonportable).

You might also want to have a look at tex2lyx (see 
http://wiki.lyx.org/LaTeX/LatexToLyx, because reLyX is rather limited), 
but that would have the same problem and the same solution:

tex2lyx -c g-brief-de myfile.tex myfile.lyx


Georg



Re: shared document format for multiple files

2005-11-30 Thread Georg Baum
[EMAIL PROTECTED] wrote:

> so i decided to break up my doc using inclusions.
> but now they each have their own document format, if i change the option
> in the main file the included files wont know about them and vice-versa...
> 
> is it possible to share document format among files?

Unfortunately not. The closest workaround is to put everything into a file
preamble.tex and write in the preamble section of each .lyx file

\input{preamble}

BTW if you create DVI, PS or PDF etc. from the master document all settings
like documentclass, papersize etc. of the included documents are ignored.


Georg



Re: c++2tex

2005-12-04 Thread Georg Baum
Am Sonntag, 4. Dezember 2005 17:54 schrieb Uwe Stöhr:

> Use the LaTeX-package "listings". I attached an example LyX-file.
> Perhaps LyX should support the listings-package in one of the next 
releases.

Yes, it should. See http://bugzilla.lyx.org/show_bug.cgi?id=508


Georg



Re: [Mac OS X] Problems with pdfTeX, DVI and images (EPS, PDF, PNG, whatever)

2005-12-05 Thread Georg Baum
Am Montag, 5. Dezember 2005 14:40 schrieb Jean-Francois Roy:

> Indeed, I cannot seem to include any graphics (images) in my  
> documents. Or rather, documents that are typeset perfectly fine on  
> Linux won't hear a thing on my computer. However, this only occurs  
> when I use the pdflatex, DVI or dvipdfm options of the View menu. For  
> a reason I cannot explain, the "ps to pdf" option works just fine.
> 
> Graphics are included by adding a float:figure element and including  
> within that an ERT block, with the following commands
> 
> \center{\includegraphics[scale=0.9,angle=0]{graphics/myimage.pdf or  
> myimage.png}}

This ERT is the problem. If you are using ERT you need to understand how 
the different LaTeX compilers deal with graphics. AFAIK pdf files can 
only be used natively by pdflatex. Use the graphics inset, and LyX will 
convert the files for you into a suitable format.
This does not explain why it works on Linux, but I am sure that the 
problems will go away if you use the graphics inset.


Georg



Re: c++2tex

2005-12-07 Thread Georg Baum
Lars Gullik Bjønnes wrote:

> We (I) wanted listings support then, and do now (but not for 1.4.0
> mind you!)
> 
> I know that Christian tried to pick up your old patch, but was never
> successful with that. Any help to get this in would surely be
> appreciated.

Last year I had a look at the patch and integrated it in the include inset,
because I needed to include some listings. This is sitting half finished on
my disk, I'll look at that again when the next development cycle begins.


Georg



Re: pictures and collaboration

2005-12-08 Thread Georg Baum
Gunnar wrote:

> Hi.
> If one would like to send a LyX file that contains many pictures to
> another person, one has to send all files to that person. When we are
> talking about users with moderate experience of compressed files/creating
> archives etc. I can only see problem ahead, unfortunatly.
> 
> One idea then would be to create a new kind of LyX files: "LyX-zip" files
> that
> contains all files,  expands to a temp directory when opened, and goes
> back to a LyX-zip file when closing LyX.
> 
> One problem is that the pictures can be updated, for example by external
> programs, and one shouldn't have to include the pictures again.

This is an old wish. See http://bugzilla.lyx.org/show_bug.cgi?id=700 and add
your thoughts there if not already coverd.


Georg



Re: missing documentation ...?

2005-12-12 Thread Georg Baum
Martin A. Hansen wrote:

> that is too bad. i really should say that latex ought to be the best
> application to calculate the height of the caption - so i can fit the
> image-float on a page without overshooting anything.
> 
> perhaps one could do a hack with some ERT?

Probably. I'd suggest to ask the LaTeX experts on the comp.text.tex
newsgroup for a pure LaTeX solution. Then present it here and somebody
might be able to tell you how this can be adapted to LyX.


Georg



Re: How to verify links on wiki.lyx? (Was: ...)

2005-12-15 Thread Georg Baum
[EMAIL PROTECTED] wrote:

> On Wed, 14 Dec 2005, Angus Leeming wrote:
>> http://validator.w3.org/checklink/
> 
> Hmm... I have to disable 'robots.txt', and it seems awfully slow. Thanks
> anyway, I'll keep it in mind while looking at other options.

You can make exceptions in robots.txt for exactly this client. See
http://validator.w3.org/docs/checklink.html

The slowness is on purpose: Otherwise the linkchecker could be misused for
DoS attacks.


Georg



Re: How to verify links on wiki.lyx? (Was: ...)

2005-12-15 Thread Georg Baum
Todd Denniston wrote:

> Did you notice the install it locally link?
> http://validator.w3.org/docs/checklink.html#install
> IIF you have all the prereqs installed you could mod the checker to take
> out the 1 second wait it has and run that instead of the one they have
> online.

But you should only do that if you restrict the check to local links.
Otherwise it is rude to the ckecked servers. Anyway, the delay should not
matter at all if you install it locally and run it from a cron job every
few days.


Georg




Re: placing images eps/tiff

2005-12-20 Thread Georg Baum
Kevin Pfeiffer wrote:

> I did a couple tests. For some reason I don't have tiff2ps installed, so
> I am using ImageMagick's "convert" instead. (In preferences for :
> "convert $$i PS:$$o")
> 
> The DVI output looks fine, but if I view the resulting PDF file at 400%
> magnification I see subtle compression artifacts that are not there in
> the DVI version at similar magnification.
> 
> What I am wondering: is this okay?

Your printer should give the definitive answer here, because he knows his
machines ;-)

> I'm guessing that Adobe Reader 
> compresses the image in a way appropriate to the output device (in this
> case the 72 ppi screen) in order to improve redraw time.

Maybe, maybe not. How did you produce the pdf (pdflatex, dvipdfm or ps2pdf)?
This could be a converter problem. What converter do you use for tiff->pdf
(if you used pdflatex)? The reason I ask is that LyX will convert your tiff
file to pdf and not eps if pdflatex is used.


Georg




Re: [prerelease] LyX 1.4.0pre3

2005-12-28 Thread Georg Baum
On Tuesday 27 December 2005 18:39, Anders Ekberg wrote:
> The problem comes with LyX configure, where I get "** qt library not
> found !". (Naturally subsequent compilation of LyX fails.)
> Going through the log-file I see that QTDIR seems to be pointing
> towards where I have the QT-code (QTDIR='/Users/anek/LyX-140pre3/qt-
> mac-opensource-src-4.1.0')

LyX does not work with qt 4.x, you need qt 3.x.

> Is this a known problem?

The problem is at your side. The configure script intentionally uses QTDIR to 
determine where qt is. You should either set it to point to the binary 
installation (it is never set by configure, so you or the qt install must 
have set it), or you could use the switches --with-qt-includes and 
--with-qt-libraries of configure if you don't have a a single qt directory.


Georg



  1   2   3   4   5   6   7   8   9   >