Commit Graph

13 Commits

Author SHA1 Message Date
Richard Heck
d252730dff New AddToPreamble tag for layout files. This tag will ADD some information to the document premable rather than completely over-write it, as the Preamble tag does.
Increment layout format to 7.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:11:16 +00:00
Uwe Stöhr
ad9a92d9f5 layouts: add to all layouts "Input stdinsets.inc" if they not already have this
This fixes the obvious part of bug http://bugzilla.lyx.org/show_bug.cgi?id=4532

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22800 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 20:55:32 +00:00
Jürgen Spitzmüller
385ae43b39 * lib/layouts/beamer.layout:
* lib/layouts/moderncv.layout:
* lib/layouts/powerdot.layout:
	- These classes (at least) provide hyperref.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-21 13:40:34 +00:00
Jürgen Spitzmüller
9e5eebc14c *** Requires tag for classes, layouts and custom insets ***
* src/TextClass{cpp,h}:
	- implement Requires tag for class and InsetLayout.
* src/Layout.{cpp,h}:
	- implement Requires tag for layouts.
	- increase layouts format to 6.
* src/Paragraph.cpp:
	- request required features for paragraph layouts.
* src/LaTeXFeatures.cpp:
	- add some packages needed by modules.
	- remove Preamble method for InsetLayout. This is now done
	  in InsetFlex::validate.
* src/BufferParams.cpp (validate):
	- request required features for the class.
* src/insets/InsetLayout.h:
	- new member "requires".
* src/insets/InsetFlex.{cpp,h}:
	- implement validate method and request required features and preamble snippets.

* lib/layouts/*.{layout,module,inc}:
	- increase layouts format to 6.
	- use Requires tags in some modules (more can be done later).

* lib/doc/Customization.lyx:
	- document Requires tag.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 16:59:10 +00:00
Richard Heck
8f4b99167c Disallow setting of alignment in protected environments, where it is broken. And, as earlier discussion revealed, it ought not really be done, anyway. This is a class-level decision.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20438 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-22 18:02:43 +00:00
Martin Vermeer
8eb22fd082 Updated versions to 5; added stdinsets.inc where I felt confident
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19804 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 09:10:52 +00:00
Uwe Stöhr
6b7436766c moderncv: update layout and example to version 0.6 of moderncv.layout
This means:
 - added subsection style in moderncv.layout
 (I had to promise to JMarc when I added the moderncv support to add this as soon as the new noderncv version is out.)
 - actualize preamble of modernCV.lyx to make it compile with the new version
 - better explanation of customization possibilities in the preamble of modernCV.lyx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18808 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-17 00:21:35 +00:00
Uwe Stöhr
221b6a8452 clean up the CV document class layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18686 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-05 22:07:15 +00:00
Michael Schmitt
930c959a82 * layouts/*.layout: put all LabelStrings in quotes; in the past, we
faced some problems with trailing spaces. The quotes turned out to be
	a good means to avoid these problems


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17807 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-14 11:19:24 +00:00
Jean-Marc Lasgouttes
04efe3c40a New framework for declaring generic features in textclasses.
* src/LaTeXFeatures.C (mustProvide): new method; returns true when
	isRequired is true and the feature is not provided by the
	textclass. 
	(getPackages, getLyXSGMLEntities): use mustProvide when relevant.

	* src/bufferparams.C (getEngine):
	* src/buffer.C (validate): adapt to change below.

	* src/lyxtextclass.C (read): replace tags ProvidesNatbib,
	ProvidesMakeidx, ProvidesUrl and ProvidesAmsmath by a generic
	"Provides".
	(provides): take a string as argument.
	
	* lib/scripts/layout2layout.py (convert): convert "ProvidesXxx" tags
	to "Provides xxx".

	* lib/layouts/*: update to format 4.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 09:02:23 +00:00
Uwe Stöhr
566d5270f5 moderncv: - reworked layout and template file
- reduce ERT to minimum

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17713 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 01:30:54 +00:00
Uwe Stöhr
c94c3a0f1c add bibitem support for moderncv
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17710 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 20:51:27 +00:00
Uwe Stöhr
228c92e6b4 support for moderncv: Layout file and template as we currently have no CV template but as discusses some times ago on the users list we need one for the beginners.
(The next days I'll also prepare support for europecv, the second nicht CV class that is also required to use in some fields.)

I hope I'm not too rash here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17700 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 01:52:34 +00:00