Re: Jumping back from Pdf file to LyX (Latex) source?

2009-02-26 Thread Joao Luis Meloni Assirati
As far as I know, It is not possible to reverse search from a pdf file. You need to use the dvi, which supports marks known as dvi specials. I don't maintain my patches anymore. Best regards, João. On Tuesday 24 February 2009 15:54:01 Pavel Sanda wrote: > Stefano Franchi wrote: > > On Tuesday

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 18:33, Georg Baum escreveu: > I guess you meant: > > if output_file != resultfile and resultfile exists, then, before runing > the converter, move resultfile to resultfile.tmp, and after the converter > finishes, move back resultfile.tmp to resultfile. This is a generic > soluti

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 18:30, Georg Baum escreveu: > Am Donnerstag, 9. März 2006 10:06 schrieb João Luis Meloni Assirati: > > If the converter sees a .dvi in the tmpdir (that is, I previously > > exported to > > dvi), then a next .dvix generation (that is, a next preview) will si

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 06:06, João Luis Meloni Assirati escreveu: > Em Qui 09 Mar 2006 05:50, Georg Baum escreveu: > In your patch, a .dvix (I am not using this anymore, but lets > communicate like this) is made through the chain > > .tex -> .dvi -> .dvix. > > If the c

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 05:50, Georg Baum escreveu: > João Luis Meloni Assirati wrote: > > What happens when a format is a "child format"? Can you point me to the > > code that handles this? Please help me here. > > Look for isChildFormat() in graph.C and formats.C Tha

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Seg 06 Mar 2006 15:12, Georg Baum escreveu: > The format must end with a number so that it is recognized as a "child" > format (I don't like that magic, but it is implemented like that). I don't > see a problem to have "dvi2" also as extension. What happens when a format is a "child format"? Ca

Re: DVI search.

2006-03-07 Thread João Luis Meloni Assirati
Em Ter 07 Mar 2006 10:11, Georg Baum escreveu: > Angus Leeming wrote: > > Having "dvi2 as an extension" might be a problem on Windows because > > Windows uses the extension to determine the file type. Ie, clicking on > > foo.dvi will open up the .dvi file inside of YAP but clicking on foo.dvi2 > >

Re: DVI search.

2006-03-06 Thread João Luis Meloni Assirati
Hi Georg, Thank you for the constructive criticism and work on my patch. Em Sáb 04 Mar 2006 15:09, Georg Baum escreveu: > > I think that DVI search is a very useful feature and that it should go in > as soon as possible. It is great that you implemented it, and I am going > to use it in my tree f

Re: Problem in compilation of lyx 1.4.

2006-03-06 Thread João Luis Meloni Assirati
Em Seg 06 Mar 2006 07:08, Georg Baum escreveu: > This must be 1.5 with the updated boost. Include boost/cregex.hpp instead > of boost/regex.hpp in biblio.C, and everything should be fine. Indeed... I am getting 1.4 now with svn co svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X lyx-1.4.x >

Problem in compilation of lyx 1.4.

2006-03-06 Thread João Luis Meloni Assirati
Hello, Today I cannot compile lyx. These are my configurations: Using automake (GNU automake) 1.9.5 Using autoconf (GNU Autoconf) 2.59 Configuration Host type: i686-pc-linux-gnu Special build flags:compression aiksaurus assertions concept-checks warnings us

Removing TexRow [was Re: DVI search].

2006-03-03 Thread João Luis Meloni Assirati
Em Sex 03 Mar 2006 05:28, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Em Qui 02 Mar 2006 05:22, Lars Gullik Bjønnes escreveu: > | > This 'TexRow::' is actually a syntax error and will give warning/error > | > with gcc

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 18:40, Jose' Matos escreveu: Oi José! > On Thursday 02 March 2006 21:32, João Luis Meloni Assirati wrote: > > Olá João, :-) > (Oi seria melhor ? ;-) Está bem das duas maneiras. Gosto do modo português de falar, também :) (Lars, keep reading, please :) >

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 07:31, Angus Leeming escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > > > * if LyX were able to talk to xdvi through the lyxclient interface, > > > then we wouldn't have to keep creating a new xdvi process in "client&quo

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 05:22, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Index: src/texrow.h > | === > | --- src/texrow.h(revision 13280) > | +++ src/texr

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 05:19, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Index: src/LaTeX.C > | === > | --- src/LaTeX.C (revision 13280) > | +++ src/LaTe

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 12:57, Angus Leeming escreveu: > Some more questions, just to get my head around things: > > * xdvi is able to communicate with LyX through the lyxclient socket > interface, right? But LyX isn't able to talk to xdvi through this interface > yet. Correct? Correct. > > * if LyX w

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 10:01, Jean-Marc Lasgouttes escreveu: > >>>>> "João" == João Luis Meloni Assirati <[EMAIL PROTECTED]> > >>>>> writes: > > João> Hello, > > João> Now that lyx is very close to a release, I publish again in this

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 11:48, João Luis Meloni Assirati escreveu: > > That said, I can only perform another forward search (after I changed the > lyx view) if I do another view->dvi. Note that with the option > -sourceposition, xdvi will operate in "client mode" and

Fwd: Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Sorry, I didn't send the message to the list. João. -- Mensagem reenviada -- Subject: Re: DVI search. Date: Qua 01 Mar 2006 11:20 From: João Luis Meloni Assirati <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Em Qua 01 Mar 2006 10:03, Martin Vermeer escreveu: > On W

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 10:13, Angus Leeming escreveu: > Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > | João Luis Meloni Assirati ...> writes: > > | > Now that lyx is very close to a release, I publish again i

DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Hello, Now that lyx is very close to a release, I publish again in this list my dvi search patch. I intend to maintain this patch for all releases of the 1.4 series as long as it remain useful to me. I hope that it can be useful to others too, and that's why I am sending it to this list and wi

Re: William Leeming

2005-11-21 Thread João Luis Meloni Assirati
Congratulations to you and Emma, Angus! Little William looks a lot like you, has anyone said? João. Em Seg 21 Nov 2005 09:49, Angus Leeming escreveu: > Dear all, > > I'd like to announce the arrival of William who arrived on Tuesday 15 > November, weighing in at 3.55kg (7lb 12oz in old money.)

Re: Patch: dvi search, both direct and inverse.

2005-07-29 Thread assirati
I am back. João. > Dear developers, > > I will be off until august 1 with no access to computers. I'm posting an > updated patch containing both direct and inverse dvi search for 1.4, so > interested people can try and debug, and maybe some kind soul could also > apply it so I don't need to re-up

Patch: dvi search, both direct and inverse.

2005-07-23 Thread João Luis Meloni Assirati
Dear developers, I will be off until august 1 with no access to computers. I'm posting an updated patch containing both direct and inverse dvi search for 1.4, so interested people can try and debug, and maybe some kind soul could also apply it so I don't need to re-update it after one week, whe

Re: [Patch] DVI inverse search - final.

2005-07-20 Thread João Luis Meloni Assirati
Em Qua 20 Jul 2005 14:44, Angus Leeming escreveu: > João, when you come to document your stuff, could I get you to add a little > taster to http://wiki.lyx.org/LyX/NewInLyX14 too? I already saw this page and I will add dvi search to it. Angus, you are amazing. Where do you get the strength? I do

Re: [Patch] DVI inverse search - final.

2005-07-20 Thread João Luis Meloni Assirati
Em Seg 18 Jul 2005 12:19, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Em Sex 15 Jul 2005 05:20, Lars Gullik Bjønnes escreveu: > >> I am thinking about this patch, and if it can be done in a "simpler" > &g

Pre1: problem with scroll inside math.

2005-07-18 Thread João Luis Meloni Assirati
Em Seg 18 Jul 2005 13:21, Lars Gullik Bjønnes escreveu: > So please try out pre1 and report any and all problems you find. There is a problem with scroll. Open the attached lyx file math-scroll.lyx and position the cursor by the side of the fraction. The use the scroll bar to position the math i

Re: pre1

2005-07-18 Thread João Luis Meloni Assirati
Em Seg 18 Jul 2005 13:21, Lars Gullik Bjønnes escreveu: > I have just put the 1.4.0pre1 on the devel ftp site. > > After we have beat on this a bit and fixed problems discovered I will > release pre2 and announce that to a larger audience. > > So please try out pre1 and report any and all problems

Pre1: crash with cursor inside math

2005-07-18 Thread João Luis Meloni Assirati
with File->Open->file.lyx->OK. Choose "Switch to document": crash. Below is a backtrace: João. (gdb) run Starting program: /work/assirati/lyx/pre/lyx-1.4.0pre1/src/lyx-qt [Thread debugging using libthread_db enabled] [New Thread -1219833728 (LWP 18280)] Language code:pt_BR Setting

Re: [Patch] DVI inverse search - final.

2005-07-18 Thread João Luis Meloni Assirati
Em Seg 18 Jul 2005 12:19, Lars Gullik Bjønnes escreveu: > > I will look it over and see if we can apply it between pre1 and pre2. I have another patch for forward dvi search that depends on source specials dvi generation. I hope it is still time for it... > > I'll even do some testing... > Than

Re: [Patch] DVI inverse search - final.

2005-07-18 Thread João Luis Meloni Assirati
Em Sex 15 Jul 2005 05:20, Lars Gullik Bjønnes escreveu: > > I am thinking about this patch, and if it can be done in a "simpler" > way. Let me think some more hours... Lars, did you decide about the patch? João.

Re: [Patch] DVI inverse search - final.

2005-07-15 Thread João Luis Meloni Assirati
Em Sex 15 Jul 2005 05:36, Angus Leeming escreveu: > Lars Gullik Bjønnes wrote: > > | João Luis Meloni Assirati wrote: > > | > >>> I also have dvi direct search (that is, when view dvi is called, xdvi > >>> or kdvi appear at the page that contains the text i

Re: [Patch] DVI inverse search - final.

2005-07-14 Thread João Luis Meloni Assirati
Addendum With my patches, inverse search with xdvi will work automatically once lyx is reconfigured. To use it, click on xdvi with the left mouse button while pressing control. To configure kdvi, execute it, then goto Settings->DVI Options->DVI Specials, select "User-Defined Editor" and put

Re: [Patch] DVI inverse search - final.

2005-07-12 Thread João Luis Meloni Assirati
Em Dom 10 Jul 2005 07:35, João Luis Meloni Assirati escreveu: > Hi, > > I'm sorry for the delay. Here are the final patches for DVI inverse search > for lyx 1.4. New versions of the patches. The last ones dont generate the correct .dvi file when LFUN_UPDATE is called.

Re: Bug in tex2lyx.

2005-07-11 Thread João Luis Meloni Assirati
Em Seg 11 Jul 2005 13:01, Georg Baum escreveu: > João Luis Meloni Assirati wrote: > > I still think that this is impossible since unless the lyx format had a > > special syntax for unknown environments. > > I still don't think that it is impossible. Proof attached ;-)

Re: Bug in tex2lyx.

2005-07-11 Thread João Luis Meloni Assirati
Georg, Em Seg 11 Jul 2005 10:37, Georg Baum escreveu: > > Em Seg 11 Jul 2005 10:09, João Luis Meloni Assirati escreveu: > >> IMHO, the only way to solve this problem is to parse the entire contents > >> between \begin{unknown} and \end{unknown} as ERT. > > No. Jean-M

Re: Bug in tex2lyx.

2005-07-11 Thread João Luis Meloni Assirati
Em Seg 11 Jul 2005 10:09, João Luis Meloni Assirati escreveu: > IMHO, the only way to solve this problem is to parse the entire contents > between \begin{unknown} and \end{unknown} as ERT. That would be ERT(\begin{unknown}) ERT(\large some text) ERT(\end{unknown}) or even better ERT(

Bug in tex2lyx.

2005-07-11 Thread João Luis Meloni Assirati
Hello, The following latex fragment: \begin{titlepage} \large some text \end{titlepage} will produce a bad lyx file (it can be any other unknown environment, not necessarily titlepage). The corresponding lyx file will be interpreted by lyx (1.3 as well as 1.4) as: ERT(\begin{titlepage}) ( \l

[Patch] DVI inverse search - final.

2005-07-10 Thread João Luis Meloni Assirati
/lyx-devel/src/ChangeLog,v retrieving revision 1.2213 diff -u -r1.2213 ChangeLog --- src/ChangeLog 2005/07/07 10:51:55 1.2213 +++ src/ChangeLog 2005/07/10 09:46:21 @@ -1,3 +1,18 @@ +2005-07-10 Joao Luis Meloni Assirati <[EMAIL PROTECTED]> + + * exporter.{C.h} (Export): + * converter.{C,h} (conver

Re: Graphics files with spaces again!

2005-07-08 Thread João Luis Meloni Assirati
Georg, Em Sex 08 Jul 2005 12:11, Georg Baum escreveu: > Angus Leeming wrote: > > Ok, the problem is that ChangeExtension calls os::internal_path > > internally, so the \ characters here are converted to / ones: > > path = ChangeExtension("\\string\"" + base + "\\string\"", ext); > > Attached

Re: Towards LyX 1.3.6 [status update #2]

2005-07-01 Thread João Luis Meloni Assirati
Em Sex 01 Jul 2005 06:50, Jean-Marc Lasgouttes escreveu: > Let's try to give a bit of acceleration to the 1.3.6 release > process... I think everything is in place now. > > I plan to merge the skipSpaces patch from João, as soon as I get my > compile chain working again after an upgrade. Thanks, J

[Patch] for 1.3.6 and 1.4: add boldsymbol to math panel.

2005-06-27 Thread João Luis Meloni Assirati
-devel/src/frontends/qt2/ChangeLog,v retrieving revision 1.389.2.75 diff -u -r1.389.2.75 ChangeLog --- src/frontends/qt2/ChangeLog 2005/06/16 15:53:18 1.389.2.75 +++ src/frontends/qt2/ChangeLog 2005/06/27 10:15:07 @@ -1,3 +1,7 @@ +2005-06-16 Joao Luis Meloni Assirati <[EMAIL PROTEC

[Patch] mathed 1.3.6cvs

2005-06-24 Thread João Luis Meloni Assirati
Hi again, A quick comparison of 1.3.x and 1.4 sources suggested the attached patch to the problem. It seems to work well. Joao Luis. Em Sex 24 Jun 2005 16:39, João Luis Meloni Assirati escreveu: > Hi! > > I just realized that this is a problem with mathed in lyx 1.3.4, not > tex2ly

Re: tex2lyx bug.

2005-06-24 Thread João Luis Meloni Assirati
Hi! I just realized that this is a problem with mathed in lyx 1.3.4, not tex2lyx... Lyx 1.4 does not have this problem. João Luis. Em Sex 24 Jun 2005 16:20, João Luis Meloni Assirati escreveu: > Hello! > > First let me say that although I'm quite silent lately I'm followin

tex2lyx bug.

2005-06-24 Thread João Luis Meloni Assirati
Hello! First let me say that although I'm quite silent lately I'm following the discussions going on lyx-devel. I am using the latest tex2lyx + lyx2lyx to import latex to lyx 1.3.4 and must say that it is far superior to reLyX. Thanks to Andre, Georg and the others that contributed to it! I ho

Re: The LyX licence

2005-02-23 Thread João Luis Meloni Assirati
Public Licence, version 2 or later. JoÃo Luis Meloni Assirati

Re: [patch] LyXSocket cleanup

2004-07-19 Thread Joao Luis Meloni Assirati
Lars wrote: > | Index: lyxsocket.C > | - fd_(lyx::support::socktools::listen(addr, MAX_CLIENTS)), > | + fd_(lyx::support::socktools::listen(addr, 3)), > The use of MAX_CLIENTS here is not doing what the original author > thinks it does. The backlog parameter is just how many _o

Re: inverse dvi search and source specials

2004-07-19 Thread Joao Luis Meloni Assirati
Em Seg 19 Jul 2004 19:11, você escreveu: > Lars wrote: > > How are the source specials generated for the dvi generated from LyX? > > I cannot find any -src-specials arg to dvi that we use? > > They are generated by latex with the switch --src-specials (you need to > change by hand the converter Lat

Re: inverse dvi search and source specials

2004-07-19 Thread Joao Luis Meloni Assirati
Lars wrote: > How are the source specials generated for the dvi generated from LyX? > I cannot find any -src-specials arg to dvi that we use? They are generated by latex with the switch --src-specials (you need to change by hand the converter Latex->DVI). With this option, latex will insert a s

Compilation failure

2004-07-05 Thread Joao Luis Meloni Assirati
Hello, I cannot compile the latest lyx 1.4 source. My configuration flags are ./configure \ --with-frontend=qt \ --with-qt-includes=/usr/include/qt3/ \ --with-qt-libraries=/usr/lib/qt3/ \ --with-qt-dir=/usr/share/qt3/ \ --with-version-suffix=-1.4cvs \

Re: Compilation error

2004-01-26 Thread Joao Luis Meloni Assirati
On Mon, 26 Jan 2004, Angus Leeming wrote: > Instead modify autogen.sh, so, and tell us whether > autoconf 2.59 is happy with the configuration files. Works for me. > > By the way, I have the following error in the end: > > > > make[3]: Entering directory `/home/as

Re: Compilation error

2004-01-26 Thread Joao Luis Meloni Assirati
On Mon, 26 Jan 2004, Lars Gullik Bjønnes wrote: > rerun configure and automake perhaps... Yes, that was the problem. My autoconf was 2.59. Now I downgrade to 2.53 and it works. By the way, I have the following error in the end: make[3]: Entering directory `/home/assirati/lyx/lyx-devel/

Compilation error

2004-01-26 Thread Joao Luis Meloni Assirati
using gcc 3.3.2: g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -I/usr/X11R6/include -O -fno-exceptions -W -Wall -MT formulabase.lo -MD -MP -MF .deps/formulabase.Tpo -c formulabase.C formulabase.C:303:2: warning: #warning FIXME formulabase.C:789:2: warning: #warning pretty ugly for

Re: new release

2004-01-19 Thread Joao Luis Meloni Assirati
On Mon, 19 Jan 2004, Andre Poenitz wrote: > The piece dubbed "Bruno" was released to the public yesterday. Congratulations to you and your wife, Andre'! Best wishes for you three! Joao.

Re: QT configuration failure.

2003-11-10 Thread Joao Luis Meloni Assirati
On Mon, 10 Nov 2003, Lars Gullik Bjønnes wrote: > Joao Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > > | Qt Frontend: > | Qt version: > | XForms Frontend: > | libXpm version: 4.11 > | libforms version: 1.0.0 > | LyX bi

QT configuration failure.

2003-11-10 Thread Joao Luis Meloni Assirati
Hello, I cannot configure lyx-qt today: ./configure --with-frontend="qt xforms" --with-qt-includes=/usr/include/qt3/ --with-qt-libraries=/usr/lib/qt3/ --with-qt-dir=/usr/share/qt3/ --with-version-suffix=-devel ends up with: Configuration Host type: i686-pc-linux-gnu Sp

Re: lyxclient/IS suggestion

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Alfredo Braunstein wrote: > - why is that on EOF the communication aborts with errors? Can't we make > lyxclient terminate the connection and exit gracefully as with BYE:? Sure, this is a bug. Lyxclient must detect EOF in stdin before trying to read it. It cen be done using l

Re: The cvs tree structure

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Angus Leeming wrote: > We're starting to create a number of executables rather than just > 'lyx'. I wonder if the directory structure should reflect this? > > I'm imagining $TOPDIR/src, $TOPDIR/tex2lyx and $TOPDIR/lyxclient. Another thing that bothers me is the duplication o

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Angus Leeming wrote: > > Besides, if the lfun changes > > (in name or syntax) some day, we have only to change lyxclient, and > > not user configuration. > > I have been mulling over a lyxcommand2lyxcommand type utility... lyxclient -c `lyxcommand2lyxcommand 'server-goto-fil

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Angus Leeming wrote: > http://www.devel.lyx.org/~leeming/lyxclient.man Excellent! Not only the english, but also the ideas are clearer. Thank you, Angus. João.

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Angus Leeming wrote: > Is the -g option really needed? It seems very xdvi-centric to me. Why > not use -c 'server-goto-file-row file row'? That is, lyxclient -c 'server-goto-file-row %f %l' instead of lyxclient -g %f %l I was thinking on users convenience. They have for e

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Alfredo Braunstein wrote: > (btw: why is that socket_callback.[Ch] have to be MOC-ified? I've tried to > move them from Makefile.dialogs to Makefile.am but with no sucess. I put it in Makefile.dialogs because io_callback.[Ch] are also there. > I must > admit that I understa

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Alfredo Braunstein wrote: > Joao Luis Meloni Assirati wrote: > > > * export-socket.diff: export variables EDITOR and LYXSOCKET when the > > socket is created. Since there is no need of passing the socket address > > through $$a, it is removed from for

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Joao Luis Meloni Assirati wrote: > > If this is the case, send the missing code and please patch also the > > ChangeLog ;-) Here is the patch for the ChangeLog. Did you get the patch for lyx_gui.C? João. Index: src/frontends/q

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Alfredo Braunstein wrote: > Joao Luis Meloni Assirati wrote: > > I still cannot get it to work under qt. > > > * socket-qt.diff: bring lyxsocket to qt. > > Isn't some code for frontend/qt2/lyx_gui.C missing here (set_socket_callback > and fr

[Alfredo!!] missing patch.

2003-11-05 Thread Joao Luis Meloni Assirati
Sorry! Those parts were missing. Thanks, João. Index: src/frontends/qt2/lyx_gui.C === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/lyx_gui.C,v retrieving revision 1.58 diff -u -r1.58 lyx_gui.C --- src/frontends/qt2/lyx_gui.C 2003/

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > * lyxclient.man: manual page for lyxclient. I again ask some native > > english speaker to revise it, please. > > João, I couldn't see the man page stuff. Did you forget to attach it? I h

Re: dvi inverse search stuff

2003-11-05 Thread Joao Luis Meloni Assirati
On Wed, 5 Nov 2003, Alfredo Braunstein wrote: > Joao Luis Meloni Assirati wrote: > > > * putenv.diff: allocate space for the exported string and store the > > pointers in a static map<>. Pointers are deleted when a variable is > > overwritten, so the function doesn&

Re: dvi inverse search stuff

2003-11-04 Thread Joao Luis Meloni Assirati
g revision 1.228 diff -u -r1.228 ChangeLog --- src/support/ChangeLog 2003/11/03 17:47:28 1.228 +++ src/support/ChangeLog 2003/11/05 06:08:40 @@ -1,3 +1,10 @@ +2003-11-05 João Luis M. Assirati <[EMAIL PROTECTED]> + + * putenv.C: allocate the string before putting it into the + environment. + +

Re: dvi inverse search stuff

2003-11-03 Thread Joao Luis Meloni Assirati
On Tue, 28 Oct 2003, Alfredo Braunstein wrote: > João, it would be asking too much to repost an updated version of all your > pending patches? I will do this tomorrow. > I'll apply non-controversial ones and ask for advice on the rest. > > Thanks (and sorry for the delay), Alfredo I'm sorry f

Re: dvi search

2003-10-21 Thread Joao Luis Meloni Assirati
On Tue, 21 Oct 2003, Andre Poenitz wrote: > > Why don't you let xdvi do it's job instead > > of trying manually? > > Because it does not work, i.e. the cursor does not move. No error > message whatsoever. As xdvi does work with EDITOR=vi I figured it might > be a problem with teh lyxclient <-> Ly

Re: dvi search

2003-10-21 Thread Joao Luis Meloni Assirati
Hello, On Tue, 21 Oct 2003, Andre Poenitz wrote: > How do I start lyxclient manually if I want to go to a certain line? > > lyxclient -g newfile16.lyx 13 > > brings up a 'document is already loaded, want to switch' dialog. -g is an alias to LFUN_GOTOFILEROW. My inverse search patch just extend

Re: [PATCH] Inverse search update.

2003-10-16 Thread Joao Luis Meloni Assirati
On Thu, 16 Oct 2003, Alfredo Braunstein wrote: > Joao Luis Meloni Assirati wrote: > > I think that the frontends should have a dialog with a tri-state > > (radio) button as this: > > > > Inverse DVI search: > > [ ] Disable > > [ ] Latex option [ --src-

Re: [PATCH] Inverse search update.

2003-10-15 Thread Joao Luis Meloni Assirati
g --- src/frontends/qt2/ChangeLog 2003/10/14 21:30:20 1.599 +++ src/frontends/qt2/ChangeLog 2003/10/15 21:33:41 @@ -1,3 +1,11 @@ +2003-10-15 João Luis Meloni Assirati <[EMAIL PROTECTED]> + + * {set,remove}_{server,data}socket_callback(): Working functions + + * socket_callback.[Ch]: new file

[PATCH] Inverse search update.

2003-10-14 Thread Joao Luis Meloni Assirati
Hello all, These patches implement the idea of seting the socket address using environment variables. putenv.diff is a necessary patch to putenv. Environment variables must be allocated. export-socket.diff makes LyXSocketServer export the variables XEDITOR (for xdvi) and LYXSOCKET (for lyxclien

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Joao Luis Meloni Assirati wrote: > Wait... No need to pass the socket name to kdvi. I got it now :). If kdvi > doesn't touch an environment variable named LYXSOCKET, the lyxclient > could read it. Then there is no need to any wrapper. I confirm that kdvi does

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Alfredo Braunstein wrote: > Joao Luis Meloni Assirati wrote: > > > That is right. Kdvi doesn't set the editor with with the command line nor > > environment variables. There is no way to tell about a dynamic EDITOR > > string to kdvi... That is

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > No, Angus, this is because no one is seting the "variable" $$a. Lyx > > sets it before passing the string 'xdvi -editor lyxclient -a $$a -g > > %f %l' to a shell. > &g

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > If lyx could set environment variables, we still could use -a in > > lyxclient. > > It can: > $ grep putenv lyx/devel/src/support/*.h > lyx/devel/src/support/lyxlib.h:int putenv(char cons

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > I had to set the editor in kdvi as > $HOME/bin/lyxclient -a /tmp/lyx_tmpdir5520D1o7pn/lyxsocket -g %f %l > > Ie, I had to set the location of the socket explicitly. Setting it as > $HOME/bin/lyxclient -a $$a -g %f %l > did not work. Presumably this is

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > Alfredo Braunstein wrote: > > On rh9's tetex there's a source latex package > > > > $ kpsewhich srcltx.sty > > /usr/share/texmf/tex/latex/srcltx/srcltx.sty > > > > that does the equivalent. Can we use that? > > Sure. Great news. > However, my version

Re: [PATCH] A local socket lyxserver.

2003-10-13 Thread Joao Luis Meloni Assirati
14 00:16:47 @@ -1,3 +1,7 @@ +2003-10-13 João Luis Meloni Assirati <[EMAIL PROTECTED]> + + * socktools.[Ch]: New files. Wrapper around socket system calls. + 2003-10-08 Angus Leeming <[EMAIL PROTECTED]> * copied_ptr.h: get rid of the swap member function.

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Joao Luis Meloni Assirati
ngelog ;). Regards, João. Index: src/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v retrieving revision 1.1623 diff -u -r1.1623 ChangeLog --- src/ChangeLog 2003/10/13 12:25:09 1.1623 +++ src/ChangeLog 2003/10/13 23:02:07 @@ -1,5 +1,14 @@

Re: Latest CVS compile error

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Kayvan A. Sylvan wrote: > On Solaris: > > g++ -DHAVE_CONFIG_H -I. -I../../../lyx/src/support -I../../src > -I../../../lyx/src/support/../ -I../../../lyx/boost -I/u/ksylvan/include > -I/usr/openwin/include -O2 -fno-exceptions -W -Wall -MT socktools.lo -MD -MP -MF > .deps/s

Re: [PATCH] A local socket lyxserver.

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Joao Luis Meloni Assirati wrote: > Or simply > > ./lyxclient 'LYXCMD:file-open /home/angus/docs/transform_v2.lyx' > > if you have only one lyx runing, as the client will search for a running > lyx. Ooops... I mean ./lyxclient -c 'file-o

Re: [PATCH] A local socket lyxserver.

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Lars Gullik Bjønnes wrote: > | It relies only in permission bits. That is, it tries all lyx_tmpdir..., > | and stays with the first it can connect. Of course it cannot connet to a > | socket that is under a closed directory. The socket itself is created > | closed for other

Re: [PATCH] A local socket lyxserver.

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Lars Gullik Bjønnes wrote: > Is the check clever enough? What about multiuser boxes? It relies only in permission bits. That is, it tries all lyx_tmpdir..., and stays with the first it can connect. Of course it cannot connet to a socket that is under a closed directory. The

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > > See the last email in the thread on the lyxsocket. I have arguments > > in favour of my choice, but if people thint that it must change, > > I'll do it. > > No, I think your po

Re: [PATCH] A local socket lyxserver.

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Angus Leeming wrote: > Pass commands to lyx: > ./lyxclient -a /tmp/lyx_tmpdir222460OMx2d/lyxsocket -c > 'LYXCMD:file-open /home/angus/docs/transform_v2.lyx' Or simply ./lyxclient 'LYXCMD:file-open /home/angus/docs/transform_v2.lyx' if you have only one lyx runing, as the

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Joao Luis Meloni Assirati
Hello Angus! On Mon, 13 Oct 2003, Angus Leeming wrote: > João, I am not going to commit this patch as it stands. > I think that you should think about Lars' suggestion to place the > socket files in ~/.lyx/socket.#pid. Doing so would mean you changing > getBufferFromTmp to getBufferFromPID or si

Re: [PATCH] A local socket lyxserver.

2003-10-13 Thread Joao Luis Meloni Assirati
Hello, It is good to hear about my patch... On Mon, 13 Oct 2003, Lars Gullik Bjønnes wrote: > | Run lyx-xforms (the patch will be in cvs in 5 mins). You'll find a > | special file, eg /tmp/lyx_tmpdir222460OMx2d/lyxsocket > > Is this a good place to put the file? > It should be placed in .lyx an

Compilation question

2003-10-12 Thread Joao Luis Meloni Assirati
Hello What is the best way to compile both lyx-qt and lyx-xforms in the latest development version? Is there a way to do this without reconfiguring the source code? Regards, João.

Re: [PATCH] A local socket lyxserver.

2003-10-08 Thread Joao Luis Meloni Assirati
On Wed, 8 Oct 2003, Angus Leeming wrote: > Of course, there are lots of small coding points, It is not a surprise :). If there is a chance of my patch being accepted, I would be glad to correct them. Note also that lyxclient.C is still sort of preliminary. My concern was mainly the patch. > So

[PATCH] Inverse DVI search

2003-10-07 Thread Joao Luis Meloni Assirati
Hello again, This patch implements Inverse DVI search for lyx. It needs my previous patch for the socket lyxserver. To use it, define xdvi -editor 'lyxclient -a $$s -g %f %l' as the viewer for the DVI format and latex --src-specials as the latex->DVI converter. As with the previous, I wi

[PATCH] A local socket lyxserver.

2003-10-07 Thread Joao Luis Meloni Assirati
ument processor. * Licence details can be found in the file COPYING. * * \author João Luis M. Assirati * * Full author contact details are available in file CREDITS. */ #include #include #include #include // getpid(), getppid() #include #include // select() #include // opendir(), clos

Re: tex2lyx bug and ERT discussion.

2003-09-05 Thread Joao Luis Meloni Assirati
Hello, Jean-Marc On Thu, 4 Sep 2003, Jean-Marc Lasgouttes wrote: > >>>>> "Joao" == Joao Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > > Joao> Therefore, I suggest that when '\command{blah blah}' is unknown > Joao> to tex2lyx, it be

Re: tex2lyx bug and ERT discussion.

2003-08-27 Thread Joao Luis Meloni Assirati
On Wed, 27 Aug 2003, Alfredo Braunstein wrote: > Welcome back! Gracias, Alfredo. > I will bug you back: what happened with the dvi forward search patch? I was kind of busy lately but will resume my hacking with lyx now. Regards, João Luis.

tex2lyx bug and ERT discussion.

2003-08-27 Thread Joao Luis Meloni Assirati
Hey guys, I am back again to bug you. Bug 1: the following latex fragment [...] \usepackage{epsfig} [...] \begin{figure} \epsfig{file=fig_1.eps} \end{figure} when translated with tex2lyx, gives a 'catcode [_,8] illegal in text mode' and the relevant translated code is 'file=fig1.eps', i.e. the

Re: Lyxpipes or I want PutEnv() back!

2003-03-25 Thread Joao Luis Meloni Assirati
On 25 Mar 2003, Lars Gullik Bjønnes wrote: > I wan thinking of an idea where the LyXServer only was able to talk > with sockets. And then have a LyXPipeProxy that creates pipes and > communicates with this socket. The interface to the socket could be done entirely by lyxclient, which could send

Re: Lyxpipes or I want PutEnv() back!

2003-03-25 Thread Joao Luis Meloni Assirati
On Tue, 25 Mar 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > Okay, but it helps if the client was spawned by lyx, which case will be > > the most frequent. > > If the client was spawned by lyx then named pipes are not needed at all. See > the cod

  1   2   3   >