Re: Custom character entities

2010-11-23 Thread Jürgen Spitzmüller
Richard Heck wrote:
  I see that the file is for unicode symbols only.
  So this cannot be used for something which is
  outside unicode table, can it?
 
 There are such things?

Sure. Alexander's proposal is very valid. And actually despetrately needed. 
Currently, we cannot even make insets like for \theendnotes in our modules, 
but we have to advice the module users to use ERT.

What we need, is an InsetFlex without an InsetText (the FlexInset counterpart 
to InsetCommand).

Jürgen


Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Jürgen Spitzmüller
Nikos Chantziaras wrote:
  It would be nice if the config dialog would have a 
 checkbox or another form of selection where one could enable XeTeX 
 globally and LyX would reconfigure itself automatically for XeTeX use 
 (and also change the default document settings for new documents to use 
 XeTeX so that manually adding stuff to the preamble shouldn't be
 necessary.)
 
 I must say that with XeTeX, LyX is very nice to work with!  I hope XeTeX 
 support will become better in time, since to me it seems XeTeX is the 
 future of TeX in general, especially since it can use normal fonts (that 
 alone is a killer feature.)

Since yesterday, the development version (2.0svn) automatically choses 
polyglossia with XeTeX and the problems described here should all be solved.

Jürgen


Re: Troubleshooting Windows Installation unable to find textclass file - Win XP, Lyx 1.6.7

2010-11-23 Thread Manveru
2010/11/22 Thomas Vandieken thomas.vandie...@gmail.com:
This should be:
%WINDOWS%\\system32\\cmd.exe

not

%WINDOWS\\system32\\cmd.exe


 Where can I configure that?

Wherever path to cmd.exe is defined. According to the error message
you sent I suspect there is a bug in Python script.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Nikos Chantziaras

On 11/23/2010 11:11 AM, Jürgen Spitzmüller wrote:

Nikos Chantziaras wrote:

  It would be nice if the config dialog would have a
checkbox or another form of selection where one could enable XeTeX
globally and LyX would reconfigure itself automatically for XeTeX use
(and also change the default document settings for new documents to use
XeTeX so that manually adding stuff to the preamble shouldn't be
necessary.)

I must say that with XeTeX, LyX is very nice to work with!  I hope XeTeX
support will become better in time, since to me it seems XeTeX is the
future of TeX in general, especially since it can use normal fonts (that
alone is a killer feature.)


Since yesterday, the development version (2.0svn) automatically choses
polyglossia with XeTeX and the problems described here should all be solved.


I actually compiled from SVN last night (36437) but it doesn't seem to 
like me much.  It aborts at startup with a memory allocation exception.


I guess this kind of thing is sometimes to be expected when using 
building from SVN  though.




Re: Troubleshooting Windows Installation unable to find textclass file - Win XP, Lyx 1.6.7

2010-11-23 Thread Uwe Stöhr

Am 22.11.2010 12:00, schrieb Thomas Vandieken:


--  Uninstall / Alt-Install Done: when I start Lyx now I get an CMD box for 
less than a sec. with a similar error message:

WindowsError: [Error 2] Das System kann die angegebene Datei nicht 
finden:'%WINDOWS\\system32\\cmd.exe /c latex 
\\nonstopmode\\input{c:/dokume\\string~1/tommy 
/lokale\\string~1/temp/tmpjq8pb0.ltx}'
Lyx: Done!

Wired, obviously cmd.exe exists in windows/system32/ and MikTex 2.9 was 
installed, too. Any ideas?


This means that latex wasn't found. Have you installed MiKTeX 2.9 separately before installing LyX? 
If so, then you suffer from one of the older MiKTeX 2.9 bugs. In this case


1. uninstall LyX _completely_
2. uninstall MiKTeX _completely_
3. check the Windows registy that there are no leftovers from MiKTeX (do this only if you know how 
to do that)

4. delete the folder
   C:\Documents and Settings\username\Application Data\lyx16
5. reinstall LyX using the complete version of my installer

This installs MiKTeX together with LyX. The installed MiKTeX 2.9 is the latest one where all known 
installation bugs have been fixed.


Please report back if this now works for you.

regards Uwe


RE: Troubleshooting Windows Installation unable to find textclass file - Win XP, Lyx 1.6.7

2010-11-23 Thread Thomas Vandieken
 This means that latex wasn't found. Have you installed MiKTeX 2.9
 separately before installing LyX?

I haven't installed MiKteX separately. I used the Installer 
LyX-168-4-26-AltInstaller-Complete.exe to install LyX w/ MiKteX. This is why I 
don't understand that latex wasn't found because both installations were 
completed successfully. My registry contains only a MiKteX entry of the current 
2.9 version.

Thanks!
~ Tom



Re: strikeout math?

2010-11-23 Thread Uwe Stöhr

Am 22.11.2010 15:00, schrieb Liviu Andronic:


This won't work because \not is not designed to strike-out characters but to
negate relations.
But anyway, the syntax you are using in your formula seems to  be wrong. If
you want to state that a variable is negated, you need to place a \neg if
front of it. See the attached example file.


Unfortunately my students would probably not much appreciate such
finesse, so I'm not yet sure how to handle this.


That is not a finesse. Negating a variable is done with the \neg symbol. Here is a list with 
possible notations:

http://en.wikipedia.org/wiki/Negation
Students should learn it the correct way, so you should use \neg.

regards Uwe


Re: Paste cells into table with Math

2010-11-23 Thread Ken
Perhaps the subject of this thread should be: External Copy then Paste with
math content

The idea would be for generating a string like:
The result is $\beta=2$
in some external program would when copied and pasted into LyX would
automatically know to format the LaTeX part as math content?  

LyX could offer options to paste the string literally or to paste the string and
then find/replace the LaTeX parts.  In a more complicated example, perhaps the
contents of an entire table could be copied and pasted where some cells are text
and others are math (or partial math).

In any case, would something like this be useful to others?  Is this something I
should suggest on the Trac bug/enhancement tracker?  Or do users have better
ways of copying and pasting results tables from software like Matlab into a LyX
report?

Thanks,
Ken




Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Pavel Sanda
Nikos Chantziaras wrote:
 I actually compiled from SVN last night (36437) but it doesn't seem to like 
 me much.  It aborts at startup with a memory allocation exception.

try to compile and build from a completely new tree.
pavel


Re: strikeout math? (was: Re: Arrows: boldface, negated diagonal?)

2010-11-23 Thread Jim Oldfield


 From: Liviu Andronic landronim...@gmail.com
 Sent: Sun, 21 November, 2010 15:05:50

 What should one do when the regular \not  way of  striking out math
 produces ugly output? See attached example. In this case  I'd like to
 use regular strikeout (as from within Text style), but it doesn't  seem
 to work on Math.
 


You can enter text mode with \text, use the strikeout command manually (it's 
\sout), then use \ensuremath to get back into math mode. For instance, paste 
this into a LyX math environment:
\text{\sout{\ensuremath{a^bc}}}

The attached file has a macro to simplify this, and to make the equations look 
a 
bit more bearable while you're editing them (I still recommend turning on 
instant preview though).  Note that since you're essentially bypassing LyX for 
this command:
* you'll need to manually put \usepackage{ulem} in the preamble, as done in 
the attachment.
* you may need to change the AMS math package settings to force that package to 
be used too.

To repeat and add to what Uwe said:
* If you really mean this is not true, then strikeout isn't appropriate. 
 However, if you're cancelling variables, say because you're teaching this to 
high school students, then strikeout is correct.
* Whatever stage your students are at, multiple-character variables should 
*definitely* not be in italics! Use \operatorname to enclose such variables 
(see 
attachment for an example of this, too).

Jim


  

Math strikeout.lyx
Description: Binary data


Re: remapping the en dash

2010-11-23 Thread Richard Heck

On 11/22/2010 09:43 PM, Eran Kaplinsky wrote:

Richard, what do you mean by handled correctly under line breaks?

I mean: LaTeX will happily break a line after -- or ---. LaTeX will 
not break one after the Unicode endash. I don't know about XeTeX etc.


Richard



Re: Custom character entities

2010-11-23 Thread Richard Heck

On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote:

Richard Heck wrote:

I see that the file is for unicode symbols only.
So this cannot be used for something which is
outside unicode table, can it?

There are such things?

Sure. Alexander's proposal is very valid. And actually despetrately needed.
Currently, we cannot even make insets like for \theendnotes in our modules,
but we have to advice the module users to use ERT.

What we need, is an InsetFlex without an InsetText (the FlexInset counterpart
to InsetCommand).

Oh, if that's what's needed, it's bug #4066. The whole InsetParamsWidget 
thing is a big step in that direction,
I think. I'm hoping to do this for 2.1. But I thought he was talking 
about particular characters, not commands.


Richard



inkscape with LaTeX markup: need an external document option?

2010-11-23 Thread Paul Johnson
I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape textext extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

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


eLyXer 1.1.0 released

2010-11-23 Thread Alex Fernandez
Hi all,

Version 1.1.0 of eLyXer, the LyX to HTML converter, has been released.
This version has the first batch of features from the wish list,
including more controls for footnote generation, and showing the
changes in the output for change tracking. Also, there is a new
command line utility math2html.py to convert bare equations, and a few
improvements like using Unicode combining characters whenever possible
for decorations. Plus a couple of bug fixes.

Changes include:
---
- Wish list: understand \setcounter in the preamble to set the number
of the first Chapter or Section.
- Generate a new math2html.py file with an API to convert raw LaTeX
code to HTML, and a command line utility.
- Wish list: new option --notoclabels to omit part labels in the TOC.
- Wish list: make “show changes in the output” work for change tracking.
- Solve an existing issue with Description and List layouts: correct
splitting of first words when intermixing styles.
- Show decorations using Unicode combining characters, whenever possible.
- Support for \dddot (with combining character) and \widehat (with
character on top).
- Wish list: add several options for footnote generation: align
markers instead of using superscript, place markers at the bottom of
the page, use symbols for markers... Also added a generic --footnotes
option to aggregate them all.
- Wish list: use ps:use-cropbox=true in ImageMagick for PostScript and
EPS images.
- Support for dotless i and j.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

Thanks for your time,

Alex Fernández.


csv import causes python error

2010-11-23 Thread Kelly Kearney

Hi all,

I very recently started using Lyx, and I'm having some 
trouble importing .csv files as tables.  I'm running Lyx 
1.6.8 on a Mac OS X 10.5.8 system.  When I attempt to to 
import a table (via File  Import  CSV (Table)...), I 
receive the following error:


An error occurred whilst running python -tt

'/Applications/LyX.app/Contents/Resourc


I searched the archive, and it seems this error occurred in 
older Windows versions of Lyx due to a missing csv.py 
script. I don't see this particular script in my own 
[lyxlibrary]/scripts folder, but I wan't sure if it was 
still necessary in the most recent Lyx release.



Thanks for any suggestions regarding this error.


-Kelly







Multiple references to one footnote?

2010-11-23 Thread Tim Wescott
Is there a way to reference a footnote multiple times?  I.e., when you 
have multiple entries in a table, all needing the same note?


Thanks.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Multiple references to one footnote?

2010-11-23 Thread curtis osterhoudt
Hi, Tim, 

   I recently had occasion to do this, in a table. I ended up using the ctable 
package. I think there are much more elegant/robust solutions out there, but 
this worked for me.



1. In the preamble: \usepackage{ctable}
2. Insert a table in lyx
3. Before you make the table, insert a Box (minipage)
4. Before the table (in the Box), place the latex command (in Evil Red 
Text): 
\renewcommand{\thefootnote}{\thempfootnote}
5. Place your first footnote wherever it needs to go in the table
6. At each successive footnote position, place some ERT which reads: 
\footnotemark[\value{mpfootnote}]Unfortunately, I haven't taken the time to 
figure out what you need to do if you have to do something like 

Stuff (footnote a here)
More stuff (footnote b here)
Yet more stuff (footnote a again here).

The way I describe in the 6 steps above means that all of the footnotes 
inserted 
using the \footnotemark command will refer to the most-recently inserted (via 
LyX commands) footnote.

   Not sure if that makes sense until you try it. In any case, if someone 
else has a response, I'd greatly love to know it!

 /**
The four points of the compass be logic, knowledge, wisdom and the unknown. 
Some do bow in that final direction. Others advance upon it. To bow before the 
one is to lose sight of the three. I may submit to the unknown, but never to 
the 
unknowable. ~~Roger Zelazny, in Lord of Light
***/





From: Tim Wescott t...@wescottdesign.com
To: lyx-users@lists.lyx.org
Sent: Tue, November 23, 2010 4:04:47 PM
Subject: Multiple references to one footnote?

Is there a way to reference a footnote multiple times?  I.e., when you have 
multiple entries in a table, all needing the same note?

Thanks.

-- Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com


  

Re: Multiple references to one footnote?

2010-11-23 Thread Tim Wescott
Rob Oaks sent me an email to the effect that you can just put a regular 
old label in the footnote (it'll be named Flo:something-or-other).  Then 
you cross reference that -- by hand, because the cross-reference dialog 
box doesn't seem to pick up on the existence of the thing.  You'll need 
to superscript it by hand, but if you do it looks just fine, and you can 
have multiple references to the same note.


On 11/23/2010 03:29 PM, curtis osterhoudt wrote:

Hi, Tim,

   I recently had occasion to do this, in a table. I ended up using 
the ctable package. I think there are much more elegant/robust 
solutions out there, but this worked for me.



   1. In the preamble: \usepackage{ctable}
   2. Insert a table in lyx
   3. Before you make the table, insert a Box (minipage)
   4. Before the table (in the Box), place the latex command (in Evil
  Red Text): \renewcommand{\thefootnote}{\thempfootnote}
   5. Place your first footnote wherever it needs to go in the table
   6. At each successive footnote position, place some ERT which
  reads: \footnotemark[\value{mpfootnote}]

Unfortunately, I haven't taken the time to figure out what you need to 
do if you have to do something like

Stuff (footnote a here)
More stuff (footnote b here)
Yet more stuff (footnote a again here).

The way I describe in the 6 steps above means that all of the 
footnotes inserted using the \footnotemark command will refer to the 
most-recently inserted (via LyX commands) footnote.


   Not sure if that makes sense until you try it. In any case, if 
someone else has a response, I'd greatly love to know it!

/**
The four points of the compass be logic, knowledge, wisdom and the 
unknown. Some do bow in that final direction. Others advance upon it. 
To bow before the one is to lose sight of the three. I may submit to 
the unknown, but never to the unknowable. ~~Roger Zelazny, in Lord 
of Light

***/



*From:* Tim Wescott t...@wescottdesign.com
*To:* lyx-users@lists.lyx.org
*Sent:* Tue, November 23, 2010 4:04:47 PM
*Subject:* Multiple references to one footnote?

Is there a way to reference a footnote multiple times?  I.e., when you 
have multiple entries in a table, all needing the same note?


Thanks.

-- Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com






--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: OT: LaTeX Help

2010-11-23 Thread Enrico Forestieri
Richard Heck writes:
 \raisebox{-0.5\baselineskip}{\ensuremath{\stackrel{\stackrel{{\textstyle 
 \gamma}}{{\textstyle \sim}}}{\delta}}}
 Ugly, to be sure, and I'm worried the -0.5 will go wrong in some cases.
 
 Any other ideas?

If you are satisfied about how that looks and your only concern is about the
right amount by which to lower the whole thing, simply lower it by the right
amount:

\setbox0=\hbox{$\delta$}
\raisebox{-\ht0}{\ensuremath{\stackrel{\stackrel{{%
\textstyle\gamma}}{{\textstyle\sim}}}{\delta}}}

If you like something more customizable, say you want to easily adjust
vertical spaces and the likes, then you could use the following:

\newbox\mybox
\newdimen\boxwd
\setbox\mybox=\hbox{$\sim$}
\boxwd=\wd\mybox
\setbox\mybox=\hbox{\vbox{\hsize=\boxwd
\parskip=0pt\offinterlineskip\parindent0pt
\hbox to \boxwd {\hfil$\gamma$\hfil}
\vskip2pt
\hbox{$\sim$}
\vskip1pt
\hbox to \boxwd {\hfil$\delta$\hfil}
}}
\def\mysymbol{\raisebox{-0.4\ht\mybox}{\copy\mybox}}

After that, you get your strange looking symbol by the macro \mysymbol

-- 
Enrico



Re: Multiple references to one footnote?

2010-11-23 Thread Richard Heck

On 11/23/10 8:08 PM, Tim Wescott wrote:
Rob Oaks sent me an email to the effect that you can just put a 
regular old label in the footnote (it'll be named 
Flo:something-or-other).  Then you cross reference that -- by hand, 
because the cross-reference dialog box doesn't seem to pick up on the 
existence of the thing.  You'll need to superscript it by hand, but if 
you do it looks just fine, and you can have multiple references to the 
same note.


We should check if this bug is also in 2.0. I know I fixed a couple 
things like that. Some of the recursions don't seem to make it into 
table cells.


Richard



Re: Custom character entities

2010-11-23 Thread Jürgen Spitzmüller
Richard Heck wrote:
  I see that the file is for unicode symbols only.
  So this cannot be used for something which is
  outside unicode table, can it?
 
 There are such things?

Sure. Alexander's proposal is very valid. And actually despetrately needed. 
Currently, we cannot even make insets like for \theendnotes in our modules, 
but we have to advice the module users to use ERT.

What we need, is an InsetFlex without an InsetText (the FlexInset counterpart 
to InsetCommand).

Jürgen


Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Jürgen Spitzmüller
Nikos Chantziaras wrote:
  It would be nice if the config dialog would have a 
 checkbox or another form of selection where one could enable XeTeX 
 globally and LyX would reconfigure itself automatically for XeTeX use 
 (and also change the default document settings for new documents to use 
 XeTeX so that manually adding stuff to the preamble shouldn't be
 necessary.)
 
 I must say that with XeTeX, LyX is very nice to work with!  I hope XeTeX 
 support will become better in time, since to me it seems XeTeX is the 
 future of TeX in general, especially since it can use normal fonts (that 
 alone is a killer feature.)

Since yesterday, the development version (2.0svn) automatically choses 
polyglossia with XeTeX and the problems described here should all be solved.

Jürgen


Re: Troubleshooting Windows Installation unable to find textclass file - Win XP, Lyx 1.6.7

2010-11-23 Thread Manveru
2010/11/22 Thomas Vandieken thomas.vandie...@gmail.com:
This should be:
%WINDOWS%\\system32\\cmd.exe

not

%WINDOWS\\system32\\cmd.exe


 Where can I configure that?

Wherever path to cmd.exe is defined. According to the error message
you sent I suspect there is a bug in Python script.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Nikos Chantziaras

On 11/23/2010 11:11 AM, Jürgen Spitzmüller wrote:

Nikos Chantziaras wrote:

  It would be nice if the config dialog would have a
checkbox or another form of selection where one could enable XeTeX
globally and LyX would reconfigure itself automatically for XeTeX use
(and also change the default document settings for new documents to use
XeTeX so that manually adding stuff to the preamble shouldn't be
necessary.)

I must say that with XeTeX, LyX is very nice to work with!  I hope XeTeX
support will become better in time, since to me it seems XeTeX is the
future of TeX in general, especially since it can use normal fonts (that
alone is a killer feature.)


Since yesterday, the development version (2.0svn) automatically choses
polyglossia with XeTeX and the problems described here should all be solved.


I actually compiled from SVN last night (36437) but it doesn't seem to 
like me much.  It aborts at startup with a memory allocation exception.


I guess this kind of thing is sometimes to be expected when using 
building from SVN  though.




Re: Troubleshooting Windows Installation unable to find textclass file - Win XP, Lyx 1.6.7

2010-11-23 Thread Uwe Stöhr

Am 22.11.2010 12:00, schrieb Thomas Vandieken:


--  Uninstall / Alt-Install Done: when I start Lyx now I get an CMD box for 
less than a sec. with a similar error message:

WindowsError: [Error 2] Das System kann die angegebene Datei nicht 
finden:'%WINDOWS\\system32\\cmd.exe /c latex 
\\nonstopmode\\input{c:/dokume\\string~1/tommy 
/lokale\\string~1/temp/tmpjq8pb0.ltx}'
Lyx: Done!

Wired, obviously cmd.exe exists in windows/system32/ and MikTex 2.9 was 
installed, too. Any ideas?


This means that latex wasn't found. Have you installed MiKTeX 2.9 separately before installing LyX? 
If so, then you suffer from one of the older MiKTeX 2.9 bugs. In this case


1. uninstall LyX _completely_
2. uninstall MiKTeX _completely_
3. check the Windows registy that there are no leftovers from MiKTeX (do this only if you know how 
to do that)

4. delete the folder
   C:\Documents and Settings\username\Application Data\lyx16
5. reinstall LyX using the complete version of my installer

This installs MiKTeX together with LyX. The installed MiKTeX 2.9 is the latest one where all known 
installation bugs have been fixed.


Please report back if this now works for you.

regards Uwe


RE: Troubleshooting Windows Installation unable to find textclass file - Win XP, Lyx 1.6.7

2010-11-23 Thread Thomas Vandieken
 This means that latex wasn't found. Have you installed MiKTeX 2.9
 separately before installing LyX?

I haven't installed MiKteX separately. I used the Installer 
LyX-168-4-26-AltInstaller-Complete.exe to install LyX w/ MiKteX. This is why I 
don't understand that latex wasn't found because both installations were 
completed successfully. My registry contains only a MiKteX entry of the current 
2.9 version.

Thanks!
~ Tom



Re: strikeout math?

2010-11-23 Thread Uwe Stöhr

Am 22.11.2010 15:00, schrieb Liviu Andronic:


This won't work because \not is not designed to strike-out characters but to
negate relations.
But anyway, the syntax you are using in your formula seems to  be wrong. If
you want to state that a variable is negated, you need to place a \neg if
front of it. See the attached example file.


Unfortunately my students would probably not much appreciate such
finesse, so I'm not yet sure how to handle this.


That is not a finesse. Negating a variable is done with the \neg symbol. Here is a list with 
possible notations:

http://en.wikipedia.org/wiki/Negation
Students should learn it the correct way, so you should use \neg.

regards Uwe


Re: Paste cells into table with Math

2010-11-23 Thread Ken
Perhaps the subject of this thread should be: External Copy then Paste with
math content

The idea would be for generating a string like:
The result is $\beta=2$
in some external program would when copied and pasted into LyX would
automatically know to format the LaTeX part as math content?  

LyX could offer options to paste the string literally or to paste the string and
then find/replace the LaTeX parts.  In a more complicated example, perhaps the
contents of an entire table could be copied and pasted where some cells are text
and others are math (or partial math).

In any case, would something like this be useful to others?  Is this something I
should suggest on the Trac bug/enhancement tracker?  Or do users have better
ways of copying and pasting results tables from software like Matlab into a LyX
report?

Thanks,
Ken




Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Pavel Sanda
Nikos Chantziaras wrote:
 I actually compiled from SVN last night (36437) but it doesn't seem to like 
 me much.  It aborts at startup with a memory allocation exception.

try to compile and build from a completely new tree.
pavel


Re: strikeout math? (was: Re: Arrows: boldface, negated diagonal?)

2010-11-23 Thread Jim Oldfield


 From: Liviu Andronic landronim...@gmail.com
 Sent: Sun, 21 November, 2010 15:05:50

 What should one do when the regular \not  way of  striking out math
 produces ugly output? See attached example. In this case  I'd like to
 use regular strikeout (as from within Text style), but it doesn't  seem
 to work on Math.
 


You can enter text mode with \text, use the strikeout command manually (it's 
\sout), then use \ensuremath to get back into math mode. For instance, paste 
this into a LyX math environment:
\text{\sout{\ensuremath{a^bc}}}

The attached file has a macro to simplify this, and to make the equations look 
a 
bit more bearable while you're editing them (I still recommend turning on 
instant preview though).  Note that since you're essentially bypassing LyX for 
this command:
* you'll need to manually put \usepackage{ulem} in the preamble, as done in 
the attachment.
* you may need to change the AMS math package settings to force that package to 
be used too.

To repeat and add to what Uwe said:
* If you really mean this is not true, then strikeout isn't appropriate. 
 However, if you're cancelling variables, say because you're teaching this to 
high school students, then strikeout is correct.
* Whatever stage your students are at, multiple-character variables should 
*definitely* not be in italics! Use \operatorname to enclose such variables 
(see 
attachment for an example of this, too).

Jim


  

Math strikeout.lyx
Description: Binary data


Re: remapping the en dash

2010-11-23 Thread Richard Heck

On 11/22/2010 09:43 PM, Eran Kaplinsky wrote:

Richard, what do you mean by handled correctly under line breaks?

I mean: LaTeX will happily break a line after -- or ---. LaTeX will 
not break one after the Unicode endash. I don't know about XeTeX etc.


Richard



Re: Custom character entities

2010-11-23 Thread Richard Heck

On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote:

Richard Heck wrote:

I see that the file is for unicode symbols only.
So this cannot be used for something which is
outside unicode table, can it?

There are such things?

Sure. Alexander's proposal is very valid. And actually despetrately needed.
Currently, we cannot even make insets like for \theendnotes in our modules,
but we have to advice the module users to use ERT.

What we need, is an InsetFlex without an InsetText (the FlexInset counterpart
to InsetCommand).

Oh, if that's what's needed, it's bug #4066. The whole InsetParamsWidget 
thing is a big step in that direction,
I think. I'm hoping to do this for 2.1. But I thought he was talking 
about particular characters, not commands.


Richard



inkscape with LaTeX markup: need an external document option?

2010-11-23 Thread Paul Johnson
I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape textext extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

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


eLyXer 1.1.0 released

2010-11-23 Thread Alex Fernandez
Hi all,

Version 1.1.0 of eLyXer, the LyX to HTML converter, has been released.
This version has the first batch of features from the wish list,
including more controls for footnote generation, and showing the
changes in the output for change tracking. Also, there is a new
command line utility math2html.py to convert bare equations, and a few
improvements like using Unicode combining characters whenever possible
for decorations. Plus a couple of bug fixes.

Changes include:
---
- Wish list: understand \setcounter in the preamble to set the number
of the first Chapter or Section.
- Generate a new math2html.py file with an API to convert raw LaTeX
code to HTML, and a command line utility.
- Wish list: new option --notoclabels to omit part labels in the TOC.
- Wish list: make “show changes in the output” work for change tracking.
- Solve an existing issue with Description and List layouts: correct
splitting of first words when intermixing styles.
- Show decorations using Unicode combining characters, whenever possible.
- Support for \dddot (with combining character) and \widehat (with
character on top).
- Wish list: add several options for footnote generation: align
markers instead of using superscript, place markers at the bottom of
the page, use symbols for markers... Also added a generic --footnotes
option to aggregate them all.
- Wish list: use ps:use-cropbox=true in ImageMagick for PostScript and
EPS images.
- Support for dotless i and j.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

Thanks for your time,

Alex Fernández.


csv import causes python error

2010-11-23 Thread Kelly Kearney

Hi all,

I very recently started using Lyx, and I'm having some 
trouble importing .csv files as tables.  I'm running Lyx 
1.6.8 on a Mac OS X 10.5.8 system.  When I attempt to to 
import a table (via File  Import  CSV (Table)...), I 
receive the following error:


An error occurred whilst running python -tt

'/Applications/LyX.app/Contents/Resourc


I searched the archive, and it seems this error occurred in 
older Windows versions of Lyx due to a missing csv.py 
script. I don't see this particular script in my own 
[lyxlibrary]/scripts folder, but I wan't sure if it was 
still necessary in the most recent Lyx release.



Thanks for any suggestions regarding this error.


-Kelly







Multiple references to one footnote?

2010-11-23 Thread Tim Wescott
Is there a way to reference a footnote multiple times?  I.e., when you 
have multiple entries in a table, all needing the same note?


Thanks.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Multiple references to one footnote?

2010-11-23 Thread curtis osterhoudt
Hi, Tim, 

   I recently had occasion to do this, in a table. I ended up using the ctable 
package. I think there are much more elegant/robust solutions out there, but 
this worked for me.



1. In the preamble: \usepackage{ctable}
2. Insert a table in lyx
3. Before you make the table, insert a Box (minipage)
4. Before the table (in the Box), place the latex command (in Evil Red 
Text): 
\renewcommand{\thefootnote}{\thempfootnote}
5. Place your first footnote wherever it needs to go in the table
6. At each successive footnote position, place some ERT which reads: 
\footnotemark[\value{mpfootnote}]Unfortunately, I haven't taken the time to 
figure out what you need to do if you have to do something like 

Stuff (footnote a here)
More stuff (footnote b here)
Yet more stuff (footnote a again here).

The way I describe in the 6 steps above means that all of the footnotes 
inserted 
using the \footnotemark command will refer to the most-recently inserted (via 
LyX commands) footnote.

   Not sure if that makes sense until you try it. In any case, if someone 
else has a response, I'd greatly love to know it!

 /**
The four points of the compass be logic, knowledge, wisdom and the unknown. 
Some do bow in that final direction. Others advance upon it. To bow before the 
one is to lose sight of the three. I may submit to the unknown, but never to 
the 
unknowable. ~~Roger Zelazny, in Lord of Light
***/





From: Tim Wescott t...@wescottdesign.com
To: lyx-users@lists.lyx.org
Sent: Tue, November 23, 2010 4:04:47 PM
Subject: Multiple references to one footnote?

Is there a way to reference a footnote multiple times?  I.e., when you have 
multiple entries in a table, all needing the same note?

Thanks.

-- Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com


  

Re: Multiple references to one footnote?

2010-11-23 Thread Tim Wescott
Rob Oaks sent me an email to the effect that you can just put a regular 
old label in the footnote (it'll be named Flo:something-or-other).  Then 
you cross reference that -- by hand, because the cross-reference dialog 
box doesn't seem to pick up on the existence of the thing.  You'll need 
to superscript it by hand, but if you do it looks just fine, and you can 
have multiple references to the same note.


On 11/23/2010 03:29 PM, curtis osterhoudt wrote:

Hi, Tim,

   I recently had occasion to do this, in a table. I ended up using 
the ctable package. I think there are much more elegant/robust 
solutions out there, but this worked for me.



   1. In the preamble: \usepackage{ctable}
   2. Insert a table in lyx
   3. Before you make the table, insert a Box (minipage)
   4. Before the table (in the Box), place the latex command (in Evil
  Red Text): \renewcommand{\thefootnote}{\thempfootnote}
   5. Place your first footnote wherever it needs to go in the table
   6. At each successive footnote position, place some ERT which
  reads: \footnotemark[\value{mpfootnote}]

Unfortunately, I haven't taken the time to figure out what you need to 
do if you have to do something like

Stuff (footnote a here)
More stuff (footnote b here)
Yet more stuff (footnote a again here).

The way I describe in the 6 steps above means that all of the 
footnotes inserted using the \footnotemark command will refer to the 
most-recently inserted (via LyX commands) footnote.


   Not sure if that makes sense until you try it. In any case, if 
someone else has a response, I'd greatly love to know it!

/**
The four points of the compass be logic, knowledge, wisdom and the 
unknown. Some do bow in that final direction. Others advance upon it. 
To bow before the one is to lose sight of the three. I may submit to 
the unknown, but never to the unknowable. ~~Roger Zelazny, in Lord 
of Light

***/



*From:* Tim Wescott t...@wescottdesign.com
*To:* lyx-users@lists.lyx.org
*Sent:* Tue, November 23, 2010 4:04:47 PM
*Subject:* Multiple references to one footnote?

Is there a way to reference a footnote multiple times?  I.e., when you 
have multiple entries in a table, all needing the same note?


Thanks.

-- Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com






--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: OT: LaTeX Help

2010-11-23 Thread Enrico Forestieri
Richard Heck writes:
 \raisebox{-0.5\baselineskip}{\ensuremath{\stackrel{\stackrel{{\textstyle 
 \gamma}}{{\textstyle \sim}}}{\delta}}}
 Ugly, to be sure, and I'm worried the -0.5 will go wrong in some cases.
 
 Any other ideas?

If you are satisfied about how that looks and your only concern is about the
right amount by which to lower the whole thing, simply lower it by the right
amount:

\setbox0=\hbox{$\delta$}
\raisebox{-\ht0}{\ensuremath{\stackrel{\stackrel{{%
\textstyle\gamma}}{{\textstyle\sim}}}{\delta}}}

If you like something more customizable, say you want to easily adjust
vertical spaces and the likes, then you could use the following:

\newbox\mybox
\newdimen\boxwd
\setbox\mybox=\hbox{$\sim$}
\boxwd=\wd\mybox
\setbox\mybox=\hbox{\vbox{\hsize=\boxwd
\parskip=0pt\offinterlineskip\parindent0pt
\hbox to \boxwd {\hfil$\gamma$\hfil}
\vskip2pt
\hbox{$\sim$}
\vskip1pt
\hbox to \boxwd {\hfil$\delta$\hfil}
}}
\def\mysymbol{\raisebox{-0.4\ht\mybox}{\copy\mybox}}

After that, you get your strange looking symbol by the macro \mysymbol

-- 
Enrico



Re: Multiple references to one footnote?

2010-11-23 Thread Richard Heck

On 11/23/10 8:08 PM, Tim Wescott wrote:
Rob Oaks sent me an email to the effect that you can just put a 
regular old label in the footnote (it'll be named 
Flo:something-or-other).  Then you cross reference that -- by hand, 
because the cross-reference dialog box doesn't seem to pick up on the 
existence of the thing.  You'll need to superscript it by hand, but if 
you do it looks just fine, and you can have multiple references to the 
same note.


We should check if this bug is also in 2.0. I know I fixed a couple 
things like that. Some of the recursions don't seem to make it into 
table cells.


Richard



Re: Custom character entities

2010-11-23 Thread Jürgen Spitzmüller
Richard Heck wrote:
> > I see that the file is for unicode symbols only.
> > So this cannot be used for something which is
> > outside unicode table, can it?
> 
> There are such things?

Sure. Alexander's proposal is very valid. And actually despetrately needed. 
Currently, we cannot even make insets like for \theendnotes in our modules, 
but we have to advice the module users to use ERT.

What we need, is an InsetFlex without an InsetText (the FlexInset counterpart 
to InsetCommand).

Jürgen


Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Jürgen Spitzmüller
Nikos Chantziaras wrote:
>  It would be nice if the config dialog would have a 
> checkbox or another form of selection where one could enable XeTeX 
> globally and LyX would reconfigure itself automatically for XeTeX use 
> (and also change the default document settings for new documents to use 
> XeTeX so that manually adding stuff to the preamble shouldn't be
> necessary.)
> 
> I must say that with XeTeX, LyX is very nice to work with!  I hope XeTeX 
> support will become better in time, since to me it seems XeTeX is the 
> future of TeX in general, especially since it can use normal fonts (that 
> alone is a killer feature.)

Since yesterday, the development version (2.0svn) automatically choses 
polyglossia with XeTeX and the problems described here should all be solved.

Jürgen


Re: Troubleshooting Windows Installation "unable to find textclass file" - Win XP, Lyx 1.6.7

2010-11-23 Thread Manveru
2010/11/22 Thomas Vandieken :
>>This should be:
>>%WINDOWS%\\system32\\cmd.exe
>>
>>not
>>
>>%WINDOWS\\system32\\cmd.exe
>>
>
> Where can I configure that?

Wherever path to cmd.exe is defined. According to the error message
you sent I suspect there is a bug in Python script.

-- 
Manveru
jabber: manv...@manveru.pl
     gg: 1624001
   http://www.manveru.pl


Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Nikos Chantziaras

On 11/23/2010 11:11 AM, Jürgen Spitzmüller wrote:

Nikos Chantziaras wrote:

  It would be nice if the config dialog would have a
checkbox or another form of selection where one could enable XeTeX
globally and LyX would reconfigure itself automatically for XeTeX use
(and also change the default document settings for new documents to use
XeTeX so that manually adding stuff to the preamble shouldn't be
necessary.)

I must say that with XeTeX, LyX is very nice to work with!  I hope XeTeX
support will become better in time, since to me it seems XeTeX is the
future of TeX in general, especially since it can use normal fonts (that
alone is a killer feature.)


Since yesterday, the development version (2.0svn) automatically choses
polyglossia with XeTeX and the problems described here should all be solved.


I actually compiled from SVN last night (36437) but it doesn't seem to 
like me much.  It aborts at startup with a memory allocation exception.


I guess this kind of thing is sometimes to be expected when using 
building from SVN  though.




Re: Troubleshooting Windows Installation "unable to find textclass file" - Win XP, Lyx 1.6.7

2010-11-23 Thread Uwe Stöhr

Am 22.11.2010 12:00, schrieb Thomas Vandieken:


-->  Uninstall / Alt-Install Done: when I start Lyx now I get an CMD box for 
less than a sec. with a similar error message:

"WindowsError: [Error 2] Das System kann die angegebene Datei nicht 
finden:'%WINDOWS\\system32\\cmd.exe /c latex 
"\\nonstopmode\\input{c:/dokume\\string~1/tommy 
/lokale\\string~1/temp/tmpjq8pb0.ltx}"'
Lyx: Done!"

Wired, obviously cmd.exe exists in windows/system32/ and MikTex 2.9 was 
installed, too. Any ideas?


This means that latex wasn't found. Have you installed MiKTeX 2.9 separately before installing LyX? 
If so, then you suffer from one of the older MiKTeX 2.9 bugs. In this case


1. uninstall LyX _completely_
2. uninstall MiKTeX _completely_
3. check the Windows registy that there are no leftovers from MiKTeX (do this only if you know how 
to do that)

4. delete the folder
   C:\Documents and Settings\\Application Data\lyx16
5. reinstall LyX using the complete version of my installer

This installs MiKTeX together with LyX. The installed MiKTeX 2.9 is the latest one where all known 
installation bugs have been fixed.


Please report back if this now works for you.

regards Uwe


RE: Troubleshooting Windows Installation "unable to find textclass file" - Win XP, Lyx 1.6.7

2010-11-23 Thread Thomas Vandieken
> This means that latex wasn't found. Have you installed MiKTeX 2.9
> separately before installing LyX?

I haven't installed MiKteX separately. I used the Installer 
LyX-168-4-26-AltInstaller-Complete.exe to install LyX w/ MiKteX. This is why I 
don't understand that latex wasn't found because both installations were 
completed successfully. My registry contains only a MiKteX entry of the current 
2.9 version.

Thanks!
~ Tom



Re: strikeout math?

2010-11-23 Thread Uwe Stöhr

Am 22.11.2010 15:00, schrieb Liviu Andronic:


This won't work because \not is not designed to strike-out characters but to
negate relations.
But anyway, the syntax you are using in your formula seems to  be wrong. If
you want to state that a variable is negated, you need to place a \neg if
front of it. See the attached example file.


Unfortunately my students would probably not much appreciate such
finesse, so I'm not yet sure how to handle this.


That is not a finesse. Negating a variable is done with the \neg symbol. Here is a list with 
possible notations:

http://en.wikipedia.org/wiki/Negation
Students should learn it the correct way, so you should use \neg.

regards Uwe


Re: Paste cells into table with Math

2010-11-23 Thread Ken
Perhaps the subject of this thread should be: "External Copy then Paste with
math content"

The idea would be for generating a string like:
"The result is $\beta=2$"
in some external program would when copied and pasted into LyX would
automatically know to format the LaTeX part as math content?  

LyX could offer options to paste the string literally or to paste the string and
then find/replace the LaTeX parts.  In a more complicated example, perhaps the
contents of an entire table could be copied and pasted where some cells are text
and others are math (or partial math).

In any case, would something like this be useful to others?  Is this something I
should suggest on the Trac bug/enhancement tracker?  Or do users have better
ways of copying and pasting results tables from software like Matlab into a LyX
report?

Thanks,
Ken




Re: Greek+English documents show English words with Greek letters

2010-11-23 Thread Pavel Sanda
Nikos Chantziaras wrote:
> I actually compiled from SVN last night (36437) but it doesn't seem to like 
> me much.  It aborts at startup with a memory allocation exception.

try to compile and build from a completely new tree.
pavel


Re: strikeout math? (was: Re: Arrows: boldface, negated diagonal?)

2010-11-23 Thread Jim Oldfield


> From: Liviu Andronic 
> Sent: Sun, 21 November, 2010 15:05:50

> What should one do when the regular \not  way of  striking out math
> produces ugly output? See attached example. In this case  I'd like to
> use regular strikeout (as from within Text style), but it doesn't  seem
> to work on Math.
> 


You can enter text mode with \text, use the strikeout command manually (it's 
\sout), then use \ensuremath to get back into math mode. For instance, paste 
this into a LyX math environment:
\text{\sout{\ensuremath{a^bc}}}

The attached file has a macro to simplify this, and to make the equations look 
a 
bit more bearable while you're editing them (I still recommend turning on 
instant preview though).  Note that since you're essentially bypassing LyX for 
this command:
* you'll need to manually put "\usepackage{ulem}" in the preamble, as done in 
the attachment.
* you may need to change the AMS math package settings to force that package to 
be used too.

To repeat and add to what Uwe said:
* If you really mean "this is not true", then strikeout isn't appropriate. 
 However, if you're cancelling variables, say because you're teaching this to 
high school students, then strikeout is correct.
* Whatever stage your students are at, multiple-character variables should 
*definitely* not be in italics! Use \operatorname to enclose such variables 
(see 
attachment for an example of this, too).

Jim


  

Math strikeout.lyx
Description: Binary data


Re: remapping the en dash

2010-11-23 Thread Richard Heck

On 11/22/2010 09:43 PM, Eran Kaplinsky wrote:

Richard, what do you mean by "handled correctly under line breaks"?

I mean: LaTeX will happily break a line after "--" or "---". LaTeX will 
not break one after the Unicode endash. I don't know about XeTeX etc.


Richard



Re: Custom character entities

2010-11-23 Thread Richard Heck

On 11/23/2010 03:48 AM, Jürgen Spitzmüller wrote:

Richard Heck wrote:

I see that the file is for unicode symbols only.
So this cannot be used for something which is
outside unicode table, can it?

There are such things?

Sure. Alexander's proposal is very valid. And actually despetrately needed.
Currently, we cannot even make insets like for \theendnotes in our modules,
but we have to advice the module users to use ERT.

What we need, is an InsetFlex without an InsetText (the FlexInset counterpart
to InsetCommand).

Oh, if that's what's needed, it's bug #4066. The whole InsetParamsWidget 
thing is a big step in that direction,
I think. I'm hoping to do this for 2.1. But I thought he was talking 
about particular characters, not commands.


Richard



inkscape with LaTeX markup: need an external document option?

2010-11-23 Thread Paul Johnson
I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape "textext" extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

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


eLyXer 1.1.0 released

2010-11-23 Thread Alex Fernandez
Hi all,

Version 1.1.0 of eLyXer, the LyX to HTML converter, has been released.
This version has the first batch of features from the wish list,
including more controls for footnote generation, and showing the
changes in the output for change tracking. Also, there is a new
command line utility math2html.py to convert bare equations, and a few
improvements like using Unicode combining characters whenever possible
for decorations. Plus a couple of bug fixes.

Changes include:
---
- Wish list: understand \setcounter in the preamble to set the number
of the first Chapter or Section.
- Generate a new math2html.py file with an API to convert raw LaTeX
code to HTML, and a command line utility.
- Wish list: new option --notoclabels to omit part labels in the TOC.
- Wish list: make “show changes in the output” work for change tracking.
- Solve an existing issue with Description and List layouts: correct
splitting of first words when intermixing styles.
- Show decorations using Unicode combining characters, whenever possible.
- Support for \dddot (with combining character) and \widehat (with
character on top).
- Wish list: add several options for footnote generation: align
markers instead of using superscript, place markers at the bottom of
the page, use symbols for markers... Also added a generic --footnotes
option to aggregate them all.
- Wish list: use ps:use-cropbox=true in ImageMagick for PostScript and
EPS images.
- Support for dotless i and j.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

Thanks for your time,

Alex Fernández.


csv import causes python error

2010-11-23 Thread Kelly Kearney

Hi all,

I very recently started using Lyx, and I'm having some 
trouble importing .csv files as tables.  I'm running Lyx 
1.6.8 on a Mac OS X 10.5.8 system.  When I attempt to to 
import a table (via File > Import > CSV (Table)...), I 
receive the following error:


"An error occurred whilst running python -tt

'/Applications/LyX.app/Contents/Resourc"


I searched the archive, and it seems this error occurred in 
older Windows versions of Lyx due to a missing csv.py 
script. I don't see this particular script in my own 
[lyxlibrary]/scripts folder, but I wan't sure if it was 
still necessary in the most recent Lyx release.



Thanks for any suggestions regarding this error.


-Kelly







Multiple references to one footnote?

2010-11-23 Thread Tim Wescott
Is there a way to reference a footnote multiple times?  I.e., when you 
have multiple entries in a table, all needing the same note?


Thanks.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Multiple references to one footnote?

2010-11-23 Thread curtis osterhoudt
Hi, Tim, 

   I recently had occasion to do this, in a table. I ended up using the ctable 
package. I think there are much more elegant/robust solutions out there, but 
this worked for me.



1. In the preamble: \usepackage{ctable}
2. Insert a table in lyx
3. Before you make the table, insert a Box (minipage)
4. Before the table (in the Box), place the latex command (in Evil Red 
Text): 
\renewcommand{\thefootnote}{\thempfootnote}
5. Place your first footnote wherever it needs to go in the table
6. At each successive footnote position, place some ERT which reads: 
\footnotemark[\value{mpfootnote}]Unfortunately, I haven't taken the time to 
figure out what you need to do if you have to do something like 

Stuff (footnote "a" here)
More stuff (footnote "b" here)
Yet more stuff (footnote "a" again here).

The way I describe in the 6 steps above means that all of the footnotes 
inserted 
using the \footnotemark command will refer to the most-recently inserted (via 
LyX commands) footnote.

   Not sure if that makes sense until you try it. In any case, if someone 
else has a response, I'd greatly love to know it!

 /**
"The four points of the compass be logic, knowledge, wisdom and the unknown. 
Some do bow in that final direction. Others advance upon it. To bow before the 
one is to lose sight of the three. I may submit to the unknown, but never to 
the 
unknowable." ~~Roger Zelazny, in "Lord of Light"
***/





From: Tim Wescott 
To: lyx-users@lists.lyx.org
Sent: Tue, November 23, 2010 4:04:47 PM
Subject: Multiple references to one footnote?

Is there a way to reference a footnote multiple times?  I.e., when you have 
multiple entries in a table, all needing the same note?

Thanks.

-- Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com


  

Re: Multiple references to one footnote?

2010-11-23 Thread Tim Wescott
Rob Oaks sent me an email to the effect that you can just put a regular 
old label in the footnote (it'll be named Flo:something-or-other).  Then 
you cross reference that -- by hand, because the cross-reference dialog 
box doesn't seem to pick up on the existence of the thing.  You'll need 
to superscript it by hand, but if you do it looks just fine, and you can 
have multiple references to the same note.


On 11/23/2010 03:29 PM, curtis osterhoudt wrote:

Hi, Tim,

   I recently had occasion to do this, in a table. I ended up using 
the ctable package. I think there are much more elegant/robust 
solutions out there, but this worked for me.



   1. In the preamble: \usepackage{ctable}
   2. Insert a table in lyx
   3. Before you make the table, insert a Box (minipage)
   4. Before the table (in the Box), place the latex command (in Evil
  Red Text): \renewcommand{\thefootnote}{\thempfootnote}
   5. Place your first footnote wherever it needs to go in the table
   6. At each successive footnote position, place some ERT which
  reads: \footnotemark[\value{mpfootnote}]

Unfortunately, I haven't taken the time to figure out what you need to 
do if you have to do something like

Stuff (footnote "a" here)
More stuff (footnote "b" here)
Yet more stuff (footnote "a" again here).

The way I describe in the 6 steps above means that all of the 
footnotes inserted using the \footnotemark command will refer to the 
most-recently inserted (via LyX commands) footnote.


   Not sure if that makes sense until you try it. In any case, if 
someone else has a response, I'd greatly love to know it!

/**
"The four points of the compass be logic, knowledge, wisdom and the 
unknown. Some do bow in that final direction. Others advance upon it. 
To bow before the one is to lose sight of the three. I may submit to 
the unknown, but never to the unknowable." ~~Roger Zelazny, in "Lord 
of Light"

***/



*From:* Tim Wescott 
*To:* lyx-users@lists.lyx.org
*Sent:* Tue, November 23, 2010 4:04:47 PM
*Subject:* Multiple references to one footnote?

Is there a way to reference a footnote multiple times?  I.e., when you 
have multiple entries in a table, all needing the same note?


Thanks.

-- Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com






--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: OT: LaTeX Help

2010-11-23 Thread Enrico Forestieri
Richard Heck writes:
> \raisebox{-0.5\baselineskip}{\ensuremath{\stackrel{\stackrel{{\textstyle 
> \gamma}}{{\textstyle \sim}}}{\delta}}}
> Ugly, to be sure, and I'm worried the -0.5 will go wrong in some cases.
> 
> Any other ideas?

If you are satisfied about how that looks and your only concern is about the
right amount by which to lower the whole thing, simply lower it by the right
amount:

\setbox0=\hbox{$\delta$}
\raisebox{-\ht0}{\ensuremath{\stackrel{\stackrel{{%
\textstyle\gamma}}{{\textstyle\sim}}}{\delta}}}

If you like something more customizable, say you want to easily adjust
vertical spaces and the likes, then you could use the following:

\newbox\mybox
\newdimen\boxwd
\setbox\mybox=\hbox{$\sim$}
\boxwd=\wd\mybox
\setbox\mybox=\hbox{\vbox{\hsize=\boxwd
\parskip=0pt\offinterlineskip\parindent0pt
\hbox to \boxwd {\hfil$\gamma$\hfil}
\vskip2pt
\hbox{$\sim$}
\vskip1pt
\hbox to \boxwd {\hfil$\delta$\hfil}
}}
\def\mysymbol{\raisebox{-0.4\ht\mybox}{\copy\mybox}}

After that, you get your strange looking symbol by the macro \mysymbol

-- 
Enrico



Re: Multiple references to one footnote?

2010-11-23 Thread Richard Heck

On 11/23/10 8:08 PM, Tim Wescott wrote:
Rob Oaks sent me an email to the effect that you can just put a 
regular old label in the footnote (it'll be named 
Flo:something-or-other).  Then you cross reference that -- by hand, 
because the cross-reference dialog box doesn't seem to pick up on the 
existence of the thing.  You'll need to superscript it by hand, but if 
you do it looks just fine, and you can have multiple references to the 
same note.


We should check if this bug is also in 2.0. I know I fixed a couple 
things like that. Some of the recursions don't seem to make it into 
table cells.


Richard