Commit Graph

416 Commits

Author SHA1 Message Date
Georg Baum
c27dce2b16 support direct conversion from format 1 to format 3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17531 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-24 12:39:45 +00:00
Enrico Forestieri
1b21743511 Fix bug 3220
* src/insets/ExternalSupport.C
	(updateExternal): Avoid computing crc of a directory as this leads
	to a crash on Cygwin.

	* lib/configure.py:
	Use a python script to get the current date in order to avoid
	a stalling condition with the date command on Win32.

	* lib/scripts/date.py:
	New python script.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 19:09:54 +00:00
Enrico Forestieri
f44bc0a0d1 Remove uncompatible option from convertDefault.py as it makes unusable
the figure inset on Solaris.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17021 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 01:39:52 +00:00
Abdelrazak Younes
500a5f959f The caption inset patch by Georg, Martin and myself.
* buffer.C: increase LyX format to 257.

* lyxtextclass.C: increase FORMAT format to 3.

* buffer_funcs.C: 
  - setCaptionLabels(): new recursive function
  - setCaptions(): new function
  - updateLabels(): call setCaptions() for each paragraph.

* InsetCaption:
  - add a virtual destructor
  - overload InsetText' getStatus() and wide().
  - setLabel(): only set the new private member label_.
  - metrics(): don't set label here and correct for title metrics.
  - draw(): don't set label here
  - latex(): fix optional argument.
  - plaintext(): implement!

* InsetText:
  - add a virtual destructor
  - add virtual to getStatus() and wide().

*  output_latex.[Ch]: move latexOptArgInsets() out of anon namespace.

* text3.C: enable LFUN_CAPTION_INSERT


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16948 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 13:23:21 +00:00
Enrico Forestieri
b9aa557b35 Fix encoding of converters path and arguments
* src/converter.C
	(Converters::convert): Convert command to be executed to the proper
	encoding. Use from_utf8 instead of from_ascii in order to avoid
	assertions when displaying an alert.

	* src/support/docstring.[Ch]
	(to_filesystem8bit): new conversion function.

	* lib/scripts/fig2pstex.py
	* lib/scripts/fig2pdftex.py:
	Modified to reflect the changes above.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16803 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-22 02:58:47 +00:00
Uwe Stöhr
31ea73d0d7 fix bug 2418
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 01:03:23 +00:00
Enrico Forestieri
e0a7b67497 Partially revert changeset 16635.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16636 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-10 04:24:36 +00:00
Enrico Forestieri
cff50172f3 Fix encoding of filenames in python scripts
* lib/scripts/fig2pstex.py
	* lib/scripts/fig2pdftex.py
	* lib/scripts/fig_copy.py
	* lib/scripts/fen2ascii.py:
	convert filenames from utf8 to the default locale encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16635 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-10 03:42:06 +00:00
Martin Vermeer
e656777a92 * layout2layout.py
(convert): remove spurious tabs



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15599 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-29 11:41:15 +00:00
Jean-Marc Lasgouttes
debd34424f remove remaining references to fig_copy.sh
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14579 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 21:12:50 +00:00
José Matox
37dc5aeabe Convert python scripts to utf-8.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14565 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-08 10:42:59 +00:00
Bo Peng
2ae2c0db71 Remove hardcoded option -tt from python scripts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14478 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 19:41:32 +00:00
Bo Peng
da915923fd Change the encoding of some python scripts from ISO-8859-15 to ISO-8859-1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14477 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 19:37:24 +00:00
Angus Leeming
0edeef83b7 Fix humiliating typo and update the link to the licence page on the web.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14361 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 15:58:57 +00:00
Georg Baum
4ae87a3bb8 Call python with the -tt switch to make mixed tab/space indentation an error
* src/support/os.[Ch]
	(python): new function, return the python command

	* lib/lyx2lyx/lyx_1_5.py
	(revert_font_settings): replace tabs with spaces

The rest is simply s/python/python -tt/ and
s/"python"/lyx::support::os::python()/ where appropriate.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14270 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 13:54:01 +00:00
Bo Peng
ad3a07c4f2 Replace lib/scriptsfig2pdftex.sh and fig2pstex.sh by their python version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14265 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-29 15:30:22 +00:00
Bo Peng
21f1b19b2e Replace lib/scripts/fig_copy.sh with fig_copy.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14261 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 14:26:27 +00:00
Bo Peng
a5a508bdaa Change the indent level of python code from two to four
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14250 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 21:08:54 +00:00
Bo Peng
f58609c765 Replace TeXFiles.sh by TeXFiles.py
* src/frontends/controllers/tex_helpers.C: call TeXFiles.py
	* lib/scripts/TeXFiles.py: add
	* lib/scripts/TeXFiles.sh: remove
	* lib/scripts/convertDefault.py: add encoding line
	* lib/Makefile.am


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14238 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 02:39:03 +00:00
Bo Peng
5ea7194a60 Generate python code in GraphicsConverter.C, replace convertDefault.sh by convertDefault.py
* src/graphics/GraphicsConverter.C: generate python instead of shell scripts
	* src/converter.C: use convertDefault.py
	* lib/scripts/convertDefault.sh: translated to convertDefault.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14223 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 14:17:12 +00:00
Georg Baum
f0f4e2c042 From Joost Verburg: Put the clean_dvi.py script into the main distribution
* lib/configure.py
	(checkLatex): Add DraftDVI converter on windows if dv2dt and dt2dv
	are available
	(checkFormatEntries): Add DraftDVI entry on windows if dv2dt and
	dt2dv are available

	* lib/Makefile.am: add clean_dvi.py

	* development/Win32/packaging/build_lyxwin.sh: remove clean_dvi.py
	stuff

	* development/Win32/packaging/package_lyxwin.sh: remove configure
	mangling for clean_dvi.py

	* development/Win32/packaging/clean_dvi.py: move to lib/scripts

	* development/Win32/packaging/README: remove clean_dvi.py stuff


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13924 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-24 20:06:42 +00:00
Georg Baum
5ac63517c6 From Enrico Forestieri:
* lib/scripts/TeXFiles.sh:
	Account for Cygwin teTeX on Windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13704 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-20 16:59:51 +00:00
Georg Baum
ad7e91e684 * lib/scripts/layout2layout.py
(convert): Change "LabelType Static" to "LabelType Itemize" for
	itemize environments
	(convert): Change "LabelType Counter_EnumI" to "LabelType Enumerate"
	for enumerate environments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13659 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 08:54:50 +00:00
Georg Baum
9031ce6395 *lib/scripts/layout2layout.py: Fix section labelling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13588 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-07 15:25:34 +00:00
Georg Baum
ba7ba1b813 * lib/scripts/layout2layout.py
(concatenate_label): new, concatenate two labels in an intelligent way
	(convert): add the TocLevel for sectioning styles
	(convert): convert LabelString and StringAppendix for sectioning
	styles (append counter)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13533 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 18:49:27 +00:00
Jürgen Spitzmüller
eedb4c6821 * lib/scripts/lyxpreview2bitmap.py: fix frac calculation (bug 2391).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13511 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-28 10:18:02 +00:00
Jean-Marc Lasgouttes
5bad987680 bug 2167: previews badly placed when ascent or descent is 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13273 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-24 14:24:17 +00:00
Jürgen Spitzmüller
8e96921285 From Enrico Forestieri: fix script to work with recent versions of preview-latex and dvipng (bug 2243).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13263 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 19:29:58 +00:00
Lars Gullik Bjønnes
4a7ab830bc Delete all .cvsignore files from trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13208 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-10 22:09:45 +00:00
Georg Baum
ba4236f744 fix bibenvironment handling in layout2layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10755 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-19 08:40:10 +00:00
Georg Baum
7adc8beb4d Convert bib_environment in layout2layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10715 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-08 15:35:38 +00:00
Angus Leeming
132d2a2da7 Enable instant preview to work if the path to GhostScript contains spaces (bug
2193).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10710 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-05 14:13:14 +00:00
Georg Baum
5d65c9bb09 fix line endings in layout2layout.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10570 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-24 14:13:45 +00:00
Georg Baum
3e885523c3 layout file converter for layout files in old format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10565 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-21 16:11:36 +00:00
Angus Leeming
c302740b9b J�rgen S's fix to bug 1817.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10468 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-21 09:22:18 +00:00
Angus Leeming
f8be560c1f Use gswin32c rather than gswin32 on Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10072 a592a061-630c-0410-9148-cb99ea01b6c8
2005-06-16 13:15:09 +00:00
Angus Leeming
0a1fc13eff Do not quote the name of the executable when spawning an external process.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9921 a592a061-630c-0410-9148-cb99ea01b6c8
2005-05-08 14:11:55 +00:00
Angus Leeming
f724b28cd9 Send error messages to STDERR
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9818 a592a061-630c-0410-9148-cb99ea01b6c8
2005-04-17 17:31:15 +00:00
Angus Leeming
ee0434c0ad Enable convertDefault.sh to work reliably under Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9739 a592a061-630c-0410-9148-cb99ea01b6c8
2005-03-23 21:48:08 +00:00
Georg Baum
e367172256 use the movers also for copying from temp dir -> export dir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9153 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-01 08:50:42 +00:00
Angus Leeming
e5706b107d The Movers patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9130 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-26 18:39:13 +00:00
José Matox
6b440f84ca Replace os.getenv(x) by os.environ[x] for compatibility with old python versions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9063 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-08 09:19:54 +00:00
Angus Leeming
28438b1a4a Protect shell variables with quotes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9030 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-01 15:12:03 +00:00
Angus Leeming
f907db6a82 Move common code into a 'tools' file.
Implementation is as similar as possible to the well-tested code in the
1.3.x tree.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8878 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-09 11:31:18 +00:00
Angus Leeming
3e34d6f23c Append ".exe" to the name of the searched-for program on Win32.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8765 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-19 14:56:33 +00:00
Angus Leeming
10759f2112 Fix encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8762 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-18 12:31:50 +00:00
Angus Leeming
2e66a01e8f Search for "gswin32" also when looking for ghostscript.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8760 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-18 07:40:18 +00:00
José Matox
fc09056ccc fix wrong point for writing in temporary file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8733 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-04 09:42:24 +00:00
José Matox
19c9cb3799 fix bug with python 2.3 and
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8726 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-03 13:45:59 +00:00
Angus Leeming
915cd386a0 Squash python warning about unknown file encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8694 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-26 09:18:09 +00:00
Angus Leeming
5fb56932b5 * Change the lyxpreview_to_bitmap_command to the new python script.
* Ignore *.pyc in the scripts directory.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8678 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-20 08:10:15 +00:00
Angus Leeming
a2e688065a Re-enable preview generation using dvips, gs and pnmcrop.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8675 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-19 18:12:23 +00:00
Angus Leeming
005545f281 Remove cached var from RenderPreview. Changes elsewhere to suit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8669 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-19 13:05:36 +00:00
Angus Leeming
8be99f7b3b Rework preview generation to use Jan-��ke Larsson's dvipng.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8655 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-16 14:34:41 +00:00
Angus Leeming
2943f3da29 Safe use of 'cut' with Win32 filenames.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8146 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-28 09:39:16 +00:00
Angus Leeming
807bc25587 Make the search for the generated output file work on Win32 also.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8018 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-03 12:31:40 +00:00
Angus Leeming
a60b5c0b72 Whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7905 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 09:50:10 +00:00
Angus Leeming
4da67cb792 Store LaTeXFeatures' externalPreambles as a list<string> rather than a string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7658 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-04 01:49:21 +00:00
Angus Leeming
a52418b360 Revert, revert, revert. Sorry about that, y'all.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7651 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-03 17:40:58 +00:00
Angus Leeming
9498f9758f src/support/ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7650 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-03 17:28:39 +00:00
Angus Leeming
d9ffbf1412 Add authors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7588 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 10:50:02 +00:00
Angus Leeming
9e75a45c7e ...and a few more. That's all this licence nonsense in my tree at the moment.
tex2lyx is now 'clean'.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7584 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 09:44:59 +00:00
Angus Leeming
dba2b2f8a1 Respect the LATEX environment variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7499 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-04 21:15:56 +00:00
Angus Leeming
2b1a447714 Fix the texinfo dialog and associated cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7196 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-20 14:03:49 +00:00
Angus Leeming
9f2f29ca34 Extract the necessary magic from epstopdf.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7167 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-12 15:30:41 +00:00
Angus Leeming
1f1762bf3a Some Tender Loving Care for fig2pdftex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7163 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-12 14:08:24 +00:00
Angus Leeming
97c8bd0f6b Remove redundant scripts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7117 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-05 22:54:24 +00:00
Angus Leeming
dd7ae72789 Prepare the way for a shiny new external inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7072 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-31 16:52:33 +00:00
Angus Leeming
d1cf27fd88 Rename file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7043 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-25 15:19:22 +00:00
Angus Leeming
a6b306f4b4 A little script to generate high quality PDF from XFIG files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7034 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-23 16:26:01 +00:00
Angus Leeming
08ad6acd9a Enable the external inset to output different flavours of latex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7031 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-23 14:36:26 +00:00
Angus Leeming
d7d950c16f Small rearrangement.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6437 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-10 19:58:37 +00:00
Angus Leeming
c663607f25 Small clean-up.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6425 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-10 16:21:31 +00:00
Angus Leeming
7bda9a5db2 Make JMarc happy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6424 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-10 16:07:35 +00:00
Jean-Marc Lasgouttes
d993c534e9 more bib stuff from Juergen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6158 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-14 17:23:50 +00:00
Angus Leeming
cc4e6a8499 Try and make convertDefault a little more robust.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5950 a592a061-630c-0410-9148-cb99ea01b6c8
2003-01-13 23:35:18 +00:00
Angus Leeming
38927eb419 If we bother to test for the presence of latex, then the test should work...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5907 a592a061-630c-0410-9148-cb99ea01b6c8
2003-01-06 17:40:46 +00:00
Angus Leeming
3a82c61287 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5701 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-22 12:00:05 +00:00
Angus Leeming
e27f7329c9 Don't use "if [ $? -ne 0 ]"; personally, I blame JMarc ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5693 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-21 17:09:22 +00:00
Angus Leeming
bd54683932 Stupid piping error :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5564 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-31 13:51:29 +00:00
Angus Leeming
279ea68a2a Use pnmcrop to crop the previews
Use pnmcrop to crop the previews and be done with all this nonsense.
Should fix the drawing problems in tables too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5440 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-18 12:17:38 +00:00
Angus Leeming
53177767c9 Improved error message on failure.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5437 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-18 08:32:18 +00:00
José Matox
2f7c9e057a Sanitize python scripts headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5246 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-10 10:14:10 +00:00
Angus Leeming
1eb8155fa0 This file is part of LyX, the document processor.
Licence details can be found in the file COPYING.

and thank God for sed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5211 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 15:14:23 +00:00
Angus Leeming
4d42b1d8aa Augment the preliminary blurb, as suggested by Andr�.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5207 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 11:45:44 +00:00
Angus Leeming
e742268ef9 Rename lyxpreview2ppm.sh as lyxpreview2bitmap.sh because the script now
takes an extra argument specifying the desired output format, ppm or png.
Qt users may want to change their preferences file to suit ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5205 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-04 11:56:45 +00:00
Angus Leeming
63dca538e9 Simplify code by telling gs to output bitmap files as %d, not %Nd where
N is some painfully specified integer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5204 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-04 10:15:56 +00:00
Angus Leeming
285b8c52ab Clean-up preliminary blurb.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5200 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-03 19:23:29 +00:00
Angus Leeming
ca5ff30107 Fix warning when using test with non-integer arguments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5199 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-03 17:23:33 +00:00
Angus Leeming
fff79cf645 Fix crash reported by Norbert Koksch, using a hard-coded 5 digits (boo! hiss!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5197 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-03 16:15:03 +00:00
Angus Leeming
1ccc528e28 Activate the code using preview.sty 0.73. Ditch support for older versions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5194 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-03 13:52:37 +00:00
John Levon
555abe1948 Not all the world's a Linux.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4999 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-15 16:26:02 +00:00
John Levon
9c54f354ce try to force +x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4926 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-09 15:42:45 +00:00
John Levon
e540343c39 remove sh files temporarily
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4925 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-09 15:41:22 +00:00
Angus Leeming
256dc1b99f Rename bbox.sed so that multiple runs don't get confused.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4808 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-30 17:14:16 +00:00
Angus Leeming
0253a8b7b7 Use "\\" rather than "[\]" by using '' not "" to delimit the expression.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4759 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-23 10:07:54 +00:00
Angus Leeming
0fc1b8d397 More efficient R.E..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4757 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-23 09:19:58 +00:00
Jean-Marc Lasgouttes
af9352a2e7 latest graphics jumbo patch from herbert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4741 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-22 12:36:41 +00:00
Angus Leeming
c723c2aeff * Improve error reporting.
* Make it work with scary_eqns.lyx by repeating the LaTeX run if it failed
first time round, but this time remove the showlabels option from
preview.sty.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4704 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-18 17:17:17 +00:00
Angus Leeming
6ae1cb1d6c Use gs's pnmraw device rather than its pnm one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4622 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-12 14:53:40 +00:00
Angus Leeming
a0003fb2a8 New lyxrc variables for the preview stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4580 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-10 09:09:37 +00:00
Angus Leeming
83d049ff0c Make the cropping work and then turn it off by default.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4547 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-08 12:50:49 +00:00
Angus Leeming
0cf115854c Add an option to crop to the left and to the right of the images if so desired. Add some blurb to the top of the script.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4546 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-08 11:57:30 +00:00
Angus Leeming
f68a2bfb91 Preview code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4538 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-05 21:24:15 +00:00
André Pönitz
2f8ca779af Herbert's changes to the converter script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4504 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-01 08:07:21 +00:00
André Pönitz
492182feae move the preview conversion stuff into an external script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4494 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-27 10:42:51 +00:00
Jean-Marc Lasgouttes
d246375c2c backport listerrors to python 1.5, fix installation when there are no ps TeX fonts, update NEWS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3829 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-25 23:29:30 +00:00
Jean-Marc Lasgouttes
f10227802b tentative fix for #190; other small things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3782 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-19 21:42:50 +00:00
Dekel Tsur
7a57795f20 insetexternal: Do not run update command if result file exists and is up to
date.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2960 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-02 16:28:29 +00:00
Jean-Marc Lasgouttes
44b7b7fc71 more skak tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2957 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-31 17:16:35 +00:00
Jean-Marc Lasgouttes
60ca300e1d skak support, John's ERT fixes, loclae blunder fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2955 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-31 15:19:49 +00:00
Jean-Marc Lasgouttes
1d415f2c7c update to TeXFiles.sh
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2886 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-15 13:59:11 +00:00
Jean-Marc Lasgouttes
ec03124798 fixes to tex-info stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2865 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-12 08:15:47 +00:00
Angus Leeming
ba61c3aa4c Clean-up of Herbert's Texinfo dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2859 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-10 16:45:05 +00:00
Jürgen Vigna
7590dcfa98 Patch from Dekel for fig2pstex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@819 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-19 08:27:20 +00:00
Lars Gullik Bjønnes
6bba977f42 FILMagain changes (will need some work)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@807 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-12 11:27:15 +00:00