Commit Graph

426 Commits

Author SHA1 Message Date
Julien Rioux
10868c31ac Merge the preview mechanism for lilypond-book with the standard one.
- Handle the preprocessing in the main lyxpreview script with the
    command-line arguments --lilypond and --lilypond-book=exe.
  - Remove the obsoleted file lyxpreview-lytex2bitmap.py and the
    corresponding lines in configure.py.

Fix for the japanese preview still to come.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39658 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:22:59 +00:00
Julien Rioux
2bd747fad4 Add command-line arguments to lyxpreview2bitmap.py
Add command-line arguments in a standard unix fashion, using getopt.

    Usage: ./lyxpreview2bitmap.py <options> <input file>

    Options:
      -h, --help:    Show this help screen and exit
      --dpi=<res>:   Resolution per inch (default: 128)
      --png, --ppm:  Select the output format (default: png)
      --fg=<color>:  Foreground color (default: black, ie '000000')
      --bg=<color>:  Background color (default: white, ie 'ffffff')
      --latex=<exe>: Specify the executable for latex (default: latex)

    The colors are hexadecimal strings, eg 'faf0e6'.

The changes to PreviewLoader.cpp break the preview of lilypond-book
and japanese files, but they will be handled in the next commits.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39657 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:22:43 +00:00
Julien Rioux
9571f12801 * configure.py : Fixup r39643, srcdir is a string containing the basepath to configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39645 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-08 12:11:16 +00:00
Julien Rioux
5891c139da * configure.py : Fix the detection of tex2lyx when running in-place (#6986).
Remove the hack with os.environ and instead directly search for
../src/tex2lyx/tex2lyx relative to where configure.py is found.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39643 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:59:23 +00:00
Julien Rioux
deb9736929 * configure.py : Fix the rc entry when tex2lyx is not found (#3308).
We still define the tex2lyx converter but we emit a warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39642 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:59:14 +00:00
Julien Rioux
ba17c0315e * configure.py : Fix the gnumeric converters.
They were tied to undefined formats ods and xls. The actual
    internal names for these formats are oocalc and excel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39641 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:57:07 +00:00
Julien Rioux
e1b4e5edaa * configure.py : Remove unnecessary code in xhtml viewer detection.
This code seems unnecessary since not_found = "auto" is set in
    checkViewer, and thus "auto" is used as the viewer when no viewers
    are found, and a lyxrc entry is added anyway. The "auto" string is
    special-cased in the code, where we attempt to automatically
    determine the viewer from the OS.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39640 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:56:59 +00:00
Julien Rioux
89cb89c78c * configure.py : Fix the detection of splitindex (#7579)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39639 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:56:47 +00:00
Julien Rioux
e887f51468 * configure.py : Fix the detection of htmltolatex (#6339)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39638 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:56:38 +00:00
Julien Rioux
d75b83e293 * configure.py : Check for java and perl interpreters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39637 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 23:56:28 +00:00
Enrico Forestieri
2ed034ea22 Fix bug #7586 (Temporary file chkconfig.ltx in user directory not deleted if configure fails)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39562 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 16:44:29 +00:00
Enrico Forestieri
8e812f44af Avoid code duplication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39561 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 16:23:58 +00:00
Enrico Forestieri
1126e3dfd8 Fix bug #7718 (Configure fails if shell autorun commands are enabled in the registry)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39554 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 22:57:58 +00:00
Enrico Forestieri
3d82ff41ec Close stdin of the command spawn by subprocess.Popen, otherwise the
command hangs if something goes wrong. Also allow any kind of line endings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39553 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 22:29:38 +00:00
Julien Rioux
9657ffd77f revert part of the last commit that should not have been
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39534 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:46:52 +00:00
Julien Rioux
0243eed665 configure.py : subprocess, second try (check_output requires
python 2.7 and throws unwanted exceptions when the process
return value is not 0

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39533 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:29:37 +00:00
Richard Heck
9d8c3d018b Revert "The call to cmdOutput can throw an exception, so we need to be careful".
This will make reverting the previous commit easier.

This reverts commit 82ab1aef334d8573cc3e861e2620d9b4c59f88fe.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39532 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:13:34 +00:00
Richard Heck
1700d0c747 The call to cmdOutput can throw an exception, so we need to be careful
here, lest configure.py abort.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39529 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:06:15 +00:00
Julien Rioux
f51dffd231 configure.py : replace os.popen with subprocess.Popen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39526 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 17:11:50 +00:00
Julien Rioux
7ea78193ca configure.py : make sure latex exits gracefully
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39525 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 17:11:48 +00:00
Jean-Marc Lasgouttes
f4a2142ee8 Revert part of r39509 that was not supposed to go in.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39510 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 10:42:35 +00:00
Jean-Marc Lasgouttes
7fc83acb5e Add possibility to export the R code from a sweave-enabled document
(patch from yihui, part of #7555)
http://www.lyx.org/trac/ticket/7555#comment:18

This adds the new format "R/S code" with extension .R and a converter from .Rnw.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39509 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 10:33:42 +00:00
Uwe Stöhr
cc5cc067a0 new export flavor "DVILUATEX", fixes bug #7713, patch from Jürgen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-10 02:23:44 +00:00
Uwe Stöhr
9da2f1bc9a configure.py: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39445 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-09 01:34:25 +00:00
Uwe Stöhr
50f4a55e95 configure.py: add menu entry to convert to LyX 2.0.x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39384 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-30 16:41:29 +00:00
Pavel Sanda
5e0b52f9f1 Postscript is missing in View menu.
This was forgotten in r37616.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39262 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-09 19:13:21 +00:00
Julien Rioux
46813f1b5b configure.py : Simplify things a bit. With this
commit, a program is checked only once instead of twice, and
it is added as alternative editor and viewer.  The ordering
of rc entries in lyxrc.defaults is changed slightly, but
nothing is lost.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39079 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:31:03 +00:00
Julien Rioux
9c9e43da3f configure.py : Allow to specify alt_type as a list.
The intend is to specify ['editor', 'viewer'] eventually.
Still no change in the produced output and in lyxrc.defaults

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39078 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:27:44 +00:00
Julien Rioux
580fa7ee3b configure.py : Remove more code duplication.
No change in output, at least none intended.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39077 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:24:30 +00:00
Julien Rioux
834604ea5d configure.py : Remove code duplication (more to come).
No change in output, at least none intended.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39075 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-15 22:22:41 +00:00
Julien Rioux
3294e6429a configure.py : sort lists, remove superfluous line continuations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39037 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-13 18:57:29 +00:00
Julien Rioux
2dae004697 configure.py : white space only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39036 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-13 18:32:27 +00:00
Julien Rioux
253ac28a0c Add the Format tag to lyxrc.defaults produced by configure.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38974 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 14:58:19 +00:00
Julien Rioux
5eb1fb0c05 Fix bug #7608 (Wrong path separator used for Inkscape on Windows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38973 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 14:55:47 +00:00
Enrico Forestieri
ae361aff19 Apparently, this extra check is not necessary as the first one works
whatever the TeX engine.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38918 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 15:21:16 +00:00
Enrico Forestieri
bd9d3cb0eb Query about the exact length of a short name, as it may happen that
a short name length is actually greater than the long name length.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38908 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 01:51:17 +00:00
Enrico Forestieri
ef51dbff8e On Windows, not all file systems provide for a short form of a filename,
so we have to account for this. Also, when checking whether TeX allows
spaces in file names, we try different quoting styles in order to account
for the kind of TeX engine used.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38907 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 00:40:03 +00:00
Enrico Forestieri
226b29943f On Windows, avoid spaces in filenames passed to latex by using the
short form of the path.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38894 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 01:12:27 +00:00
Richard Heck
ec14c3f364 Recommit previously unintended commit, now that it has been approved. ;-)
Seriously, this resovles a problem with module detection and configuration, 
namely, that we detect BOTH a module in the system directory and a custom
version of it in the user directory.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38387 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-15 00:54:50 +00:00
Richard Heck
5c93852e3c Revert unintended commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38382 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 21:10:07 +00:00
Richard Heck
c10cd68fba Constify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38381 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 20:34:18 +00:00
Pavel Sanda
cb7ecd7fee Sensible editor launches terminal editors, closing #7448.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38350 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-12 13:35:41 +00:00
Jürgen Spitzmüller
3fb4bf59c6 * configure.py: remove files produced by the LuaTeX test when the test is over.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38241 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-04 11:39:59 +00:00
Julien Rioux
41524a4f6f fix r38143
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38150 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:59:58 +00:00
Julien Rioux
4d4f25859f fix r38144
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38149 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:59:27 +00:00
Julien Rioux
7142c83ab5 show lilypond-book format in export menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38145 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:31:23 +00:00
Julien Rioux
b3230005c9 second part of #7383: lilypond -> xetex|luatex converters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38144 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:30:49 +00:00
Julien Rioux
a6a23d1781 define sweave to xetex|luatex converters
(allows one to use nonTeXFonts with literate and fix bug #7383)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38143 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:29:52 +00:00
Julien Rioux
6826bd487f fix checkTeXPaths when no latex is found
(reallows the install of LyX without MikTeX again under windows)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38142 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-30 00:26:19 +00:00
Jürgen Spitzmüller
7382181e17 * configure.py: add test for luatex version.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38050 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-25 15:15:27 +00:00
Jean-Marc Lasgouttes
edd51121d8 Almost finish fixing bug http://www.lyx.org/trac/ticket/6623
Now we specify the output file for sweave explicitely for robustness reasons.
We also specify prefix.string (in order to have the temp files generated in lyx tmp directory.

The only annoying file now is Rplots.pdf, but I am not sure why it is generated... 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37984 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-21 14:48:22 +00:00
Jürgen Spitzmüller
594179f330 * configure.py:
- when a layout file has no valid \Declare line, issue a warning and skip this file
	  instead of aborting the whole configuration process.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37807 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 16:15:03 +00:00
Richard Heck
50f845e479 Two simple changes for Python 3 compatibility.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37645 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 02:17:50 +00:00
Jürgen Spitzmüller
0489d3c496 Introduce new file format flag "menu=export" to define which document formats the File > Export menu should list. All other formats are available via the "More Formats & Options ..." (former "Custom ...") dialog.
The actual selection of formats needs to be audited.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37616 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 09:34:10 +00:00
Enrico Forestieri
21dd835f9d Don't rely on external utilities and use python modules for creating
a LyX archive. A zip archive is created on Windows and a gzip compressed
tar archive on *nix, as those are the de facto platform standards.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37525 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 23:45:03 +00:00
Enrico Forestieri
83f181c02f lyxpak.py has to operate on the original file, not the one in the tmpdir.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37517 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 19:09:54 +00:00
Richard Heck
5577b5c6f0 Add lyxpak.py to the distribution, and configure it appropriately for export.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37506 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 14:50:06 +00:00
Jürgen Spitzmüller
c3ed49dd92 * configure.py: check also for xindy, which is a reasonable alternative to texindy and makeindex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37422 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 16:12:35 +00:00
Georg Baum
cfc81ea3d7 Disable preview converters that need dv2dt if dv2dt is not available.
This gives a better error message on the console (although it is still
impossible to figure out what went wrong from the GUI).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37407 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 20:03:01 +00:00
Jean-Marc Lasgouttes
fe54f0c341 Finish fixing bug #6623 (Sweave cannot read local files)
* in converters, make sure that $$p and $$r are slash-terminated paths (like in viwers, BTW)
* pass the full intput path to lyxsweave.R


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37337 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-27 11:14:32 +00:00
Pavel Sanda
297a74b7ad MS Word converter -> HTML (MS Word) converter
Patch from Alex Fernandez.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37321 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 10:26:29 +00:00
Georg Baum
3b90652edc Fix python error:
UnboundLocalError: local variable 'elyxerfound' referenced before assignment


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37286 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 18:23:32 +00:00
Pavel Sanda
2e4c3f98ad Removing support for eLyXer as a module
Patch from Alex Fernandez.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165022.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37279 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 00:47:13 +00:00
Georg Baum
225c1dbe55 partial fix for bug 6986: Use the right tex2lyx (at least if tex2lyx is installed)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37056 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-31 12:07:58 +00:00
Jean-Marc Lasgouttes
8c6ce63595 Do not use the --vanilla option of Rscript, since it can
cause unexpected errors (like locally installed packages
not found).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36849 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 21:09:53 +00:00
Georg Baum
7ba8c1d542 Fix bug #3333: LyX gives a stupid error message when trying to convert xfig
files to eps/pdf. With this fix, you get the usual "No information for
converting ..." message.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36831 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 18:14:16 +00:00
Jürgen Spitzmüller
33f4ea26a5 * actually record rtf and doc viewers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36825 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 14:48:52 +00:00
Pavel Sanda
a978795215 After more attempts add gnumeric support.
Patch from Helge Hafting.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg164180.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36786 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-09 01:19:13 +00:00
Richard Heck
69b228f9af Update for LyXBlogger detection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36684 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 17:35:01 +00:00
Jürgen Spitzmüller
2be72ce058 * configure.py:
* Conerter.{cpp,h}:
	- use a backend=flavor flag format for latex instead of hardcoding format names

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-30 09:49:28 +00:00
Uwe Stöhr
12de34f1fa configure.py: fix shortcut clash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36569 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 04:23:35 +00:00
Jürgen Spitzmüller
2868ff7a52 add basic LuaTeX backend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36448 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 16:07:42 +00:00
Jürgen Spitzmüller
c2f90c6a79 * configure.py: resolve shortcut conflict
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36441 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 11:14:30 +00:00
Pavel Sanda
c393abbe12 Fix lilypond support, patch from Julien Rioux, bug #6940.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35978 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:01:48 +00:00
Richard Heck
b942b87e7d Fix #3934. Patch from Guenter Milde.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35820 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:05:37 +00:00
Jean-Marc Lasgouttes
9ebd4405cf Make sweave process files with the correct encoding (#6625).
The required the introduction of the new converter token $$e, that holds
the iconv name of the latex file encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 07:51:39 +00:00
Jean-Marc Lasgouttes
be8cf7c98c Introduce helper script for Sweave. The first benefit is that
Sweave.sty path is hardcoded if LaTeX cannot find it.

More to come.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35750 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:02:05 +00:00
Pavel Sanda
c09aa51e0a Graphviz results in pdf are poor because it creates bitmap-style pdf.
However it knows correct vector eps, so lets use internal route.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35569 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-07 23:13:20 +00:00
Pavel Sanda
e7dd1bf9dd Add lilypond-book module and add support for instant preview.
Patch by Julien Rioux.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg162042.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35472 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-21 16:34:30 +00:00
Enrico Forestieri
ac33a77dac Fix bug #6873: Shell execution of \nonstopmode tried when no latex binary present
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35236 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-30 15:02:36 +00:00
Jürgen Spitzmüller
891e858ac1 * configure.py:
- properly separate platex and latex.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35125 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-11 16:44:48 +00:00
Uwe Stöhr
7f072cc5d7 configure.py:
- use eLyXer not only for HTML but also for HTML (MS Word) if it is found; this is simply the same code as we are already using for HTML converter check
- fix a bug that the copier calling would be wrong if neither eLyXer nor tex4ht is found (this is already fixed in the HTML converter check

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35122 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-11 00:57:48 +00:00
Richard Heck
7d8b56a21d Improve the error reporting, or checking, in configure.py.
There doesn't seem to be any way to report an error other than by
exiting.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35119 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 21:43:08 +00:00
Jürgen Spitzmüller
5ff4c8826c * configure.py: adapt desription.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34903 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-15 07:26:32 +00:00
Pavel Sanda
f70d8db243 Recognize 'jbibtex' in pLaTeX . Patch from Koji, #6808.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34792 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 20:57:45 +00:00
Richard Heck
8993fe96b2 Escape quotes in module descriptions. Amazingly,
this actually seems to work with no changes in the 
C++ code.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34528 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-27 15:23:25 +00:00
Richard Heck
35ee5f2040 Clarify code a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34527 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-27 15:20:21 +00:00
Richard Heck
434af7df28 Minor code reorganization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34526 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-27 15:16:23 +00:00
Richard Heck
7b2652c7ef Dot converter patch from Julien Rioux.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33965 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 16:29:48 +00:00
Vincent van Ravesteijn
b347e40483 Fix the configure script. Python apparently does not like tabs as much as spaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33953 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 16:58:29 +00:00
Richard Heck
37529a3b92 Add lyxblogger to configure.py. We're still thinking about what to do
about the elyxer path.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33952 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-30 13:54:52 +00:00
Richard Heck
07c5726aac No spaces in configure.py, either. Thanks Julien.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33865 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-25 14:23:06 +00:00
Richard Heck
cf8646083f Fix bug #3686, by collecting information about missing prerequisites for
document classes, etc. Patch from Julien Rioux.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33838 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-22 12:25:16 +00:00
Richard Heck
994dc05884 Change the name of the XHTML format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32854 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 18:01:35 +00:00
Peter Kümmel
e17a01910e revert, quotes are handled in Systemcall.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32594 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 19:54:18 +00:00
Peter Kümmel
4d5c24e80d Ticket 6266 Quoting Problem with QProcess: don't think we need any quotes (at least on Linux)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32579 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 12:20:22 +00:00
Richard Heck
a4c7e69d7a We don't need to say this explicitly, since it'll be detected for us if
it's possible.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 20:58:25 +00:00
Richard Heck
c1ae09ab1f Add checks for sxw, rtf, and doc viewers and editors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32510 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 20:32:00 +00:00
Richard Heck
5927fb9f81 Revert most of r32414, adding "auto" as editor and viewer for Windows-
platform.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32509 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 20:20:08 +00:00
Uwe Stöhr
cef0077454 configure.py: add default viewers/editors for 4 file types
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32414 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 19:34:41 +00:00
Uwe Stöhr
bf820ca578 configure.py: fix #3349 also for Windows by using Inkscape.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 13:45:13 +00:00
Richard Heck
7256c934dd Minor fix for previous configure.py patch from Julien Rioux.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32338 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 16:08:39 +00:00
Richard Heck
8d34ae9d19 Detect packages on which modules depend. Patch from Julien Rioux. Fixes
bug #6361.

Should go to branch, too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32290 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 18:39:49 +00:00
Pavel Sanda
9e5f3a9423 Inkscape for svg
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32210 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-25 22:20:15 +00:00
Richard Heck
33707856c3 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32202 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-25 21:54:09 +00:00
Pavel Sanda
0c6d32eb04 Fix bug #3349 - SVG support in Lyx
You wouldn't believe it, the convertor was already on my box ;)
Credit goes to Carl Worth.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32201 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-25 21:46:33 +00:00
Richard Heck
b30bcc3860 Shortcut for LyX HTML output. (Makes my life easier!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32107 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:50:00 +00:00
Richard Heck
d62c5cf02e Sorry, I didn't mean to commit all that. Let's try again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32105 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:47:22 +00:00
Richard Heck
b8743dd2ed The default tag for an InsetLayout should depend upon MultiPar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32104 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:41:31 +00:00
Richard Heck
487053deb8 We need truly XHTML output to get MathML to display in Firefox, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31982 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-14 16:21:21 +00:00
Uwe Stöhr
4147409b37 configure.py: revert back to r31950, except of the comment that was removed in this revision
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31959 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-12 23:24:55 +00:00
Uwe Stöhr
5af21dd2ab configure.py: revert r31950 because
- Richard removed a valid comment
- Richard's change introduced a regression, see my mail on the list

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31955 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-12 01:18:04 +00:00
Richard Heck
f826daf396 Alex Fernandez's elyxer detection patch for trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31950 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-11 23:10:13 +00:00
Uwe Stöhr
fc709d0c0a configure.py: fix detection of LyX to HTML converter - only create such a converter when eLyXer was found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31949 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-11 22:51:19 +00:00
Uwe Stöhr
60ca549de3 configure.py: fix check for eLyXer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31897 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-07 16:55:23 +00:00
Jürgen Spitzmüller
fbb0c219ca * add support for jmakeindex (a Japanese index processor)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31659 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 16:57:38 +00:00
Jürgen Spitzmüller
95c34cc714 * configure.py: remove debug code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31305 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:38:11 +00:00
Jürgen Spitzmüller
3e8532d83e * configure.py: fix construction of *_alternatives rc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31303 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:30:33 +00:00
Jürgen Spitzmüller
2ebb97758c * store all available viewers/editors and allow for an alternative selection in the GUI.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31291 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:11:43 +00:00
Uwe Stöhr
4aa442a9b0 configure.py: fix the calling of eLyXer. Now also files with spaces in the path can be handled correctly. This makes it possible to convert files on Windows like our documentation files when you open them via the Help menu.
To use now eLyXer, you only need to copy it to LyX's scripts folder.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31265 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-03 22:36:48 +00:00
Jürgen Spitzmüller
0c4f7f62c1 * configure.py: attempt to fix the check for the java version of splitindex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31113 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 10:10:06 +00:00
Jürgen Spitzmüller
a688f25880 * configure.py: change detection order of splitindex preprocessors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31112 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 08:52:42 +00:00
Richard Heck
7035f4cabb Module categories, for Pavel.
Do free free to change the categories. I just did these ones for testing, really.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31033 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 15:20:11 +00:00
Uwe Stöhr
29d4c2de97 configure.py: check also for Yap, MiKTeX's DVI previewer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31023 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 22:24:32 +00:00
Pavel Sanda
4e082c886d Fix bug #6103.
Juergen?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31004 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 11:29:48 +00:00
Uwe Stöhr
9457f62107 configure.py: check for hylapex, a fax program that runs on all platforms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30891 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 01:31:22 +00:00
Pavel Sanda
533d0c2a9f Search for both elyxer and elyxer.py.
Patch from Sven Hoexter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30251 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-24 19:09:33 +00:00
Jean-Marc Lasgouttes
23b70a8fdd Fix bug 5881: documentation bug in /usr/share/lyx/configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30218 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 10:38:13 +00:00
Jürgen Spitzmüller
3d1da3331d * configure.py:
- change eLyXer command and copier to copy images
	  to the appropriate places on view and export
	  (requires eLyXer 0.27).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30132 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-16 08:06:12 +00:00
Pavel Sanda
e35f3ef321 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30091 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-13 22:32:28 +00:00
Pavel Sanda
227a0802dc Lets have new output in view menu too.
Copiers command would be needed one day?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29974 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 20:22:10 +00:00
Richard Heck
aa992dbbc2 Fix format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29958 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 18:27:06 +00:00
Richard Heck
92a69bb790 Basic output routines for HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29950 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 17:44:35 +00:00
Uwe Stöhr
d3ff1d16e3 configure.py: port r29905
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29913 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-03 22:09:55 +00:00
Uwe Stöhr
5fb7fa93c7 configure.py: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29798 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 23:31:16 +00:00
Jean-Marc Lasgouttes
6d08a75d62 New literate programming modules.
These modules allow to use Sweave or Noweb with any LyX textclass.
They will eventually allow to get rid of literate-* classes.

The sweave modules will benefit in trunk from a forthcoming patch which allows 
to select the output format for a literate OutputType. This will allow to
support Sweave out-of-the-box.

For branch, this pair of modules is IMO a candidate for LyX 1.6.4 (no need to
hurry).

Thanks to Gregor Gorjanc for his work on this subject. There is
undoubtlessly some additional work that has to be done here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29657 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 21:23:05 +00:00
Jürgen Spitzmüller
48f36f59e7 * configure.py:
- add new method that records all available alternative programs
	  as opposed to only the first found one.

* LyXRC[cpp,h}:
* LyXFunc.cpp:
	- new RCs \bibtex_alternatives and \index_alternatives, holding
	  alternative processors.

* GuiPrefs.{cpp, h}:
* PrefLatexUi.ui:
	- UI to select from a list of preconfigures bibliography/index processors.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29568 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 10:07:32 +00:00
Pavel Sanda
546fa8c705 Adapt detection of elyxer to new versions (>=0.18).
This should fix the execution ptoblem on windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29528 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 00:51:32 +00:00
Pavel Sanda
734dfec925 Please Uwe
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29493 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 12:51:36 +00:00
Pavel Sanda
27842f0bd5 Revert http://www.lyx.org/trac/changeset/29452
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150555.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29459 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 08:39:40 +00:00
Uwe Stöhr
bd9de0b764 configure.py: prepare LyX to include eLyXer, for more info I wrote to the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29452 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 02:06:44 +00:00
Pavel Sanda
b12096dc21 Add recognition to eLyXer
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150466.html
http://www.lyx.org/trac/ticket/5929


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29448 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-30 20:16:02 +00:00
Pavel Sanda
b69946bee0 whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29447 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-30 13:47:38 +00:00
Jürgen Spitzmüller
a43849b699 * configure.py:
- check for KDE4's okular viewer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29410 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 12:00:11 +00:00
Jürgen Spitzmüller
c52bd08442 Introduce splitindex support. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:29:01 +00:00
Jürgen Spitzmüller
26b361417d * Properly separate the specific Japanese (i.e., pLaTeX) auxiliary programs (jbibtex, mendex)
from the standard LaTeX programs.
  These programs are only used now if the document actually uses Japanese, not always if they are found.
  (bug 5601 a.o.).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-13 09:53:40 +00:00
Jürgen Spitzmüller
737e9b2c20 start XeTeX support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 06:58:30 +00:00
Jürgen Spitzmüller
b52205d30b configure.py:
- add support for newer lilypond versions (bug 5834).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28815 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 13:47:58 +00:00
José Matox
b8ce87578f Use logging module instead of homebrew python class (Patch from Bo Peng)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28704 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 18:54:08 +00:00
Pavel Sanda
28bfbe4e03 Duplicate line.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27915 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 16:32:54 +00:00
Pavel Sanda
b17f13a5e5 Allow Dia diagrams as external insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:07:07 +00:00
Pavel Sanda
441161daa2 ispell leftover
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27817 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-08 22:26:45 +00:00
Vincent van Ravesteijn
ab015d7389 configure.py: Add the new LyX 1.6.x file format and convertor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27747 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 22:14:59 +00:00
Stephan Witt
37749a04dc use new converter variable $$d to make tgif preview working (via png converter path)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:20:53 +00:00
Jean-Marc Lasgouttes
071016df39 remove last traces of plaintext_roff_command
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27515 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 23:39:48 +00:00
Jean-Marc Lasgouttes
1b391f35cd do not try to run platex if it has not been found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 13:56:57 +00:00
José Matox
3caeb344b8 Fix configuration for docbook backend and add detection of xlstproc. (Rafael García)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27389 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-11 21:02:19 +00:00
Richard Heck
b940dc2db7 Configure shouldn't abort just because it encounters an error reading a layout file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27057 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 15:30:17 +00:00
Richard Heck
13a7093719 Give some more useful feedback.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27021 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-22 11:59:51 +00:00
Uwe Stöhr
f3117747ff remove last traces of linuxdoc whose support has been removed long ago; requested in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145127.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26982 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 20:49:04 +00:00
Uwe Stöhr
072f9c91a8 configure.py: add comment for the OpenDocument conversion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26979 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 13:57:04 +00:00
Jürgen Spitzmüller
5b5e0025ef * configure.py:
- TeXLive does not include the oolatex script, but relies on mk4ht.
	  Also reinclude the verbose command as a fallback.

Obviously, such changes need testing on as many systems and distributions as possible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26969 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 11:49:37 +00:00
Uwe Stöhr
3635825581 configure.py: - fix converter command for OpenDocument, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4604
- check for OpenOffice as viewer for OpenDocument

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26951 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 17:38:39 +00:00
Jean-Marc Lasgouttes
8641445588 configure automatically literate>pdflatex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-17 11:00:31 +00:00
Jürgen Spitzmüller
641708ac4b * separate nomencl processing command from index processing command, since nomencl
relies on makeindex (with specific options) [bug 5184].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26226 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 09:44:00 +00:00
Jürgen Spitzmüller
a2906cb877 ** proper implementation of pLaTeX by Tetsuya Makimura and me, fixes many remaining problems and bugs with language "japanese" (bugs 4863, 4290, 4700 and partially 4697) **
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26200 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-18 17:26:09 +00:00
Jürgen Spitzmüller
a46886a8ff * lib/configure.py:
- check if texindy is available and if so, use it instead of makeindex
	  (bug 4732).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 08:46:00 +00:00
Abdelrazak Younes
1bd3845672 add JFig fig editor support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25247 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 13:46:27 +00:00
Jürgen Spitzmüller
fce7799859 * lib/configure.py:
- add support for Graphviz Dot files (bug 4882).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 08:49:15 +00:00
Uwe Stöhr
a2f6539aff configure.py: rename "Comma-separated values" to "Table (CSV)"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24852 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 00:59:16 +00:00
Jürgen Spitzmüller
42aaa245db * Hartmut's csv2lyx script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 17:08:21 +00:00
Richard Heck
6bc34295e3 Add JabRef to the search list for BibTeX editors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 19:42:22 +00:00
Jürgen Spitzmüller
eb60240b73 Oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:20:03 +00:00
Jürgen Spitzmüller
a585806b3c Implement inset-edit in InsetBibtex and add a context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:14:18 +00:00
Jürgen Spitzmüller
5997d41b38 ** support pdfpages via external inset **
* development/FORMAT:
* src/Buffer.cpp:
	- format incremented to 326

* src/LaTeXFeatures.cpp:
* lib/chkconfig.ltx:
* lib/doc/LaTeXConfig.lyx:
	- support pdfpages

* lib/external_templates:
	- add template for pdfpages

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion routine.

* lib/configure.py:
	- fix call to "pdftops --eps"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24237 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 14:07:25 +00:00
Uwe Stöhr
da0a9688bd configure.py: check for BibTeX programs. This makes it possible to use for example a Japanese BibTeX program.
Fixes http://bugzilla.lyx.org/show_bug.cgi?id=4143

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24056 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-30 00:11:36 +00:00
Jürgen Spitzmüller
01d9b33db9 * lib/configure.py:
- add support for htmltolatex

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 12:22:28 +00:00
Jürgen Spitzmüller
2d697fb88f * lib/configure.py:
- add support for gnuhtml2latex

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23566 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:17:15 +00:00
Pavel Sanda
300977b597 Add unrtf to configure.py.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23563 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:44:49 +00:00
Jürgen Spitzmüller
ca4d221248 * lib/configure.py:
- Use verbose htlatex command instead of oolatex, if available, 
	  since the latter caused problems on some systems (bug 4604).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23496 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 23:34:16 +00:00
Pavel Sanda
398b07a2a5 xdg-open stuff was reverted only in branch, time to synchronize in trunk.
http://www.lyx.org/trac/changeset/22431


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23432 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 11:51:21 +00:00
Jürgen Spitzmüller
0b721a0b8c * lib/configure.py:
- add checks for pdf2ps and pdftops (bug 3968).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23353 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 10:34:43 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Richard Heck
7c28905b17 This commit adds some new functionality to the modules stuff. In particular, it introduces the concept of "required" and "excluded" modules: A given module may require one of some list of modules, or it may be incompatible with some other modules. (Complex Boolean combinations are not supported!!) These facts can be noted in the module file, and the UI responds appropriately: Required and excluded modules are noted in the description, and the "Add" button is enabled only if at least one of the required modules has already been selected and no excluded module is selected. Getting this to work involved a fair bit of cleanup of the existing code---including ways Angus, I think, had already pointed out were required---and also involved changing the syntax of the headers of the module files, but in ways that are probably best anyway.
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 18:51:02 +00:00
Uwe Stöhr
93c7c89beb configure.py: fix detection of LaTeX (bug 4397)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21982 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:26:48 +00:00
André Pönitz
b716ccd1a0 Patch from Sven Hoexter. Use 'xdg-open' and 'sensible-editor' when
available


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21957 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 21:25:46 +00:00
Uwe Stöhr
5d2108ae33 configure.py: revert accident commit (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg132477.html is still the case)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21733 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 02:19:49 +00:00
Uwe Stöhr
97aa558cac support for \pagebreak:
- rename former "pagebreak" to "newpage" since it produces a \newpage
- new LFUN
- menu entry
- tex2lyx support
- fileformat change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 02:10:00 +00:00
Bo Peng
360be11fcc Use latex instead of pplatex to check latex configurations, and exit from configure.py with proper error code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21691 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 16:24:26 +00:00
Enrico Forestieri
eab1d98ab4 When searching for programs, also take into account all possible
extensions for executables (only Windows is affected by this).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21201 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 13:40:28 +00:00
Uwe Stöhr
5d102dad68 configure.py: correct previous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21137 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 23:59:00 +00:00
Uwe Stöhr
1c55d1fc77 configure.py, legacy_lyxpreview2ppm.py, lyxpreview2bitmap.py: check also for "platex" (Japanese variant of "latex"); patch by Koji
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21136 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 23:55:13 +00:00
Enrico Forestieri
727a421a1f Fix DraftDVI entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20977 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-15 23:32:07 +00:00
Bo Peng
34058aed9b Check and show proper error message if configure.py fails (part of buf 2829)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20967 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-14 14:51:05 +00:00
Bo Peng
8d9893ad50 InsetInfo: Move LaTeXConfig.lyx.in to LaTeXConfig.lyx and stop processing this file in configure.py (and chkconfig.ltx.
* development/scons/scons_manifest.py: build system changes
	* lib/doc/Makefile.am
	* lib/doc/LaTeXConfig.lyx.in: rename to
	* lib/doc/LaTeXConfig.lyx: this one.
	* lib/chkconfig.ltx: stop processing sed file and LaTeXConfig.lyx.in
	* lib/configure.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20910 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 15:43:44 +00:00
Bo Peng
7329719bec Make sure a textclass.lst will exist even when configure.py fails. Part of Bug 2829, port from branch to trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20519 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 16:26:49 +00:00
Richard Heck
efec6dde3d Add export to 1.5.x to trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19966 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 04:09:03 +00:00
Richard Heck
7f17f13bfc Get package things working with modules prior to UI patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19900 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 22:59:25 +00:00
Richard Heck
8a947f63da This is one of a series of patches that will merge the layout modules development in personal/branches/rgheck back into the tree.
Design goal: Allow the use of layout "modules", which are to LaTeX packages as layout files are to LaTeX document classes. Thus, one could have a module that defined certain character styles, environments, commands, or what have you, and include it in various documents, each of which uses a different document class, without having to modify the layout files themselves. For example, a theorems.module could be used with article.layout to provide support for theorem-type environments, without having to modify article.layout itself, and the same module could be used with book.layout, etc.

This patch adds the backend. The ModuleList class holds a list of the available modules, which are retrieved from lyxmodules.lst, itself generated by configure.py. There are two LFUNs available: modules-clear and module-add, which do the obvious thing; you can test by typing these into the minibuffer, along with the name of one of the available modules: URL (a CharStyle), Endnote (a Custom Inset), and---with the spaces---End To Foot (View>LaTeX and look at the user preamble), which are themselves in lib/layouts. There are some others, too, that allow theorems to be added to classes like article and book.

The GUI will come next.

Issues: (i) The configure.py script could be improved. It'd be nice, for example, if it tested for the presence of the LaTeX packages a particular module needs. But this would mean re-working the LaTeX script, and I don't know how to do that. Note that at present, the packages are ignored. This will change shortly. (ii) I've used std::string in LyXModule, following what seemed to be a precedent in TextClass. If some of these should be docstrings, please let me know, and I'll change them. (iii) There is at present no distinction between LaTeX and DocBook modules. Should there be? That is: Should there be modules that are available when the document class is a LaTeX class and others that are available only when it is DocBook? Or should there just be one set of modules? Each module can of course indicate for what it is suitable in its description.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19893 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 17:59:49 +00:00
Georg Baum
022bcb105c fix tex4ht detection on older SuSE and current Debian
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19663 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 17:31:42 +00:00