Re: Keyboard shortcut for selecting paragraph styles / environments?

2005-09-05 Thread Jean-Marc Lasgouttes
> "Paul" == Paul A Rubin <[EMAIL PROTECTED]> writes:

Paul> You can also select some (all?) environments with a keyboard
Paul> shortcut. Since the contents of the environment menu varies by
Paul> document class, unsurprisingly so do the shortcuts. Typing M-p-s
Paul> gets you the standard environment. Typing just M-p displays
Paul> (somewhat briefly) in the status line at the bottom of the
Paul> screen a list of possible completions of the sequence
Paul> (including, as noted above, M-p-space). Unfortunately, I don't
Paul> know of any visible "legend" for the shortcuts.

When you select a layout from the combox, the shortcut is shown in the
minibuffer.

JMarc


Parts and Sections numbering

2005-09-05 Thread Matt Williams
Dear List,

A (hopefully) simple question:

Using Lyx, how do "re-start" the numbering of sections for different
parts?

viz:

Part 1:
Secn 1
Secn 2
Secn 3

Part 2:
Secn 1
Secn 2

Part 3:
Secn 1
Secn 2

Thanks for your help,

Matt



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



Broadway example wanted

2005-09-05 Thread Mark Engelberg
Anyone have a good example of the brodway style in action?

Thanks,

Mark
puzzler.multiply.com 


Re: Broadway example wanted

2005-09-05 Thread Angus Leeming
Mark Engelberg wrote:

> Anyone have a good example of the brodway style in action?
> Thanks,
> Mark

You might try and contact the author, Garst Reese, directly. See 
http://www.lyx.org/about/credits.php for his contact details.

-- 
Angus



dvips option added by LyX

2005-09-05 Thread Mael Hilléreau

  Hi,

  I would like to know why LyX adds a '-t letter' option to dvips 
command when converting from DVI to PostScript and if there's a way to 
avoïd that.


This is a problem for me since it has the undesirable effect of changing 
paper orientation from landscape to portrait in the PostScript file.


Note that this option is added even if not it is not present in the 
'Preferences>Converters>DVI -> PostScript' dialog.


Thanks in advance,

Mael.

--
Mael Hilléreau



Re: dvips option added by LyX

2005-09-05 Thread Angus Leeming
Mael Hilléreau wrote:

>Hi,
> 
>I would like to know why LyX adds a '-t letter' option to dvips
> command when converting from DVI to PostScript and if there's a way to
> avoïd that.
> 
> This is a problem for me since it has the undesirable effect of changing
> paper orientation from landscape to portrait in the PostScript file.
> 
> Note that this option is added even if not it is not present in the
> 'Preferences>Converters>DVI -> PostScript' dialog.
> 
> Thanks in advance,
> 
> Mael.
> 

It appears that there's a LyXRC variable "print_landscape_flag" which
defaults to
   print_landscape_flag = "-t landscape";

You can reset it to something else from the Outputs->Printer pane (Qt
frontend) of the Edit->Preferences dialog. (See the "Landscape:" field.)

string const Converters::dvips_options(Buffer const * buffer)
{
string result;
...

if (buffer->params.orientation == BufferParams::ORIENTATION_LANDSCAPE
&& buffer->params.papersize2 != BufferParams::VM_PAPER_CUSTOM)
result += ' ' + lyxrc.print_landscape_flag;
return result;
}

-- 
Angus



Latex2html

2005-09-05 Thread Geoffrey Lloyd
Hi

Just wondered if anyone had any success using/installing this with WinXp and 
Lyx??

I tried to do an Export->Html and got an error saying it couldn't find 
Latex2html - I assume it doesn't come with Lyx (is this correct??)

If this is the case I will go and find it and do a full install, but given the 
option is there it seems rather odd - and isn't listed as an extra in the Wiki.

Geoff

Re: Latex2html

2005-09-05 Thread Angus Leeming
Geoffrey Lloyd wrote:

> Hi
> 
> Just wondered if anyone had any success using/installing this with WinXp
> and Lyx??
> 
> I tried to do an Export->Html and got an error saying it couldn't find
> Latex2html - I assume it doesn't come with Lyx (is this correct??)

That is correct.

> If this is the case I will go and find it and do a full install, but
> given the option is there it seems rather odd - and isn't listed as an
> extra in the Wiki.

Why do you find it odd? LyX can potentially be used with many tens
(hundreds?) of external tools, most of which you won't find installed on
your WinXP machine. Nonetheless, if you install the tool and adjust the
"path_prefix" line in your C:\Documents and Settings\GEOFFREY\Application
Data\LyX\preferences file (either by editting it directly or by use
Edit->Preferences), so that LyX can find the resulting executable, then
the configure script that is run on Edit->Reconfigure should be able to
recognise it.

Please remember that support for LyX on Windows is still very much in its
infancy and much of LyX (configure scripts for example) is still
fundamentally *nix not Windows.

-- 
Angus



Thanks

2005-09-05 Thread Geoffrey Lloyd
Hi

Thanks to everyone on this list for the helpful advice they have provided me 
since I began using Lyx back in March. As a result of your efforts I now have a 
beautiful - (yes beauty is in the eye of the beholder but.) - Ph.D thesis 
which I submitted on Friday.

I found Lyx a joy to use and am steadily converting people in my department.

Thanks again.

Geoff

Re: Thanks

2005-09-05 Thread Søren O'Neill
Congratulations Geoff - best of luck with your oral defence, when that day 
comes. On wednesday, I'm giving a short lecture/tutorial to out students 
about LyX vs. the evil Word (WYSIWAM : What You See Is: What A Mess)



Kind regards
Soren

On Monday 05 September 2005 17:31, Geoffrey Lloyd wrote:
> Hi
>
> Thanks to everyone on this list for the helpful advice they have provided
> me since I began using Lyx back in March. As a result of your efforts I now
> have a beautiful - (yes beauty is in the eye of the beholder but.) -
> Ph.D thesis which I submitted on Friday.
>
> I found Lyx a joy to use and am steadily converting people in my
> department.
>
> Thanks again.
>
> Geoff

-- 
Soren O'Neill, kiropraktor, MSc, klinisk lektor
Rygambulatoriet, Sygehus Fyn
Lindevej 5, 5750 Ringe

[EMAIL PROTECTED]
http://www.dskkb.dk
tlf. 6362 1906 (arb.)


Re: dvips option added by LyX

2005-09-05 Thread Mael Hilléreau

Angus Leeming a écrit :


It appears that there's a LyXRC variable "print_landscape_flag" which
defaults to
   print_landscape_flag = "-t landscape";


That's true but if you call:
  dvips -t letter -t landscape InFile.dvi -o OutFile.ps

Then dvips says:

% dvips -t letter -t landscape test.dvi -o test.ps
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software
(www.radicaleye.com)
' TeX output 2005.09.05:1456' -> test.ps
dvips: both landscape and papersize specified:  ignoring landscape
dvips: warning: -t selected paper may be too small

[...]

So I would like to remove the '-t letter' since adding the '-t
landscape' option isn't helpful for me.

Just using 'dvips Infile.dvi -o OutFile.ps' would work in my case (then
I obtain a landscape presentation).



You can reset it to something else from the Outputs->Printer pane (Qt
frontend) of the Edit->Preferences dialog. (See the "Landscape:" field.)



I noticed that the '-t' in '-t letter' is also specified in
'Edit>Preferences>Outputs>Printer' ("Paper type:"). Removing it doesn't
solve the problem since the 'letter' part of the option is still present
in the dvips command call.



string const Converters::dvips_options(Buffer const * buffer)
{
string result;
...

if (buffer->params.orientation == BufferParams::ORIENTATION_LANDSCAPE
&& buffer->params.papersize2 != BufferParams::VM_PAPER_CUSTOM)
result += ' ' + lyxrc.print_landscape_flag;
return result;
}




--
Mael Hilléreau


Re: Export to html?

2005-09-05 Thread Jordi Espasa Clofent
>   Hola,
>   we have fixed that in the last version 1.3.6 now it works with or 
> without
> the immodule in Qt. :-)

* Great! I hope SuSE guys be aware of that in the future versions of their SO.

-- 
Salut,
Jordi Espasa


pgpHJMag4VbL7.pgp
Description: PGP signature


Re: Latex2html

2005-09-05 Thread Stephen P. Harris


- Original Message - 
From: "Geoffrey Lloyd" <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 05, 2005 7:59 AM
Subject: Latex2html


Hi

Just wondered if anyone had any success using/installing this with WinXp and 
Lyx??


I tried to do an Export->Html and got an error saying it couldn't find 
Latex2html - I assume it doesn't come with Lyx (is this correct??)


If this is the case I will go and find it and do a full install, but given 
the option is there it seems rather odd - and isn't listed as an extra in 
the Wiki.


Geoff


I have a directory: C:\texmf\tex\latex\latex2html
and latex2html.cab, 17,271, is found under C:\Miktex

I did the complete or full install of Miktex.
Don't know whether this works or not when called from LyX.

C:\texmf\doc\faq\english\html\FAQ-LaTeX2HTML.html
LaTeX2HTML
a Perl script package that supports LaTeX only, and generates mathematics 
(and other "difficult" things) using bitmaps. The original version was 
written by Nikos Drakos for Unix systems, but the package now sports an 
illustrious list of co-authors and is also available for Windows systems. 
Michel Goossens and Janne Saarela published a detailed discussion of 
LaTeX2HTML, and how to tailor it, in TUGboat 16(2).


I also have tex4ht under C:\texmf which is preferred in my readings.

Regards,
Stephen 


Re: problem with hyphenation of underlined text

2005-09-05 Thread Kevin Pfeiffer
Herbert Voss writes:
> Kevin Pfeiffer wrote:
> > I have a document that contains transcriptions of correspondence.
> > The text contains instances where an underscore is used for
> > emphasis which we wish to retain. Unfortunately when such words
> > fall at the end of the line LyX (or LaTeX) no longer seems to be
> > able to hyphenate them.
> >
> > Is there something I can do about this? Or do I manually need to
> > break these words?  :-(
>
> see soul.sty

Thank you for the tip.

I added "\usepackage{soul}" to the preamble and can now do things like 
this now (in an ERT):

ul{test-ing}

But might there be a way that LyX (1.3.5) can take advantage of soul.sty 
automatically (without any ERT on my part)?

-Kevin




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


Re: copying LaTeX text into a LyX document from clipboard

2005-09-05 Thread Andre Poenitz
On Sun, Sep 04, 2005 at 06:09:48PM -0400, David Soukal wrote:
> > You can do this for mathed but not for the rest of LyX. Eg, typing as
> > normal text "$a=b+c$" (without quotes), highlighting the block and
> > selecting Insert->Math->Display Formula will convert the code into a
> > mathed inset.
> 
> Still it would be great, if it were possible to do that with any text. 
> Since the functionality is there already for the import... I try to put 
> a feature request...

On of the reason that it doesn't work (apart from nobody having
implemented it) is that a chunk of LaTeX does not carry all needed
informations like document class. So while it might be possible (and
certainly useful) to have such feature it never will work reliably in
all cases.

Anyway, create an entry on bugzilla if you don't want to get this lost.

Andre'


Re: problem with hyphenation of underlined text

2005-09-05 Thread Angus Leeming
Kevin Pfeiffer wrote:
> But might there be a way that LyX (1.3.5) can take advantage of soul.sty
> automatically (without any ERT on my part)?

Nope.

-- 
Angus



Re: Question

2005-09-05 Thread Paul A. Rubin

Leon Chen wrote:


Note you don't get the pdf through 'export', choose 'view' and then pdflatex. 



Actually, with everything properly configured, there _should_ be options 
to export to PDF (regular, pdflatex and dvipdfm).


Ana would appear to have some problems with her setup.  File->Export 
should list LaTeX among its options.  If it does not, then it is likely 
that LyX failed to find a working LaTeX installation, and that needs to 
be fixed before LyX can be used for much of anything.


As far as import, there is no option to import PDF or PS files.  Only 
ASCII, LaTeX and Noweb files can be imported.


Paul



Re: Compiling LyX 1.3.6 with qt

2005-09-05 Thread Luqman H
thanks it works...

i'm just have tobe patient for very long compiling..
btw, is it a bug? or it only happen
to my machine..?

2005/8/31, Rich Shepard <[EMAIL PROTECTED]>:
> On Wed, 31 Aug 2005, Luqman H wrote:
> 
> > Please help.. i dont know what i've miss
> > i don't know if there is more dependency
> > needed for qt frontend.
> > but the ./configure seem to run fine...
> >
> > I'm using VectorLinux standard 5.1
> > qt version 3.3.4
> > tetex-3.0
> 
>As Georg wrote a couple of months ago:
> 
> Change line 350 of QPrefs.C from
> 
>  if (cb->text(i) == default_font_name) {
> 
> to
>  if (fromqstr(cb->text(i)) == default_font_name) {
> 
> Rich
>


Re: Compiling LyX 1.3.6 with qt

2005-09-05 Thread Paul Smith
On 9/6/05, Luqman H <[EMAIL PROTECTED]> wrote:
> thanks it works...
> 
> i'm just have tobe patient for very long compiling..
> btw, is it a bug? or it only happen
> to my machine..?
> 
> 2005/8/31, Rich Shepard <[EMAIL PROTECTED]>:
> > On Wed, 31 Aug 2005, Luqman H wrote:
> >
> > > Please help.. i dont know what i've miss
> > > i don't know if there is more dependency
> > > needed for qt frontend.
> > > but the ./configure seem to run fine...
> > >
> > > I'm using VectorLinux standard 5.1
> > > qt version 3.3.4
> > > tetex-3.0
> >
> >As Georg wrote a couple of months ago:
> >
> > Change line 350 of QPrefs.C from
> >
> >  if (cb->text(i) == default_font_name) {
> >
> > to
> >  if (fromqstr(cb->text(i)) == default_font_name) {
> >

Here, it also takes a long time before the compilation is completed.

Paul


Re: Compiling LyX 1.3.6 with qt

2005-09-05 Thread Rich Shepard

On Tue, 6 Sep 2005, Luqman H wrote:


i'm just have tobe patient for very long compiling.. btw, is it a bug? or
it only happen to my machine..?


  I don't remember just how long it too, but I recall something like 7 or 8
minutes on an Athlon XP-2200+ with 1G RAM. I always run the 'time' command
when I configure and build, just for the heck of it.

Rich

--
Dr. Richard B. Shepard, President |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) |  Impact Assessments Using Fuzzy Logic"
 Voice: 503-667-4517 Fax: 503-667-8863


Re: Parts and Sections numbering

2005-09-05 Thread Roie Kerstein
Matt Williams wrote:

> Dear List,
> 
> A (hopefully) simple question:
> 
> Using Lyx, how do "re-start" the numbering of sections for different
> parts?
> 
> viz:
> 
> Part 1:
> Secn 1
> Secn 2
> Secn 3
> 
> Part 2:
> Secn 1
> Secn 2
> 
> Part 3:
> Secn 1
> Secn 2
> 
> Thanks for your help,
> 
> Matt

Do not use Part for that, as it serves another purpose.
Use Chapter environment for that.
Please note that Chapter is not available in every style. 
For instance, IIRC article does not allow Chapter, but book and report do.
-- 
Best regards
Roie Kerstein



Re: Latex2html

2005-09-05 Thread Roy Schestowitz

_/ On Mon 05 Sep 2005 15:59:58 BST, [Geoffrey Lloyd] wrote : \_


Hi

Just wondered if anyone had any success using/installing this with 
WinXp and Lyx??


I tried to do an Export->Html and got an error saying it couldn't 
find Latex2html - I assume it doesn't come with Lyx (is this 
correct??)


If this is the case I will go and find it and do a full install, but 
given the option is there it seems rather odd - and isn't listed as 
an extra in the Wiki.


Geoff


Geoff,

My best advice to you is to get hold of a *nix box and install latex2html
(unless it is already installed, of course). Latex2html is predominantly
*unix-oriented, so the gain in the long run will be noticeable. I never had
much of a hard time compiling it either.

Having got latex2html installed (and in your PATH), ensure the paths to images
[1] in your LyX files are workable. For example,
'c:\my_thesis\graphics/figure1.eps' is a bad idea because it is
platform-dependent. Make sure paths are relative if possible, e.g.
'./graphics/figure1.eps'). Then, export your LyX document as LaTeX.

Having exported the document to LaTeX, export to HTML using the simple 
command:



latex2html *.lyx   # ensuring of course, that you have just 1 lyx file in
the current directory


The conversion is best done in your 'workspace', which contains all images
properly linked. Ensure no errors were flagged during the run. Errors are
output to the terminal (/console), as well as log files. If in doubt, skimp
them.

Customise the stylesheets if you wish to do so. Assuming your LyX file 
was named

file.lyx, you will find the stylesheets in ./file/file.css

I find it helpful when one binds a link to the corresponding PDF 
version at the

top of each HTML page, e.g.

http://www.schestowitz.com/Research/Continuation_Report/HTML/

I suppose you might encounter some improper paths in the links buttons, namely
'up', 'next', 'previous', 'contents' and 'index'. I have some scripts that fix
that in 'batch mode'. Contact me off-list if you need these scripts.

Lastly, link your HTML output and test it thoroughly, ensuring it does 
not flag

any errors in your logs (assuming you have access to these). Be sure to test
all images and test the style/s on various platforms and browsers if 
necessary.
Remember: it is most likely that people will read your thesis in HTML 
form, not
PDF. HTML files will also be indexed by crawlers and 404 errors will be 
frowned

upon.

Good luck!

Roy

[1] As for image conversions, ImageMagick is built into most Linux 
distribution.

You will most likely /not/ have to worry much about image conversions.

--
Roy S. Schestowitz  | "Signature pending approval"
http://Schestowitz.com  |SuSE Linux| PGP-Key: 74572E8E
 5:55am  up 12 days 15:15,  4 users,  load average: 0.73, 0.75, 0.68



Re: Parts and Sections numbering

2005-09-05 Thread drkor
> Matt Williams <[EMAIL PROTECTED]>:

> Dear List,
> 
> A (hopefully) simple question:
> 
> Using Lyx, how do "re-start" the numbering of sections for different
> parts?
> 
> viz:
> 
> Part 1:
>   Secn 1
>   Secn 2
>   Secn 3
> 
> Part 2:
>   Secn 1
>   Secn 2
> 
> Part 3:
>   Secn 1
>   Secn 2
> 
> Thanks for your help,
> 
> Matt
> 
> 

Add to your document preamble:
@addtoreset{section}{part}

You will not see the result in LyX immediately.
Desired effect will be emerged only after converting to pdf.

Michail Koreshkov