Commit Graph

291 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
5cbd9cf8d9 * BufferParams.cpp: font name can be non-ASCII! (bug #7569).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38826 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-23 17:14:29 +00:00
Richard Heck
5db4b7eb16 Move a bunch of code from Buffer to BufferParams. The point of this
is contained in the next commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38742 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-13 19:39:56 +00:00
Tommaso Cucinotta
c23eef3abf Still addressing #6560: instead of cloning the BufferParams, which might cause
a number of unforeseen issues (like the inheritance of the default master, as
pointed out in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg168225.html),
now we simply set the language into the search & replace buffers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38647 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 23:51:44 +00:00
Richard Heck
1493191f77 Fix bug #7500: There is presently no way in the GUI to update local
layout to the current format.

This probably isn't needed for branch, since local layout was a
"hidden feature" prior to 2.0, and one can update local layout by:
  (a) copying to a file
  (b) running layout2layout on that file
  (c) pasting back into LyX
So we should probably just leave this in trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38622 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 00:54:17 +00:00
Jürgen Spitzmüller
a671dc5851 try to clarify a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38002 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-23 14:15:46 +00:00
Richard Heck
a4e42fe8e7 Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37691 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-16 14:54:06 +00:00
Richard Heck
6127141d4b Introduce BufferParam to control whether CSS is output in the header of
the XHTML file or to a separate style file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37682 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 17:44:17 +00:00
Enrico Forestieri
c6648aaeb9 Complete integration of texrow with otexstream and allow automatic line
counting also when outputting the latex preamble.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37641 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-13 21:41:44 +00:00
Jürgen Spitzmüller
58fd91390c * BufferParams.cpp: do not load luainputenc if inputenc has explicitly being disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37578 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 18:21:43 +00:00
Jürgen Spitzmüller
ff13ada543 forgot this in previous revision.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37568 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 08:25:24 +00:00
Enrico Forestieri
c0a727a9d4 Don't pass the letterpaper option to the geometry package when using
default paper format and margins are explicitly set.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37470 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:03:18 +00:00
Jürgen Spitzmüller
f27d5aa9ae * Allow to set language package on a per-document basis (fixes bug 2909).
File format change. Commit approved by Pavel on trac.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 14:17:31 +00:00
Jürgen Spitzmüller
a37190ee62 * BufferParams.{cpp,h}:
- go back to Maping=tex-text for XeTeX and use Ligatures=TeX only for LuaTeX.
	  This gets users of older distributions (such as TeXLive 2009) back into the XeTeX game.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37402 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 14:00:23 +00:00
Pavel Sanda
42785e6219 Bug #7095: Support fix-cm.sty
Patch from Patrick Atamaniuk.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165122.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37342 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:52 +00:00
Pavel Sanda
eeeb14915a Change message, section number can easily change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37003 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-26 23:42:22 +00:00
Jürgen Spitzmüller
0f2cfd957e Load the package breakurl with hyperref in DVI output (fix bug 7033).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36860 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 07:58:07 +00:00
Jürgen Spitzmüller
04bfd58a3a * BufferParams.cpp (loadFonts):
- replace the fontspec option "mapping=text-tex" with "Ligatures=TeX" as recommended in the fontspec manual.
	  The two options are equivalent, but only the latter is recognized by LuaTeX.
	- do not use TeX ligatures with typewriter fonts (this is the same in standard LaTeX).
	- add a bit of documentation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36836 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-12 10:15:44 +00:00
Jürgen Spitzmüller
10a4b5f872 * BufferParams.cpp: fix cut'n'paste error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36830 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-11 17:17:47 +00:00
Jürgen Spitzmüller
3518419a33 * resolve conflicts of XeTeX with AMS by loading all AMS packages before fontspec. See
http://www.macfreek.nl/mindmaster/LaTeX_package_conflicts#Amssymb_with_Xunicode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36777 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 18:42:10 +00:00
Jürgen Spitzmüller
089927dd6f make i18npreamble work with polyglossia.
We might want to rename the babelpreamble tokens to something more general.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36773 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-08 12:10:22 +00:00
Jürgen Spitzmüller
5c02ca57d4 * BufferParams.cpp: use polyglossia only with nonTeXFonts.
Now the UG compiles with XeTeX and tex fonts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36578 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 07:52:58 +00:00
Jürgen Spitzmüller
3d1226b4f2 * Use the package luainputenc if LuaTeX is used as output format _with_ tex fonts. With this, the UG compiles with LuaTeX if "Unse non-TeX fonts" is not selected.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36559 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-28 17:51:21 +00:00
Jürgen Spitzmüller
ff20f7ebe9 Allow to use XeTeX and LuaTeX with tex fonts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36537 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-27 13:43:13 +00:00
Richard Heck
4540c4a18e Final batch of BufferParam renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36525 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:42:53 +00:00
Richard Heck
fc3b06eac8 Rename a bunch of BufferParams to conform to our usual style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36524 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:32:29 +00:00
Richard Heck
58978d7bb5 Begin renaming some BufferParams to conform to our usual style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36523 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:20:48 +00:00
Jürgen Spitzmüller
2dc2e4770b Implement GUI for LuaTeX. File format change due to the renaming of the \use_xetex buffer param.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 09:42:03 +00:00
Jürgen Spitzmüller
2868ff7a52 add basic LuaTeX backend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36448 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 16:07:42 +00:00
Jürgen Spitzmüller
fc9c1494ce further xetex disambiguation: use the flavor where the flavor is apt.
This introduces an isFullUnicode() function to OutputParams that currently only contains XETEX, but later can also contain other fully unicode-aware backends (LUATEX for instance).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36445 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 12:23:36 +00:00
Jürgen Spitzmüller
44aef91ea6 more xetex-disambibuation: here, the flavor really matters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36443 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 11:49:04 +00:00
Jürgen Spitzmüller
fa8dae4201 Try to disambibuate the use of "xetex". Here, we actually require polyglossia.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36442 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 11:44:40 +00:00
Jürgen Spitzmüller
7cbeed2e40 * Introduce polyglossia support (bug 6576).
Please test this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36433 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 12:10:16 +00:00
Jürgen Spitzmüller
7a27ce678d * XeTeX: OldStyleNumbers argument must be specified as \setmainfont option (bug 7041).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36408 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 14:53:34 +00:00
Jürgen Spitzmüller
ef79a1fe8a * UI changes in anticipation of polyglossia support:
- rename \language_package to \language_custom_package
     - the bool \language_use_babel is replaced by a more fine-grained selection:
        * chose language package automatically (later: babel or polyglossia)
        * always use babel (also with XeTeX)
        * custom (i.e. use \language_custom_package)
        * none (equivalent to former \language_use_babel false)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36407 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-20 13:34:14 +00:00
Richard Heck
352db52859 Line length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36389 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 22:19:39 +00:00
Vincent van Ravesteijn
e1398a66d8 Author: more cosmetics. Forgot these in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36342 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:13:59 +00:00
Jürgen Spitzmüller
cc5dd37a2a Introduce a new Language option "AsBabelOptions" that specifies whether a language requires to be passed to babel itself (instead of globally to the class).
This allows us to remove some ugly hardcoding of languages in the source.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 10:35:35 +00:00
Jürgen Spitzmüller
12c7e7dde3 * add PreBabelPreamble to Language definition (fixes #4786).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 09:54:24 +00:00
Jürgen Spitzmüller
148f2d648c The languages file rewrite.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 17:25:03 +00:00
Richard Heck
f7e80e6681 More safety here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36013 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 20:15:04 +00:00
Richard Heck
01af564dc2 Fix bug #7014. The problem here is that we get DEFSKIP if we don't
recognize the argument, but that leads to an infinite loop.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36012 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 20:12:18 +00:00
Vincent van Ravesteijn
152491f916 Some cosmetics (from my local cosmetics branch).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35708 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 14:20:03 +00:00
Richard Heck
01013c0785 Refstyle support. The user can now choose between prettyref and restyle
for formatted references. Fixes #2295, in so far as it makes it possible
to translate formatted references.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:36:53 +00:00
Uwe Stöhr
a2c6c06908 better support for the mathdots package:
technically this package is the same as esint, only for dots instead of integrals -> therefore we can and should handle it the same as esint

-> add "use automatically" checkbox
-> load mathdots if \iddots is inserted

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35251 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 23:34:54 +00:00
Uwe Stöhr
1712e4f35e support to load the mathdots package via the document settings; fixes #5373; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35241 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 02:04:46 +00:00
Richard Heck
fc6492a20f Improve the error message a bit. LyX CAN produce output in such cases,
just not PDF, etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35056 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:15:29 +00:00
Richard Heck
fd03b1280e Allow for "Provides babel 1".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34937 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 14:49:30 +00:00
Richard Heck
47db764ccc Nameref support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34884 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 03:23:29 +00:00
Uwe Stöhr
e2e63b4b1b support for the ISO C-series paper formats; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34883 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 01:06:20 +00:00
Richard Heck
2c19192582 Clarify error message slightly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34881 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-12 18:11:26 +00:00