Thank you for the great development tool. I intend to use it for composing LaTeX files. Please let me know how to implement forward and inverse search in dvi-files using "source specials" on the basis of geany.
Thank you.
Kybernetiker
On Thu, 04 Sep 2008 21:07:27 +0300, Kybernetiker kybernetiker@gmail.com wrote:
Hi,
Thank you for the great development tool. I intend to use it for composing LaTeX files. Please let me know how to implement forward and inverse search in dvi-files using "source specials" on the basis
Forward and reverse search should work out of the box, check the 'Find' menu. But you can't open/edit DVI files with Geany as these are binary files and Geany is a text editor. You probably want to open and edit LaTeX files (*.tex) which are compiled into DVI files.
What do you mean by "source specials"?
Regards, Enrico
Thanks for the prompt response. Under source special I mean that if you invoke the latex compiler with the --src-specials option, each component of the generated dvi file is tagged with the source filename and the line number. This allows editor-to-previewer jumps. The forward jump is editor-to-previewer: given the current cursor location in the editor, jump to the corresponding paragraph in the previewer. The backward jump (inverse search) is symmetrical. This convenient feature can be realized in many editors, e.g. Kile, TeXnicCenter. But I'm looking for a Gnome based LaTeX front-end and Geany seems to suit me best.
Thank you.
Kybernetiker
Enrico Tröger wrote:
On Thu, 04 Sep 2008 21:07:27 +0300, Kybernetiker kybernetiker@gmail.com wrote:
Hi,
Thank you for the great development tool. I intend to use it for composing LaTeX files. Please let me know how to implement forward and inverse search in dvi-files using "source specials" on the basis
Forward and reverse search should work out of the box, check the 'Find' menu. But you can't open/edit DVI files with Geany as these are binary files and Geany is a text editor. You probably want to open and edit LaTeX files (*.tex) which are compiled into DVI files.
What do you mean by "source specials"?
Regards, Enrico
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 04 Sep 2008 22:24:20 +0300, Kybernetiker kybernetiker@gmail.com wrote:
Thanks for the prompt response. Under source special I mean that if you invoke the latex compiler with the --src-specials option, each component of the generated dvi file is tagged with the source filename and the line number. This allows editor-to-previewer jumps. The forward jump is editor-to-previewer: given the current cursor location in the editor, jump to the corresponding paragraph in the previewer. The backward jump (inverse search) is symmetrical. This convenient feature can be realized in many editors, e.g. Kile,
Ok, I'm sorry, I got you totally wrong. The editor-to-previewer jump is currently not possible with Geany, but of course from the previewer back to the editor should work, Geany accepts line numbers (and columns) for files on the command line. E.g. geany --line 32 /path/to/my/file.tex or geany /path/to/my/file.tex:32
both should open file.tex and place the cursor on line 32. If the file was already open, the cursor is just placed on line 32. Additionally, you can pass the option "--column" on the command line. See the manual page and/or the manual for details.
As I said above, the editor-to-previewer jump isn't possible with Geany currently but this is an easy task for a new plugin, IMO. You just need to find someone who wants to write it :). Or maybe we could re-use the context action command for this and provide an additional place holder for the current position (line, column, absolute position???).
Regards, Enrico