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
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
- 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
- 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
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
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
- 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
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
- 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
- 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
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
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
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
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
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
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
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
- 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
- \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
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
- 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
- English EmbeddedObjects.lyx: fix a typo spotted by Ignacio
- EmbeddedObjects.lyx: make the file compilable also if the LaTeX-package lettrine is not installed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39542 a592a061-630c-0410-9148-cb99ea01b6c8
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
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
(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
http://www.lyx.org/trac/ticket/7555
This part is a simple cleanup:
* rename variables to start with a dot
* reset encoding after running sweave
* improve on-screen display of code chunks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39506 a592a061-630c-0410-9148-cb99ea01b6c8
- describe BibTeX variants
- updated XHTML description
- add a warning for DVI (LuaTeX) format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39454 a592a061-630c-0410-9148-cb99ea01b6c8
- stdmenus.inc: add lilypond.lyx to the specific manuals, sort the entries, remove multicol as this is now gone (included in the Additional manual
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39450 a592a061-630c-0410-9148-cb99ea01b6c8
- UserGuide.lyx: revise Appendix A, ass some info about cross-referencing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39434 a592a061-630c-0410-9148-cb99ea01b6c8
- use the new super/subscript inset
- correct single ans simple quote
- add info how to change line properties
- list menu entry for phantom space
- German UserGuide.lyx: lot of translation and refactoring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39425 a592a061-630c-0410-9148-cb99ea01b6c8
- Galician Tutorial.lyx: use formatting of the English version
- some other formatting things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39365 a592a061-630c-0410-9148-cb99ea01b6c8
- Additional.lyx: update description of multiple columns
- multicol.lyx: remove this file because its content is now completely in Additional.lyx
(We once described multiple columns in 3 different files, Additional.lyx, Customization.lyx and multicol.lyx. We now have only one place.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39355 a592a061-630c-0410-9148-cb99ea01b6c8
- Italian Customization.lyx: use the same document settings as the English version
- Additional.lyx: revert undesired change from last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39352 a592a061-630c-0410-9148-cb99ea01b6c8
- the \LyX macro is no longer fragile since r37164, therefore preamble code can go
- some intro cleanups and fixes to have an uniform layout for all language variants
- remove some obsolete text from Polish and Basque Additional.lyx versions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39350 a592a061-630c-0410-9148-cb99ea01b6c8
- remove the file enumitem.lyx: its content is now part of the UserGuide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39344 a592a061-630c-0410-9148-cb99ea01b6c8
- EmbeddedObjects.lyx: minor issues
- German Additional.lyx: transform the layout of the file to follow the other language variants of Additional.lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39332 a592a061-630c-0410-9148-cb99ea01b6c8
- Springer template files: describe the optional argument for Preface and Foreword
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39318 a592a061-630c-0410-9148-cb99ea01b6c8
- don't include Sol and Prob to layouttranslations
- change label type of the style Sol as suggested
- svmono_chapter.lyx: better description of the problem styles
- svmono_solutions.lyx: better description of the solution styles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39309 a592a061-630c-0410-9148-cb99ea01b6c8
- EmbeddedObjects.lyx: LyX supports now changing of greyed-out note text color
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39306 a592a061-630c-0410-9148-cb99ea01b6c8
- document how to define custom headers/footers
- actualize list of available paper formats
- English version: some typos fixed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39302 a592a061-630c-0410-9148-cb99ea01b6c8
- svmono, svmult templates: set master document for the childs as suggested by Marcus Kriele
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39292 a592a061-630c-0410-9148-cb99ea01b6c8
unintentionally.
The reson for commenting the two lines was a report from
Jean-Pierre Chrétien
"With LyX-2.0.1svn, if I open the context menu on a phantom (e.g.),
the Dissolve Inset item appears twice. This triggers a shortcut
conflict..."
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39275 a592a061-630c-0410-9148-cb99ea01b6c8
- fix proof styles
- subparagraphs are valid
- running section are possible in svmult and svbook
* svmult.layout/svmult_author.lyx: adapted for latest Svmult template rom Springer (version for editors follows the next days)
* svmono_book.lyx: preamble adjustments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39267 a592a061-630c-0410-9148-cb99ea01b6c8
- English and Spanish EmbeddedObjects.lyx: correct a menu name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39216 a592a061-630c-0410-9148-cb99ea01b6c8
- appendix.lyx: modify file according to the official example TeX file
- solutions.lyx: fix broken reference
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39206 a592a061-630c-0410-9148-cb99ea01b6c8
xkeyval fixes the incompatibility between graphicx.sty and babel/turkish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39190 a592a061-630c-0410-9148-cb99ea01b6c8
- new folder for all springer templates (there are too many to keep them in the old folder)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39174 a592a061-630c-0410-9148-cb99ea01b6c8
- ijmpc.layout, ijmpd.layout, svcommon.inc: use the new file
- svcommon.inc: enable theorem numbering and some other bug fixes
- svjour3.lyx: adapt example file
- svglobal3.layout: adapt file
- theorems.inc: update list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39126 a592a061-630c-0410-9148-cb99ea01b6c8
Notes from his email:
=====================
The following issues still persist:
1) LyXHTML export generates incorrect html files. The problem is due to the table of contents, but I am not at all familiar with html and do not know how to fix this.
2) "Short title" for optional arguments does not work. This is intentional in order to guarantee backward compatibility. One can use ERT instead of "Short title". (By the way, wouldn't it be advisable to change the GUI? For a new user it would be hard to guess the general meaning of "Short title".)
3) Numbering of theorems within LyX does not work. I tried to copy the implementation of the theorem-sec.module but LyX does not pick up the correct \thetheorem value. I have a hunch that this is due to Springer's replacement of the "\newtheorem" command with their own "\spnewtheorem" command. \thetheorem is still defined and provides the correct value via ERT, but but I was unable to use it through through the layout mechanism.
4) Book authors may need the LaTeX commands \sidecaption and \sidecaption[t] for the correct placement of figure captions. tex2lyx does not know \sidecaption[t]. Georg wrote this command would be imported correctly if it was registered in the file "lib/synlib/syntax.default".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39114 a592a061-630c-0410-9148-cb99ea01b6c8
also for trunk:
- AEA.lyx: add info how to install the AEA LaTeX class
- iop-article.lyx: some typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39085 a592a061-630c-0410-9148-cb99ea01b6c8
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
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
layout2layout is not smart enough to add "Flex:" to the names of
Flex insets only declared as such through CopyStyle. So these
have to be fixed manually.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39076 a592a061-630c-0410-9148-cb99ea01b6c8
- tufte example files: add info that one needs to have the font package "fpl" installed to compile them
- modernCV.lyx: save in current file format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39072 a592a061-630c-0410-9148-cb99ea01b6c8
The problem is with sweave when the temp file path contains spaces. This patch adds some postprocessing that removes the reference to the temp dir.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39070 a592a061-630c-0410-9148-cb99ea01b6c8