Commit Graph

5724 Commits

Author SHA1 Message Date
Richard Heck
2fe7dcc5cc Fixes for bug #7870 from Helge. Adds Gnumeric support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40215 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 21:46:24 +00:00
Uwe Stöhr
c93f5c06d8 French EmbeddedObjects.lyx: translations and revision by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40210 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 01:29:57 +00:00
Uwe Stöhr
4368237595 EmbeddedObjects.lyx: add info about the dvips color names and fix some issues
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40196 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-15 00:13:36 +00:00
Uwe Stöhr
a52005c777 external_templates: improve the description of PDFPages (bug #7888)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40188 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 18:03:12 +00:00
Uwe Stöhr
fa7687397f stdmenus.inc: register the Sweave example file as specific manual (bug #7891)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40187 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 18:01:24 +00:00
Georg Baum
a1cef2d55a Fix bug #3036: font changes inside \markright do not escape outside their scope
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40186 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 16:11:45 +00:00
Georg Baum
8d707723b7 Fix bug #7668 (cosmetic whitespace issues)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40184 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 11:29:48 +00:00
Uwe Stöhr
d139b234b2 - EmbeddedObjects.lyx: update the description of the PDFPages template (thanks Liviu)
- chkconfig.ltx: pdfpages require eso-pic

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40181 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 05:21:02 +00:00
Uwe Stöhr
c338cfe18f French Userguide: add missing files from r40175
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40179 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 02:46:45 +00:00
Uwe Stöhr
3643777d0f port today's changes to trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40175 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-12 03:03:15 +00:00
Uwe Stöhr
137c42164c - Spanish EmbeddedObjects.lyx and UserGuide.lyx: translations by Ignacio
- UserGuide.lyx: mention LibreOffice
- English UserGuide.lyx: fix a typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40168 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-10 23:58:17 +00:00
Uwe Stöhr
9cd035069b UserGuide.lyx: fix a formatting issue
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40162 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-09 19:59:05 +00:00
Uwe Stöhr
66ae78222e thesis/thesis.lyx: add a note and clarify a note as suggested by users
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40159 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-08 21:27:07 +00:00
Julien Rioux
7ffc54f70e File format bump after r39982 (renaming of the japanese encodings for pLaTeX).
LyX file format incremented to 417.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40155 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-07 18:36:56 +00:00
Uwe Stöhr
83cc90776b UserGuide.lyx: correct the description of LyX-pipes (they also work on Windows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40154 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 23:24:40 +00:00
Georg Baum
f346c01f1e Fix bug 6834: Import theorems with optional argument correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40143 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 18:08:45 +00:00
Jean-Marc Lasgouttes
4f176ef89b Fix #7876: Problems with special characters when using sweave with xetex
When R version is >= 2.13.1, Sweave handles natively encodings. Therefore, we have to remove our own kludge.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40135 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-04 22:39:30 +00:00
Uwe Stöhr
cd2e6d99ac thesis template: remove my name from the PDF properties and add missing start appendix call
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40127 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-01 20:08:59 +00:00
Uwe Stöhr
625de6d1f6 EmbeddedObjects.lyx:
- describe the new GnumericSpreadsheet feature and link to the example file
- link to the lilypond example file
- fix some links

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40125 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-01 05:55:21 +00:00
Uwe Stöhr
ef38b6429e new example file spreadsheet.lyx to show how the spreadsheet support works and to test various spreadsheet formats
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40124 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-01 05:54:27 +00:00
Uwe Stöhr
c58513aa8f - UserGuide.lyx:
- describe the new lyxpipe preferences option
 - add info how to en/disable the math autocorrection
 - some bugfixes in appendix C

- German UserGuide.lyx: complete translation of appendix C

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40117 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-01 03:56:31 +00:00
Uwe Stöhr
f47bebe5fa UserGuide.lyx: description of the math autocorrection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40114 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-31 05:10:24 +00:00
Uwe Stöhr
49d13dff6d UserGuide.lyx: describe the new preview inset and revise the section about previewing things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40106 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 22:39:05 +00:00
Uwe Stöhr
5d471f8975 UserGuide.lyx: port changes from branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40083 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 03:51:02 +00:00
Uwe Stöhr
b83b4773fc UserGuide.lyx: port some changes from branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40081 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 02:19:04 +00:00
Tommaso Cucinotta
824d640227 Adding the capability to paste as simple unformatted text.
Documentation (and perhaps menu items) need still to be a bit
clarified in order to distinguish the various paste options
for the average user.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40060 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 15:42:01 +00:00
Vincent van Ravesteijn
5014b38cb7 Add a preference option to specify the default length unit (cm or in).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40030 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:52:11 +00:00
Vincent van Ravesteijn
269695aa5f Remove the prefence default_papersize
- This preference was used for specifying the papersize to xdvi, dvipdfm,
  dvips. However, I can't seem to see any effect on the result.

- The papersize should instead be defined in the document settings.

- The global papersize default was misused to also change the tex
  output by specifying the papersize as if it was specified in the
  document settings. This caused the same lyx document to be outputted
  differently on different pcs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40028 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:48:16 +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
Georg Baum
85003ec85d More unicode math symbols
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39895 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 19:55:13 +00:00
Georg Baum
b62ed6ad83 Do not load txfonts from unicodesymbols, since that has side effects
(next part of bug #7811)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39894 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 17:30:04 +00:00
Georg Baum
f8c5c51460 Fix special case of bug #7811: Clash of bbding and marvosym packages if \Cross is used.
The clash can however still happen if those packages are both loaded for other symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39885 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 19:54:16 +00:00
Georg Baum
6954c542fb Generalize the esintoramsmath requirement:
Now you can also require a|b|c, and if any of the features is already used,
no other one will be loaded. The first feature wins if none is already used.
This is required for a part of bug #7811.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 19:32:02 +00:00
Georg Baum
6304d72255 more work on spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39876 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 18:54:13 +00:00
Uwe Stöhr
fc8ba5776e Math.lyx: correct name of a term as discussed on the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39867 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 20:47:49 +00:00
Tommaso Cucinotta
c5496cbf5d Remove conflict for menu shortcut.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39862 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:27:00 +00:00
Uwe Stöhr
7a209305b0 - UserGuide.lyx: update sec. C.2-C.4
- German UserGuide.lyx: some translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39859 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 03:28:31 +00:00
Uwe Stöhr
b28143d1e9 - UserGuide.lyx: updated sec. C.1
- de.po: change a translation to the most commonly used word

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39845 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-14 03:07:47 +00:00
Uwe Stöhr
6a25a18aea - documentation files: port today's changes to trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39843 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-13 23:15:52 +00:00
Uwe Stöhr
38be92aafc - UserGuide.lyx: some corrections in Appendix A
- German UserGuide.lyx: many translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39840 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-13 02:13:51 +00:00
Uwe Stöhr
30295b32b7 Math.lyx: add note that the package mathdots must be installed for a complete output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39838 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-12 16:08:33 +00:00
Uwe Stöhr
6fba3dd229 chkconfig.ltx: add the packages used in our documentation files (the docs should be compilable also without them, but then the PDF output would not contain all sections). This way we assure that at least on Windows all used LaTeX-packages are installed while installing LyX.
Richard, OK for branch too?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39836 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-12 16:07:19 +00:00
Uwe Stöhr
d5ddca54c3 - UserGuide.lyx: updated some sections
- German UserGuide.lyx: some translations and 2 updated images

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39834 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-12 05:33:31 +00:00
Tommaso Cucinotta
164ae1584a Added Export As... dialog, exploiting the new destination path that can
be specified when exporting.
This fixes #3402.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39805 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 13:47:42 +00:00
Julien Rioux
35b580fb30 lyxpreview: Simplify the color handling.
Let's have this in trunk for testing. The real difference maker
when it comes to color is whether we use dvipng or ghostscript.

For dvipng:

  - The color info is passed as command-line arguments.

  - The tightpage option is not necessary, and since it adds
    ps specials to the output, we shouldn't use it.

For ghostscript:

  - The color info needs to be in the latex file.

  - The foreground color is set for each preview inset.

  - The background color is set by \pagecolor in the preamble,
    which is understood by pdflatex, but ignored in dvips mode.
    Thus dvips is handled with a ps special.

  - The tightpage option is necessary to crop the images.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39797 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:43:33 +00:00
Julien Rioux
873f0f4297 lyxpreview: Simplify the handling of lilypond-book.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39796 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:35:29 +00:00
Julien Rioux
13b1277cd2 lyxpreview: Handle bibtex-generated references and bibliography.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39795 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:35:27 +00:00
Julien Rioux
2645d57d89 * lyxpreview_tool.py : Allow to look for commands with arguments.
For example, find_exe(["bibtex -min-crossrefs=7"]) should search for
bibtex and if it is found, return the string "bibtex -min-crossrefs=7".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39794 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:35:25 +00:00
Uwe Stöhr
c221e445fe - Additional.lyx: minor tweaks
- German Additional.lyx: update to English version, translation of section 8 which hopefully fixes #7748

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39792 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-01 01:29:47 +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
Enrico Forestieri
e75302bbce Fix another thinko from r38243.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39773 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-27 07:28:12 +00:00
Enrico Forestieri
968ab69e88 Fix the following problem with Python 2.4:
Traceback (most recent call last):
  File "/opt/src/lyx-devel/lib/scripts/lyxpreview2bitmap.py", line 535, in ?
    exit(main(sys.argv)[0])
TypeError: 'str' object is not callable



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39769 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-26 15:57:17 +00:00
Uwe Stöhr
5adac980ce - UserGuide.lyx: some stylistic changes
- German UserGuide.lyx: lots of translation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39767 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 21:51:56 +00:00
Uwe Stöhr
adaed4a14d powerdot-example.lyx: add warning about incompatibilities with enumitem that are now fixed in the latest powerdot version
(patch by Jean-Pierre)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39765 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 21:40:10 +00:00
Enrico Forestieri
a55f54b903 Let lyxpreview2bitmap.py also work on Windows when the PyWin extension modules
are not installed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39741 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 01:27:40 +00:00
Uwe Stöhr
c10b375239 svglobal3.layout, svcommon.inc: fix some parser warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39725 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-22 02:22:53 +00:00
Uwe Stöhr
d0b6ed1a1a Additional.lyx: remove some unused references to squash LaTeX warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39724 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-21 22:37:24 +00:00
Uwe Stöhr
fa987d1394 libreoffice2eps.py: add missing things from r39707
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39712 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-20 03:12:37 +00:00
Tommaso Cucinotta
71ebf846bb Adding the script missing from last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39707 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-19 00:37:15 +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
d285793c07 Revert guiName to Spreadsheet (was part of r39675).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39703 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-18 23:18:44 +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
Enrico Forestieri
40d4d94b01 Also include in the archive the files referenced in ERT in the document body.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39692 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-16 14:40:40 +00:00
Enrico Forestieri
45aa989efc Use the normalized path for checking whether it has already been gathered.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-16 12:03:54 +00:00
Enrico Forestieri
517cfe9266 Check whether the filename is really a file. Also protect against recursive
inclusions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39690 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-16 10:07:56 +00:00
Julien Rioux
a5f72061d1 Fix the guiName of external insets.
- Remove hack with $$AbsOrRelPath substitution in the guiName.
    Instead, let LyX display the filename automatically in the gui,
    consistent with InsetInclude.

  - Use the guiName in the drop-down menu in the dialog instead of the
    internal lyxName. These guiNames ought to be more descriptive.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39675 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 21:50:07 +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
0fb13b648c * prefs2prefs.py : Use a list of [format, conversions] pair.
Use a list of [int, list of functions] pair, representing
      - int: the format number, and
      - list of functions: what needs to be done to the file to
                           update it to the given format number.

    This matches what is done in lyx2lyx and helps keeping track of
    format numbers and their corresponding conversion routines.

    Also, add another sanity check.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39668 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 20:43:06 +00:00
Julien Rioux
ba02c43178 * prefs2prefs.py : Error when both -l and -p are given, update usage.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39667 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 20:42:53 +00:00
Julien Rioux
603be7fe2f * prefs2prefs.py : Don't choke on empty input file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39666 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 20:42:40 +00:00
Julien Rioux
454598b928 * layout2layout.py : Don't choke on empty input file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39665 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 20:42:22 +00:00
Julien Rioux
45280f6bb5 Refine the lyxpreview legacy conversion (the ghostscript one).
- Break up steps 1, 2 and 3 from the legacy preview mechanism.
    These are really separate steps.

      1) Add color info, run latex
      2) Run dvips
      3) Run ghostscript

  - In the case of pdf output, skip step 2 and go directly to step 3.
  - Make sure that we fall back to the legacy conversion whenever we can.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39661 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:23:41 +00:00
Julien Rioux
bb55234cac Better error and progress messages for lyxpreview.
Introduce --debug and --verbose flags to control output. Also, use the
python subprocess module to capture stderr from external commands, thus
bumping the python requirement to version 2.4 or later.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39660 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:23:29 +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
675f233f34 Some clean up of the lyxpreview code.
Move some common variables to lyxpreview_tools. Otherwise,
add a few variable names, making it easier to track things.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39656 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:22:29 +00:00
Julien Rioux
2dfa11904f Stylictic-only changes to lyxpreview.
Whitespace and line endings only, in preparation for some serious work.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39655 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:22:12 +00:00
Jürgen Spitzmüller
014a1a36ed revive Ctrl-space in mathed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39649 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-10 05:35:54 +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
Uwe Stöhr
4fbe32b0fd sweave.module: more precise description text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39610 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-06 03:14:51 +00:00
Uwe Stöhr
52c55a2174 - Customization.lyx: add new possible font types uuline, strikeout and uwave
- German Customization.lyx: lot of refactoring

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39573 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-31 16:04:18 +00:00
Uwe Stöhr
1a60740e42 - English Additional.lyx: some updates
- German Additional.lyx: some corrections and some LaTeX warnings fixed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39571 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-31 14:22:23 +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
Uwe Stöhr
f5a03ab601 InsetSpace support for
- \negmedspace and \negthickspace outside of math
- \enspace, \hspace*, \hspace*{\fill} and \hfill inside math
(fileformat change)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39557 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 14:07:30 +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
Uwe Stöhr
6df33aba97 - tufte-book.layout: fix a lyX warning about uninitialized counter
- tufte example files: add important notes that float placements options are not allowed and remove unreferenced labels

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39549 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 16:49:16 +00:00