Re: converters

2008-07-18 Thread G. Milde
On 17.07.08, Matthias E wrote:

 Whenever I try to view the file as a .pdf, the following screen pops
 up:

 Keine Information vorhanden, um Dateien im -Format nach png zu  
 konvertieren.
 Definieren Sie einen Konverter in den Einstellungen.

I wonder about the -Format. Did you specify the extension (.eps, .pdf,
...) in the LyX file?

In the past, leaving out the extension allowed the compilation of a
document with both, latex and pdflatex without change (if .eps and .pdf
versions of the graphic existed). Now, LyX handles the conversion
itself, so specifying the extension of the primary format is recommended.

Generally, in such cases try to provide a minimal example that shows
the problematic behaviour. This makes looking for the core of the
problem much easier.

Günter




Re: amssymb and amsfonts defaults

2008-07-18 Thread Manveru
Or adding optional support for lucimatx package, if more people use this
font package. Selecting this autommatically should automatically disable
amsymb. But I am speculating now.

M.

2008/7/17 Paul A. Rubin [EMAIL PROTECTED]:

 Paul A. Rubin wrote:

 Ivan Werning wrote:

 I would like to compile my lyx document without amsymb and amsfonts
 package (but I do want the amsmath) loaded automatically because I would
 like to add another font package, lucimatx, that defines substitutes for it
 and dos things differently. see explanation here
 http://www.pctex.com/kb/58.html

 The bottom line is that my font packages conflict with amsymb and
 amsfonts and I need to turn the latter off.  How can do this?

 I added the necessary preamble lines to load my font packages in
 DocumentsSettingsPreamble but going through the pdflatex log I see that
 lyx is calling amssymb and I cannot access the lyx default for that in any
 menu that I could find.

 Thanks!

 -Ivan


 You can suppress loading of the AMS packages in Document - Settings... -
 Math Options (deselect both the first two choices).  Then add
 \usepackage{amsmath} in the preamble.

 /Paul



 Ivan asked me to post the follow-up to this.  (We continued the discussion
 offline.)

 Turns out I was wrong.  If you turn off AMS loading but then use an AMS
 symbol in a formula somewhere (such as \mathbb{R}), LyX spots this and
 automatically loads the amssymb and amsfonts packages, which are
 incompatible with lucimatx.  The best solution would probably be a couple
 more check boxes to allow the user to suppress automatic loading of those
 packages as well.

 /Paul




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
 The listings package does not require or force the \begingroup +
 \inputencoding{latin1} + \endgroup commands, nor the two blank lines.
 The blank lines are purely LyX.  

These mark a new paragraph. They are not inserted if you ommit a paragraph 
break after the listings inset. So the lines are correct, AFAICS.
But I see now that the \endgroup tag indeed makes a difference.

 It seems to me that there has already 
 been discussion elsewhere of situations in which LyX inserts unwanted
 blank lines.  

This was something different (and is fixed in 1.6; I did not fix it in 1.5.x, 
because it might have unwanted side effects)

 As far as the input encoding goes, my guess is that 
 whoever coded the listings support put this in to prevent the user from
 accidentally blowing up the package by using a multibyte encoding.
 However, as I mentioned above, the package specifically provides an
 escape-to-LaTeX mechanism that allows the user to insert text from other
 encodings.  This presumably would be blocked by the current LyX
 implementation (although I'm not the person to test this, since I'm
 blissfully ignorant about non-Latin encodings).

The problem is that the listings package cannot deal with unicode or any other 
multibyte encoding (such as some CJK encodings); the listings parser simply 
is not ready for that, and unfortunately, it's also not maintained currently. 
Heiko Oberdiek has written a listingsutf8 extension package, but this only 
fixes the encoding of lstinputlisting). So the reason for the brute-force 
encoding switch is a fundamental limitation of the listings package.

However, I agree the encoding switch is a hack, and we should at least limit 
the hack to the case where it is needed, i.e. only switch to latin1 if we 
actually are in a multibyte encoding.

 So fundamentally, I think, it's a question of whether protecting the
 user from himself on the encoding issue is worth the price.

Suggestions are welcome. But they have to work in any encoding.

Jürgen


Re: amssymb and amsfonts defaults

2008-07-18 Thread G. Milde
On 18.07.08, Manveru wrote:
 Or adding optional support for lucimatx package, if more people use this
 font package. Selecting this autommatically should automatically disable
 amsymb. But I am speculating now.

I do not think that it is necessary to have a lucimatx checkbox in the
Math dialogue. However, I could imagine a layout add-on lucimatx that
loads the lucimatx package and disables loading of amssymb and amsfonts.

Maybe we need  ProvidesAmsSymbols and ProvidesAmsFonts layout parameters
alongside the already existing ProvidesAmsmath.

(AFAIK, packages fourier, kpfonts, txfonts and pxfonts also replace the
amssymb symbols with their own versions.)

Günter


Re: 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread Michael Beckmann

Hi there,

on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not 
find the error you described. Could you run lyx in the terminal and post 
the crash/error output?


cheers
Michael

[EMAIL PROTECTED] wrote:

Hi!

I have just compiled Lyx 1.6 beta4 on Ubuntu (8.04) and installed it. When I
tried to open my Lyx documents, one document is constantly crashing when I
click on the title in the document (very strange).  Can someone tell me how
to fix it?

Ven. Pandita



*.po conflicts after updating SVN

2008-07-18 Thread G. Milde
Dear LyXers,

after updating my working directory from the LyX SVN with
  
  /usr/local/src/lyx-devel svn update
  
I got a whole bunch of conflicts in the lyx-devel/po/ directory, e.g.

  ca.gmo
  ca.po
  ca.po.mine
  ca.po.r25470
  ca.po.r25661
  ca.po~
  
(and similar for de, es, fr, gl, he, ...)

resulting in failure when I try to `make` LyX:


  make[3]: Entering directory `/usr/local/src/lyx-devel/po'
  /usr/bin/msgmerge --update ca.po lyx16.pot
  ca.po: Warnung: Zeichensatz fehlt im Kopfeintrag.
  Konvertierung der Meldungen in den Zeichensatz des Anwenders
  wird fehlschlagen.
  ca.po:21:2: syntax error
  ca.po:21: Schlüsselwort »mine« ist unbekannt
  ca.po:25: Schlüsselwort »r25661« ist unbekannt
  .
  .
  .


I did not (manually/explicitely) change the *.po files, rather it seems
that they are updated during the building of LyX - resulting in conflicts
whenever the upstream file changes.

What did I wrong? 

How could I most easily change all these files to the latest SVN version?

Could these conflicts be prevented somehow?

Thanks,

Günter


Re: 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread Pavel Sanda
 Hi there,

 on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not find 
 the error you described. Could you run lyx in the terminal and post the 
 crash/error output?

even better would be to show us that document...
pavel


Re: *.po conflicts after updating SVN

2008-07-18 Thread Pavel Sanda
 What did I wrong? 

nothing, this happens when po directory is rebuilt.
this usually happens only if lyx.pot is missing,
otherwise plain make command shouldn't trigger it.

 How could I most easily change all these files to the latest SVN version?

go to the po directory, then svn revert -R *

 Could these conflicts be prevented somehow?

hardly.

pavel


Re: *.po conflicts after updating SVN

2008-07-18 Thread Jürgen Spitzmüller
G. Milde wrote:
 How could I most easily change all these files to the latest SVN version?

delete them and svn up again.

Jürgen


Re: amssymb and amsfonts defaults

2008-07-18 Thread Jean-Marc Lasgouttes
G. Milde [EMAIL PROTECTED] writes:
 Maybe we need  ProvidesAmsSymbols and ProvidesAmsFonts layout parameters
 alongside the already existing ProvidesAmsmath.

The syntax is now Provides foo for package foo, so it may already
work.

JMarc


latest MikTex beraks my Lyx documents of the letter (g-brief, German) class (latex error)

2008-07-18 Thread [EMAIL PROTECTED]

Hello,

I just tried to write a letter with Lyx. For this I always use the 
letter (g-brief, German) class. When I hit the button for PDF (or DVI, 
it doesn't matter) export, I get the following latex errors:



1. Undefined control sequence.
 [EMAIL PROTECTED]

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

2. LaTeX Error: Missing \begin{document}.
 [EMAIL PROTECTED]

You're in trouble here.  Try typing  return  to proceed.
If that doesn't work, type  X return  to quit.

3. Undefined control sequence.
 [EMAIL PROTECTED]

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


I also tried documents of the same class that worked before, I get the 
same errors. As I have recently updated MikTex, I blame this update to 
cause the problem, but I have no idea what to do. I checked the document 
language setting in Lyx, but this is set to german, so I don't know why 
the error mentions english. I also exported to .tex and saw that 
\begin{document} was there.


My System: Windows Vista with Lyx 1.5.5 and an up-to-date MikTex 
installation.

Please let me know if further information is needed.

Thanks a lot for the help
SK


Re: *.po conflicts after updating SVN

2008-07-18 Thread G. Milde
On 18.07.08, Pavel Sanda wrote:
  What did I wrong? 

 nothing, this happens when po directory is rebuilt.
 this usually happens only if lyx.pot is missing,
 otherwise plain make command shouldn't trigger it.

As I did not delete lyx.pot by hand, I wonder if this was done by
`make clean` or `make distclean` and whether the latter should be avoided.

  How could I most easily change all these files to the latest SVN version?

 go to the po directory, then svn revert -R *

This works nice, thanks a lot.

  Could these conflicts be prevented somehow?

 hardly.

Too sad.

Thanks again,

Günter



Re: *.po conflicts after updating SVN

2008-07-18 Thread Pavel Sanda
 On 18.07.08, Pavel Sanda wrote:
  nothing, this happens when po directory is rebuilt.
  this usually happens only if lyx.pot is missing,
  otherwise plain make command shouldn't trigger it.
 
 As I did not delete lyx.pot by hand, I wonder if this was done by
 `make clean` or `make distclean` and whether the latter should be avoided.

make clean shouldn't touch it, possibly by make distclean, not sure now.

pavel


Re: amssymb and amsfonts defaults

2008-07-18 Thread Ivan Werning

On Jul 18, 2008, at 6:03 AM, Jean-Marc Lasgouttes wrote:

The syntax is now Provides foo for package foo, so it may already
work.

JMarc


I'd like to try it. How can I change this parameter? Or are you  
talking about development options, not a current workaround?


-Ivan


Re: amssymb and amsfonts defaults

2008-07-18 Thread lasgouttes
Ivan Werning [EMAIL PROTECTED] writes:

 I'd like to try it. How can I change this parameter? Or are you
 talking about development options, not a current workaround?

This 
  Provides mypackage 1
syntax exists in 1.5.x and is documented in the Customization manual.
However, the definition of a module that was alluded to is not
possible in 1.5.x.

You can declare your own text class myarticle.layout that uses this,
but I am a bit too busy right now to propose a working solution.

JMarc


[Fwd: Re: 1.6 beta4 crashing on Ubuntu]

2008-07-18 Thread Michael Beckmann

I'm not sure what this actually means, maybe somebody else has an idea.

Can you provide the document as Pavel suggested? Does the error occur 
only with this document or with every (even newly created) file?


Please remember to reply to all recipients (i.e lyx-users@lists.lyx.org) 
when answering emails in the userlist, otherwise its just me reading it 
and I'm not really an expert :-)


cheers
Michael

 Original Message 
Subject:Re: 1.6 beta4 crashing on Ubuntu
Date:   Fri, 18 Jul 2008 17:30:46 +0530
From:   [EMAIL PROTECTED]
To: Michael Beckmann [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]



Hi! Michael

I did as you said, and the following is the terminal output. I pray you
can find out the problem and solution. I don't know whether it is
relevant or not but it happened after regular updates.

Thanking in advance

Ven. Pandita


[EMAIL PROTECTED]:~$ /usr/local/bin/lyx
CoordCache.cpp(39): break on pointer: 0x8bb1640 hint: x size: 4
lassert.cpp(21): ASSERTION false VIOLATED IN CoordCache.cpp:40
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check false in file lassert.cpp:23
Aborted


You wrote:

on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not
find the error you described. Could you run lyx in the terminal and
post the crash/error output?




More on 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread ashinpan
Hi Michael and all list members

I posted the following question to the list:

I have just compiled Lyx 1.6 beta4 on Ubuntu (8.04) and installed it. When
I tried to open my Lyx documents, one document is constantly crashing when I
click on the title in the document (very strange).  Can someone tell me how
to fix it?

Then Michael asked me Could you run lyx in the terminal and post the
crash/error output? I followed his advice and I got the following terminal
output:

CoordCache.cpp(39): break on pointer: 0x8bb1640 hint: x size: 4
lassert.cpp(21): ASSERTION false VIOLATED IN CoordCache.cpp:40
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check false in file lassert.cpp:23
Aborted

Then Michael wrote:

I'm not sure what this actually means, maybe somebody else has an idea.

 Can you provide the document as Pavel suggested? Does the error occur only
 with this document or with every (even newly created) file?

 Please remember to reply to all recipients (i.e lyx-users@lists.lyx.org)
 when answering emails in the userlist, otherwise its just me reading it and
 I'm not really an expert :-)


So I have attached my document herewith. Really hope somebody kindly helps.

Thanking in advance

Ven. Pandita


meritocracy_2.lyx
Description: application/lyx


Re: latest MikTex beraks my Lyx documents of the letter (g-brief, German) class (latex error)

2008-07-18 Thread Dominik Waßenhoven
[EMAIL PROTECTED] wrote:

 As I have recently updated MikTex, I blame this update to cause the
 problem, but I have no idea what to do.

Did you rebuild the format files? MikTeX Settings - Update Formats

There were some language specific updates that need rebuilding the
format files, which is not done automatically during the update process.

Regards,
Dominik.-



Re: Table Alignment

2008-07-18 Thread Les Denham
On Friday 18 July 2008, Paulina Restrepo wrote:
 I'm using Lyx 1.5.3 on a Mac, with Mac OS X version 10.4.11.

 I have a table inside a float, and the word Measure on the table
 looks aligned in Lyx,
 but when I compile into pdf it moves up. I haven't been able to fix
 its alignment. Here is the Lyx
 file. Any ideas?

Paulina,

I'm using LyX 1.5.4 on Linux, and I see exactly the same as you do.  I looked 
at the exported LaTeX, and I can't see anything there that would make it 
behave the way it does.  Running the LaTeX through both latex and pdflatex 
fails to generate any clues in the log files.

However, I did manage to fix it.  I'm not sure why this worked, though.

1. Select the whole row.

2. Set the font to Small Bold (did you realize you had a mixture of Small and 
Normal?)

3. Right click and set the vertical alignment to Middle.

The fixed example is attached.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#LyX 1.5.4 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author  
\author  
\end_header

\begin_body

\begin_layout Standard
\align center
\begin_inset Tabular
lyxtabular version=3 rows=10 columns=7
features
column alignment=center valignment=middle leftline=true width=1.2in
column alignment=center valignment=middle leftline=true width=0
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true rightline=true width=0.4in
row topline=true
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=1 alignment=center valignment=top topline=true bottomline=true leftline=true rightline=true usebox=none width=2in
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
Elasticity of Substitution of Consumption Goods
\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true rightline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
/row
row bottomline=true
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
Share of Informal Labor
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\series bold
\size small
Measure
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
20
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
12
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
8
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
4
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none
\begin_inset Text

\begin_layout Standard

Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread Steve Litt
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.

Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
 On 14.07.08, Steve Litt wrote:
  Hi all,
 
  I'm trying to make a simple clone of the Enumerate environment. Once I
  can do that, I'll make a few changes. But I've not been able to clone
  it.

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


 and LaTeX environment::

   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}

  Here's my layout file:
 
  #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[book]{quizbook}
 
  Input stdclass.inc
 
  Preamble
  \let\questions = \enumerate
  \let\oldquestions = \oldenumerate
  EndPreamble

 I am not sure if this works well, as enumerate is an environment, not a
 command. Use the latex \newenvironment instead.

  Style Questions

 ...

  End

 With CopyStyle, you get all the definitions of the copied style and
 need to change only thing that should differ.

  The preceding layout produces the output shown in the attached
  screenshot_questions.gif. However, if I change the LatexName in the LyX
  environment from questions to enumerate, it outputs as shown in the
  attached screenshot_enumerate.gif.

 Describing the difference in words helps (while pics might augment
 this, they cannot always replace a description, e.g. while browsing
 this mail to see if I can help at all, I do not see the attachments.)

  Can somebody explain to me why the two don't output the same?

 no.

 Can somebody explain how I can truly clone the Enumerate environment?

 see above.

  NOTE: In order to toggle the output when switching between LatexType
  questions and LatexType enumerate, you must Tools-reconfigure and then
  terminate and restart LyX. Trust me on this -- I tried without
  reconfiguring and the output didn't toggle.

 You could define 2 Styles in your layout file (one QuestionsTest, say)
 and switch between them in the document.

 Günter


Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread rgheck

Steve Litt wrote:
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.


Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.


  
\let clones COMMANDS, whereas you were trying to clone environments. 
There are, of course, commands that correspond to the environments, and 
you could probably use \let to do it that way. But Gunter's version is 
definitely preferable.


rh

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
  

On 14.07.08, Steve Litt wrote:


Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I
can do that, I'll make a few changes. But I've not been able to clone
it.
  

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration


and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}



Here's my layout file:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{quizbook}

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble
  

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.



Style Questions
  

...



End
  

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.



The preceding layout produces the output shown in the attached
screenshot_questions.gif. However, if I change the LatexName in the LyX
environment from questions to enumerate, it outputs as shown in the
attached screenshot_enumerate.gif.
  

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)



Can somebody explain to me why the two don't output the same?
  

no.



Can somebody explain how I can truly clone the Enumerate environment?
  

see above.



NOTE: In order to toggle the output when switching between LatexType
questions and LatexType enumerate, you must Tools-reconfigure and then
terminate and restart LyX. Trust me on this -- I tried without
reconfiguring and the output didn't toggle.
  

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter





Subtitle in Koma-script

2008-07-18 Thread Guillaume Larocque
Hi, I must be missing something pretty obvious but I can't seem to
find how to add a Subtitle to my book(Koma-Script) document. I have
found information on the \subtitle command in the Koma-script
documentation, but I can't find the equivalent option in the Lyx
drop-down environment menu.

Thanks for the help,

Guillaume


Re: Table Alignment

2008-07-18 Thread Paul A. Rubin

Paulina Restrepo wrote:

Hi,

I'm using Lyx 1.5.3 on a Mac, with Mac OS X version 10.4.11.

I have a table inside a float, and the word Measure on the table looks 
aligned in Lyx,
but when I compile into pdf it moves up. I haven't been able to fix its 
alignment. Here is the Lyx

file. Any ideas?

Thank you,

Paulina


If you turn off centering in each of the other cells in that row, 
Measure will align correctly, and all the titles will be centered in 
the output (but not in the GUI).  The problem is that when you set fixed 
widths for the other columns, you also specified that they be centered. 
 LyX correctly recorded that, and LaTeX will in fact center them 
(including the heading cells), but LyX displays the headings with 
default alignment.  I suspect that caused you to manually center all but 
Measure, which led LyX to add redundant centering.  So, for instance, 
20 became


\begin{center}\textbf{\small 20}}\par\end{center}

and so on.  The problem is that the begin/end environment stuff adds 
some vertical space, which does not happen in the Measure cell.  You 
cannot add the center stuff to the Measure cell, but you can remove it 
from the other cells (if you are will to tolerate incorrect alignment in 
the GUI).


/Paul



Converting msword to LyX is ugly!

2008-07-18 Thread Steve Litt
Hi all,

I have a 300 page book written in MS Word version 97, and I have to convert it 
to LyX in order to make the second edition.

I'll accept all condolences now :-)

Believe it or not, the MS Word version was written very much what you guys 
would call WYSIWYM. I had styles for everything -- almost no appearance was 
fine tuned. Obviously it's essential that all those styles transfer over into 
the LyX version.

I'll accept all condolences now :-)

So heres what my plan, unless someone else has a better idea.

First, I'll export to RTF.

I'll accept all condolences now :-)

Then in Vim I'll do this:

:%s/}/}\r/g

Now the rtf file will have lines that are somewhat recognizeable as markup.

Next I'll look at the \stylesheet part of the RTF, and make a list of all 
paragraph and character styles, sort of like this:

\fs20 Normal
\s1 heading 1
\s2 heading 2
\cs10 \additive Default Paragraph Font
\s16 myparagraphstyle
\cs17 mycharstyle
\cs18 mycharstyle2

Then, within Vim I'll run substitions so that the text referred to by the 
numbers such as \s2 are prepended with my own tags such as phdr2, and better 
yet that text has a proper ending tag appended. This is not so simple for 
three reasons:

1) There's always a bunch of gobblety gook between the \s2 and the text to 
which it refers, and that must eventually be deleted.

2) There's often gobblety gook before the \s2, and that gobblety gook must 
eventually be deleted.

3) It's MUCH harder to reliably put end tags at the end of the text to which 
it refers. If I don't put end tags, that means I'll have a much harder time 
converting it to LyX.

Next, I'll re-import the rtf into MS Word. What should happen is it re-imports 
the same as it originally was, only now it has my tags. From there I should 
be able to export it to plain text, and use my tags to create the LyX file 
with suitable scripts. Or maybe make scripts to directly manipulate the RTF. 
Of course, for all my custom character and paragraph styles, I'll need to 
create those styles within LyX, in a blank document, before appending the 
actual content.

Then comes the cleanup. Stuff like tables and images won't convert -- I'll 
need to manually do that cleanup and then run at least a rough proofread.

The good news is, because the original document used styles for almost every 
appearance, fine tuning won't be necessary (hooray for styles!).

I'd estimate this to be about a week's job. That's a lot of time, but in the 
end I'll have converted a 300 page book, style for style, from MS Word to 
LyX.

If anyone has a better idea for converting a 300 page MS Word document to LyX, 
style for style and word for word, please let me know.

Thanks

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



How to stop lyx

2008-07-18 Thread f wonghc
I unscribe but it still send to me account.
 
Can anyone help?  thnkas.


  

Re: Converting msword to LyX is ugly!

2008-07-18 Thread Andre Poenitz
On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
 Hi all,

Hi Steve.

 If anyone has a better idea for converting a 300 page MS Word document
 to LyX, style for style and word for word, please let me know.

I'd try 

  unrtf -t tex  foo.rtf

and check whether that's easier to manage in a text editor than
the 'real' rtf.

For finding the end tags, maybe even  'unrtf -t html' is an option...

Hope this is of any use,
Andre'


Re: Converting msword to LyX is ugly!

2008-07-18 Thread Christian Ridderström

On Fri, 18 Jul 2008, Steve Litt wrote:


I had styles for everything -- almost no appearance was fine tuned.


You would, wouldn't you! :-D


So heres what my plan, unless someone else has a better idea.

First, I'll export to RTF.



Now the rtf file will have lines that are somewhat recognizeable as markup.


Would exporting to HTML+CSS help, assuming that the styles go into the 
CSS-file? (I'm thinking that the markup is easier in HTML compared to RTF)

Or maybe to some other format that's easier to work with... XML?
Converting to OOXML? Or ODF?

snipped complicated looking plan


If anyone has a better idea for converting a 300 page MS Word document to LyX,
style for style and word for word, please let me know.


Some thoughts/deas...
* Check many different styles there are in the book
* Check how many things you still will have to do manually (tables,
  images, etc)
* Do a test case on a small subset of the book before you commit to
  your plan

* Hire someone else to do the tedious work!

cheers,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: Converting msword to LyX is ugly!

2008-07-18 Thread Steve Litt
On Friday 18 July 2008 15:43, Andre Poenitz wrote:
 On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
  Hi all,

 Hi Steve.

  If anyone has a better idea for converting a 300 page MS Word document
  to LyX, style for style and word for word, please let me know.

 I'd try

   unrtf -t tex  foo.rtf

 and check whether that's easier to manage in a text editor than
 the 'real' rtf.

Hi Andre,

I tried it.

Unfortunately, unrtf discards all styles, converting them to fine-tuned 
output. This is true both for html and latex output.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Converting msword to LyX is ugly!

2008-07-18 Thread Typhoon
On Fri, 18 Jul 2008 19:08:19 -0400
Steve Litt [EMAIL PROTECTED] wrote:

 On Friday 18 July 2008 15:43, Andre Poenitz wrote:
  On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
   Hi all,
 
SNIP
 I tried it.
 
 Unfortunately, unrtf discards all styles, converting them to
 fine-tuned output. This is true both for html and latex output.

Hi Steve, 
My only suggestion would be to use one of the programming tools rather
than do your replacement in Vim. Awk, sed, perl - It would allow you to
gradually build up some regexps through trial and error.

My condolences :-)

Alan

 
 SteveT
 
 Steve Litt
 Recession Relief Package
 http://www.recession-relief.US
 
 


Re: converters

2008-07-18 Thread G. Milde
On 17.07.08, Matthias E wrote:

 Whenever I try to view the file as a .pdf, the following screen pops
 up:

 Keine Information vorhanden, um Dateien im -Format nach png zu  
 konvertieren.
 Definieren Sie einen Konverter in den Einstellungen.

I wonder about the -Format. Did you specify the extension (.eps, .pdf,
...) in the LyX file?

In the past, leaving out the extension allowed the compilation of a
document with both, latex and pdflatex without change (if .eps and .pdf
versions of the graphic existed). Now, LyX handles the conversion
itself, so specifying the extension of the primary format is recommended.

Generally, in such cases try to provide a minimal example that shows
the problematic behaviour. This makes looking for the core of the
problem much easier.

Günter




Re: amssymb and amsfonts defaults

2008-07-18 Thread Manveru
Or adding optional support for lucimatx package, if more people use this
font package. Selecting this autommatically should automatically disable
amsymb. But I am speculating now.

M.

2008/7/17 Paul A. Rubin [EMAIL PROTECTED]:

 Paul A. Rubin wrote:

 Ivan Werning wrote:

 I would like to compile my lyx document without amsymb and amsfonts
 package (but I do want the amsmath) loaded automatically because I would
 like to add another font package, lucimatx, that defines substitutes for it
 and dos things differently. see explanation here
 http://www.pctex.com/kb/58.html

 The bottom line is that my font packages conflict with amsymb and
 amsfonts and I need to turn the latter off.  How can do this?

 I added the necessary preamble lines to load my font packages in
 DocumentsSettingsPreamble but going through the pdflatex log I see that
 lyx is calling amssymb and I cannot access the lyx default for that in any
 menu that I could find.

 Thanks!

 -Ivan


 You can suppress loading of the AMS packages in Document - Settings... -
 Math Options (deselect both the first two choices).  Then add
 \usepackage{amsmath} in the preamble.

 /Paul



 Ivan asked me to post the follow-up to this.  (We continued the discussion
 offline.)

 Turns out I was wrong.  If you turn off AMS loading but then use an AMS
 symbol in a formula somewhere (such as \mathbb{R}), LyX spots this and
 automatically loads the amssymb and amsfonts packages, which are
 incompatible with lucimatx.  The best solution would probably be a couple
 more check boxes to allow the user to suppress automatic loading of those
 packages as well.

 /Paul




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
 The listings package does not require or force the \begingroup +
 \inputencoding{latin1} + \endgroup commands, nor the two blank lines.
 The blank lines are purely LyX.  

These mark a new paragraph. They are not inserted if you ommit a paragraph 
break after the listings inset. So the lines are correct, AFAICS.
But I see now that the \endgroup tag indeed makes a difference.

 It seems to me that there has already 
 been discussion elsewhere of situations in which LyX inserts unwanted
 blank lines.  

This was something different (and is fixed in 1.6; I did not fix it in 1.5.x, 
because it might have unwanted side effects)

 As far as the input encoding goes, my guess is that 
 whoever coded the listings support put this in to prevent the user from
 accidentally blowing up the package by using a multibyte encoding.
 However, as I mentioned above, the package specifically provides an
 escape-to-LaTeX mechanism that allows the user to insert text from other
 encodings.  This presumably would be blocked by the current LyX
 implementation (although I'm not the person to test this, since I'm
 blissfully ignorant about non-Latin encodings).

The problem is that the listings package cannot deal with unicode or any other 
multibyte encoding (such as some CJK encodings); the listings parser simply 
is not ready for that, and unfortunately, it's also not maintained currently. 
Heiko Oberdiek has written a listingsutf8 extension package, but this only 
fixes the encoding of lstinputlisting). So the reason for the brute-force 
encoding switch is a fundamental limitation of the listings package.

However, I agree the encoding switch is a hack, and we should at least limit 
the hack to the case where it is needed, i.e. only switch to latin1 if we 
actually are in a multibyte encoding.

 So fundamentally, I think, it's a question of whether protecting the
 user from himself on the encoding issue is worth the price.

Suggestions are welcome. But they have to work in any encoding.

Jürgen


Re: amssymb and amsfonts defaults

2008-07-18 Thread G. Milde
On 18.07.08, Manveru wrote:
 Or adding optional support for lucimatx package, if more people use this
 font package. Selecting this autommatically should automatically disable
 amsymb. But I am speculating now.

I do not think that it is necessary to have a lucimatx checkbox in the
Math dialogue. However, I could imagine a layout add-on lucimatx that
loads the lucimatx package and disables loading of amssymb and amsfonts.

Maybe we need  ProvidesAmsSymbols and ProvidesAmsFonts layout parameters
alongside the already existing ProvidesAmsmath.

(AFAIK, packages fourier, kpfonts, txfonts and pxfonts also replace the
amssymb symbols with their own versions.)

Günter


Re: 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread Michael Beckmann

Hi there,

on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not 
find the error you described. Could you run lyx in the terminal and post 
the crash/error output?


cheers
Michael

[EMAIL PROTECTED] wrote:

Hi!

I have just compiled Lyx 1.6 beta4 on Ubuntu (8.04) and installed it. When I
tried to open my Lyx documents, one document is constantly crashing when I
click on the title in the document (very strange).  Can someone tell me how
to fix it?

Ven. Pandita



*.po conflicts after updating SVN

2008-07-18 Thread G. Milde
Dear LyXers,

after updating my working directory from the LyX SVN with
  
  /usr/local/src/lyx-devel svn update
  
I got a whole bunch of conflicts in the lyx-devel/po/ directory, e.g.

  ca.gmo
  ca.po
  ca.po.mine
  ca.po.r25470
  ca.po.r25661
  ca.po~
  
(and similar for de, es, fr, gl, he, ...)

resulting in failure when I try to `make` LyX:


  make[3]: Entering directory `/usr/local/src/lyx-devel/po'
  /usr/bin/msgmerge --update ca.po lyx16.pot
  ca.po: Warnung: Zeichensatz fehlt im Kopfeintrag.
  Konvertierung der Meldungen in den Zeichensatz des Anwenders
  wird fehlschlagen.
  ca.po:21:2: syntax error
  ca.po:21: Schlüsselwort »mine« ist unbekannt
  ca.po:25: Schlüsselwort »r25661« ist unbekannt
  .
  .
  .


I did not (manually/explicitely) change the *.po files, rather it seems
that they are updated during the building of LyX - resulting in conflicts
whenever the upstream file changes.

What did I wrong? 

How could I most easily change all these files to the latest SVN version?

Could these conflicts be prevented somehow?

Thanks,

Günter


Re: 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread Pavel Sanda
 Hi there,

 on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not find 
 the error you described. Could you run lyx in the terminal and post the 
 crash/error output?

even better would be to show us that document...
pavel


Re: *.po conflicts after updating SVN

2008-07-18 Thread Pavel Sanda
 What did I wrong? 

nothing, this happens when po directory is rebuilt.
this usually happens only if lyx.pot is missing,
otherwise plain make command shouldn't trigger it.

 How could I most easily change all these files to the latest SVN version?

go to the po directory, then svn revert -R *

 Could these conflicts be prevented somehow?

hardly.

pavel


Re: *.po conflicts after updating SVN

2008-07-18 Thread Jürgen Spitzmüller
G. Milde wrote:
 How could I most easily change all these files to the latest SVN version?

delete them and svn up again.

Jürgen


Re: amssymb and amsfonts defaults

2008-07-18 Thread Jean-Marc Lasgouttes
G. Milde [EMAIL PROTECTED] writes:
 Maybe we need  ProvidesAmsSymbols and ProvidesAmsFonts layout parameters
 alongside the already existing ProvidesAmsmath.

The syntax is now Provides foo for package foo, so it may already
work.

JMarc


latest MikTex beraks my Lyx documents of the letter (g-brief, German) class (latex error)

2008-07-18 Thread [EMAIL PROTECTED]

Hello,

I just tried to write a letter with Lyx. For this I always use the 
letter (g-brief, German) class. When I hit the button for PDF (or DVI, 
it doesn't matter) export, I get the following latex errors:



1. Undefined control sequence.
 [EMAIL PROTECTED]

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

2. LaTeX Error: Missing \begin{document}.
 [EMAIL PROTECTED]

You're in trouble here.  Try typing  return  to proceed.
If that doesn't work, type  X return  to quit.

3. Undefined control sequence.
 [EMAIL PROTECTED]

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


I also tried documents of the same class that worked before, I get the 
same errors. As I have recently updated MikTex, I blame this update to 
cause the problem, but I have no idea what to do. I checked the document 
language setting in Lyx, but this is set to german, so I don't know why 
the error mentions english. I also exported to .tex and saw that 
\begin{document} was there.


My System: Windows Vista with Lyx 1.5.5 and an up-to-date MikTex 
installation.

Please let me know if further information is needed.

Thanks a lot for the help
SK


Re: *.po conflicts after updating SVN

2008-07-18 Thread G. Milde
On 18.07.08, Pavel Sanda wrote:
  What did I wrong? 

 nothing, this happens when po directory is rebuilt.
 this usually happens only if lyx.pot is missing,
 otherwise plain make command shouldn't trigger it.

As I did not delete lyx.pot by hand, I wonder if this was done by
`make clean` or `make distclean` and whether the latter should be avoided.

  How could I most easily change all these files to the latest SVN version?

 go to the po directory, then svn revert -R *

This works nice, thanks a lot.

  Could these conflicts be prevented somehow?

 hardly.

Too sad.

Thanks again,

Günter



Re: *.po conflicts after updating SVN

2008-07-18 Thread Pavel Sanda
 On 18.07.08, Pavel Sanda wrote:
  nothing, this happens when po directory is rebuilt.
  this usually happens only if lyx.pot is missing,
  otherwise plain make command shouldn't trigger it.
 
 As I did not delete lyx.pot by hand, I wonder if this was done by
 `make clean` or `make distclean` and whether the latter should be avoided.

make clean shouldn't touch it, possibly by make distclean, not sure now.

pavel


Re: amssymb and amsfonts defaults

2008-07-18 Thread Ivan Werning

On Jul 18, 2008, at 6:03 AM, Jean-Marc Lasgouttes wrote:

The syntax is now Provides foo for package foo, so it may already
work.

JMarc


I'd like to try it. How can I change this parameter? Or are you  
talking about development options, not a current workaround?


-Ivan


Re: amssymb and amsfonts defaults

2008-07-18 Thread lasgouttes
Ivan Werning [EMAIL PROTECTED] writes:

 I'd like to try it. How can I change this parameter? Or are you
 talking about development options, not a current workaround?

This 
  Provides mypackage 1
syntax exists in 1.5.x and is documented in the Customization manual.
However, the definition of a module that was alluded to is not
possible in 1.5.x.

You can declare your own text class myarticle.layout that uses this,
but I am a bit too busy right now to propose a working solution.

JMarc


[Fwd: Re: 1.6 beta4 crashing on Ubuntu]

2008-07-18 Thread Michael Beckmann

I'm not sure what this actually means, maybe somebody else has an idea.

Can you provide the document as Pavel suggested? Does the error occur 
only with this document or with every (even newly created) file?


Please remember to reply to all recipients (i.e lyx-users@lists.lyx.org) 
when answering emails in the userlist, otherwise its just me reading it 
and I'm not really an expert :-)


cheers
Michael

 Original Message 
Subject:Re: 1.6 beta4 crashing on Ubuntu
Date:   Fri, 18 Jul 2008 17:30:46 +0530
From:   [EMAIL PROTECTED]
To: Michael Beckmann [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]



Hi! Michael

I did as you said, and the following is the terminal output. I pray you
can find out the problem and solution. I don't know whether it is
relevant or not but it happened after regular updates.

Thanking in advance

Ven. Pandita


[EMAIL PROTECTED]:~$ /usr/local/bin/lyx
CoordCache.cpp(39): break on pointer: 0x8bb1640 hint: x size: 4
lassert.cpp(21): ASSERTION false VIOLATED IN CoordCache.cpp:40
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check false in file lassert.cpp:23
Aborted


You wrote:

on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not
find the error you described. Could you run lyx in the terminal and
post the crash/error output?




More on 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread ashinpan
Hi Michael and all list members

I posted the following question to the list:

I have just compiled Lyx 1.6 beta4 on Ubuntu (8.04) and installed it. When
I tried to open my Lyx documents, one document is constantly crashing when I
click on the title in the document (very strange).  Can someone tell me how
to fix it?

Then Michael asked me Could you run lyx in the terminal and post the
crash/error output? I followed his advice and I got the following terminal
output:

CoordCache.cpp(39): break on pointer: 0x8bb1640 hint: x size: 4
lassert.cpp(21): ASSERTION false VIOLATED IN CoordCache.cpp:40
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check false in file lassert.cpp:23
Aborted

Then Michael wrote:

I'm not sure what this actually means, maybe somebody else has an idea.

 Can you provide the document as Pavel suggested? Does the error occur only
 with this document or with every (even newly created) file?

 Please remember to reply to all recipients (i.e lyx-users@lists.lyx.org)
 when answering emails in the userlist, otherwise its just me reading it and
 I'm not really an expert :-)


So I have attached my document herewith. Really hope somebody kindly helps.

Thanking in advance

Ven. Pandita


meritocracy_2.lyx
Description: application/lyx


Re: latest MikTex beraks my Lyx documents of the letter (g-brief, German) class (latex error)

2008-07-18 Thread Dominik Waßenhoven
[EMAIL PROTECTED] wrote:

 As I have recently updated MikTex, I blame this update to cause the
 problem, but I have no idea what to do.

Did you rebuild the format files? MikTeX Settings - Update Formats

There were some language specific updates that need rebuilding the
format files, which is not done automatically during the update process.

Regards,
Dominik.-



Re: Table Alignment

2008-07-18 Thread Les Denham
On Friday 18 July 2008, Paulina Restrepo wrote:
 I'm using Lyx 1.5.3 on a Mac, with Mac OS X version 10.4.11.

 I have a table inside a float, and the word Measure on the table
 looks aligned in Lyx,
 but when I compile into pdf it moves up. I haven't been able to fix
 its alignment. Here is the Lyx
 file. Any ideas?

Paulina,

I'm using LyX 1.5.4 on Linux, and I see exactly the same as you do.  I looked 
at the exported LaTeX, and I can't see anything there that would make it 
behave the way it does.  Running the LaTeX through both latex and pdflatex 
fails to generate any clues in the log files.

However, I did manage to fix it.  I'm not sure why this worked, though.

1. Select the whole row.

2. Set the font to Small Bold (did you realize you had a mixture of Small and 
Normal?)

3. Right click and set the vertical alignment to Middle.

The fixed example is attached.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#LyX 1.5.4 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author  
\author  
\end_header

\begin_body

\begin_layout Standard
\align center
\begin_inset Tabular
lyxtabular version=3 rows=10 columns=7
features
column alignment=center valignment=middle leftline=true width=1.2in
column alignment=center valignment=middle leftline=true width=0
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true width=0.4in
column alignment=center valignment=middle leftline=true rightline=true width=0.4in
row topline=true
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=1 alignment=center valignment=top topline=true bottomline=true leftline=true rightline=true usebox=none width=2in
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
Elasticity of Substitution of Consumption Goods
\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
cell multicolumn=2 alignment=center valignment=top topline=true leftline=true rightline=true usebox=none
\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset
/cell
/row
row bottomline=true
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
Share of Informal Labor
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard

\series bold
\size small
Measure
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
20
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
12
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
8
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true usebox=none
\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
4
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none
\begin_inset Text

\begin_layout Standard

Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread Steve Litt
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.

Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
 On 14.07.08, Steve Litt wrote:
  Hi all,
 
  I'm trying to make a simple clone of the Enumerate environment. Once I
  can do that, I'll make a few changes. But I've not been able to clone
  it.

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


 and LaTeX environment::

   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}

  Here's my layout file:
 
  #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[book]{quizbook}
 
  Input stdclass.inc
 
  Preamble
  \let\questions = \enumerate
  \let\oldquestions = \oldenumerate
  EndPreamble

 I am not sure if this works well, as enumerate is an environment, not a
 command. Use the latex \newenvironment instead.

  Style Questions

 ...

  End

 With CopyStyle, you get all the definitions of the copied style and
 need to change only thing that should differ.

  The preceding layout produces the output shown in the attached
  screenshot_questions.gif. However, if I change the LatexName in the LyX
  environment from questions to enumerate, it outputs as shown in the
  attached screenshot_enumerate.gif.

 Describing the difference in words helps (while pics might augment
 this, they cannot always replace a description, e.g. while browsing
 this mail to see if I can help at all, I do not see the attachments.)

  Can somebody explain to me why the two don't output the same?

 no.

 Can somebody explain how I can truly clone the Enumerate environment?

 see above.

  NOTE: In order to toggle the output when switching between LatexType
  questions and LatexType enumerate, you must Tools-reconfigure and then
  terminate and restart LyX. Trust me on this -- I tried without
  reconfiguring and the output didn't toggle.

 You could define 2 Styles in your layout file (one QuestionsTest, say)
 and switch between them in the document.

 Günter


Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread rgheck

Steve Litt wrote:
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.


Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.


  
\let clones COMMANDS, whereas you were trying to clone environments. 
There are, of course, commands that correspond to the environments, and 
you could probably use \let to do it that way. But Gunter's version is 
definitely preferable.


rh

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
  

On 14.07.08, Steve Litt wrote:


Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I
can do that, I'll make a few changes. But I've not been able to clone
it.
  

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration


and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}



Here's my layout file:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{quizbook}

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble
  

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.



Style Questions
  

...



End
  

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.



The preceding layout produces the output shown in the attached
screenshot_questions.gif. However, if I change the LatexName in the LyX
environment from questions to enumerate, it outputs as shown in the
attached screenshot_enumerate.gif.
  

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)



Can somebody explain to me why the two don't output the same?
  

no.



Can somebody explain how I can truly clone the Enumerate environment?
  

see above.



NOTE: In order to toggle the output when switching between LatexType
questions and LatexType enumerate, you must Tools-reconfigure and then
terminate and restart LyX. Trust me on this -- I tried without
reconfiguring and the output didn't toggle.
  

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter





Subtitle in Koma-script

2008-07-18 Thread Guillaume Larocque
Hi, I must be missing something pretty obvious but I can't seem to
find how to add a Subtitle to my book(Koma-Script) document. I have
found information on the \subtitle command in the Koma-script
documentation, but I can't find the equivalent option in the Lyx
drop-down environment menu.

Thanks for the help,

Guillaume


Re: Table Alignment

2008-07-18 Thread Paul A. Rubin

Paulina Restrepo wrote:

Hi,

I'm using Lyx 1.5.3 on a Mac, with Mac OS X version 10.4.11.

I have a table inside a float, and the word Measure on the table looks 
aligned in Lyx,
but when I compile into pdf it moves up. I haven't been able to fix its 
alignment. Here is the Lyx

file. Any ideas?

Thank you,

Paulina


If you turn off centering in each of the other cells in that row, 
Measure will align correctly, and all the titles will be centered in 
the output (but not in the GUI).  The problem is that when you set fixed 
widths for the other columns, you also specified that they be centered. 
 LyX correctly recorded that, and LaTeX will in fact center them 
(including the heading cells), but LyX displays the headings with 
default alignment.  I suspect that caused you to manually center all but 
Measure, which led LyX to add redundant centering.  So, for instance, 
20 became


\begin{center}\textbf{\small 20}}\par\end{center}

and so on.  The problem is that the begin/end environment stuff adds 
some vertical space, which does not happen in the Measure cell.  You 
cannot add the center stuff to the Measure cell, but you can remove it 
from the other cells (if you are will to tolerate incorrect alignment in 
the GUI).


/Paul



Converting msword to LyX is ugly!

2008-07-18 Thread Steve Litt
Hi all,

I have a 300 page book written in MS Word version 97, and I have to convert it 
to LyX in order to make the second edition.

I'll accept all condolences now :-)

Believe it or not, the MS Word version was written very much what you guys 
would call WYSIWYM. I had styles for everything -- almost no appearance was 
fine tuned. Obviously it's essential that all those styles transfer over into 
the LyX version.

I'll accept all condolences now :-)

So heres what my plan, unless someone else has a better idea.

First, I'll export to RTF.

I'll accept all condolences now :-)

Then in Vim I'll do this:

:%s/}/}\r/g

Now the rtf file will have lines that are somewhat recognizeable as markup.

Next I'll look at the \stylesheet part of the RTF, and make a list of all 
paragraph and character styles, sort of like this:

\fs20 Normal
\s1 heading 1
\s2 heading 2
\cs10 \additive Default Paragraph Font
\s16 myparagraphstyle
\cs17 mycharstyle
\cs18 mycharstyle2

Then, within Vim I'll run substitions so that the text referred to by the 
numbers such as \s2 are prepended with my own tags such as phdr2, and better 
yet that text has a proper ending tag appended. This is not so simple for 
three reasons:

1) There's always a bunch of gobblety gook between the \s2 and the text to 
which it refers, and that must eventually be deleted.

2) There's often gobblety gook before the \s2, and that gobblety gook must 
eventually be deleted.

3) It's MUCH harder to reliably put end tags at the end of the text to which 
it refers. If I don't put end tags, that means I'll have a much harder time 
converting it to LyX.

Next, I'll re-import the rtf into MS Word. What should happen is it re-imports 
the same as it originally was, only now it has my tags. From there I should 
be able to export it to plain text, and use my tags to create the LyX file 
with suitable scripts. Or maybe make scripts to directly manipulate the RTF. 
Of course, for all my custom character and paragraph styles, I'll need to 
create those styles within LyX, in a blank document, before appending the 
actual content.

Then comes the cleanup. Stuff like tables and images won't convert -- I'll 
need to manually do that cleanup and then run at least a rough proofread.

The good news is, because the original document used styles for almost every 
appearance, fine tuning won't be necessary (hooray for styles!).

I'd estimate this to be about a week's job. That's a lot of time, but in the 
end I'll have converted a 300 page book, style for style, from MS Word to 
LyX.

If anyone has a better idea for converting a 300 page MS Word document to LyX, 
style for style and word for word, please let me know.

Thanks

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



How to stop lyx

2008-07-18 Thread f wonghc
I unscribe but it still send to me account.
 
Can anyone help?  thnkas.


  

Re: Converting msword to LyX is ugly!

2008-07-18 Thread Andre Poenitz
On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
 Hi all,

Hi Steve.

 If anyone has a better idea for converting a 300 page MS Word document
 to LyX, style for style and word for word, please let me know.

I'd try 

  unrtf -t tex  foo.rtf

and check whether that's easier to manage in a text editor than
the 'real' rtf.

For finding the end tags, maybe even  'unrtf -t html' is an option...

Hope this is of any use,
Andre'


Re: Converting msword to LyX is ugly!

2008-07-18 Thread Christian Ridderström

On Fri, 18 Jul 2008, Steve Litt wrote:


I had styles for everything -- almost no appearance was fine tuned.


You would, wouldn't you! :-D


So heres what my plan, unless someone else has a better idea.

First, I'll export to RTF.



Now the rtf file will have lines that are somewhat recognizeable as markup.


Would exporting to HTML+CSS help, assuming that the styles go into the 
CSS-file? (I'm thinking that the markup is easier in HTML compared to RTF)

Or maybe to some other format that's easier to work with... XML?
Converting to OOXML? Or ODF?

snipped complicated looking plan


If anyone has a better idea for converting a 300 page MS Word document to LyX,
style for style and word for word, please let me know.


Some thoughts/deas...
* Check many different styles there are in the book
* Check how many things you still will have to do manually (tables,
  images, etc)
* Do a test case on a small subset of the book before you commit to
  your plan

* Hire someone else to do the tedious work!

cheers,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: Converting msword to LyX is ugly!

2008-07-18 Thread Steve Litt
On Friday 18 July 2008 15:43, Andre Poenitz wrote:
 On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
  Hi all,

 Hi Steve.

  If anyone has a better idea for converting a 300 page MS Word document
  to LyX, style for style and word for word, please let me know.

 I'd try

   unrtf -t tex  foo.rtf

 and check whether that's easier to manage in a text editor than
 the 'real' rtf.

Hi Andre,

I tried it.

Unfortunately, unrtf discards all styles, converting them to fine-tuned 
output. This is true both for html and latex output.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Converting msword to LyX is ugly!

2008-07-18 Thread Typhoon
On Fri, 18 Jul 2008 19:08:19 -0400
Steve Litt [EMAIL PROTECTED] wrote:

 On Friday 18 July 2008 15:43, Andre Poenitz wrote:
  On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
   Hi all,
 
SNIP
 I tried it.
 
 Unfortunately, unrtf discards all styles, converting them to
 fine-tuned output. This is true both for html and latex output.

Hi Steve, 
My only suggestion would be to use one of the programming tools rather
than do your replacement in Vim. Awk, sed, perl - It would allow you to
gradually build up some regexps through trial and error.

My condolences :-)

Alan

 
 SteveT
 
 Steve Litt
 Recession Relief Package
 http://www.recession-relief.US
 
 


Re: converters

2008-07-18 Thread G. Milde
On 17.07.08, Matthias E wrote:

> Whenever I try to view the file as a .pdf, the following screen pops
> up:
>
> Keine Information vorhanden, um Dateien im -Format nach png zu  
> konvertieren.
> Definieren Sie einen Konverter in den Einstellungen.

I wonder about the "-Format". Did you specify the extension (.eps, .pdf,
...) in the LyX file?

In the past, leaving out the extension allowed the compilation of a
document with both, latex and pdflatex without change (if .eps and .pdf
versions of the graphic existed). Now, LyX handles the conversion
itself, so specifying the extension of the primary format is recommended.

Generally, in such cases try to provide a minimal example that shows
the problematic behaviour. This makes looking for the core of the
problem much easier.

Günter




Re: amssymb and amsfonts defaults

2008-07-18 Thread Manveru
Or adding optional support for lucimatx package, if more people use this
font package. Selecting this autommatically should automatically disable
amsymb. But I am speculating now.

M.

2008/7/17 Paul A. Rubin <[EMAIL PROTECTED]>:

> Paul A. Rubin wrote:
>
>> Ivan Werning wrote:
>>
>>> I would like to compile my lyx document without amsymb and amsfonts
>>> package (but I do want the amsmath) loaded automatically because I would
>>> like to add another font package, lucimatx, that defines substitutes for it
>>> and dos things differently. see explanation here
>>> http://www.pctex.com/kb/58.html
>>>
>>> The bottom line is that my font packages conflict with amsymb and
>>> amsfonts and I need to turn the latter off.  How can do this?
>>>
>>> I added the necessary preamble lines to load my font packages in
>>> Documents>Settings>Preamble but going through the pdflatex log I see that
>>> lyx is calling amssymb and I cannot access the lyx default for that in any
>>> menu that I could find.
>>>
>>> Thanks!
>>>
>>> -Ivan
>>>
>>
>> You can suppress loading of the AMS packages in Document -> Settings... ->
>> Math Options (deselect both the first two choices).  Then add
>> \usepackage{amsmath} in the preamble.
>>
>> /Paul
>>
>>
>>
> Ivan asked me to post the follow-up to this.  (We continued the discussion
> offline.)
>
> Turns out I was wrong.  If you turn off AMS loading but then use an AMS
> symbol in a formula somewhere (such as \mathbb{R}), LyX spots this and
> automatically loads the amssymb and amsfonts packages, which are
> incompatible with lucimatx.  The best solution would probably be a couple
> more check boxes to allow the user to suppress automatic loading of those
> packages as well.
>
> /Paul
>
>


-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote:
> The listings package does not require or force the \begingroup +
> \inputencoding{latin1} + \endgroup commands, nor the two blank lines.
> The blank lines are purely LyX.  

These mark a new paragraph. They are not inserted if you ommit a paragraph 
break after the listings inset. So the lines are correct, AFAICS.
But I see now that the \endgroup tag indeed makes a difference.

> It seems to me that there has already 
> been discussion elsewhere of situations in which LyX inserts unwanted
> blank lines.  

This was something different (and is fixed in 1.6; I did not fix it in 1.5.x, 
because it might have unwanted side effects)

> As far as the input encoding goes, my guess is that 
> whoever coded the listings support put this in to prevent the user from
> accidentally blowing up the package by using a multibyte encoding.
> However, as I mentioned above, the package specifically provides an
> escape-to-LaTeX mechanism that allows the user to insert text from other
> encodings.  This presumably would be blocked by the current LyX
> implementation (although I'm not the person to test this, since I'm
> blissfully ignorant about non-Latin encodings).

The problem is that the listings package cannot deal with unicode or any other 
multibyte encoding (such as some CJK encodings); the listings parser simply 
is not ready for that, and unfortunately, it's also not maintained currently. 
Heiko Oberdiek has written a listingsutf8 extension package, but this only 
fixes the encoding of lstinputlisting). So the reason for the brute-force 
encoding switch is a fundamental limitation of the listings package.

However, I agree the encoding switch is a hack, and we should at least limit 
the hack to the case where it is needed, i.e. only switch to latin1 if we 
actually are in a multibyte encoding.

> So fundamentally, I think, it's a question of whether protecting the
> user from himself on the encoding issue is worth the price.

Suggestions are welcome. But they have to work in any encoding.

Jürgen


Re: amssymb and amsfonts defaults

2008-07-18 Thread G. Milde
On 18.07.08, Manveru wrote:
> Or adding optional support for lucimatx package, if more people use this
> font package. Selecting this autommatically should automatically disable
> amsymb. But I am speculating now.

I do not think that it is necessary to have a lucimatx checkbox in the
Math dialogue. However, I could imagine a layout add-on lucimatx that
loads the lucimatx package and disables loading of amssymb and amsfonts.

Maybe we need  ProvidesAmsSymbols and ProvidesAmsFonts layout parameters
alongside the already existing ProvidesAmsmath.

(AFAIK, packages fourier, kpfonts, txfonts and pxfonts also replace the
amssymb symbols with their own versions.)

Günter


Re: 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread Michael Beckmann

Hi there,

on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not 
find the error you described. Could you run lyx in the terminal and post 
the crash/error output?


cheers
Michael

[EMAIL PROTECTED] wrote:

Hi!

I have just compiled Lyx 1.6 beta4 on Ubuntu (8.04) and installed it. When I
tried to open my Lyx documents, one document is constantly crashing when I
click on the title in the document (very strange).  Can someone tell me how
to fix it?

Ven. Pandita



*.po conflicts after updating SVN

2008-07-18 Thread G. Milde
Dear LyXers,

after updating my working directory from the LyX SVN with
  
  /usr/local/src/lyx-devel> svn update
  
I got a whole bunch of conflicts in the lyx-devel/po/ directory, e.g.

  ca.gmo
  ca.po
  ca.po.mine
  ca.po.r25470
  ca.po.r25661
  ca.po~
  
(and similar for de, es, fr, gl, he, ...)

resulting in failure when I try to `make` LyX:


  make[3]: Entering directory `/usr/local/src/lyx-devel/po'
  /usr/bin/msgmerge --update ca.po lyx16.pot
  ca.po: Warnung: Zeichensatz fehlt im Kopfeintrag.
  Konvertierung der Meldungen in den Zeichensatz des Anwenders
  wird fehlschlagen.
  ca.po:21:2: syntax error
  ca.po:21: Schlüsselwort »mine« ist unbekannt
  ca.po:25: Schlüsselwort »r25661« ist unbekannt
  .
  .
  .


I did not (manually/explicitely) change the *.po files, rather it seems
that they are updated during the building of LyX - resulting in conflicts
whenever the upstream file changes.

What did I wrong? 

How could I most easily change all these files to the latest SVN version?

Could these conflicts be prevented somehow?

Thanks,

Günter


Re: 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread Pavel Sanda
> Hi there,
>
> on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not find 
> the error you described. Could you run lyx in the terminal and post the 
> crash/error output?

even better would be to show us that document...
pavel


Re: *.po conflicts after updating SVN

2008-07-18 Thread Pavel Sanda
> What did I wrong? 

nothing, this happens when po directory is rebuilt.
this usually happens only if lyx.pot is missing,
otherwise plain "make" command shouldn't trigger it.

> How could I most easily change all these files to the latest SVN version?

go to the po directory, then "svn revert -R *"

> Could these conflicts be prevented somehow?

hardly.

pavel


Re: *.po conflicts after updating SVN

2008-07-18 Thread Jürgen Spitzmüller
G. Milde wrote:
> How could I most easily change all these files to the latest SVN version?

delete them and svn up again.

Jürgen


Re: amssymb and amsfonts defaults

2008-07-18 Thread Jean-Marc Lasgouttes
"G. Milde" <[EMAIL PROTECTED]> writes:
> Maybe we need  ProvidesAmsSymbols and ProvidesAmsFonts layout parameters
> alongside the already existing ProvidesAmsmath.

The syntax is now "Provides foo" for package foo, so it may already
work.

JMarc


latest MikTex beraks my Lyx documents of the letter (g-brief, German) class (latex error)

2008-07-18 Thread [EMAIL PROTECTED]

Hello,

I just tried to write a letter with Lyx. For this I always use the 
letter (g-brief, German) class. When I hit the button for PDF (or DVI, 
it doesn't matter) export, I get the following latex errors:


"""
1. Undefined control sequence.
 [EMAIL PROTECTED]

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

2. LaTeX Error: Missing \begin{document}.
 [EMAIL PROTECTED]

You're in trouble here.  Try typingto proceed.
If that doesn't work, type  X   to quit.

3. Undefined control sequence.
 [EMAIL PROTECTED]

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
"""

I also tried documents of the same class that worked before, I get the 
same errors. As I have recently updated MikTex, I blame this update to 
cause the problem, but I have no idea what to do. I checked the document 
language setting in Lyx, but this is set to german, so I don't know why 
the error mentions english. I also exported to .tex and saw that 
\begin{document} was there.


My System: Windows Vista with Lyx 1.5.5 and an up-to-date MikTex 
installation.

Please let me know if further information is needed.

Thanks a lot for the help
SK


Re: *.po conflicts after updating SVN

2008-07-18 Thread G. Milde
On 18.07.08, Pavel Sanda wrote:
> > What did I wrong? 

> nothing, this happens when po directory is rebuilt.
> this usually happens only if lyx.pot is missing,
> otherwise plain "make" command shouldn't trigger it.

As I did not delete lyx.pot by hand, I wonder if this was done by
`make clean` or `make distclean` and whether the latter should be avoided.

> > How could I most easily change all these files to the latest SVN version?

> go to the po directory, then "svn revert -R *"

This works nice, thanks a lot.

> > Could these conflicts be prevented somehow?

> hardly.

Too sad.

Thanks again,

Günter



Re: *.po conflicts after updating SVN

2008-07-18 Thread Pavel Sanda
> On 18.07.08, Pavel Sanda wrote:
> > nothing, this happens when po directory is rebuilt.
> > this usually happens only if lyx.pot is missing,
> > otherwise plain "make" command shouldn't trigger it.
> 
> As I did not delete lyx.pot by hand, I wonder if this was done by
> `make clean` or `make distclean` and whether the latter should be avoided.

make clean shouldn't touch it, possibly by make distclean, not sure now.

pavel


Re: amssymb and amsfonts defaults

2008-07-18 Thread Ivan Werning

On Jul 18, 2008, at 6:03 AM, Jean-Marc Lasgouttes wrote:

The syntax is now "Provides foo" for package foo, so it may already
work.

JMarc


I'd like to try it. How can I change this parameter? Or are you  
talking about development options, not a current workaround?


-Ivan


Re: amssymb and amsfonts defaults

2008-07-18 Thread lasgouttes
Ivan Werning <[EMAIL PROTECTED]> writes:

> I'd like to try it. How can I change this parameter? Or are you
> talking about development options, not a current workaround?

This 
  Provides mypackage 1
syntax exists in 1.5.x and is documented in the Customization manual.
However, the definition of a module that was alluded to is not
possible in 1.5.x.

You can declare your own text class myarticle.layout that uses this,
but I am a bit too busy right now to propose a working solution.

JMarc


[Fwd: Re: 1.6 beta4 crashing on Ubuntu]

2008-07-18 Thread Michael Beckmann

I'm not sure what this actually means, maybe somebody else has an idea.

Can you provide the document as Pavel suggested? Does the error occur 
only with this document or with every (even newly created) file?


Please remember to reply to all recipients (i.e lyx-users@lists.lyx.org) 
when answering emails in the userlist, otherwise its just me reading it 
and I'm not really an expert :-)


cheers
Michael

 Original Message 
Subject:Re: 1.6 beta4 crashing on Ubuntu
Date:   Fri, 18 Jul 2008 17:30:46 +0530
From:   [EMAIL PROTECTED]
To: Michael Beckmann <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>



Hi! Michael

I did as you said, and the following is the terminal output. I pray you
can find out the problem and solution. I don't know whether it is
relevant or not but it happened after regular updates.

Thanking in advance

Ven. Pandita


[EMAIL PROTECTED]:~$ /usr/local/bin/lyx
CoordCache.cpp(39): break on pointer: 0x8bb1640 hint: x size: 4
lassert.cpp(21): ASSERTION false VIOLATED IN CoordCache.cpp:40
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check "false" in file lassert.cpp:23
Aborted


You wrote:

on my computer runs lyx beta 4 from svn in Ubuntu Hardy. I could not
find the error you described. Could you run lyx in the terminal and
post the crash/error output?




More on 1.6 beta4 crashing on Ubuntu

2008-07-18 Thread ashinpan
Hi Michael and all list members

I posted the following question to the list:

"I have just compiled Lyx 1.6 beta4 on Ubuntu (8.04) and installed it. When
I tried to open my Lyx documents, one document is constantly crashing when I
click on the title in the document (very strange).  Can someone tell me how
to fix it?"

Then Michael asked me "Could you run lyx in the terminal and post the
crash/error output?" I followed his advice and I got the following terminal
output:

CoordCache.cpp(39): break on pointer: 0x8bb1640 hint: x size: 4
lassert.cpp(21): ASSERTION false VIOLATED IN CoordCache.cpp:40
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check "false" in file lassert.cpp:23
Aborted

Then Michael wrote:

I'm not sure what this actually means, maybe somebody else has an idea.
>
> Can you provide the document as Pavel suggested? Does the error occur only
> with this document or with every (even newly created) file?
>
> Please remember to reply to all recipients (i.e lyx-users@lists.lyx.org)
> when answering emails in the userlist, otherwise its just me reading it and
> I'm not really an expert :-)
>

So I have attached my document herewith. Really hope somebody kindly helps.

Thanking in advance

Ven. Pandita


meritocracy_2.lyx
Description: application/lyx


Re: latest MikTex beraks my Lyx documents of the letter (g-brief, German) class (latex error)

2008-07-18 Thread Dominik Waßenhoven
[EMAIL PROTECTED] wrote:

> As I have recently updated MikTex, I blame this update to cause the
> problem, but I have no idea what to do.

Did you rebuild the format files? MikTeX Settings -> Update Formats

There were some language specific updates that need rebuilding the
format files, which is not done automatically during the update process.

Regards,
Dominik.-



Re: Table Alignment

2008-07-18 Thread Les Denham
On Friday 18 July 2008, Paulina Restrepo wrote:
> I'm using Lyx 1.5.3 on a Mac, with Mac OS X version 10.4.11.
>
> I have a table inside a float, and the word "Measure" on the table
> looks aligned in Lyx,
> but when I compile into pdf it moves up. I haven't been able to fix
> its alignment. Here is the Lyx
> file. Any ideas?
>
Paulina,

I'm using LyX 1.5.4 on Linux, and I see exactly the same as you do.  I looked 
at the exported LaTeX, and I can't see anything there that would make it 
behave the way it does.  Running the LaTeX through both latex and pdflatex 
fails to generate any clues in the log files.

However, I did manage to fix it.  I'm not sure why this worked, though.

1. Select the whole row.

2. Set the font to Small Bold (did you realize you had a mixture of Small and 
Normal?)

3. Right click and set the vertical alignment to Middle.

The fixed example is attached.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#LyX 1.5.4 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Standard
\align center
\begin_inset Tabular











\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
Elasticity of Substitution of Consumption Goods
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset




\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
Share of Informal Labor
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\series bold
\size small
Measure
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
20
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
12
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
8
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
4
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
\align center

\series bold
\size small
2
\end_layout

\end_inset




\begin_inset Text

\begin_layout Standard

\series bold
\size small
10%
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\series bold
\size small
Formal
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.47
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\size small
0.36
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.31
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.26
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.24
\end_layout

\end_inset




\begin_inset Text

\begin_layout Standard

\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\series bold
\size small
Total
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.25
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\size small
0.21
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\size small
0.21
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.22
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.22
\end_layout

\end_inset




\begin_inset Text

\begin_layout Standard

\series bold
\size small
30%
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\series bold
\size small
Formal
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
1.06
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\size small
0.84
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard

\size small
0.65
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.40
\end_layout

\end_inset


\begin_inset Text

\begin_layout Standard
0.26
\end_layout

\end_inset





Re: How to make a clone of the Enumerate environment?

2008-07-18 Thread Steve Litt
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.

Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
> On 14.07.08, Steve Litt wrote:
> > Hi all,
> >
> > I'm trying to make a simple clone of the Enumerate environment. Once I
> > can do that, I'll make a few changes. But I've not been able to clone
> > it.
>
> You need to clone both, LyX layout::
>
>   Style Questions
>  CopyStyle   Enumeration
>
>
> and LaTeX environment::
>
>   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}
>
> > Here's my layout file:
> >
> > #% Do not delete the line below; configure depends on this
> > #  \DeclareLaTeXClass[book]{quizbook}
> >
> > Input stdclass.inc
> >
> > Preamble
> > \let\questions = \enumerate
> > \let\oldquestions = \oldenumerate
> > EndPreamble
>
> I am not sure if this works well, as enumerate is an environment, not a
> command. Use the latex \newenvironment instead.
>
> > Style Questions
>
> ...
>
> > End
>
> With CopyStyle, you get all the definitions of the copied style and
> need to change only thing that should differ.
>
> > The preceding layout produces the output shown in the attached
> > screenshot_questions.gif. However, if I change the LatexName in the LyX
> > environment from "questions" to "enumerate", it outputs as shown in the
> > attached screenshot_enumerate.gif.
>
> Describing the difference in words helps (while pics might augment
> this, they cannot always replace a description, e.g. while browsing
> this mail to see if I can help at all, I do not see the attachments.)
>
> > Can somebody explain to me why the two don't output the same?
>
> no.
>
> >Can somebody explain how I can truly clone the Enumerate environment?
>
> see above.
>
> > NOTE: In order to toggle the output when switching between LatexType
> > questions and LatexType enumerate, you must Tools->reconfigure and then
> > terminate and restart LyX. Trust me on this -- I tried without
> > reconfiguring and the output didn't toggle.
>
> You could define 2 Styles in your layout file (one QuestionsTest, say)
> and switch between them in the document.
>
> Günter


Re: How to make a clone of the Enumerate environment?

2008-07-18 Thread rgheck

Steve Litt wrote:
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.


Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.


  
\let clones COMMANDS, whereas you were trying to clone environments. 
There are, of course, commands that correspond to the environments, and 
you could probably use \let to do it that way. But Gunter's version is 
definitely preferable.


rh

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
  

On 14.07.08, Steve Litt wrote:


Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I
can do that, I'll make a few changes. But I've not been able to clone
it.
  

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration


and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}



Here's my layout file:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{quizbook}

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble
  

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.



Style Questions
  

...



End
  

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.



The preceding layout produces the output shown in the attached
screenshot_questions.gif. However, if I change the LatexName in the LyX
environment from "questions" to "enumerate", it outputs as shown in the
attached screenshot_enumerate.gif.
  

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)



Can somebody explain to me why the two don't output the same?
  

no.



Can somebody explain how I can truly clone the Enumerate environment?
  

see above.



NOTE: In order to toggle the output when switching between LatexType
questions and LatexType enumerate, you must Tools->reconfigure and then
terminate and restart LyX. Trust me on this -- I tried without
reconfiguring and the output didn't toggle.
  

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter





Subtitle in Koma-script

2008-07-18 Thread Guillaume Larocque
Hi, I must be missing something pretty obvious but I can't seem to
find how to add a Subtitle to my book(Koma-Script) document. I have
found information on the \subtitle command in the Koma-script
documentation, but I can't find the equivalent option in the Lyx
drop-down environment menu.

Thanks for the help,

Guillaume


Re: Table Alignment

2008-07-18 Thread Paul A. Rubin

Paulina Restrepo wrote:

Hi,

I'm using Lyx 1.5.3 on a Mac, with Mac OS X version 10.4.11.

I have a table inside a float, and the word "Measure" on the table looks 
aligned in Lyx,
but when I compile into pdf it moves up. I haven't been able to fix its 
alignment. Here is the Lyx

file. Any ideas?

Thank you,

Paulina


If you turn off centering in each of the other cells in that row, 
"Measure" will align correctly, and all the titles will be centered in 
the output (but not in the GUI).  The problem is that when you set fixed 
widths for the other columns, you also specified that they be centered. 
 LyX correctly recorded that, and LaTeX will in fact center them 
(including the heading cells), but LyX displays the headings with 
default alignment.  I suspect that caused you to manually center all but 
"Measure", which led LyX to add redundant centering.  So, for instance, 
"20" became


\begin{center}\textbf{\small 20}}\par\end{center}

and so on.  The problem is that the begin/end environment stuff adds 
some vertical space, which does not happen in the "Measure" cell.  You 
cannot add the center stuff to the "Measure" cell, but you can remove it 
from the other cells (if you are will to tolerate incorrect alignment in 
the GUI).


/Paul



Converting msword to LyX is ugly!

2008-07-18 Thread Steve Litt
Hi all,

I have a 300 page book written in MS Word version 97, and I have to convert it 
to LyX in order to make the second edition.

I'll accept all condolences now :-)

Believe it or not, the MS Word version was written very much what you guys 
would call WYSIWYM. I had styles for everything -- almost no appearance was 
fine tuned. Obviously it's essential that all those styles transfer over into 
the LyX version.

I'll accept all condolences now :-)

So heres what my plan, unless someone else has a better idea.

First, I'll export to RTF.

I'll accept all condolences now :-)

Then in Vim I'll do this:

:%s/}/}\r/g

Now the rtf file will have lines that are somewhat recognizeable as markup.

Next I'll look at the \stylesheet part of the RTF, and make a list of all 
paragraph and character styles, sort of like this:

\fs20 Normal
\s1 heading 1
\s2 heading 2
\cs10 \additive Default Paragraph Font
\s16 myparagraphstyle
\cs17 mycharstyle
\cs18 mycharstyle2

Then, within Vim I'll run substitions so that the text referred to by the 
numbers such as \s2 are prepended with my own tags such as phdr2, and better 
yet that text has a proper ending tag appended. This is not so simple for 
three reasons:

1) There's always a bunch of gobblety gook between the \s2 and the text to 
which it refers, and that must eventually be deleted.

2) There's often gobblety gook before the \s2, and that gobblety gook must 
eventually be deleted.

3) It's MUCH harder to reliably put end tags at the end of the text to which 
it refers. If I don't put end tags, that means I'll have a much harder time 
converting it to LyX.

Next, I'll re-import the rtf into MS Word. What should happen is it re-imports 
the same as it originally was, only now it has my tags. From there I should 
be able to export it to plain text, and use my tags to create the LyX file 
with suitable scripts. Or maybe make scripts to directly manipulate the RTF. 
Of course, for all my custom character and paragraph styles, I'll need to 
create those styles within LyX, in a blank document, before appending the 
actual content.

Then comes the cleanup. Stuff like tables and images won't convert -- I'll 
need to manually do that cleanup and then run at least a rough proofread.

The good news is, because the original document used styles for almost every 
appearance, fine tuning won't be necessary (hooray for styles!).

I'd estimate this to be about a week's job. That's a lot of time, but in the 
end I'll have converted a 300 page book, style for style, from MS Word to 
LyX.

If anyone has a better idea for converting a 300 page MS Word document to LyX, 
style for style and word for word, please let me know.

Thanks

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



How to stop lyx

2008-07-18 Thread f wonghc
I unscribe but it still send to me account.
 
Can anyone help?  thnkas.


  

Re: Converting msword to LyX is ugly!

2008-07-18 Thread Andre Poenitz
On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
> Hi all,

Hi Steve.

> If anyone has a better idea for converting a 300 page MS Word document
> to LyX, style for style and word for word, please let me know.

I'd try 

  unrtf -t tex  foo.rtf

and check whether that's easier to manage in a text editor than
the 'real' rtf.

For finding the end tags, maybe even  'unrtf -t html' is an option...

Hope this is of any use,
Andre'


Re: Converting msword to LyX is ugly!

2008-07-18 Thread Christian Ridderström

On Fri, 18 Jul 2008, Steve Litt wrote:


I had styles for everything -- almost no appearance was fine tuned.


You would, wouldn't you! :-D


So heres what my plan, unless someone else has a better idea.

First, I'll export to RTF.



Now the rtf file will have lines that are somewhat recognizeable as markup.


Would exporting to HTML+CSS help, assuming that the styles go into the 
CSS-file? (I'm thinking that the markup is easier in HTML compared to RTF)

Or maybe to some other format that's easier to work with... XML?
Converting to OOXML? Or ODF?




If anyone has a better idea for converting a 300 page MS Word document to LyX,
style for style and word for word, please let me know.


Some thoughts/deas...
* Check many different styles there are in the book
* Check how many things you still will have to do manually (tables,
  images, etc)
* Do a test case on a small subset of the book before you commit to
  your plan

* Hire someone else to do the tedious work!

cheers,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: Converting msword to LyX is ugly!

2008-07-18 Thread Steve Litt
On Friday 18 July 2008 15:43, Andre Poenitz wrote:
> On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
> > Hi all,
>
> Hi Steve.
>
> > If anyone has a better idea for converting a 300 page MS Word document
> > to LyX, style for style and word for word, please let me know.
>
> I'd try
>
>   unrtf -t tex  foo.rtf
>
> and check whether that's easier to manage in a text editor than
> the 'real' rtf.

Hi Andre,

I tried it.

Unfortunately, unrtf discards all styles, converting them to fine-tuned 
output. This is true both for html and latex output.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Converting msword to LyX is ugly!

2008-07-18 Thread Typhoon
On Fri, 18 Jul 2008 19:08:19 -0400
Steve Litt <[EMAIL PROTECTED]> wrote:

> On Friday 18 July 2008 15:43, Andre Poenitz wrote:
> > On Fri, Jul 18, 2008 at 03:28:55PM -0400, Steve Litt wrote:
> > > Hi all,
> >

> I tried it.
> 
> Unfortunately, unrtf discards all styles, converting them to
> fine-tuned output. This is true both for html and latex output.

Hi Steve, 
My only suggestion would be to use one of the programming tools rather
than do your replacement in Vim. Awk, sed, perl - It would allow you to
gradually build up some regexps through trial and error.

My condolences :-)

Alan

> 
> SteveT
> 
> Steve Litt
> Recession Relief Package
> http://www.recession-relief.US
> 
>