Commit Graph

2993 Commits

Author SHA1 Message Date
Enrico Forestieri
306b136cc0 Fix bug #4812 (Layout in local directory lost on Save As, Copying)
The "save-as" part of the bug is fixed by extending the \textclass tag
such that, if a local layout file is used, its path relative to the
document directory is now stored together with the name. If a relative
path cannot be used, an absolute one is used but, in this case, the
document is not usable on a different platform.

The "copy" part is fixed by introducing a new \origin tag, which is
written when the file is saved. This tag stores the absolute path of
the document directory. If the document is manually copied to a
different location, the local layout file is retrivied by using
\origin (which is only updated on save).
This new tag may prove useful also for locating other files when the
document is manually moved to a different directory.

As in the original implementation the files needed for the layout
(for example, a latex class) had to be in the same directory as the
layout file, this directory has also to be added to TEXINPUTS.
2015-05-13 22:02:13 +02:00
Uwe Stöhr
335ccee3b5 GuiBox.cpp: re-add lost braces
- FORMAT: add date
2015-05-11 22:16:36 +02:00
Uwe Stöhr
8010b90cb4 add ability to change box line thickness and separation
fileformat change
2015-05-11 21:30:32 +02:00
Georg Baum
51cc8aa9f6 Fix build with GNU libstdc++ C++11 ABI
The GNU libstdc++ that ships witch gcc 5 can be used with the same ABI as
older versions, or with a new ABI which is conformant to the C++11 standard.
LyX did not build if the latter was used:
https://kojipkgs.fedoraproject.org//work/tasks/1267/9651267/build.log

This is now fixed by detecting the ABI version and disabling the wrong forward
declarations. At the same time, STD_STRING_USES_COW is switched off for the
C++11 ABI version, because the std::basic_string implementation is now C++11
conformant. Since the GNU libstdc++ can also used by other compilers such as
clang, we must not test for the compiler version.
2015-05-08 21:12:42 +02:00
Scott Kostyshak
5f7395d648 ctex.lyx: use free fonts by default
Now with TeX Live 2014 (and also with 2015), we can export ctex.lyx
with free fonts. I have confirmed that the output is correct.
2015-05-05 02:15:44 -04:00
Scott Kostyshak
e3546485ce ctests: PDF-form only works with (pdf|lua)latex
This is even stated in the file.
2015-05-05 01:19:29 -04:00
Uwe Stöhr
758e27c611 installer: preparation and updates for upcoming LyX 2.1.4 release 2015-04-24 23:53:15 +02:00
Juergen Spitzmueller
c886679160 Rewrite the linguistic Glosse insets.
This gets rid of the PassThru hack and makes the inset actually usable
for linguistists.

Fixes: #7773

File format change.
2015-04-21 20:33:35 +02:00
Juergen Spitzmueller
7158f7b58d Add support for linguistic trees (via forest) 2015-04-20 18:14:42 +02:00
Juergen Spitzmueller
225a37be39 Support item argument in linguistic examples
File format change.
2015-04-20 12:15:20 +02:00
Scott Kostyshak
ffa6e74c74 ctests: remove some tests from ignored file
The bug that caused these tests to enter into infinite loops
(and have a memory leak) has been fixed. These tests now
pass on an updated TeX Live 2014 as well as the current TeX
Live 2015 pretest.
2015-04-16 22:54:33 -04:00
Juergen Spitzmueller
319ee3296a File format change caused by 34eadf5d4. 2015-04-09 11:01:44 +02:00
Scott Kostyshak
42400823a7 ctest: do not disable the English version test 2015-04-08 15:04:43 -04:00
Scott Kostyshak
2292822f3c ctests: disable two fr/Math.lyx tests
One of the tests is also disabled for es/Math.lyx. However,
the other test passes for es/Math.lyx. To reproduce,
open fr/Math.lyx, click "Use non-TeX fonts", and choose
e.g. "FreeSans" for the three fonts. Then view as PDF (LuaTeX).

I put a note to look into why this one fails.
2015-04-08 14:26:07 -04:00
Uwe Stöhr
c6b17b685a support for Georgian
add support to set Georgian as document language, fileformat change
2015-04-06 06:00:11 +02:00
Kornel Benko
953e56492a Cmake tests: Test export xhtml always, independent of default output format 2015-04-02 09:51:53 +02:00
Kornel Benko
6cd29398f6 Added test for export of icon graphics in lyx info inset.
Tests the polluting of the system directory with pdf form of the
original svgz graphic.
2015-04-02 09:39:42 +02:00
Kornel Benko
36d1829991 Enable editing 'slovak.nsh' with emacs. 2015-04-01 18:16:35 +02:00
Kornel Benko
390b59011d Cmake build: Do not install .pdf icons created by export
Such files are polluting the lib/images directory if
exporting lyx-files containing lyx-info of type icon.
2015-04-01 17:26:13 +02:00
Kornel Benko
db7b1acd54 Cmake tests: Test pdf exports honoring the default output format
The variable 'out_formats' was not set correctly in this case.
2015-04-01 11:50:31 +02:00
Kornel Benko
69bec00e38 Cmake tests: Make check_load tests run in sequence.
Running parallel commands 'lyx -batch ...' with files from
the same directory has lead to conflicts.
2015-03-28 22:54:08 +01:00
Kornel Benko
cc3dd7753e Cmake tests: make parallel export tests safer.
Use different temporary directory for each test.
2015-03-28 21:21:16 +01:00
Georg Baum
49ac79100b Make InsetSpecialChar names more consistent
This is the rersult of a discussion on the list. Now all special characters
have meaningful names, and it is clear that the LyX file syntax is not LaTeX.
2015-03-23 21:28:04 +01:00
Kornel Benko
3fe0f7bac0 Test for undo crash in math env.
According to fix #9432, Scott found a new crash
	1. start a new LyX document, english GUI
	2. alt+m f to create a fraction
	3. alt+m r to insert a root
	4. undo
2015-03-22 19:04:16 +01:00
Kornel Benko
6787ec05f7 Cmake build: Add .svgz files to Resources.
It does not seam to make a difference.
Added because other icons are also included.
2015-03-17 20:46:02 +01:00
Kornel Benko
e0c3379645 New test for seach and replace of a logo 2015-03-17 17:52:37 +01:00
Kornel Benko
034d5632a2 Make tests for QT5 and QT4 work.
Changing *-in.txt due to erroneous shortcuts in it.po
keytest.py, single-test.cmake and CMakeLists.txt now
provide a frontend hint for xvkbd.
2015-03-17 17:36:47 +01:00
Kornel Benko
2008e0876f Cmake build: Remove deleted svg subdir from installation.
Also added missing images/math/oxygem icons to installation.
2015-03-14 16:15:35 +01:00
Kornel Benko
da46f6566a Preparation to support translations with python3
Thanks to José.
2015-03-11 20:54:28 +01:00
Scott Kostyshak
50b570e05a ctests: revert a MultilingualCaptions XeTeX test
This file and format exports correctly since 5753760b.
2015-03-10 23:35:49 -04:00
Kornel Benko
4ac32ef351 Forgotten in previous commit
This is not needed bacause the command 'grep' is not
so language sensitive as pcregrep. It's only for the sake of consistence
2015-03-09 10:38:07 +01:00
Kornel Benko
0ed7f301ea Remove the need of specific language packs for keytests
The command pcregrep failed trying to set locales to
not installed language pack.
2015-03-09 09:41:34 +01:00
Enrico Forestieri
afeae62f3f Update cygwin script.
Recent versions of the cygwin X11 server come with a startup script
that explicitly uses '-nolisten tcp' for improved security. This means
that mentioning a host part in the DISPLAY variable precludes correct
operation. So, leave blank the host part such that only local connections
are attempted. Even if a user can override this setting in the own
~/.lyxprofile, novice users (and even experienced ones, at first) would be
probably confused by the "Error: Can't open display: localhost:0" message
and thus it is better to make this work out of the box.
2015-03-03 18:17:37 +01:00
Georg Baum
3e9e6e344a Replace automatic logofication with insets
Previously, LyX did replace some words with typeset logos, and there was no
way to prvent this except putting them, in ERT (bug #4752). Now we have
special insets for these words, and standard text is left alone.
2015-03-01 11:16:57 +01:00
Uwe Stöhr
d4b92d8a6d Installer: slovak.nsh: translation update by Kornel 2015-02-27 01:11:00 +01:00
Georg Baum
8aa37c43a1 Fix plaintext output of dashes (bug #3647)
Previously, consecutive dashes in .lyx files were combined to endash and emdash
in some cases, and in other cases they were output as is. This made the code
complicated, and resulted in inconsitencies ((bug #3647).
Now, a dash in a .lyx file is always a dash in the output, for all flavours.
The special handling is moved to the input side, so that you still get an
endash if you type two hyphens. If needed, this can be changed or made
customizable without the need to update the file format again. Many thanks
for the fruitful mailing list dicsussion, which contributed significantly to
the final version.
2015-02-24 22:06:12 +01:00
Scott Kostyshak
29e96634df ctests: invert some of the PDF-comment tests
Only pdflatex is expected to work reliably.
lualatex also appears to compile.
2015-02-21 14:08:54 -05:00
Scott Kostyshak
68c6d7943d ctests: revert Russian XeLaTeX and LuaLaTeX tests
These exports (with TeX fonts) have been successful since support
for proper font encoding for Russian was added at d7cf6ca7.
2015-02-18 03:29:59 -05:00
Scott Kostyshak
a6f7c598cd ctests: invert many of the ja template tests
We only expect pdf and pdf3 to pass. This is consistent with
other LyX Japanese documents.
2015-02-18 02:35:05 -05:00
Scott Kostyshak
36c3495a3a Correct the spelling of "occured" to "occurred" 2015-02-09 18:44:02 -05:00
Uwe Stöhr
5fa7d3f90a Win installer: correct a sorting 2015-02-09 01:16:47 +01:00
Stephan Witt
90f723e282 Disable mouse middle button paste on Mac OS X per default
Add UI translation for german
2015-02-08 20:08:29 +01:00
Juergen Spitzmueller
706960eba4 Add Question and Question* theorem types (bug #9015)
File format change.
2015-01-09 11:24:45 +01:00
Uwe Stöhr
4e1e01361f Windows installer: fix problem with installation of babel Packages
- the installer now re-synchronize MiKTeX's package database before installing or updating LaTeX-packages. This assures that new packages and renamed packages can automatically be installed when they are missing (fixes bug #9370)
- update the list of LaTeX packages that have to be installed when LyX is installed via the bundle installer for the first time on a PC
- add support for Turkish spell-checking
2015-01-09 02:49:41 +01:00
Enrico Forestieri
9126a99e97 Fix bug #9217: [Qt5] QWindowsMime class not available
The support for QWindowsMime has been reintroduced in Qt 5.4.0.
The class name has been changed to QWinMime but the interface
is exactly the same.
2014-12-26 16:53:31 +01:00
Georg Baum
6f34a8a640 Get rid of tr1 support
As discussed on the list. We don't need it anymore, either we have a modern
compiler that supports C++11, or we fall back to boost. I kept and adjusted
the regex #define, since we cannot use std regex completely yet.
2014-12-23 22:18:08 +01:00
Georg Baum
7796ad3a36 Improve llvm libc++ detection
The old detection did only work if CFLAGS contained -std=c++11, since ciso646
was only included for __cplusplus > 199711.
Thanks to Koernel for the cmake part.
2014-12-21 17:26:21 +01:00
Stephan Witt
57941c83ea add Mavericks and Yosemite SDKs 2014-12-21 15:58:34 +01:00
Kornel Benko
98d063e9be Cmake build: Check for string COW by checking for library, not compiler
Changed according to automake behaviour, see 385f3e8abd
2014-12-19 12:32:14 +01:00
Kornel Benko
edf22ba723 Cmake build: Detect clang and adapt definition of STD_STRING_USES_COW. 2014-12-08 17:43:05 +01:00
Juergen Spitzmueller
1df5d28df5 Update the spec file template
Patch by user aluchko in #9349

Fixes: #9349
2014-12-08 13:15:06 +01:00
Stephan Witt
b69fed3610 add short git hash to name of devel disk images to get different names for devel versions without manual intervention 2014-11-17 19:43:54 +01:00
Georg Baum
f110ef2f41 Convert updatelayouts.sh to python
This makes the script usable on windows and speeds it up by an order of
magnitude, since no new process needs to be forked for each layout file.
It also does not conevrt .old files again.
2014-11-16 12:43:52 +01:00
Kornel Benko
07683c1f0d Cmake build: 'callstack printing' detection.
Instead of depending on compiler we try to check for working
API as is done now for automake build too.
2014-11-09 12:59:14 +01:00
Stephan Witt
0e4de64d5e improved mount state check 2014-10-24 18:14:42 +02:00
Stephan Witt
ef51c22ddf Add lyx_commit_hash.h.cmake to distribution tar ball 2014-10-24 18:13:27 +02:00
Kornel Benko
81afd10fc7 Cmake build: Moved creation of variable LYX_GIT_COMMIT_HASH to development/cmake/scripts/LyXGetVersion.cmake.
1.) The only file which needs this define is src/version.cpp. Our use in config.h
resulted in recompiling most of our sources.
With this change, only version.cpp needs to be recompiled.

2.) Without reconfiguring, the old commit hash was still valid. Now the
detection of commit hash is done at compile time.
2014-10-24 16:58:54 +02:00
Kornel Benko
110f39482e Cmake buid: Install the new svgz icons 2014-10-18 16:53:41 +02:00
Juergen Spitzmueller
6708c011d7 Add a script to automatically generate SVG math images from a LyX template.
This is an adaptation of Georg's generate_symbols_images script, but it uses dvisvgm instead of dvipng.
2014-10-15 16:14:05 +02:00
Kornel Benko
a24e076046 Add the git commit (if applicable) to LyX version
Addition to cmake.
Patch mostly from Stephan Witt.
2014-10-11 11:18:48 +02:00
Stephan Witt
35722e58ec LYX_GIT_COMMIT_HASH is in config.h now 2014-10-10 12:27:31 +02:00
Uwe Stöhr
056ae6a9fe Install.cmake: add missing subfolder "\templates\springer" and remove an unnecessary folder
we don't need to install the attic template files. These are for years now in attic and LyX 2.2. should make a cut somehow for very old attic material
2014-09-25 00:25:02 +02:00
Kornel Benko
efb8584ba1 Cmake export tests: Use unique file names for exported files
This should prevent possible errors for tests running in parallel.
We now also check for created export file.
  complainer/feature requester: Scott Kostyshak
2014-09-09 19:02:20 +02:00
Kornel Benko
2df6340c1c Cmake tests: Set also correct sequence of tests again. 2014-09-03 12:35:40 +02:00
Kornel Benko
d97c34f4fe Cmake tests: Disable keytests if missing needed input files
The files first-time-in.txt and hello-world-in.txt are used
as first tests to initialize the test environment for the other
keytests.
2014-09-03 12:25:28 +02:00
Kornel Benko
b62c6a1c5e Added more missing files to autoconf's dist 2014-09-02 15:02:55 +02:00
Kornel Benko
6c7b5b12c7 Add cmake files to autoconf's dist 2014-08-31 15:21:20 +02:00
Juergen Spitzmueller
9a702f195d Add support for beamer lemma environment.
File fomat change.
2014-08-31 12:30:14 +02:00
Stephan Witt
f2aeca65b4 pass git commit hash within CPPFLAGS to add it to version info 2014-08-28 08:30:45 +02:00
Stephan Witt
4a04328be2 Correct LyXUtilitiesDir default assignment location (thanks Patrick) 2014-08-26 07:37:59 +02:00
Kornel Benko
6767052bba keytest.py: Allow for LyX window to appear without timeout
Timeout for lyx-process to appear may be significantly smaler.
5 sec. looks sufficient, while lyx-window may take some time
due to configure.py.
2014-08-25 14:28:18 +02:00
Kornel Benko
e4772c103e keytests: add a timeout for LyX process to start
If the LyX window does not appear after a certain (conservative)
time, the keytest now fails. One reason that caused the LyX window
to never show up was when DISPLAY was not set. This particular case
has been fixed in <commit1hash>. This commit is meant for the more general
scenario.
(Collaboration with Scott Kostyshak)
2014-08-25 13:49:12 +02:00
Kornel Benko
f2937e676a Fix stalling of keytests when invalid DISPLAY
Before, the keytests would run infinitely if the
tests were run, e.g. through SSH without X forwarding.
To reproduce that problem, run

  DISPLAY='' ctest -R hello

This commit causes the test to correctly fail in such situations.
(Collaboration with Scott Kostyshak)
2014-08-25 13:45:32 +02:00
Uwe Stöhr
742ba333bf FORMAT: document latest file format change 2014-08-25 01:28:12 +02:00
Stephan Witt
7590dda669 Add check for the link for libmagic.dylib. 2014-08-22 10:05:40 +02:00
Stephan Witt
07c5124496 Remove unused code. 2014-08-22 10:04:53 +02:00
Stephan Witt
e389c935d2 Improved QtConfigureOptions (for Qt5.3). 2014-08-22 09:58:32 +02:00
Stephan Witt
1a6ee29de9 Remove gettext framework support. Add libmagic framework support. 2014-08-22 09:52:39 +02:00
Stephan Witt
8900a927a1 Add command line option to define the location of the self made utilities 2014-08-22 08:39:14 +02:00
Uwe Stöhr
ad1a553454 installer: update changelog 2014-08-04 23:59:29 +02:00
Kornel Benko
63976066ad avoid qt4 variable names in cmake build 2014-07-21 08:49:05 +02:00
Stephan Witt
b06abbbdbc avoid qt4 variable names 2014-07-20 18:16:36 +02:00
Enrico Forestieri
4bdeae2733 Update autotools for building with Qt5.
The option --enable-qt5 allows configuring for Qt5. The default is Qt4.
Nothing special is done with respect to Qt4, apart from pulling in the
correct libraries. Indeed, other than the core and gui libraries, now
also the concurrent and widgets libraries are needed.
2014-07-19 03:34:28 +02:00
Stephan Witt
0eb2df6ab6 do not strip binary for packaging by default; improved name of disk image 2014-07-16 22:25:25 +02:00
Enrico Forestieri
ff506c8e42 Use getent instead of grepping /etc/passwd.
Forthcoming versions of cygwin will use a different mechanism for
obtaining passwd/group information based on /etc/nsswitch.conf.
Thus, it will not be guaranteed that the files /etc/passwd and
/etc/group even exist. The recommended way for obtaining those
info is by using the getent command, which already works in
current versions.
2014-07-13 14:39:05 +02:00
Georg Baum
1a073ea416 Missing file format bis from 0c3b88e3 2014-07-10 21:59:17 +02:00
Scott Kostyshak
0ce8bee57f ctests: un-invert some tests after updates
David Carlisle fixed some EuropeCV issues and other updates
on TeX Live 2014 fixed a few more exports.
2014-07-01 21:18:14 -04:00
Scott Kostyshak
78b7045ed8 CMake: full path of an include needed for ver <3.0 2014-06-21 20:43:06 -04:00
Kornel Benko
7bc0a6f388 Cmake tests: Optimizing the cmake configuration time
The configuration time suffers mostly on checking, which of the export tests
is to be reverted.
1.) There is a new configuration flag now, "LYX_ENABLE_EXOPRT_TESTS.
   If not set (default) no export tests are created.
2.) If set, then the optimization halves the time needed for creation of tests.

The effect on my side:
        a.) Until now the time was:        ~ 26 seconds
        b.) The optimized time is now:     ~ 16 seconds
        c.) With not enabled export tests: ~  5 seconds
2014-06-21 21:15:54 +02:00
Kornel Benko
c9a6939ebb ctests: Use regular expressions 2014-06-19 21:04:18 +02:00
Scott Kostyshak
e11ae599ea Update ctests to reflect inputenc changes
There were changes to inputenc and luainputenc that are now
released in Tex Live 2014 that affect several exports. Some
exports that produced good PDFs now fail. Others that produced
incorrect PDFs (with gibberish) now correctly fail. Several
IEEEtran-* exports failed before and now export correct PDFs.

For more information, see

  http://tug.org/pipermail/tex-live/2014-May/035338.html
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184435.html
2014-06-19 10:26:15 -04:00
Scott Kostyshak
7ae0700c7e Fix a comment 2014-06-19 10:26:01 -04:00
Kornel Benko
3b14de740d Cmake build: Symplify use of linking optional libraries found via find_package 2014-06-12 19:02:29 +02:00
Kornel Benko
1b3e4c73f8 Cmake tests: Added parser_tools test to the lyx2lyx group tests 2014-06-12 09:07:57 +02:00
Kornel Benko
207cd7a1b7 Cmake build: Use LYX_USE_QT to determine if QT uses X11 2014-06-12 07:52:45 +02:00
Kornel Benko
cc6175bc96 Cmake build: Early check for wrong combo values 2014-06-09 10:03:56 +02:00
Kornel Benko
2a0ae2e739 Cmake build: Add combo-values to the list of displayed lyx options 2014-06-07 21:00:46 +02:00
Georg Baum
5353b406e6 Document class file name rule
This rule was followed in practice, but not documented so far.
2014-06-07 11:32:15 +02:00
Kornel Benko
e1d3189492 Cmake build: Select full path to library
Testing for QT_USES_X11 links ok now also if the the qt-libraries
are on some non-conform place. (Like self compiled but not installed).
2014-06-07 10:55:21 +02:00
Kornel Benko
8c0e1b5c70 Cmake build: Added convenience macro LYX_COMBO
Will be used later to allow selection between multiple alternatives.
2014-06-07 10:45:13 +02:00