lyx_mirror/development
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
..
attic Correct the spelling of "occured" to "occurred" 2015-02-09 18:44:02 -05:00
autotests ctex.lyx: use free fonts by default 2015-05-05 02:15:44 -04:00
checkurls Use prototypes in perl scripts 2014-01-24 11:00:07 +01:00
cmake Fix build with GNU libstdc++ C++11 ABI 2015-05-08 21:12:42 +02:00
coding Document class file name rule 2014-06-07 11:32:15 +02:00
cygwin Update cygwin script. 2015-03-03 18:17:37 +01:00
HTML Update HTML notes again. 2011-04-03 13:38:05 +00:00
keystest
lyxserver Remove obsolete source file. 2010-02-18 09:58:20 +00:00
MacOSX Disable mouse middle button paste on Mac OS X per default 2015-02-08 20:08:29 +01:00
mathmacros
tools Convert updatelayouts.sh to python 2014-11-16 12:43:52 +01:00
Win32 installer: preparation and updates for upcoming LyX 2.1.4 release 2015-04-24 23:53:15 +02:00
.gitignore Setup .gitignore for generated files 2012-03-22 02:16:12 +01:00
expectedTestFailures Cmake build tests: update comments 2013-08-25 18:18:19 +02:00
FORMAT Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
LyX-Mac-binary-release.sh add Mavericks and Yosemite SDKs 2014-12-21 15:58:34 +01:00
lyx.package.README Creat source package with 'make package_source' from inside the build directory 2011-05-23 08:44:32 +00:00
lyx.rpm.README Typos 2012-06-05 12:22:13 +02:00
lyx.spec.in Update the spec file template 2014-12-08 13:15:06 +01:00
Makefile.am Add lyx_commit_hash.h.cmake to distribution tar ball 2014-10-24 18:13:27 +02:00