I want to add Feyn support to LyX, and I need some guidance

2009-12-05 Thread Ronen Abravanel
Feyn is a Feynman diagram package for latex. (Feynman diagrams: http://en.wikipedia.org/wiki/Feynman_diagram, Feyn: http://nxg.me.uk/dist/feyn/. Here is some examples: http://ctan.org/tex-archive/fonts/feyn/feyn.pdf) Basically, it's a font and several macros, that allow the user to type some r

Re: I want to add Feyn support to LyX, and I need some guidance

2009-12-05 Thread Ronen Abravanel
quot; -- Yo use instant preview instead of replacing fonts. But the "name-changed text inset" can not be too complicated, as it works just fine with "\renewcommand{\text}{\Feyn}" Aside of the fact it disable my "\text" inset.. On Sun, Dec 6, 2009 at 1:29 AM, Pavel San

Re: I want to add Feyn support to LyX, and I need some guidance

2009-12-08 Thread Ronen Abravanel
It would be, If I could insert ERT *inside* math mode, like $\frac{\sqrt{ }}{6} \\A lot more math,,$ I can put all my math as ERT. But I can also write all my document in plain LaTeX... On Tue, Dec 8, 2009 at 10:26 PM, Pavel Sanda wrote: > Ronen Abravanel wrote: > > One of the fun th

Re: I want to add Feyn support to LyX, and I need some guidance

2009-12-08 Thread Ronen Abravanel
One case: \feyn{fs f gl f glu f fs} I can't add spaces.. And they are important Other case: \Diagram{\vertexlabel^a \\ fd \\ & g\vertexlabel_{\mu,c} \\ \vertexlabel_b fu\\ } I can't add "\\" and "&" for an array-like environment. On Wed, Dec 9, 2009 at

Re: I want to add Feyn support to LyX, and I need some guidance

2009-12-09 Thread Ronen Abravanel
On Wed, Dec 9, 2009 at 1:13 AM, Pavel Sanda wrote: > Ronen Abravanel wrote: > > One case: > > \feyn{fs f gl f glu f fs} > > > > I can't add spaces.. And they are important > > argh.. and ctrl+space can't be used? is suppose no :( > in any case this

Re: English section names in a Hebrew article: TOC bug

2010-05-30 Thread Ronen Abravanel
On Sun, May 30, 2010 at 2:14 AM, Enrico Forestieri wrote: > On Sat, May 29, 2010 at 09:37:15PM +0300, Amir Rachum wrote: > > > This works, and I already use this sort of workaround (only with an empty > > math-mode). > > However, when I do this, it prints the section header (in the section > > it

Patch: Diagram inset

2010-09-18 Thread Ronen Abravanel
ment: http://www.technion.ac.il/~ronen/latex/lyx_quantum.pdf http://www.technion.ac.il/~ronen/latex/lyx_quantum.lyx The patch is based on 2.0 Alpha 6, and based mostly on copied code from XYMatrix inset. I will appreciate comments regarding the patch. Is it too late to include it in 2.0? Thanks, Ronen Abravanel

Re: Patch: Diagram inset

2010-09-18 Thread Ronen Abravanel
hed/MathAtom.h \ mathed/MathAutoCorrect.h \ mathed/MathData.h \ diff -rupN lyx-2.0.0alpha6/src/mathed/InsetMathDiagram.cpp lyx-2.0.0alpha6_feynFinal/src/mathed/InsetMathDiagram.cpp --- lyx-2.0.0alpha6/src/mathed/InsetMathDiagram.cpp 1969-12-31 19:00:00.0 -0500 +++ lyx-2.0.0alpha6_feynFinal

When preview is on

2010-09-18 Thread Ronen Abravanel
Currently, in Lyx 2.0, there are 3 modes for preview: * On -- Preview is working for math and preview-inset * No math -- * Off My 1st question is what the different between "no math" and Off? what else is previewed other than math and preview inset? My second concern is the reason this mail is on

Re: Patch: Diagram inset

2010-09-19 Thread Ronen Abravanel
On Sun, Sep 19, 2010 at 3:35 AM, Pavel Sanda wrote: > Ronen Abravanel wrote: > > Pavel -- Thanks. I removed big portion of the code that was not needed. > > good news > > > I can refactor both XYMatrix and Diagram class to have one common base > > class, but it wi

Re: When preview is on

2010-09-19 Thread Ronen Abravanel
It seems that that simple patch do the trick (Preview is rendered on Instant Preview -> On OR No math..) On Sun, Sep 19, 2010 at 3:48 AM, Pavel Sanda wrote: > Ronen Abravanel wrote: > > Currently, in Lyx 2.0, there are 3 modes for preview: > > * On -- Preview is working fo

Re: Patch: Diagram inset

2010-09-19 Thread Ronen Abravanel
On Sun, Sep 19, 2010 at 11:46 AM, Richard Heck wrote: > On 9/19/10 11:19 AM, Ronen Abravanel wrote: > >> >> +def revert_diagram(document): >> + i = 0 >> + re_diagram = re.compile(r'\\begin_inset Formula .*\\Diagram', >> re.DOTALL) >>

Re: When preview is on

2010-09-19 Thread Ronen Abravanel
Is there a good reason no to do that change? On Sun, Sep 19, 2010 at 4:09 PM, Pavel Sanda wrote: > Ronen Abravanel wrote: > > It seems that that simple patch do the trick (Preview is rendered on > Instant > > Preview -> On OR No math..) > > yes i was expecting it... > pavel >

Re: Patch: Diagram inset

2010-09-19 Thread Ronen Abravanel
I'll need a password for the wiki.. Thanks, Ronen. On Sun, Sep 19, 2010 at 6:46 PM, Pavel Sanda wrote: > Pavel Sanda wrote: > > Ronen Abravanel wrote: > > > > > (The only part changes now: The comment in Buffer.cpp) > > everything is in now. > most pro

LyX 2.0 crash when choosing a word from the spell-checker context menu

2010-10-11 Thread Ronen Abravanel
Hi, I'm using SVN version from recent days, but this problem also accord in older versions: Sometime, when I'm right-clicking misspelled word with wiggly-red-line beneath, and then choose the correct word from the context menu, LyX crash. The output in the console is: ro...@goon:~/dev/lyx/svn/ly

Re: LyX 2.0 crash when choosing a word from the spell-checker context menu

2010-10-11 Thread Ronen Abravanel
0x8c512c0) at GuiApplication.cpp:1921 #73 0x081fedf3 in lyx::LyX::exec (this=0xb3b8, ar...@0xb3e0, argv=0xb484) at LyX.cpp:383 #74 0x08076dd0 in main (argc=1, argv=0xb484) at main.cpp:43 On Mon, Oct 11, 2010 at 5:57 PM, Pavel Sanda wrote: > Ronen Abravanel wrote: > &g

Re: LyX 2.0 crash when choosing a word from the spell-checker context menu

2010-10-12 Thread Ronen Abravanel
ose some random word from the list. Crash almost every time. Any more details I can supply? Ronen. On Tue, Oct 12, 2010 at 1:09 AM, Stephan Witt wrote: > Am 12.10.2010 um 03:16 schrieb Ronen Abravanel: > > > Starting program: /home/ronen/dev/lyx/svn/lyx-devel/src/lyx > >

Re: LyX 2.0 crash when choosing a word from the spell-checker context menu

2010-10-12 Thread Ronen Abravanel
Awesome. Works for me perfectly. Thanks! On Tue, Oct 12, 2010 at 3:09 PM, Stephan Witt wrote: > Am 12.10.2010 um 19:00 schrieb John McCabe-Dansted: > > > On Tue, Oct 12, 2010 at 10:43 PM, Ronen Abravanel > wrote: > >> Any more details I can supply? > > No, I g

Bug in 2.0RC1? language changing change the language of already written text.

2011-03-08 Thread Ronen Abravanel
Hello, I started using LyX 2.0RC1, and by now, there is only one thing that bothers me: While I'm typing a document in one language, and then, when the cursor is right after the last word (with no space), I'm typing "language hebrew" in the minibuffer (or: using predefined shortcuts that commits

Re: Bug in 2.0RC1? language changing change the language of already written text.

2011-03-08 Thread Ronen Abravanel
עברית. -- here the closing parentheses is english Thanks, Ronen. On Tue, Mar 8, 2011 at 6:18 PM, Stephan Witt wrote: > Am 08.03.2011 um 16:51 schrieb Ronen Abravanel: > > > Hello, > > > > I started using LyX 2.0RC1, and by now, there is only one thing that > both

Re: Bug in 2.0RC1? language changing change the language of already written text.

2011-03-08 Thread Ronen Abravanel
Works grate for me... On Tue, Mar 8, 2011 at 10:54 PM, Stephan Witt wrote: > Am 08.03.2011 um 17:36 schrieb Ronen Abravanel: > > > My most common situation in which this is a problem is the following > > > > Hebrew text (English translation) more hebrew.. > &

Re: tutorials / slides for seminars or workshops (was: 'Re: LyX Promotion')

2011-03-22 Thread Ronen Abravanel
How long should it be? A year ago I had one hour workshop on LyX in my department, and I started with very short into on LaTeX and "in what scene LyX is different from word", and then about 40 minutes of demonstration of what can I do and how can I do that. If there is nothing better, I can transl

Re: tutorials / slides for seminars or workshops (was: 'Re: LyX Promotion')

2011-03-23 Thread Ronen Abravanel
On Tue, Mar 22, 2011 at 11:49 PM, Liviu Andronic wrote: > On Tue, Mar 22, 2011 at 10:23 PM, Ronen Abravanel > wrote: > > How long should it be? A year ago I had one hour workshop on LyX in my > > > I highly doubt that it would exceed an hour. > > > > departme

Re: tutorials / slides for seminars or workshops (was: 'Re: LyX Promotion')

2011-03-24 Thread Ronen Abravanel
Translated my stuff to english: http://technion.ac.il/~ronen/lyxlecture2/en/ probably there are some grammar problems. use freely. On Wed, Mar 23, 2011 at 8:51 PM, Liviu Andronic wrote: > On Wed, Mar 23, 2011 at 7:45 PM, Ronen Abravanel wrote: > >> > department, and I started

annoying behavior of Lyx 2.02+ -- Language toggle

2012-04-27 Thread Ronen Abravanel
/trac/changeset/39735/lyxsvn/lyx-devel/trunk/src/Text3.cpp But it it so simple, I can only assume that this behavior was deliberated. If so, please, reconsider. Thanks, Ronen Abravanel

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-04-27 Thread Ronen Abravanel
language hebrew; language english Which will switch the the "other" language. (if I understood correctly the manual, I assume one can check waht is the current language and then "if (*lang == *cur_lang) {enable = false; break;} " will do the work) On Fri, Apr 27, 2012 at 5:49

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-04-27 Thread Ronen Abravanel
And a patch that perform my suggestion is attachted. Ronen Abravanel On Fri, Apr 27, 2012 at 6:04 PM, Ronen Abravanel wrote: > It seems the change was done in order to fix: > > http://www.lyx.org/trac/ticket/7778 > > possible solution which will enbale to toggle languages a

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-04-27 Thread Ronen Abravanel
Even better! On Fri, Apr 27, 2012 at 8:10 PM, Stephan Witt wrote: > Am 27.04.2012 um 17:33 schrieb Ronen Abravanel: > > > And a patch that perform my suggestion is attachted. > > > > Ronen Abravanel > > > > > > > > On Fri, Apr 27, 2012 at 6:0

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-04-29 Thread Ronen Abravanel
Presumably, the "orginal" (prior to 2.02) behavior is a bug. But it's very usable bug. Specifically, all the "how to use LyX in Hebrew" manuals on the Internet (and there are many of these) use it, and will have to change. So, it will make sense to use the toggle-method, but it will annoy many pe

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-04-29 Thread Ronen Abravanel
This will also require many instructions/ definition change, but it will be simpler change. Ronen On Sun, Apr 29, 2012 at 6:02 PM, Jean-Marc Lasgouttes wrote: > Le 29/04/12 16:55, Ronen Abravanel a écrit : > > Presumably, the "orginal" (prior to 2.02) behavior is a bu

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-05-07 Thread Ronen Abravanel
If there are only few such commands, the 1st options seems best. If there are many, the last.. Ronen On Wed, May 2, 2012 at 11:58 AM, Jean-Marc Lasgouttes wrote: > Le 29/04/2012 14:13, Vincent van Ravesteijn a écrit : > > I think it is a bug. I would vote for disabling the LFUN when the >> lang

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-05-23 Thread Ronen Abravanel
So, which one of the suggestions should I implement? On Mon, May 7, 2012 at 1:39 PM, Ronen Abravanel wrote: > If there are only few such commands, the 1st options seems best. > If there are many, the last.. > > Ronen > > > On Wed, May 2, 2012 at 11:58 AM, Jean-Marc Lasgout

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-05-25 Thread Ronen Abravanel
;traditional" behavior and add the optional > argument "set" for internal API use. > This has to be used by the context menu code. > > Stephan > > Am 23.05.2012 um 20:59 schrieb Ronen Abravanel: > > > So, which one of the suggestions should I implement? > > &

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-05-26 Thread Ronen Abravanel
Patch for LyXAction.cpp attached. (i also added example for inserting graphics using inset-inset On Fri, May 25, 2012 at 3:42 PM, Jean-Marc Lasgouttes wrote: > Le 25/05/2012 13:21, Ronen Abravanel a écrit : > > I added an optional "set" argument to LFUN_LANGUAGE and fixed

Re: annoying behavior of Lyx 2.02+ -- Language toggle

2012-05-27 Thread Ronen Abravanel
BTW, can I get privileges to open track-tickets? (username: ronen) On Sat, May 26, 2012 at 5:24 PM, Ronen Abravanel wrote: > Patch for LyXAction.cpp attached. (i also added example for inserting > graphics using inset-inset > > > On Fri, May 25, 2012 at 3:42 PM, Jean-Marc Lasg

LyX, XeTeX, bidi and Hebrew

2012-07-12 Thread Ronen Abravanel
part is INSIDE עוד טקסט ( בחוץ this part is outside . בחוץ It all looks OK when rendering using pdflatex, but using XeTeX, it appears wrong. I couldn't find the part in LyX that handle that part. I will be happy for directions regarding where to look. Thanks, Ronen Abravanel remove_L.diff Description: Binary data

Re: LyX, XeTeX, bidi and Hebrew

2012-07-13 Thread Ronen Abravanel
On 2012-07-12, Ronen Abravanel wrote: > > > as the Hebrew support of LaTeX is not developed for the last several > > years, I decided to try and export Hebrew document to PDF using XeTeX, > > Are there problems that did not get solved for years, or is there no > develop

Re: LyX, XeTeX, bidi and Hebrew

2012-07-16 Thread Ronen Abravanel
These files produced directly by the GIT version of LyX. As you can see, the braces are the inverted in both the PDF and the TeX files. Ronen. On Fri, Jul 13, 2012 at 9:38 PM, Ronen Abravanel wrote: > 1. you are right. one can do that, and it would be a nice workaround. But > I pref

Re: LyX, XeTeX, bidi and Hebrew

2012-07-16 Thread Ronen Abravanel
Ronen Abravanel wrote: > These files produced directly by the GIT version of LyX. > As you can see, the braces are the inverted in both the PDF and the TeX > files. > > Ronen. > > > On Fri, Jul 13, 2012 at 9:38 PM, Ronen Abravanel wrote: > >> 1. you are right. one can do t

Re: LyX, XeTeX, bidi and Hebrew

2012-07-18 Thread Ronen Abravanel
On Wed, Jul 18, 2012 at 11:09 AM, Guenter Milde wrote: > On 2012-07-16, Ronen Abravanel wrote: > > > [-- Type: text/plain, Encoding: quoted-printable --] > > > These files produced directly by the GIT version of LyX. > > As you can see, the braces are the inverted

Re: LyX, XeTeX, bidi and Hebrew

2012-07-19 Thread Ronen Abravanel
On Thu, Jul 19, 2012 at 11:17 AM, Guenter Milde wrote: > On 2012-07-18, Ronen Abravanel wrote: > > On Wed, Jul 18, 2012 at 11:09 AM, Guenter Milde > wrote: > >> On 2012-07-16, Ronen Abravanel wrote: > > ... > > >> * What do you get if the example is writte

Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-30 Thread Ronen Abravanel
ter uses BufferParams, so it will be a long way to carry it. Ronen. On Sun, Jul 29, 2012 at 12:32 PM, Jürgen Spitzmüller wrote: > 2012/7/28 Ronen Abravanel : > > When I'm typing Hebrew, I want to open braces by typing Shift+0 and > close > > by Shift+9 > > When I&#x