Re: pdf output of boldsymbol math does not work

2008-03-04 Thread G. Milde
On  3.03.08, Jürgen Spitzmüller wrote:
 Jürgen Spitzmüller wrote:
  Conclusion: if you need bold math characters, Times Roman is not a good
  choice (if you insist on mixing fonts that do not match, you can still 

set the fonts to default in the SettingsDocumentFonts selection
boxes and in the LaTeX preamble

  load Times Roman as roman font only with
 
  \def\rmdefault{ptm}
 
  which is still better than \usepackage{times}).

 There's also the following hack:

 \usepackage{amsmath}
 \renewcommand\boldsymbol[1]{\pmb{#1}}

 This fakes bold symbols by means of overprinting. Not very nice either.

But it might still be better than silently dropping the bold
attribute of symbols.

The question is: Given a document with DefaultFont==Times and use of
\boldsymbol, whether LyX should 

 a) implement this fallback 
  * always
  * if Use AMS == auto or always
  * if Use AMS == always
  
 b) recommend it in the docs
 
 c) mention it in the docs
 

Günter


Re: pdf output of boldsymbol math does not work

2008-03-04 Thread G. Milde
On  3.03.08, Paul A. Rubin wrote:
 Bruce Pourciau wrote:


 ... if I have to choose between a close match between the math and text  
 fonts or having bold symbols, I'll typically take the bold symbols.  I  
 don't produce books, and for pretty much everything else Times without  
 mathptmx seems good enough to me.

 On the other hand, I recognize that there are folks who will want  
 mathptmx when they use Times, and won't need bold symbols.  It would be  
 nice if there were a way in the document settings to select/deselect  
 mathptmx, though.

IMO, LyX should support the officially recommended version (i.e. mathptmx)
in the DocumentSettingsFonts Tab.

Other (deprecated as well as exotic or just still not supported) choices
can be done choosing Default in the Fonts tab and LaTeX commands in the
DocumentsSettingsLaTeX preamble.

E.g. I am using \usepackage{libertine}

Günter


Re: Insert-minipage?

2008-03-04 Thread Uwe Stöhr

Steve Litt schrieb:

Confirmed! Insert-Box inserts a minipage, and was what I was looking for. 
Thanks Bob!


This is described in the manuals. Since LyX 1.5.4 we have a new toolbar button to insert boxes 
(minipages).


regards Uwe


Re: Hebrew in utf8

2008-03-04 Thread Uwe Stöhr

Daniel Owens schrieb:

When I add vowel pointing I still get Package ucs Error: Please 
activate option 'combine.' and Undefined control sequence.


I forwarded this to our Hebrew developers. I'm sure they can help you.

regards Uwe


Re: turn off page numbers but still count page

2008-03-04 Thread Jennifer Brookes
Thanks for your reply, thing is, the page I want without a number 
contains a large table (hence  a clash with the number) which I do not 
want to reduce in size. When I insert ERT \thispagestyle{empty} just 
before the table lyx takes the page number off the previous page, and if 
I place it just after, lyx takes the page number off the next page, but 
not the page containing the table. If I place the latex command within 
the table figure, I get errors that the document is damaged. Please can 
you help?


Thanks
Jenny



Bob Lounsbury wrote:

On Mon, Mar 3, 2008 at 6:48 AM, Jennifer Brookes [EMAIL PROTECTED] wrote:
  

Hi, please does anybody know a way to turn off a page number in the
 middle of a document, but page number all the other pages, and still
 count the one without a number?

 Thanks
 Jenny




Put in ERT \thispagestyle{empty}, without the quotes, on the page
you don't want a number to show.

Cheers,
/Bob
  




RE: how to insert a theorem?

2008-03-04 Thread Daniel CLEMENT
Hello,

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Paul A. Rubin
 Sent: Sunday, March 02, 2008 7:56 PM
 To: lyx-users@lists.lyx.org
 Subject: Re: how to insert a theorem?


[...]

 If you are using one of the AMS classes, just start a new paragraph,
 then click the drop down list of environments (left-most widget in the
 first tool bar, or M-p space to open it from the keyboard), and click on
 Theorem.

 /Paul


Is this a recent addition to LyX? I'd like to insert theorem-like
environments this way, but I can't do it. E.g., what AMS class do I have
to use, to see theorem in the drop-down list?

Daniel




Re: turn off page numbers but still count page

2008-03-04 Thread Helge Hafting

Jennifer Brookes wrote:
Thanks for your reply, thing is, the page I want without a number 
contains a large table (hence  a clash with the number) which I do not 
want to reduce in size. When I insert ERT \thispagestyle{empty} just 
before the table lyx takes the page number off the previous page, and 
if I place it just after, lyx takes the page number off the next page, 
but not the page containing the table. If I place the latex command 
within the table figure, I get errors that the document is damaged. 
Please can you help?

I see the same problem, except that I don't get the
error mentioned. (The desired effect is not achieved though.)


Here is how I did it.
One the page before the table, put:
\thispagestyle{plain}\pagestyle{empty}

Explanation:
The \pagestyle{empty} will make this page
and all following pages numberless. So, the table
page will be numberless. Since you don't want the page
before the table numberless, compensate that with \thispagestyle{plain}.

On the page after the table, put:
\pagestyle{plain}
in order to enable numbers again from that page and
all the rest.

If plain isn't what you want, subsitute headings,
myheadings, or fancy. I.e. the same as you
have in document settings.


Helge Hafting


Turn off page numbers but DON'T count page

2008-03-04 Thread [EMAIL PROTECTED]
I take the change given from Jenny to ask this:

How could I both don't write turn off the page number AND the count?

By istance, assume I would have to insert some color pages in a document , and 
I don't want them to be counted, nor numbered.. how could I do ?

Lucio




.Hi, please does anybody know a way to turn off a page number in the
.middle of a document, but page number all the other pages, and still
.count the one without a number?
.
.Thanks
.Jenny
.

.. Caminante no hay
camino, solo se hace
camino al andar ..


  ---   o
meglio   ---

.. Caminante el
destino no es al
final de el viaje,
pero en todo el
andar ..



Highlighting inside a text in Beamer

2008-03-04 Thread Manolo Martínez

Hello,

I'm writing my first presentation with Beamer, and I've stumbled upon 
the following problem I'd like to have a quote such that the slide first 
presents the quote as it is and, then, when I push a key, one passage is 
highlighted first and, when I push again, another passage is 
highlighted. I cannot see any way to do this using \alert. Is there an 
easy way?


Thanks.
Manolo


Re: pdf output of boldsymbol math does not work

2008-03-04 Thread Bruce Pourciau


On Mar 3, 2008, at 4:32 PM, Paul A. Rubin wrote:


Bruce Pourciau wrote:
If you don't _have_ to use Times, why not choose Palatino? It is a  
beautiful face, unlike Times. I'm happy as a clam -- boldface and  
all -- with \usepackage[osf]{mathpazo} in the preamble.


How well does that work with PDF files?


Perfectly. I use TeXShop to view pdf files, and I've never had a  
problem with mathpazo. The math, text, bold, and Greek all match nicely.




One reason I use Times/Helvetica/Courier (the obsolete packages  
document notwithstanding) is that they are Adobe-native fonts.   
They may not be the most aesthetically pleasing (I have no eye for  
typefaces in any case), but they work pretty reliably with PDF  
files, and almost everything I generate ends up in PDF files.   
Assuming I'm using Times, if I have to choose between a close match  
between the math and text fonts or having bold symbols, I'll  
typically take the bold symbols.  I don't produce books, and for  
pretty much everything else Times without mathptmx seems good  
enough to me.


On the other hand, I recognize that there are folks who will want  
mathptmx when they use Times, and won't need bold symbols.  It  
would be nice if there were a way in the document settings to  
select/deselect mathptmx, though.


/Paul





LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet
I've recently upgraded my pc's (two laptops and one desktop) from 
slackware 10.2 to 12.0. I looked at the existing packages for lyx. As I 
could not find anything more recent then 1.5.0, I decided to build the 
last stable version on my desktop pc using the appropriate Slackbuild. 
So, I compiled qt4 (4.3.3) during one day and lyx 1.5.4 during the 
following night. I installed the resulting packages on my laptop and was 
quite happy to see that the time spent on compiling was not lost since 
lyx 1.5.4 was running perfectly.
Today I installed the same packages on my desktop (where they were 
created), and I got a SIGSEGV on lyx startup. The software packages on 
my desktop and on my laptop are almost identical since I loaded them 
recently. The hardware is quite old: a Pentium III 500MHz with 256M for 
the laptop and a Duron 700MHz with 512M for the desktop.


Any idea of what's might be wrong there?

TIA
--
jean-marie pacquet
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... no
package
binary_dir /usr/bin/
system_support /usr/share/lyx/./
build_support 
user_support /home/jmpacquet/.lyx/
locale_dir /usr/share/locale/./
document_dir /home/jmpacquet
temp_dir /tmp
home_dir /home/jmpacquet
/package

Initializing LyX::init...
About to read lyxrc.dist... Not found.
About to read lyxrc.defaults... Found in /home/jmpacquet/.lyx/lyxrc.defaults
About to read lyxrc.dist... Not found.
About to read preferences... Not found.
About to read encodings and unicodesymbols...
About to read languages...
Reading layouts...
About to read default...
Found default in /usr/share/lyx/./ui/default.ui
About to read stdmenus.inc...
Found stdmenus.inc in /usr/share/lyx/./ui/stdmenus.inc
About to read stdtoolbars.inc...
Found stdtoolbars.inc in /usr/share/lyx/./ui/stdtoolbars.inc
LyX tmp dir: `/tmp/lyx_tmpdir14018o0vN6a'
Reading session information '.lyx/session'...
Initializing LyX::init...done
Initializing key mappings...
Menu warning: menu entries Échanger Colonnes|e and Copier Colonne|e share 
the same shortcut.
Adding standard at position 0 0
Adding view/update at position 0 0
Adding extra at position 0 0
Adding review at position 0 0
Adding table at position 0 0
Adding math_panels at position 0 0
Adding math at position 0 0
Adding minibuffer at position 0 0

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions 
in Help-Introduction and send us a bug report, if necessary. Thanks !
Bye.


Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Jean-Marc Lasgouttes
Andre Poenitz [EMAIL PROTECTED] writes:

 After what I went through, I'd recommend that someone strongarm ALL
 variables to the Qt4 values, and not leave anything to chance.

 The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by 
 a distribution nor by LyX.

Could you explain why?

JMarc


Re: how to insert a theorem?

2008-03-04 Thread Paul A. Rubin

Daniel CLEMENT wrote:


If you are using one of the AMS classes, just start a new paragraph,
then click the drop down list of environments (left-most widget in the
first tool bar, or M-p space to open it from the keyboard), and click on
Theorem.



Is this a recent addition to LyX? I'd like to insert theorem-like
environments this way, but I can't do it. E.g., what AMS class do I have
to use, to see theorem in the drop-down list?



I think I was using it in LyX 1.3.x; I know I was in 1.4.x.  In Document 
- Settings... - Document class, pick from:  article (AMS); article 
(AMS, sequential numbering); article (AMS, unnumbered); or (if you're 
really wordy) book (AMS).  The differences among the article classes 
have to do with how theorem-like things are numbered.  All three have 
theorems, lemmas, corollaries etc. on the environment list.


The four AMS layout files load a bunch of include files that define all 
these things and tell LyX how to display and number them.  Richard Heck 
indicated that, in LyX 1.6, we'll be able to plug those modules into 
other classes.


/Paul



Re: how to insert a theorem?

2008-03-04 Thread rgheck


The four AMS layout files load a bunch of include files that define 
all these things and tell LyX how to display and number them.  Richard 
Heck indicated that, in LyX 1.6, we'll be able to plug those modules 
into other classes.



Yes, that's right.

An alpha of 1.6 should be out pretty soon, if you want to have a peek.

rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:
I've recently upgraded my pc's (two laptops and one desktop) from 
slackware 10.2 to 12.0. I looked at the existing packages for lyx. As 
I could not find anything more recent then 1.5.0, I decided to build 
the last stable version on my desktop pc using the appropriate 
Slackbuild. So, I compiled qt4 (4.3.3) during one day and lyx 1.5.4 
during the following night. I installed the resulting packages on my 
laptop and was quite happy to see that the time spent on compiling was 
not lost since lyx 1.5.4 was running perfectly.
Today I installed the same packages on my desktop (where they were 
created), and I got a SIGSEGV on lyx startup. The software packages on 
my desktop and on my laptop are almost identical since I loaded them 
recently. The hardware is quite old: a Pentium III 500MHz with 256M 
for the laptop and a Duron 700MHz with 512M for the desktop.


Any idea of what's might be wrong there?

Try running with -dbg init on the working installation. What's the next 
line?


rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.

--
jmp


Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.



OK, well, try comparing with -dbg any.

What I DON'T want to have to tell you is to compile with debugging 
symbols and run under gdb.


rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :

Jean-Marie Pacquet wrote:

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.



OK, well, try comparing with -dbg any.

What I DON'T want to have to tell you is to compile with debugging 
symbols and run under gdb.


rh
The end of the -dbg any on the crashing installation (with no SIGSEGV 
this time!):


#
# CONVERTERS SECTION ##
#


#
# COPIERS SECTION ##
#

createTmpDir: tempdir=`/tmp'
createTmpDir:mask=`lyx_tmpdir'
Temporary file `/tmp/lyx_tmpdir2649eEyk1r' created.
LyX tmp dir: `/tmp/lyx_tmpdir2649eEyk1r'
Reading session information '.lyx/session'...
Initializing LyX::init...done
LyXComm: Opening connection
LyXComm: server is disabled, nothing to do
lyx: New server socket 13 /tmp/lyx_tmpdir2649eEyk1r/lyxsocket
~$

On the running installation it's ending like that:
Adding minibuffer at position 0 0
We got a translation
We got a translation
We got a translation
We got a translation
splash screen requested
show banner: 1
We got a translation

--
jmp



Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Steve Litt
On Tuesday 04 March 2008 09:42, Jean-Marc Lasgouttes wrote:
 Andre Poenitz [EMAIL PROTECTED] writes:
  After what I went through, I'd recommend that someone strongarm ALL
  variables to the Qt4 values, and not leave anything to chance.
 
  The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by
  a distribution nor by LyX.

 Could you explain why?

 JMarc

Hi JMarc,

I'm not sure which statement you'd like explained. The statement I made 
was After what I went through, I'd recommend that someone strongarm ALL 
variables to the Qt4 values, and not leave anything to chance., so let me 
explain that one:

If, by leaving an environment variable to its default, a qt3 value sneaks in, 
the troubleshooting necessary to find and fix the problem would exceed by a 
factor of 100 the time it would take to strongarm every variable to its qt4 
value. Therefore, whether or not the default values *should* produce the 
right result, I'd recommend strongarming it.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Jean-Marc Lasgouttes
Steve Litt [EMAIL PROTECTED] writes:

  The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by
  a distribution nor by LyX.

 Could you explain why?

 I'm not sure which statement you'd like explained. The statement I made 
 was After what I went through, I'd recommend that someone strongarm ALL 
 variables to the Qt4 values, and not leave anything to chance., so let me 
 explain that one:

It was rather Andre's statement.

 If, by leaving an environment variable to its default, a qt3 value sneaks in, 
 the troubleshooting necessary to find and fix the problem would exceed by a 
 factor of 100 the time it would take to strongarm every variable to its qt4 
 value. Therefore, whether or not the default values *should* produce the 
 right result, I'd recommend strongarming it.

I personally would not recommend this value, since the best solution
in the long run is to try what is supposed to work and report a bug
when it does not. In this case --with-qt4-dir=/some/dir is all you
should need.

JMarc


Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:

rgheck a écrit :

Jean-Marie Pacquet wrote:

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.



OK, well, try comparing with -dbg any.

What I DON'T want to have to tell you is to compile with debugging 
symbols and run under gdb.


rh
The end of the -dbg any on the crashing installation (with no SIGSEGV 
this time!):



So it worked??

rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :

[...]
So it worked??

No, it just died gracefully and returned to the prompt!

In the mean time I tried another version from Linuxpackages (Lyx 1.5.0 
compiled with qt 4.3.0). It does exactly the same thing: SIGSEGV on startup.


I also built an old version (Lyx 1.4.5.1) which is compatible with my 
slack 12 installed qt 3 and got a similar error: segmentation fault.


Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works as 
usual...

so I'm a bit lost.

It can be a hardware problem but why only lyx gets affected??
Everything else is running on this machine that I'm using all day long 
to compile and test programs.

--
jmp


Re: turn off page numbers but still count page

2008-03-04 Thread Jennifer Brookes

That works a treat thank you

Helge Hafting wrote:

Jennifer Brookes wrote:
Thanks for your reply, thing is, the page I want without a number 
contains a large table (hence  a clash with the number) which I do 
not want to reduce in size. When I insert ERT \thispagestyle{empty} 
just before the table lyx takes the page number off the previous 
page, and if I place it just after, lyx takes the page number off the 
next page, but not the page containing the table. If I place the 
latex command within the table figure, I get errors that the document 
is damaged. Please can you help?

I see the same problem, except that I don't get the
error mentioned. (The desired effect is not achieved though.)


Here is how I did it.
One the page before the table, put:
\thispagestyle{plain}\pagestyle{empty}

Explanation:
The \pagestyle{empty} will make this page
and all following pages numberless. So, the table
page will be numberless. Since you don't want the page
before the table numberless, compensate that with \thispagestyle{plain}.

On the page after the table, put:
\pagestyle{plain}
in order to enable numbers again from that page and
all the rest.

If plain isn't what you want, subsitute headings,
myheadings, or fancy. I.e. the same as you
have in document settings.


Helge Hafting




Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:

rgheck a écrit :

[...]
So it worked??

No, it just died gracefully and returned to the prompt!

In the mean time I tried another version from Linuxpackages (Lyx 1.5.0 
compiled with qt 4.3.0). It does exactly the same thing: SIGSEGV on 
startup.


I also built an old version (Lyx 1.4.5.1) which is compatible with my 
slack 12 installed qt 3 and got a similar error: segmentation fault.


Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works 
as usual...

so I'm a bit lost.

Sounds like it must be a problem with the Qt installation. 1.4.3 used Qt 3.

rh



Re: Turn off page numbers but DON'T count page

2008-03-04 Thread Jennifer Brookes

Actually, I would like the absent numbers counted, if possible
Thanks
Jenny



[EMAIL PROTECTED] wrote:
I take the change given from Jenny to ask this: 


How could I both don't write turn off the page number AND the count?

By istance, assume I would have to insert some color pages in a document , and 
I don't want them to be counted, nor numbered.. how could I do ?

Lucio




.Hi, please does anybody know a way to turn off a page number in the 
.middle of a document, but page number all the other pages, and still 
.count the one without a number?

.
.Thanks
.Jenny
.

.. Caminante no hay
camino, solo se hace
camino al andar .. 

   
  ---   o
meglio   --- 


.. Caminante el
destino no es al
final de el viaje,
pero en todo el
andar ..

  




Re: turn off page numbers but still count page

2008-03-04 Thread Filippo Zangheri
Jennifer Brookes ha scritto:
 That works a treat thank you

Hi, I've got the same problem here and the proposed solution works
except for the chapter-starting pages. I mean, after
\pagestyle{empty} I have all pages numberless except for the pages
which contain \chapter{foo}.
Is it possible to have those pages unnumbered too?

Thank you!

System info:

OS: Debian Etch 4.0 GNU/Linux
Kernel: 2.6.24.3
LyX: 1.5.4 built from source (no fancy parameters)


-- 
Filippo Zangheri

GPG key ID: 0xE1D879FA
Key fingerprint: 816B CE57 D43C 0A47 EF35 3378 EA5F A72A E1D8 79FA
Key server: pgp.mit.edu

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GE d- s+:- a-- C++ UL+++ P+ L+++ E-- W+ N* o-- K- w--- O-- M--
V- PS++ PE+ Y+ PGP++ t 5-- X++ R* tv b+ DI-- D G-- e++ h--
r++ z*
--END GEEK CODE BLOCK--



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :

Jean-Marie Pacquet wrote:

rgheck a écrit :

[...]
So it worked??

No, it just died gracefully and returned to the prompt!

In the mean time I tried another version from Linuxpackages (Lyx 
1.5.0 compiled with qt 4.3.0). It does exactly the same thing: 
SIGSEGV on startup.


I also built an old version (Lyx 1.4.5.1) which is compatible with my 
slack 12 installed qt 3 and got a similar error: segmentation fault.


Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works 
as usual...

so I'm a bit lost.
Sounds like it must be a problem with the Qt installation. 1.4.3 used 
Qt 3.


rh
Yes, but I still do not understand why it works on the laptop with the 
same Qt 4 package and the same Lyx 1.5.4 package loaded on the same 
slackware 12. And the fact that 1.4.5.1 does not work means that Qt 3 is 
also broken?


Will investigate further to-morrow...

Thanks for your help
--
jmp


new lines disappearing in program listings

2008-03-04 Thread Brian Guenter
I'm new to Lyx and I'm hoping that the problems I'm encountering are just due 
to my ignorance.  I have a large existing code base in my development 
environment which I am going to be copying into my Lyx document as program 
listings.  I had an existing Latex document with program listings in it using 
the lstlisting environment. When I imported this document into Lyx all of the 
newlines in the program listings disappeared.

Similarly, if I copy code from my development environment (Visual Studio 2008) 
and paste it into a program listing block in Lyx all of the newlines are 
discarded.  If I have a properly formatted program listing, with newlines,  in 
a Lyx document and I export the Lyx document to a Latex file and then import 
the Latex file back into Lyx all of the newlines in program listing blocks 
disappear.

It's terribly inconvenient and time-consuming to have to reinsert all of the 
newlines by hand and retyping the code in Lyx is also an unattractive option 
because I have so much of it and because this will certainly introduce 
transcription errors.

Is this newline deletion a bug or is there something I can set to prevent the 
newlines from disappearing?

This e-mail was created using speech recognition software.  If the spelling, 
grammar, or wording seems strange it's the software's fault not mine.



Re: Insert-minipage?

2008-03-04 Thread Andre Poenitz
On Mon, Mar 03, 2008 at 04:37:17PM -0700, Bob Lounsbury wrote:
 On Mon, Mar 3, 2008 at 4:12 PM, Steve Litt [EMAIL PROTECTED] wrote:
  Hi all,
 
   I'm using LyX-1.5.3 on Mandriva 2007 Linux.
 
   I just tried to insert a minipage into my LyX document. I went to the 
  Insert
   menu and couldn't see minipage anywhere. Didn't there used to be an
   Insert-minipage option to insert a minipage? If so, where has it gone?
 
   Thanks
 
   SteveT
 
   Steve Litt
   Books written in LyX:
  Troubleshooting Techniques of the Successful Technologist
  Twenty Eight Tales of Troubleshooting
  Troubleshooting: Just the Facts
 
 
 I don't remember if there used to be Insert-Minipage and I don't have
 that option either, but there is Insert-Box which I think is what
 you're looking for.

Hmdahm.. makes me wonder whether the good ol' LaTeX names should show
up in the menus somehow. People seem to scan for those...

Andre'


Re: Turn off page numbers but DON'T count page

2008-03-04 Thread David Hewitt



 Actually, I would like the absent numbers counted, if possible
 
 [EMAIL PROTECTED] wrote:
 I take the change given from Jenny to ask this: 

 How could I both don't write turn off the page number AND the count?

 By istance, assume I would have to insert some color pages in a document
 , and I don't want them to be counted, nor numbered.. how could I do ?
 

I think this was covered elsewhere already in a recent thread, but here
goes:

Jenny, you can use '\thispagestyle{empty}' [in an ERT box] to suppress the
number being printed but still count the page in the counter.

Lucio, I think you could just make a PDF of the other pages and insert them.
I'm not sure if they'll be counted or not. Someone else will have to help on
that.


-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/Turn-off-page-numbers-but-DON%27T-count-page-tp15825967p15834186.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Input Documents on the same page

2008-03-04 Thread NicoWinger
Hello,
 
short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically? And by the way: What is the diffence
between include and input?
 
thanks for your help
 
Nico


Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Andre Poenitz
On Tue, Mar 04, 2008 at 03:42:25PM +0100, Jean-Marc Lasgouttes wrote:
 Andre Poenitz [EMAIL PROTECTED] writes:
 
  After what I went through, I'd recommend that someone strongarm ALL
  variables to the Qt4 values, and not leave anything to chance.
 
  The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by 
  a distribution nor by LyX.
 
 Could you explain why?

Qt 4 does not use any QT4* environment variables.

Andre'


Re: LyX 1.5 crashes on startup

2008-03-04 Thread Andre Poenitz
On Tue, Mar 04, 2008 at 10:27:23AM -0500, rgheck wrote:
 Jean-Marie Pacquet wrote:
 rgheck a écrit :
 Try running with -dbg init on the working installation. What's the next 
 line?

 rh

 Adding minibuffer at position 0 0 is the last line on the working 
 installation.

 OK, well, try comparing with -dbg any.

 What I DON'T want to have to tell you is to compile with debugging symbols 
 and run under gdb.

Even without debugging turned on one usually gets a stack trace.
Less information, but sometimes helpful nevertheless.

Andre'


koma-letter2.lyx / scrlttr2.cls Insert-Float-Table Problem

2008-03-04 Thread Kenneth Berland

List,

I can't put a table float into the letter class I'm using, scrlttr2.cls. 
The option is not available from the menu.


1) File-New From Template.
2) Choose koma-letter2.lyx.
3) Insert-Float-Table does not appear.

How can I float a table in the letter I'm writing?

Thanks,
Ken


Re: Input Documents on the same page

2008-03-04 Thread William Adams

On Mar 4, 2008, at 2:05 PM, NicoWinger wrote:


short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically?


Not really, because of the need to support ``includeonly''


And by the way: What is the diffence
between include and input?



The former is the LaTeX command, w/ explicit support for nifty  
features, the latter is the Plain TeX command which simply switches  
which file text is coming from.


See this thread for more details:

http://groups.google.com/group/comp.text.tex/browse_frm/thread/8ba81ea8ff536ae4/2d28ab8d1562e06d

William


--
William Adams
senior graphic designer
Fry Communications




Re: Input Documents on the same page

2008-03-04 Thread Uwe Stöhr

NicoWinger schrieb:


short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically?
And by the way: What is the diffence
between include and input?


Both issues are explained in section 6.2 of the EmbeddedObjects manual.

regards Uwe


Re: Input Documents on the same page

2008-03-04 Thread Uwe Stöhr

William Adams schrieb:


short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically?


Not really, because of the need to support ``includeonly''


When you use include, then yes, but, you can use the input method, see the 
EmbeddedObjects manual:
Input files don't start with a new page and don't end with a pagebreak.

regards Uwe


Re: Turn off page numbers but DON'T count page

2008-03-04 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:



How could I both don't write turn off the page number AND the count?

By istance, assume I would have to insert some color pages in a
document , and I don't want them to be counted, nor numbered.. how
could I do ?



This strikes me as one of those things the Gods of Typography might 
consider grounds for a lightning bolt or two.  However, since the target 
will be you and not me ...


Try inserting two page breaks (one to end the previous page, one to end 
the blank page) and between them insert in ERT 
'\thispagestyle{empty}\addtocounter{page}{-1}'.


/Paul



Re: turn off page numbers but still count page

2008-03-04 Thread Paul A. Rubin

Filippo Zangheri wrote:

I mean, after
\pagestyle{empty} I have all pages numberless except for the pages
which contain \chapter{foo}.
Is it possible to have those pages unnumbered too?


Use the sectsty package, and put \chapterfont{\thispagestyle{empty}} in 
ERT in the first page of the chapter (I think).


/Paul



Re: new lines disappearing in program listings

2008-03-04 Thread Paul A. Rubin

Brian Guenter wrote:

I'm new to Lyx and I'm hoping that the problems I'm encountering are
just due to my ignorance.  I have a large existing code base in my
development environment which I am going to be copying into my Lyx
document as program listings.  I had an existing Latex document with
program listings in it using the lstlisting environment. When I
imported this document into Lyx all of the newlines in the program
listings disappeared.


Confirmed.


Similarly, if I copy code from my development environment (Visual
Studio 2008) and paste it into a program listing block in Lyx all of
the newlines are discarded.


Try Edit - Paste Special - Plain Text (C-S-V).  This works for me 
(meaning the newlines are preserved).



If I have a properly formatted program
listing, with newlines,  in a Lyx document and I export the Lyx
document to a Latex file and then import the Latex file back into Lyx
all of the newlines in program listing blocks disappear.


Confirmed.


It's terribly inconvenient and time-consuming to have to reinsert all
of the newlines by hand and retyping the code in Lyx is also an
unattractive option because I have so much of it and because this
will certainly introduce transcription errors.

Is this newline deletion a bug or is there something I can set to
prevent the newlines from disappearing?


It's a bug (or a lack of a feature, or a lag in implementing a feature). 
 Support for the listings environment is relatively new to LyX.  LyX 
uses a program called tex2lyx to convert LaTeX files to LyX file.  My 
guess is that tex2lyx has not caught up to the implementation of the 
listings package, and it's tex2lyx that's eating the newlines.


You might want to file a bug report against this.  (I did a quick search 
and couldn't find one.)  Also, if you run 'tex2lyx --help', you'll see a 
rather intriguing reference to the -s option:  -s syntaxfile  read 
additional syntax file.  Assuming one can find some documentation on 
syntax files for tex2lyx (so far I can't), perhaps one can implement a 
modification to preserve newlines in listings that way.


/Paul



Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Paul Johnson
For many plots in a sub directory PlotFigures, I have 2 versions,
one in eps version and  one in pdf version.

With Lyx-1.5.3 on Fedora Linux 8, I'm using a koma-script book format.
 I've run up against this problem inserting graphics.  When I insert a
pdf figure, then in the DVI/postscript output, the output is not good
because there's a big blank area at the top of the figure.  In the pdf
output, the document is good (presumably because the figure was pdf,
the latex processor handles it well).  On the other hand, if I insert
the eps figure in Lyx, then the DVI/postscript output is good, but the
pdf output looks bad.

I think this is happening because there really is a big white area at
the top of the pdf files, and I will have to remedy that for future
figures.

But for working with the existing images, what is a good approach?
I've been reading lyx-user archives.

In some email messages from this list, I see users ask this question
and they are advised to omit the image type from the LyX insert.  LyX
will use eps for DVI output and pdf for pdf output.  I mean, if a
graphic is available as Plot-001.eps or Plot-001.pdf,   then one
should simply insert the figure name Plot-001 and the LaTeX
processor will choose the correct format. However, when I try that in
LyX, I see figure not found on the screen.

What's up with that?

In retrospect, I see I need to do more work in the R script that
manufactures the images, because I think I can stop the pdf output
from including that giant white space at the top of the pdf.  But it
seems weird to have to do that in order to get an EPS output file.

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: new lines disappearing in program listings

2008-03-04 Thread Juergen Spitzmueller
Paul A. Rubin wrote:

 I'm new to Lyx and I'm hoping that the problems I'm encountering are
 just due to my ignorance.  I have a large existing code base in my
 development environment which I am going to be copying into my Lyx
 document as program listings.  I had an existing Latex document with
 program listings in it using the lstlisting environment. When I
 imported this document into Lyx all of the newlines in the program
 listings disappeared.
 
 Confirmed.

The listings inset has some deficiencies (it cannot handle tabs yet and it
doesn't handle whitespace well in general). For such a case, I'd recommend
to keep the listings in a text file and include them via
Insert-File-Child Document, where you can chose Program Listing from
the combo.

Jürgen



Re: Highlighting inside a text in Beamer

2008-03-04 Thread Paul A. Rubin

Manolo Martínez wrote:

Hello,

I'm writing my first presentation with Beamer, and I've stumbled upon 
the following problem I'd like to have a quote such that the slide first 
presents the quote as it is and, then, when I push a key, one passage is 
highlighted first and, when I push again, another passage is 
highlighted. I cannot see any way to do this using \alert. Is there an 
easy way?




Easy is a relative term.  :-)

You can type each part of the quote twice (consecutively) in only 
environments, surround the second version of each with '\alert{' and '|' 
in ERT, then specify which overlays will contain the regular parts and 
which will contain the alerted parts.  You will need separators (near 
the bottom of the environment drop-down list) to separate consecutive 
only blocks; otherwise they run together.


I've attached a small example.  It's a bit more complicated than what I 
described above, because I wanted to center the quote, and the layout 
file for the Beamer class does not allow specification of horizontal 
alignment in 'only' environments.  So I put each line of verse in a 
standard paragraph (Beamer doesn't seem to have a verse environment, or 
if it does the layout file does not support it), centered that 
paragraph, then nested it into the corresponding 'only' block.  This has 
the side effect of double spacing the quote.  To get centering with 
single spacing, you can try putting the quote directly into the 'only' 
block and then putting '\centering{' and '}' around it in ERT.  (I 
didn't bother to test this.)


/Paul


newfile4.lyx
Description: application/lyx


Re: Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Paul A. Rubin

Paul Johnson wrote:

For many plots in a sub directory PlotFigures, I have 2 versions,
one in eps version and  one in pdf version.

With Lyx-1.5.3 on Fedora Linux 8, I'm using a koma-script book format.
 I've run up against this problem inserting graphics.  When I insert a
pdf figure, then in the DVI/postscript output, the output is not good
because there's a big blank area at the top of the figure.  In the pdf
output, the document is good (presumably because the figure was pdf,
the latex processor handles it well).  On the other hand, if I insert
the eps figure in Lyx, then the DVI/postscript output is good, but the
pdf output looks bad.

I think this is happening because there really is a big white area at
the top of the pdf files, and I will have to remedy that for future
figures.

But for working with the existing images, what is a good approach?
I've been reading lyx-user archives.

In some email messages from this list, I see users ask this question
and they are advised to omit the image type from the LyX insert.  LyX
will use eps for DVI output and pdf for pdf output.  I mean, if a
graphic is available as Plot-001.eps or Plot-001.pdf,   then one
should simply insert the figure name Plot-001 and the LaTeX
processor will choose the correct format. However, when I try that in
LyX, I see figure not found on the screen.

What's up with that?

In retrospect, I see I need to do more work in the R script that
manufactures the images, because I think I can stop the pdf output
from including that giant white space at the top of the pdf.  But it
seems weird to have to do that in order to get an EPS output file.



Have you tried specifying a clipping region in LyX?  Might be there's an 
issue with reading the bounding box info from the PDF (or EPS) (or both).


/Paul



Re: Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Paul Johnson
On Tue, Mar 4, 2008 at 3:24 PM, Paul A. Rubin [EMAIL PROTECTED] wrote:

 Paul Johnson wrote:
   For many plots in a sub directory PlotFigures, I have 2 versions,
   one in eps version and  one in pdf version.
  
   With Lyx-1.5.3 on Fedora Linux 8, I'm using a koma-script book format.
I've run up against this problem inserting graphics.  When I insert a
   pdf figure, then in the DVI/postscript output, the output is not good
   because there's a big blank area at the top of the figure.  In the pdf
   output, the document is good (presumably because the figure was pdf,
   the latex processor handles it well).  On the other hand, if I insert
   the eps figure in Lyx, then the DVI/postscript output is good, but the
   pdf output looks bad.
  
   I think this is happening because there really is a big white area at
   the top of the pdf files, and I will have to remedy that for future
   figures.
  
   But for working with the existing images, what is a good approach?
   I've been reading lyx-user archives.
  
   In some email messages from this list, I see users ask this question
   and they are advised to omit the image type from the LyX insert.  LyX
   will use eps for DVI output and pdf for pdf output.  I mean, if a
   graphic is available as Plot-001.eps or Plot-001.pdf,   then one
   should simply insert the figure name Plot-001 and the LaTeX
   processor will choose the correct format. However, when I try that in
   LyX, I see figure not found on the screen.
  
   What's up with that?
  
   In retrospect, I see I need to do more work in the R script that
   manufactures the images, because I think I can stop the pdf output
   from including that giant white space at the top of the pdf.  But it
   seems weird to have to do that in order to get an EPS output file.
  

  Have you tried specifying a clipping region in LyX?  Might be there's an
  issue with reading the bounding box info from the PDF (or EPS) (or both).

  /Paul


If I set the bounding box so that a pdf image looks good in the
DVI/postscript output, then it is not properly positioned in the
pdflatex pdf output.

I've been double checking and I do not believe the pdf images have a
big white space in them at the top.  It is appearing to me that LyX
wants to treat an inserted pdf graphic as if it is a thing on its own
8.5x11 inch sized piece of white paper.  WHen I view the pdf in
acroread or evince, there is no big white space at the top and the
properties properly indicate the size of the pdf is 5x7 inches, as I
intended when I created it.
pj



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Rich Shepard

On Tue, 4 Mar 2008, Paul A. Rubin wrote:


For many plots in a sub directory PlotFigures, I have 2 versions,
one in eps version and  one in pdf version.



Have you tried specifying a clipping region in LyX?  Might be there's an
issue with reading the bounding box info from the PDF (or EPS) (or both).


  I often need to clip pdf images when inserted into a LyX/LaTeX document.
Also, when there's a .pdf in the document I use pdflatex to view it as well
as when generating the final output.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: LyX 1.5 crashes on startup

2008-03-04 Thread Bob Lounsbury
On Tue, Mar 4, 2008 at 11:22 AM, Jean-Marie Pacquet [EMAIL PROTECTED] wrote:
   In the mean time I tried another version from Linuxpackages (Lyx
   1.5.0 compiled with qt 4.3.0). It does exactly the same thing:
   SIGSEGV on startup.
  
   I also built an old version (Lyx 1.4.5.1) which is compatible with my
   slack 12 installed qt 3 and got a similar error: segmentation fault.
  
   Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works
   as usual...
   so I'm a bit lost.
   Sounds like it must be a problem with the Qt installation. 1.4.3 used
   Qt 3.
  
   rh
  Yes, but I still do not understand why it works on the laptop with the
  same Qt 4 package and the same Lyx 1.5.4 package loaded on the same
  slackware 12. And the fact that 1.4.5.1 does not work means that Qt 3 is
  also broken?

  Will investigate further to-morrow...

  Thanks for your help
  --
  jmp



I hope this isn't off topic or a silly question. Did you upgrade
Slackware from 10.2 to 12.0 or was it a fresh install? Just thinking
maybe something got messed up in the upgrade if that was the case. If
not, then sorry, but I'm way to new to the linux world to help debug.

I'm also running Slackware 12.0 at home, but I had no problems with
the SlackBuilds for Qt 4.3.3 and LyX 1.5.4. Everything is running
perfectly.

Just a thought.

Cheers,
/Bob


Re: Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Paul A. Rubin

Paul Johnson wrote:



I've been double checking and I do not believe the pdf images have a
big white space in them at the top.  It is appearing to me that LyX
wants to treat an inserted pdf graphic as if it is a thing on its own
8.5x11 inch sized piece of white paper.  WHen I view the pdf in
acroread or evince, there is no big white space at the top and the
properties properly indicate the size of the pdf is 5x7 inches, as I
intended when I created it.


I've had that happen to me, and it seems to be a function of what 
program generated the PDF image.  Either some programs are not entirely 
reliable about getting the bounding box in correctly, or else they 
deliberately make the image a full page.


I use both EPS and PDF images in my lecture slides (Beamer, output using 
pdfLaTeX), and both display fine.  I often do have to manually clip the 
PDF images, though.  I just opened one and, for the heck of it, clicked 
the button in the LyX dialog to read the bounding box from the file.  It 
zeroed out all four values.


I'm a bit surprised at your earlier comment that PDF output using an EPS 
image looks bad.  I have not had that problem.  IIRC, LyX converts the 
EPS file to a PDF file in the temp directory.  I seem to recall a 
problem a while back where something was being given a parameter that 
called for too low a resolution in the output.  You might check whether 
you have an EPS to PDF converter defined in LyX and, if so, you might 
want to experiment with changing it.  Before doing this, my suggestion 
would be to stick an EPS image in a document, View - PDF (pdflatex), 
then poke into the LyX temp directory, open the converted PDF image and 
see if it looks fuzzy in acroread or evince or whatever.  If so, you 
need to tweak the conversion process.  If not, the problem lies elsewhere.


/Paul



Re: new lines disappearing in program listings

2008-03-04 Thread Steve Litt
On Tuesday 04 March 2008 16:18, Juergen Spitzmueller wrote:
 Paul A. Rubin wrote:
  I'm new to Lyx and I'm hoping that the problems I'm encountering are
  just due to my ignorance.  I have a large existing code base in my
  development environment which I am going to be copying into my Lyx
  document as program listings.  I had an existing Latex document with
  program listings in it using the lstlisting environment. When I
  imported this document into Lyx all of the newlines in the program
  listings disappeared.
 
  Confirmed.

 The listings inset has some deficiencies (it cannot handle tabs yet and it
 doesn't handle whitespace well in general). For such a case, I'd recommend
 to keep the listings in a text file and include them via
 Insert-File-Child Document, where you can chose Program Listing from
 the combo.

Why would one use the listings inset rather than just using the LyXCode 
environment? The former isn't easily visible in the LyX environment, the 
latter is. The former is ERT, the latter isn't.

SteveT

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: new lines disappearing in program listings

2008-03-04 Thread Juergen Spitzmueller
Steve Litt wrote:

 Why would one use the listings inset rather than just using the LyXCode
 environment? The former isn't easily visible in the LyX environment, the
 latter is. The former is ERT, the latter isn't.

Listings has syntax highlighting for many languages, line count and many
other useful features.

Jürgen



Re: new lines disappearing in program listings

2008-03-04 Thread Paul A. Rubin

Steve Litt wrote:



Why would one use the listings inset rather than just using the LyXCode 
environment? The former isn't easily visible in the LyX environment, the 
latter is. The former is ERT, the latter isn't.




Have you checked out the support for lstlisting in LyX 1.5.x?  I gather 
from the wiki that Bo Peng is responsible for it (props to Bo).  It's 
not on the environment roster; you get it with Insert - Program 
Listing.  Right click the widget handle to see all the controllable stuff.


/Paul



Re: new lines disappearing in program listings

2008-03-04 Thread Bo Peng
  Have you checked out the support for lstlisting in LyX 1.5.x?  I gather
  from the wiki that Bo Peng is responsible for it (props to Bo).  It's
  not on the environment roster; you get it with Insert - Program
  Listing.  Right click the widget handle to see all the controllable stuff.

I know the mentioned problems with listings but they are not easy to
solve. I also recommend using a listings child document for long
listings.

Cheers,
Bo


Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

Bob Lounsbury a écrit :

On Tue, Mar 4, 2008 at 11:22 AM, Jean-Marie Pacquet [EMAIL PROTECTED] wrote:
  

 [...]

I hope this isn't off topic or a silly question. Did you upgrade
Slackware from 10.2 to 12.0 or was it a fresh install? Just thinking
maybe something got messed up in the upgrade if that was the case. If
not, then sorry, but I'm way to new to the linux world to help debug.
  
It was a fresh install. I kept the old 10.2 on an other partition which 
allows me to boot it back just in case (and that's necessary for lyx 
right now ;-)

All ideas are welcome as I still don't understand what's happening.

I'm also running Slackware 12.0 at home, but I had no problems with
the SlackBuilds for Qt 4.3.3 and LyX 1.5.4. Everything is running
perfectly.
  
I had no problems with the SlackBuilds either: it is also running 
perfectly on the laptop...


Thks
--
jmp


Re: Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Daniel Lohmann


On 04.03.2008, at 22:40, Rich Shepard wrote:


On Tue, 4 Mar 2008, Paul A. Rubin wrote:


For many plots in a sub directory PlotFigures, I have 2 versions,
one in eps version and  one in pdf version.


Have you tried specifying a clipping region in LyX?  Might be  
there's an
issue with reading the bounding box info from the PDF (or EPS) (or  
both).


 I often need to clip pdf images when inserted into a LyX/LaTeX  
document.
Also, when there's a .pdf in the document I use pdflatex to view it  
as well

as when generating the final output.


I experienced the same problem. If I save an image with bounding box  
from, e.g., CorelDraw or OpenOffice Draw as PDF, the bounding box  
seems to be neither used in the LyX preview nor in the pdflatex  
output. Acrobat Reader displays the image correctly, though.


The only thing that really helped me in these cases is to set the PDF  
page size in the drawing tool to  reflect the intended size of the  
bounding box. As this is PITA on the long term, I eventually got back  
to EPS.  I save only those images as PDF that use transparency, which  
does not work so well with EPS.


Daniel


Re: new lines disappearing in program listings

2008-03-04 Thread Daniel Lohmann


On 05.03.2008, at 05:55, Bo Peng wrote:

Have you checked out the support for lstlisting in LyX 1.5.x?  I  
gather

from the wiki that Bo Peng is responsible for it (props to Bo).  It's
not on the environment roster; you get it with Insert - Program
Listing.  Right click the widget handle to see all the controllable  
stuff.


I know the mentioned problems with listings but they are not easy to
solve. I also recommend using a listings child document for long
listings.


I have been using the listings package quite a lot. Since LyX 1.4 it  
works perfectly if used in ERT boxes (pre 1.4 versions added an extra  
new-line after every hard line break, which required some trickery  
with negative linkeskip values to yield a good result.)


I never used the new listings inset, though. In my opinion, ERT boxes  
are just perfect for in-text listings of code. Listings clearly is one  
of the best documented packages available in the LaTeX world and has a  
very convenient interface, so hand coding listings options is not at  
all painful. All one should do is to define a listings style with all  
necessary default settings in the preamble (a good practice anyway).  
Then only two actual LaTeX lines have to be in each ERT box:


\begin{lstlisting}[style=ac]
#include Win32Error.h
aspect ThrowWin32Errors {
  advice call( win32::Win32API() ) : after() {
if( win32::IsError( *tjp-result() ) {
  throw win32::Exception();
}
  }
};
\end{lstlisting}

Keeping (short) listings in ERT boxes this way has a some clear  
advantages:


- The on-screen formatting is easy, as within ERT a typewriter font is  
used.
- The spell checker skips ERT boxes, hence the listings do not get  
spell checked (that always annoyed me with LyxCode)
- Extra options can easily be passed as additional optional parameters  
in the square brackets.


For longer listings I recommend to not input them as  LyX child  
documents, but keep them in ordinary  text files  using the  
\lstinputlisting command in ERT:


\lstinputlisting[style=aclisting]{../src/win32eh-app.cpp}


Just my two cents,

Daniel


Installing and using a new font in Lyx documents?

2008-03-04 Thread [EMAIL PROTECTED]

Dear Lyx Users,

I have the following question: how can I install a new font so I can use 
it in Lyx?
I am currently using Lyx 1.5.4 (alt installer) on windows vista with an 
up-to-date Miktex installation and I want to use a Bodoni font in my 
documents. I found this files:

http://www.ctan.org/tex-archive/fonts/psfonts/corelpak/bodoni/
If these could help me, which do I need, where would I put them and what 
would I have to do, to get Lyx to find them?


Thanks a lot for your help.
SK


LyX mac customized icon

2008-03-04 Thread ailoan

Hello,

I am a young graphist and I choose your soft (LyX-Mac) to work on a  
project for fun.

I saw your icon and try to suggest you one more customized.
Feel free to use it in any project you see fit. They are in SVG format  
for maximum flexibility.


DL the archive at the URL : http://ailoan.free.fr/LyX-mac.zip

Best regards,

--
Diana Hornn
http://ailoan.free.fr/blog



Re: pdf output of boldsymbol math does not work

2008-03-04 Thread G. Milde
On  3.03.08, Jürgen Spitzmüller wrote:
 Jürgen Spitzmüller wrote:
  Conclusion: if you need bold math characters, Times Roman is not a good
  choice (if you insist on mixing fonts that do not match, you can still 

set the fonts to default in the SettingsDocumentFonts selection
boxes and in the LaTeX preamble

  load Times Roman as roman font only with
 
  \def\rmdefault{ptm}
 
  which is still better than \usepackage{times}).

 There's also the following hack:

 \usepackage{amsmath}
 \renewcommand\boldsymbol[1]{\pmb{#1}}

 This fakes bold symbols by means of overprinting. Not very nice either.

But it might still be better than silently dropping the bold
attribute of symbols.

The question is: Given a document with DefaultFont==Times and use of
\boldsymbol, whether LyX should 

 a) implement this fallback 
  * always
  * if Use AMS == auto or always
  * if Use AMS == always
  
 b) recommend it in the docs
 
 c) mention it in the docs
 

Günter


Re: pdf output of boldsymbol math does not work

2008-03-04 Thread G. Milde
On  3.03.08, Paul A. Rubin wrote:
 Bruce Pourciau wrote:


 ... if I have to choose between a close match between the math and text  
 fonts or having bold symbols, I'll typically take the bold symbols.  I  
 don't produce books, and for pretty much everything else Times without  
 mathptmx seems good enough to me.

 On the other hand, I recognize that there are folks who will want  
 mathptmx when they use Times, and won't need bold symbols.  It would be  
 nice if there were a way in the document settings to select/deselect  
 mathptmx, though.

IMO, LyX should support the officially recommended version (i.e. mathptmx)
in the DocumentSettingsFonts Tab.

Other (deprecated as well as exotic or just still not supported) choices
can be done choosing Default in the Fonts tab and LaTeX commands in the
DocumentsSettingsLaTeX preamble.

E.g. I am using \usepackage{libertine}

Günter


Re: Insert-minipage?

2008-03-04 Thread Uwe Stöhr

Steve Litt schrieb:

Confirmed! Insert-Box inserts a minipage, and was what I was looking for. 
Thanks Bob!


This is described in the manuals. Since LyX 1.5.4 we have a new toolbar button to insert boxes 
(minipages).


regards Uwe


Re: Hebrew in utf8

2008-03-04 Thread Uwe Stöhr

Daniel Owens schrieb:

When I add vowel pointing I still get Package ucs Error: Please 
activate option 'combine.' and Undefined control sequence.


I forwarded this to our Hebrew developers. I'm sure they can help you.

regards Uwe


Re: turn off page numbers but still count page

2008-03-04 Thread Jennifer Brookes
Thanks for your reply, thing is, the page I want without a number 
contains a large table (hence  a clash with the number) which I do not 
want to reduce in size. When I insert ERT \thispagestyle{empty} just 
before the table lyx takes the page number off the previous page, and if 
I place it just after, lyx takes the page number off the next page, but 
not the page containing the table. If I place the latex command within 
the table figure, I get errors that the document is damaged. Please can 
you help?


Thanks
Jenny



Bob Lounsbury wrote:

On Mon, Mar 3, 2008 at 6:48 AM, Jennifer Brookes [EMAIL PROTECTED] wrote:
  

Hi, please does anybody know a way to turn off a page number in the
 middle of a document, but page number all the other pages, and still
 count the one without a number?

 Thanks
 Jenny




Put in ERT \thispagestyle{empty}, without the quotes, on the page
you don't want a number to show.

Cheers,
/Bob
  




RE: how to insert a theorem?

2008-03-04 Thread Daniel CLEMENT
Hello,

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Paul A. Rubin
 Sent: Sunday, March 02, 2008 7:56 PM
 To: lyx-users@lists.lyx.org
 Subject: Re: how to insert a theorem?


[...]

 If you are using one of the AMS classes, just start a new paragraph,
 then click the drop down list of environments (left-most widget in the
 first tool bar, or M-p space to open it from the keyboard), and click on
 Theorem.

 /Paul


Is this a recent addition to LyX? I'd like to insert theorem-like
environments this way, but I can't do it. E.g., what AMS class do I have
to use, to see theorem in the drop-down list?

Daniel




Re: turn off page numbers but still count page

2008-03-04 Thread Helge Hafting

Jennifer Brookes wrote:
Thanks for your reply, thing is, the page I want without a number 
contains a large table (hence  a clash with the number) which I do not 
want to reduce in size. When I insert ERT \thispagestyle{empty} just 
before the table lyx takes the page number off the previous page, and 
if I place it just after, lyx takes the page number off the next page, 
but not the page containing the table. If I place the latex command 
within the table figure, I get errors that the document is damaged. 
Please can you help?

I see the same problem, except that I don't get the
error mentioned. (The desired effect is not achieved though.)


Here is how I did it.
One the page before the table, put:
\thispagestyle{plain}\pagestyle{empty}

Explanation:
The \pagestyle{empty} will make this page
and all following pages numberless. So, the table
page will be numberless. Since you don't want the page
before the table numberless, compensate that with \thispagestyle{plain}.

On the page after the table, put:
\pagestyle{plain}
in order to enable numbers again from that page and
all the rest.

If plain isn't what you want, subsitute headings,
myheadings, or fancy. I.e. the same as you
have in document settings.


Helge Hafting


Turn off page numbers but DON'T count page

2008-03-04 Thread [EMAIL PROTECTED]
I take the change given from Jenny to ask this:

How could I both don't write turn off the page number AND the count?

By istance, assume I would have to insert some color pages in a document , and 
I don't want them to be counted, nor numbered.. how could I do ?

Lucio




.Hi, please does anybody know a way to turn off a page number in the
.middle of a document, but page number all the other pages, and still
.count the one without a number?
.
.Thanks
.Jenny
.

.. Caminante no hay
camino, solo se hace
camino al andar ..


  ---   o
meglio   ---

.. Caminante el
destino no es al
final de el viaje,
pero en todo el
andar ..



Highlighting inside a text in Beamer

2008-03-04 Thread Manolo Martínez

Hello,

I'm writing my first presentation with Beamer, and I've stumbled upon 
the following problem I'd like to have a quote such that the slide first 
presents the quote as it is and, then, when I push a key, one passage is 
highlighted first and, when I push again, another passage is 
highlighted. I cannot see any way to do this using \alert. Is there an 
easy way?


Thanks.
Manolo


Re: pdf output of boldsymbol math does not work

2008-03-04 Thread Bruce Pourciau


On Mar 3, 2008, at 4:32 PM, Paul A. Rubin wrote:


Bruce Pourciau wrote:
If you don't _have_ to use Times, why not choose Palatino? It is a  
beautiful face, unlike Times. I'm happy as a clam -- boldface and  
all -- with \usepackage[osf]{mathpazo} in the preamble.


How well does that work with PDF files?


Perfectly. I use TeXShop to view pdf files, and I've never had a  
problem with mathpazo. The math, text, bold, and Greek all match nicely.




One reason I use Times/Helvetica/Courier (the obsolete packages  
document notwithstanding) is that they are Adobe-native fonts.   
They may not be the most aesthetically pleasing (I have no eye for  
typefaces in any case), but they work pretty reliably with PDF  
files, and almost everything I generate ends up in PDF files.   
Assuming I'm using Times, if I have to choose between a close match  
between the math and text fonts or having bold symbols, I'll  
typically take the bold symbols.  I don't produce books, and for  
pretty much everything else Times without mathptmx seems good  
enough to me.


On the other hand, I recognize that there are folks who will want  
mathptmx when they use Times, and won't need bold symbols.  It  
would be nice if there were a way in the document settings to  
select/deselect mathptmx, though.


/Paul





LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet
I've recently upgraded my pc's (two laptops and one desktop) from 
slackware 10.2 to 12.0. I looked at the existing packages for lyx. As I 
could not find anything more recent then 1.5.0, I decided to build the 
last stable version on my desktop pc using the appropriate Slackbuild. 
So, I compiled qt4 (4.3.3) during one day and lyx 1.5.4 during the 
following night. I installed the resulting packages on my laptop and was 
quite happy to see that the time spent on compiling was not lost since 
lyx 1.5.4 was running perfectly.
Today I installed the same packages on my desktop (where they were 
created), and I got a SIGSEGV on lyx startup. The software packages on 
my desktop and on my laptop are almost identical since I loaded them 
recently. The hardware is quite old: a Pentium III 500MHz with 256M for 
the laptop and a Duron 700MHz with 512M for the desktop.


Any idea of what's might be wrong there?

TIA
--
jean-marie pacquet
Setting debug level to init
Debugging `init' (Program initialisation)
Checking whether LyX is run in place... no
package
binary_dir /usr/bin/
system_support /usr/share/lyx/./
build_support 
user_support /home/jmpacquet/.lyx/
locale_dir /usr/share/locale/./
document_dir /home/jmpacquet
temp_dir /tmp
home_dir /home/jmpacquet
/package

Initializing LyX::init...
About to read lyxrc.dist... Not found.
About to read lyxrc.defaults... Found in /home/jmpacquet/.lyx/lyxrc.defaults
About to read lyxrc.dist... Not found.
About to read preferences... Not found.
About to read encodings and unicodesymbols...
About to read languages...
Reading layouts...
About to read default...
Found default in /usr/share/lyx/./ui/default.ui
About to read stdmenus.inc...
Found stdmenus.inc in /usr/share/lyx/./ui/stdmenus.inc
About to read stdtoolbars.inc...
Found stdtoolbars.inc in /usr/share/lyx/./ui/stdtoolbars.inc
LyX tmp dir: `/tmp/lyx_tmpdir14018o0vN6a'
Reading session information '.lyx/session'...
Initializing LyX::init...done
Initializing key mappings...
Menu warning: menu entries Échanger Colonnes|e and Copier Colonne|e share 
the same shortcut.
Adding standard at position 0 0
Adding view/update at position 0 0
Adding extra at position 0 0
Adding review at position 0 0
Adding table at position 0 0
Adding math_panels at position 0 0
Adding math at position 0 0
Adding minibuffer at position 0 0

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions 
in Help-Introduction and send us a bug report, if necessary. Thanks !
Bye.


Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Jean-Marc Lasgouttes
Andre Poenitz [EMAIL PROTECTED] writes:

 After what I went through, I'd recommend that someone strongarm ALL
 variables to the Qt4 values, and not leave anything to chance.

 The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by 
 a distribution nor by LyX.

Could you explain why?

JMarc


Re: how to insert a theorem?

2008-03-04 Thread Paul A. Rubin

Daniel CLEMENT wrote:


If you are using one of the AMS classes, just start a new paragraph,
then click the drop down list of environments (left-most widget in the
first tool bar, or M-p space to open it from the keyboard), and click on
Theorem.



Is this a recent addition to LyX? I'd like to insert theorem-like
environments this way, but I can't do it. E.g., what AMS class do I have
to use, to see theorem in the drop-down list?



I think I was using it in LyX 1.3.x; I know I was in 1.4.x.  In Document 
- Settings... - Document class, pick from:  article (AMS); article 
(AMS, sequential numbering); article (AMS, unnumbered); or (if you're 
really wordy) book (AMS).  The differences among the article classes 
have to do with how theorem-like things are numbered.  All three have 
theorems, lemmas, corollaries etc. on the environment list.


The four AMS layout files load a bunch of include files that define all 
these things and tell LyX how to display and number them.  Richard Heck 
indicated that, in LyX 1.6, we'll be able to plug those modules into 
other classes.


/Paul



Re: how to insert a theorem?

2008-03-04 Thread rgheck


The four AMS layout files load a bunch of include files that define 
all these things and tell LyX how to display and number them.  Richard 
Heck indicated that, in LyX 1.6, we'll be able to plug those modules 
into other classes.



Yes, that's right.

An alpha of 1.6 should be out pretty soon, if you want to have a peek.

rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:
I've recently upgraded my pc's (two laptops and one desktop) from 
slackware 10.2 to 12.0. I looked at the existing packages for lyx. As 
I could not find anything more recent then 1.5.0, I decided to build 
the last stable version on my desktop pc using the appropriate 
Slackbuild. So, I compiled qt4 (4.3.3) during one day and lyx 1.5.4 
during the following night. I installed the resulting packages on my 
laptop and was quite happy to see that the time spent on compiling was 
not lost since lyx 1.5.4 was running perfectly.
Today I installed the same packages on my desktop (where they were 
created), and I got a SIGSEGV on lyx startup. The software packages on 
my desktop and on my laptop are almost identical since I loaded them 
recently. The hardware is quite old: a Pentium III 500MHz with 256M 
for the laptop and a Duron 700MHz with 512M for the desktop.


Any idea of what's might be wrong there?

Try running with -dbg init on the working installation. What's the next 
line?


rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.

--
jmp


Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.



OK, well, try comparing with -dbg any.

What I DON'T want to have to tell you is to compile with debugging 
symbols and run under gdb.


rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :

Jean-Marie Pacquet wrote:

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.



OK, well, try comparing with -dbg any.

What I DON'T want to have to tell you is to compile with debugging 
symbols and run under gdb.


rh
The end of the -dbg any on the crashing installation (with no SIGSEGV 
this time!):


#
# CONVERTERS SECTION ##
#


#
# COPIERS SECTION ##
#

createTmpDir: tempdir=`/tmp'
createTmpDir:mask=`lyx_tmpdir'
Temporary file `/tmp/lyx_tmpdir2649eEyk1r' created.
LyX tmp dir: `/tmp/lyx_tmpdir2649eEyk1r'
Reading session information '.lyx/session'...
Initializing LyX::init...done
LyXComm: Opening connection
LyXComm: server is disabled, nothing to do
lyx: New server socket 13 /tmp/lyx_tmpdir2649eEyk1r/lyxsocket
~$

On the running installation it's ending like that:
Adding minibuffer at position 0 0
We got a translation
We got a translation
We got a translation
We got a translation
splash screen requested
show banner: 1
We got a translation

--
jmp



Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Steve Litt
On Tuesday 04 March 2008 09:42, Jean-Marc Lasgouttes wrote:
 Andre Poenitz [EMAIL PROTECTED] writes:
  After what I went through, I'd recommend that someone strongarm ALL
  variables to the Qt4 values, and not leave anything to chance.
 
  The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by
  a distribution nor by LyX.

 Could you explain why?

 JMarc

Hi JMarc,

I'm not sure which statement you'd like explained. The statement I made 
was After what I went through, I'd recommend that someone strongarm ALL 
variables to the Qt4 values, and not leave anything to chance., so let me 
explain that one:

If, by leaving an environment variable to its default, a qt3 value sneaks in, 
the troubleshooting necessary to find and fix the problem would exceed by a 
factor of 100 the time it would take to strongarm every variable to its qt4 
value. Therefore, whether or not the default values *should* produce the 
right result, I'd recommend strongarming it.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Jean-Marc Lasgouttes
Steve Litt [EMAIL PROTECTED] writes:

  The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by
  a distribution nor by LyX.

 Could you explain why?

 I'm not sure which statement you'd like explained. The statement I made 
 was After what I went through, I'd recommend that someone strongarm ALL 
 variables to the Qt4 values, and not leave anything to chance., so let me 
 explain that one:

It was rather Andre's statement.

 If, by leaving an environment variable to its default, a qt3 value sneaks in, 
 the troubleshooting necessary to find and fix the problem would exceed by a 
 factor of 100 the time it would take to strongarm every variable to its qt4 
 value. Therefore, whether or not the default values *should* produce the 
 right result, I'd recommend strongarming it.

I personally would not recommend this value, since the best solution
in the long run is to try what is supposed to work and report a bug
when it does not. In this case --with-qt4-dir=/some/dir is all you
should need.

JMarc


Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:

rgheck a écrit :

Jean-Marie Pacquet wrote:

rgheck a écrit :
Try running with -dbg init on the working installation. What's the 
next line?


rh


Adding minibuffer at position 0 0 is the last line on the working 
installation.



OK, well, try comparing with -dbg any.

What I DON'T want to have to tell you is to compile with debugging 
symbols and run under gdb.


rh
The end of the -dbg any on the crashing installation (with no SIGSEGV 
this time!):



So it worked??

rh



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :

[...]
So it worked??

No, it just died gracefully and returned to the prompt!

In the mean time I tried another version from Linuxpackages (Lyx 1.5.0 
compiled with qt 4.3.0). It does exactly the same thing: SIGSEGV on startup.


I also built an old version (Lyx 1.4.5.1) which is compatible with my 
slack 12 installed qt 3 and got a similar error: segmentation fault.


Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works as 
usual...

so I'm a bit lost.

It can be a hardware problem but why only lyx gets affected??
Everything else is running on this machine that I'm using all day long 
to compile and test programs.

--
jmp


Re: turn off page numbers but still count page

2008-03-04 Thread Jennifer Brookes

That works a treat thank you

Helge Hafting wrote:

Jennifer Brookes wrote:
Thanks for your reply, thing is, the page I want without a number 
contains a large table (hence  a clash with the number) which I do 
not want to reduce in size. When I insert ERT \thispagestyle{empty} 
just before the table lyx takes the page number off the previous 
page, and if I place it just after, lyx takes the page number off the 
next page, but not the page containing the table. If I place the 
latex command within the table figure, I get errors that the document 
is damaged. Please can you help?

I see the same problem, except that I don't get the
error mentioned. (The desired effect is not achieved though.)


Here is how I did it.
One the page before the table, put:
\thispagestyle{plain}\pagestyle{empty}

Explanation:
The \pagestyle{empty} will make this page
and all following pages numberless. So, the table
page will be numberless. Since you don't want the page
before the table numberless, compensate that with \thispagestyle{plain}.

On the page after the table, put:
\pagestyle{plain}
in order to enable numbers again from that page and
all the rest.

If plain isn't what you want, subsitute headings,
myheadings, or fancy. I.e. the same as you
have in document settings.


Helge Hafting




Re: LyX 1.5 crashes on startup

2008-03-04 Thread rgheck

Jean-Marie Pacquet wrote:

rgheck a écrit :

[...]
So it worked??

No, it just died gracefully and returned to the prompt!

In the mean time I tried another version from Linuxpackages (Lyx 1.5.0 
compiled with qt 4.3.0). It does exactly the same thing: SIGSEGV on 
startup.


I also built an old version (Lyx 1.4.5.1) which is compatible with my 
slack 12 installed qt 3 and got a similar error: segmentation fault.


Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works 
as usual...

so I'm a bit lost.

Sounds like it must be a problem with the Qt installation. 1.4.3 used Qt 3.

rh



Re: Turn off page numbers but DON'T count page

2008-03-04 Thread Jennifer Brookes

Actually, I would like the absent numbers counted, if possible
Thanks
Jenny



[EMAIL PROTECTED] wrote:
I take the change given from Jenny to ask this: 


How could I both don't write turn off the page number AND the count?

By istance, assume I would have to insert some color pages in a document , and 
I don't want them to be counted, nor numbered.. how could I do ?

Lucio




.Hi, please does anybody know a way to turn off a page number in the 
.middle of a document, but page number all the other pages, and still 
.count the one without a number?

.
.Thanks
.Jenny
.

.. Caminante no hay
camino, solo se hace
camino al andar .. 

   
  ---   o
meglio   --- 


.. Caminante el
destino no es al
final de el viaje,
pero en todo el
andar ..

  




Re: turn off page numbers but still count page

2008-03-04 Thread Filippo Zangheri
Jennifer Brookes ha scritto:
 That works a treat thank you

Hi, I've got the same problem here and the proposed solution works
except for the chapter-starting pages. I mean, after
\pagestyle{empty} I have all pages numberless except for the pages
which contain \chapter{foo}.
Is it possible to have those pages unnumbered too?

Thank you!

System info:

OS: Debian Etch 4.0 GNU/Linux
Kernel: 2.6.24.3
LyX: 1.5.4 built from source (no fancy parameters)


-- 
Filippo Zangheri

GPG key ID: 0xE1D879FA
Key fingerprint: 816B CE57 D43C 0A47 EF35 3378 EA5F A72A E1D8 79FA
Key server: pgp.mit.edu

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GE d- s+:- a-- C++ UL+++ P+ L+++ E-- W+ N* o-- K- w--- O-- M--
V- PS++ PE+ Y+ PGP++ t 5-- X++ R* tv b+ DI-- D G-- e++ h--
r++ z*
--END GEEK CODE BLOCK--



Re: LyX 1.5 crashes on startup

2008-03-04 Thread Jean-Marie Pacquet

rgheck a écrit :

Jean-Marie Pacquet wrote:

rgheck a écrit :

[...]
So it worked??

No, it just died gracefully and returned to the prompt!

In the mean time I tried another version from Linuxpackages (Lyx 
1.5.0 compiled with qt 4.3.0). It does exactly the same thing: 
SIGSEGV on startup.


I also built an old version (Lyx 1.4.5.1) which is compatible with my 
slack 12 installed qt 3 and got a similar error: segmentation fault.


Last, I rebooted my previous slackware 10.2 with Lyx 1.4.3. It works 
as usual...

so I'm a bit lost.
Sounds like it must be a problem with the Qt installation. 1.4.3 used 
Qt 3.


rh
Yes, but I still do not understand why it works on the laptop with the 
same Qt 4 package and the same Lyx 1.5.4 package loaded on the same 
slackware 12. And the fact that 1.4.5.1 does not work means that Qt 3 is 
also broken?


Will investigate further to-morrow...

Thanks for your help
--
jmp


new lines disappearing in program listings

2008-03-04 Thread Brian Guenter
I'm new to Lyx and I'm hoping that the problems I'm encountering are just due 
to my ignorance.  I have a large existing code base in my development 
environment which I am going to be copying into my Lyx document as program 
listings.  I had an existing Latex document with program listings in it using 
the lstlisting environment. When I imported this document into Lyx all of the 
newlines in the program listings disappeared.

Similarly, if I copy code from my development environment (Visual Studio 2008) 
and paste it into a program listing block in Lyx all of the newlines are 
discarded.  If I have a properly formatted program listing, with newlines,  in 
a Lyx document and I export the Lyx document to a Latex file and then import 
the Latex file back into Lyx all of the newlines in program listing blocks 
disappear.

It's terribly inconvenient and time-consuming to have to reinsert all of the 
newlines by hand and retyping the code in Lyx is also an unattractive option 
because I have so much of it and because this will certainly introduce 
transcription errors.

Is this newline deletion a bug or is there something I can set to prevent the 
newlines from disappearing?

This e-mail was created using speech recognition software.  If the spelling, 
grammar, or wording seems strange it's the software's fault not mine.



Re: Insert-minipage?

2008-03-04 Thread Andre Poenitz
On Mon, Mar 03, 2008 at 04:37:17PM -0700, Bob Lounsbury wrote:
 On Mon, Mar 3, 2008 at 4:12 PM, Steve Litt [EMAIL PROTECTED] wrote:
  Hi all,
 
   I'm using LyX-1.5.3 on Mandriva 2007 Linux.
 
   I just tried to insert a minipage into my LyX document. I went to the 
  Insert
   menu and couldn't see minipage anywhere. Didn't there used to be an
   Insert-minipage option to insert a minipage? If so, where has it gone?
 
   Thanks
 
   SteveT
 
   Steve Litt
   Books written in LyX:
  Troubleshooting Techniques of the Successful Technologist
  Twenty Eight Tales of Troubleshooting
  Troubleshooting: Just the Facts
 
 
 I don't remember if there used to be Insert-Minipage and I don't have
 that option either, but there is Insert-Box which I think is what
 you're looking for.

Hmdahm.. makes me wonder whether the good ol' LaTeX names should show
up in the menus somehow. People seem to scan for those...

Andre'


Re: Turn off page numbers but DON'T count page

2008-03-04 Thread David Hewitt



 Actually, I would like the absent numbers counted, if possible
 
 [EMAIL PROTECTED] wrote:
 I take the change given from Jenny to ask this: 

 How could I both don't write turn off the page number AND the count?

 By istance, assume I would have to insert some color pages in a document
 , and I don't want them to be counted, nor numbered.. how could I do ?
 

I think this was covered elsewhere already in a recent thread, but here
goes:

Jenny, you can use '\thispagestyle{empty}' [in an ERT box] to suppress the
number being printed but still count the page in the counter.

Lucio, I think you could just make a PDF of the other pages and insert them.
I'm not sure if they'll be counted or not. Someone else will have to help on
that.


-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/Turn-off-page-numbers-but-DON%27T-count-page-tp15825967p15834186.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Input Documents on the same page

2008-03-04 Thread NicoWinger
Hello,
 
short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically? And by the way: What is the diffence
between include and input?
 
thanks for your help
 
Nico


Re: Why oh why did you drop xforms? SOLVED

2008-03-04 Thread Andre Poenitz
On Tue, Mar 04, 2008 at 03:42:25PM +0100, Jean-Marc Lasgouttes wrote:
 Andre Poenitz [EMAIL PROTECTED] writes:
 
  After what I went through, I'd recommend that someone strongarm ALL
  variables to the Qt4 values, and not leave anything to chance.
 
  The QT4* values are (contrary to Qt 3 ones) _not_ needed, neither by 
  a distribution nor by LyX.
 
 Could you explain why?

Qt 4 does not use any QT4* environment variables.

Andre'


Re: LyX 1.5 crashes on startup

2008-03-04 Thread Andre Poenitz
On Tue, Mar 04, 2008 at 10:27:23AM -0500, rgheck wrote:
 Jean-Marie Pacquet wrote:
 rgheck a écrit :
 Try running with -dbg init on the working installation. What's the next 
 line?

 rh

 Adding minibuffer at position 0 0 is the last line on the working 
 installation.

 OK, well, try comparing with -dbg any.

 What I DON'T want to have to tell you is to compile with debugging symbols 
 and run under gdb.

Even without debugging turned on one usually gets a stack trace.
Less information, but sometimes helpful nevertheless.

Andre'


koma-letter2.lyx / scrlttr2.cls Insert-Float-Table Problem

2008-03-04 Thread Kenneth Berland

List,

I can't put a table float into the letter class I'm using, scrlttr2.cls. 
The option is not available from the menu.


1) File-New From Template.
2) Choose koma-letter2.lyx.
3) Insert-Float-Table does not appear.

How can I float a table in the letter I'm writing?

Thanks,
Ken


Re: Input Documents on the same page

2008-03-04 Thread William Adams

On Mar 4, 2008, at 2:05 PM, NicoWinger wrote:


short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically?


Not really, because of the need to support ``includeonly''


And by the way: What is the diffence
between include and input?



The former is the LaTeX command, w/ explicit support for nifty  
features, the latter is the Plain TeX command which simply switches  
which file text is coming from.


See this thread for more details:

http://groups.google.com/group/comp.text.tex/browse_frm/thread/8ba81ea8ff536ae4/2d28ab8d1562e06d

William


--
William Adams
senior graphic designer
Fry Communications




Re: Input Documents on the same page

2008-03-04 Thread Uwe Stöhr

NicoWinger schrieb:


short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically?
And by the way: What is the diffence
between include and input?


Both issues are explained in section 6.2 of the EmbeddedObjects manual.

regards Uwe


Re: Input Documents on the same page

2008-03-04 Thread Uwe Stöhr

William Adams schrieb:


short question: Is it possible to insert lyx-files (include) without
inserting a pagebreak automatically?


Not really, because of the need to support ``includeonly''


When you use include, then yes, but, you can use the input method, see the 
EmbeddedObjects manual:
Input files don't start with a new page and don't end with a pagebreak.

regards Uwe


Re: Turn off page numbers but DON'T count page

2008-03-04 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:



How could I both don't write turn off the page number AND the count?

By istance, assume I would have to insert some color pages in a
document , and I don't want them to be counted, nor numbered.. how
could I do ?



This strikes me as one of those things the Gods of Typography might 
consider grounds for a lightning bolt or two.  However, since the target 
will be you and not me ...


Try inserting two page breaks (one to end the previous page, one to end 
the blank page) and between them insert in ERT 
'\thispagestyle{empty}\addtocounter{page}{-1}'.


/Paul



Re: turn off page numbers but still count page

2008-03-04 Thread Paul A. Rubin

Filippo Zangheri wrote:

I mean, after
\pagestyle{empty} I have all pages numberless except for the pages
which contain \chapter{foo}.
Is it possible to have those pages unnumbered too?


Use the sectsty package, and put \chapterfont{\thispagestyle{empty}} in 
ERT in the first page of the chapter (I think).


/Paul



Re: new lines disappearing in program listings

2008-03-04 Thread Paul A. Rubin

Brian Guenter wrote:

I'm new to Lyx and I'm hoping that the problems I'm encountering are
just due to my ignorance.  I have a large existing code base in my
development environment which I am going to be copying into my Lyx
document as program listings.  I had an existing Latex document with
program listings in it using the lstlisting environment. When I
imported this document into Lyx all of the newlines in the program
listings disappeared.


Confirmed.


Similarly, if I copy code from my development environment (Visual
Studio 2008) and paste it into a program listing block in Lyx all of
the newlines are discarded.


Try Edit - Paste Special - Plain Text (C-S-V).  This works for me 
(meaning the newlines are preserved).



If I have a properly formatted program
listing, with newlines,  in a Lyx document and I export the Lyx
document to a Latex file and then import the Latex file back into Lyx
all of the newlines in program listing blocks disappear.


Confirmed.


It's terribly inconvenient and time-consuming to have to reinsert all
of the newlines by hand and retyping the code in Lyx is also an
unattractive option because I have so much of it and because this
will certainly introduce transcription errors.

Is this newline deletion a bug or is there something I can set to
prevent the newlines from disappearing?


It's a bug (or a lack of a feature, or a lag in implementing a feature). 
 Support for the listings environment is relatively new to LyX.  LyX 
uses a program called tex2lyx to convert LaTeX files to LyX file.  My 
guess is that tex2lyx has not caught up to the implementation of the 
listings package, and it's tex2lyx that's eating the newlines.


You might want to file a bug report against this.  (I did a quick search 
and couldn't find one.)  Also, if you run 'tex2lyx --help', you'll see a 
rather intriguing reference to the -s option:  -s syntaxfile  read 
additional syntax file.  Assuming one can find some documentation on 
syntax files for tex2lyx (so far I can't), perhaps one can implement a 
modification to preserve newlines in listings that way.


/Paul



Inserting graphics of the appropriate type: how to?

2008-03-04 Thread Paul Johnson
For many plots in a sub directory PlotFigures, I have 2 versions,
one in eps version and  one in pdf version.

With Lyx-1.5.3 on Fedora Linux 8, I'm using a koma-script book format.
 I've run up against this problem inserting graphics.  When I insert a
pdf figure, then in the DVI/postscript output, the output is not good
because there's a big blank area at the top of the figure.  In the pdf
output, the document is good (presumably because the figure was pdf,
the latex processor handles it well).  On the other hand, if I insert
the eps figure in Lyx, then the DVI/postscript output is good, but the
pdf output looks bad.

I think this is happening because there really is a big white area at
the top of the pdf files, and I will have to remedy that for future
figures.

But for working with the existing images, what is a good approach?
I've been reading lyx-user archives.

In some email messages from this list, I see users ask this question
and they are advised to omit the image type from the LyX insert.  LyX
will use eps for DVI output and pdf for pdf output.  I mean, if a
graphic is available as Plot-001.eps or Plot-001.pdf,   then one
should simply insert the figure name Plot-001 and the LaTeX
processor will choose the correct format. However, when I try that in
LyX, I see figure not found on the screen.

What's up with that?

In retrospect, I see I need to do more work in the R script that
manufactures the images, because I think I can stop the pdf output
from including that giant white space at the top of the pdf.  But it
seems weird to have to do that in order to get an EPS output file.

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: new lines disappearing in program listings

2008-03-04 Thread Juergen Spitzmueller
Paul A. Rubin wrote:

 I'm new to Lyx and I'm hoping that the problems I'm encountering are
 just due to my ignorance.  I have a large existing code base in my
 development environment which I am going to be copying into my Lyx
 document as program listings.  I had an existing Latex document with
 program listings in it using the lstlisting environment. When I
 imported this document into Lyx all of the newlines in the program
 listings disappeared.
 
 Confirmed.

The listings inset has some deficiencies (it cannot handle tabs yet and it
doesn't handle whitespace well in general). For such a case, I'd recommend
to keep the listings in a text file and include them via
Insert-File-Child Document, where you can chose Program Listing from
the combo.

Jürgen



Re: Highlighting inside a text in Beamer

2008-03-04 Thread Paul A. Rubin

Manolo Martínez wrote:

Hello,

I'm writing my first presentation with Beamer, and I've stumbled upon 
the following problem I'd like to have a quote such that the slide first 
presents the quote as it is and, then, when I push a key, one passage is 
highlighted first and, when I push again, another passage is 
highlighted. I cannot see any way to do this using \alert. Is there an 
easy way?




Easy is a relative term.  :-)

You can type each part of the quote twice (consecutively) in only 
environments, surround the second version of each with '\alert{' and '|' 
in ERT, then specify which overlays will contain the regular parts and 
which will contain the alerted parts.  You will need separators (near 
the bottom of the environment drop-down list) to separate consecutive 
only blocks; otherwise they run together.


I've attached a small example.  It's a bit more complicated than what I 
described above, because I wanted to center the quote, and the layout 
file for the Beamer class does not allow specification of horizontal 
alignment in 'only' environments.  So I put each line of verse in a 
standard paragraph (Beamer doesn't seem to have a verse environment, or 
if it does the layout file does not support it), centered that 
paragraph, then nested it into the corresponding 'only' block.  This has 
the side effect of double spacing the quote.  To get centering with 
single spacing, you can try putting the quote directly into the 'only' 
block and then putting '\centering{' and '}' around it in ERT.  (I 
didn't bother to test this.)


/Paul


newfile4.lyx
Description: application/lyx


  1   2   >