Commit Graph

414 Commits

Author SHA1 Message Date
Scott Kostyshak
6403ea272f Add NoWeb -> LuaTeX converter
Now the examples noweb2lyx.lyx and Literate.lyx can be
exported to the pdf5 format.
2013-02-18 02:41:37 -05:00
Enrico Forestieri
d46e595397 Proper fix for #8477
The "fix" in ec8ae50f was reintroducing #7718, #8098, and #8254.
This fix is hopefully right while still avoiding code duplication.
2013-01-01 03:58:33 +01:00
Uwe Stöhr
ec8ae50f54 configure.py: fix major part of bug #8477
configure.py needn't to hide the status of the LaTeX package checking
2012-12-31 18:37:45 +01:00
Jean-Marc Lasgouttes
4f6c0b5202 Fix # 8414: Use the noweb module instead of literate-* article layouts
Now that we have module support for literate programming, it is possible to do a noweb cleanup. This is basically a patch from Kayvan Sylvan:

- get rid of literate-xxx classes
- rename Scrap to Chunk, since this is the name noweb doc uses (Scrap is from nuweb)
- update lyx file format and add lyx2lyx support for gettting rid of literate-xxx classes
- update documentation

On the top of it, update tex2lyx to
- avoid creating files with literate-xxx class
- fix conflict between parsing << as a quote and parsing it as a Chunk
- create Chunk layouts instead of Scrap ones.
2012-11-28 14:11:47 +01:00
Uwe Stöhr
1a42de1bab configure.py: register our "pdfview" helper application
- pdfview is necessary for LyX on Windows because it makes it possible to update the view of a LyX file as PDF
- must also go to branch
2012-11-21 23:18:38 +01:00
Uwe Stöhr
06eb4594d7 configure.py: add 5 popular editors with LaTeX syntax highlighting
I also need this for branch for the Windows installer, OK?
2012-11-13 00:41:29 +01:00
Juergen Spitzmueller
7c8f4d57a7 Double Thinko :-/ 2012-10-09 11:14:13 +02:00
Juergen Spitzmueller
c3001fba5c Thinko 2012-10-09 11:12:54 +02:00
Juergen Spitzmueller
f18af303fe Introduce textclass categories
The categories are ascribed by \DeclareCategory{<category>} in the layout file header.
UI follows.
2012-10-09 07:17:36 +02:00
Juergen Spitzmueller
6a8231401b Rescan TeX Files on reconfigure 2012-10-05 15:05:01 +02:00
Juergen Spitzmueller
04618bc070 Fix LyXBlogger entry 2012-09-25 15:56:18 +02:00
Enrico Forestieri
08b3d492fa Fix bug #8254: An encoding problem
Use the short version of a path, which is guaranteed to be ascii and
works even if the path is not encodable in the current codepage.
2012-07-18 22:20:46 +02:00
Richard Heck
bb8a909dac Add lo* converters for libreoffice. Fixes #8148. 2012-05-10 16:03:20 -04:00
Pavel Sanda
fb45a49dae Fix #8021: add geany et al. to configure.py
Patch from Liviu Andronic.
2012-05-10 16:26:44 +02:00
Pavel Sanda
17e8ea8a61 Fix #8018: add converter for makebeamerinfo (to use with Impressive)
Patch from Liviu Andronic.
2012-05-10 16:14:14 +02:00
Vincent van Ravesteijn
2e42350523 Also generate a packages.lst when configuring without LaTeX
A default txtclass.lst is generated, but no packages.lst was generated.
This causes every start to run configure.py.
2012-05-06 20:42:43 +02:00
Vincent van Ravesteijn
a02bfeebc5 configure.py: Replace 'ltx' by 'log' case insensitively
On windows the temporary filename consists of uppercase characters. This
causes that the extension does not get replaced, and the logfile is left
behind.

Checking the extension case insensitively will correctly remove the
logfile.
2012-05-03 16:14:40 +02:00
Enrico Forestieri
b907a0dc7c Fix bug #8098
The Windows shell cannot have a UNC path as the current directory.
However, using pushd to change to the same directory automatically
maps the UNC path to a drive letter and thus it works.

Note that when calling cmd.exe from a UNC path there are still
warnings about the UNC path, but the command is then successfully
executed because the current directory is set to something digestible
by the shell.
2012-03-25 05:14:58 +02:00
Enrico Forestieri
85ccfd240c On Windows, properly account for the encoding of the temporary directory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40858 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 17:14:09 +00:00
Georg Baum
26e5f1a8ec Use libmagic for file format detection if available.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40789 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-21 20:29:44 +00:00
Georg Baum
9f58d50944 merge triplicated image format lists
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40788 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-21 20:20:53 +00:00
Enrico Forestieri
dd2185a4a6 Call lyxpak.py using the original (not mangled) document file name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40773 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-18 13:49:33 +00:00
Richard Heck
fa44bf7961 Fedora's LibreOffice packages, at least, only know "libreoffice",
not "lwriter".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40702 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-02 15:59:45 +00:00
Jean-Marc Lasgouttes
7335b3193b Add support for R package knitr (a Sweave alternative)
This fixes #7887.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40674 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-25 22:26:31 +00:00
Georg Baum
226c61e7a7 Fix problems with odg graphics (needs r40647 and r40649 as well):
- Remove ps->eps converter (see comment for the reason)
- Remove odg-> and odg->pdf converters, since they create A4 sized images
- Get rid of file extension assumption in eps2->eps converter
- Rename eps2 format to better reflect its usage


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40650 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-22 14:13:13 +00:00
Georg Baum
4d62be3568 add openoffice/libreoffice converters (bugs #4267 and #7973)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40588 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-07 20:28:59 +00:00
Richard Heck
5c99bdfea8 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40460 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-09 20:29:51 +00:00
Richard Heck
98c54908c2 Add dviluatex format, so that the appropriate form of LaTeX can be
exported.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40459 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-09 20:23:10 +00:00
Julien Rioux
69c17f11ae Convert odg to (cropped) eps without external script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39986 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:33:35 +00:00
Julien Rioux
0bff66b8a5 Pass the encoding to the japanese pLaTeX processor (#4697).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39982 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:10:19 +00:00
Tommaso Cucinotta
341d1890e1 Make export to XHTML work when there are included ODG pictures,
or any other graphic format that:
- is exportable to EPS
- could not be explicitly exported to PNG yet (i.e., source to PNG was not reachable on the converters graph)
Now, adding the EPS to PNG conversion explicitly allows LyX to find the conversion path.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39786 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-29 14:04:02 +00:00
Tommaso Cucinotta
1024e43069 Added OpenOffice drawing file-format.
Now you can:
-) include in LyX OpenOffice drawings (.odg or old .sxd files)
-) preview them on the screen
-) view them in the final .ps/.pdf output
-) edit them externally via libreoffice, ooffice, oodraw or soffice (whatever is detected).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39706 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-19 00:29:29 +00:00
Tommaso Cucinotta
b4f97b61cf Added support for natively zipped file formats that do not need decompression for being handled by converters
(e.g., compressed dia, odg, sxd, ...). These need to be marked via the "zipped=native" flag in the RC file.
The old 'dia' configuration is automatically updated (it used to be hardcoded in the code, now it is handled
via the flag).
See also http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg170974.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39705 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-19 00:12:09 +00:00
Julien Rioux
816331765f * configure.py : Detect java and perl scripts in a general way.
Issues #6339 and #7579 were fixed by specific code targeting those
RC entries. This commit fixes the detection of java and perl scripts
in a general way. As a result:

  - The detections of jfig3-itext.jar and jfig3.jar, which where
    previously overlooked, are now also fixed, and
  - Future additions of java and perl scripts to configure.py are
    straight forward.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39699 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-18 12:11:47 +00:00
Julien Rioux
ce6a179489 * configure.py : Add lyxpreview unconditionnally.
The check on dv2dt and dt2dv is not necessary, since even if these
are not available, we fall back to the legacy convertion method,
which uses ghostscript, and which is available in all cases.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39698 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-18 12:10:19 +00:00
Julien Rioux
d57f66022c Show .htm files in HTML import file dialog (#6340).
- Add "htm" as a known extension for HTML.

  - Use all the extensions of a format as file filter,
    instead of using only the default extension.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39671 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 20:42:38 +00:00
Julien Rioux
a55ef8346a Allow to assign several extension to a given file format (#4798).
Additionnal extensions are separated by commas (,) in lyxrc
preference files, while spaces are ignored, e.g. "jpg, jpeg".

Preference lyxrc file format incremented to 2.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39670 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 20:42:23 +00:00
Julien Rioux
81420e405f Merge the preview mechanism for japanese with the standard one.
- Japanese is now handled by passing the option --latex=platex
    to the standard lyxpreview script. This is done in PreviewLoader.
  - Remove obsoleted file lyxpreview-platex2bitmap.py and the
    corresponding lines in the configure script.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39659 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:23:15 +00:00
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