Commit Graph

297 Commits

Author SHA1 Message Date
Martin Vermeer
5ab6d5bf65 Simplify ERT by using verbatim
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21121 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 18:01:21 +00:00
Martin Vermeer
ccacb487f2 Verbatim for URL inset, \protect for special phrases (index inset)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21083 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 17:05:28 +00:00
Martin Vermeer
4f5d7bc4e8 Make URL inset better behaved
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21075 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 18:52:56 +00:00
Jürgen Spitzmüller
83c0ffa01d * lib/layouts/beamer.layout:
* lib/layouts/foils.layout:
* lib/layouts/powerdot.layout:
* lib/layouts/slides.layout:
	- put slides/foils in the TOC/outliner. This fixes bug 78 [sic!].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21055 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 11:23:51 +00:00
Uwe Stöhr
fd912b1bab add Japanese layout files, provided by Yokata-san
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20965 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-14 11:09:26 +00:00
Martin Vermeer
0f4d519108 A saner way to reset paragraphs to default when inserting inset around selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20888 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 13:25:37 +00:00
Martin Vermeer
2b0fd3325b Further charstyle -> element fixes, thx John
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-05 05:08:51 +00:00
Martin Vermeer
67e5b12f30 Charstyle->Element, thx John
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-05 05:02:26 +00:00
Enrico Forestieri
91d8498890 Fix (again) bug 3510 after r20508
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20725 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-03 23:56:34 +00:00
Martin Vermeer
d21a3bb445 Index as collapsible, preserving existing feature set
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20699 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-03 13:38:19 +00:00
Jürgen Spitzmüller
f367964247 * lib/layouts/ams*.layout:
* lib/layouts/ams*.inc:
	- updates from Paul A. Rubin.

Maybe some tweaks for 1.6 are still needed (e.g. counters).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20496 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-25 16:38:56 +00:00
Richard Heck
5aec75f931 Add module to create hanging paragraphs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20443 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-23 05:46:22 +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
Richard Heck
0e4e230f01 Remove redundant AlignPossible lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20437 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-22 18:00:36 +00:00
Jürgen Spitzmüller
a418607505 * lib/layouts/beamer.layout:
- add plain title layout (bug 3133)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20436 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-22 16:36:18 +00:00
Martin Vermeer
9417258ebb fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20355 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-19 08:32:56 +00:00
Richard Heck
df08a4e4b8 Move logical markup to a module, per Martin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20342 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 16:29:38 +00:00
Richard Heck
8a42fa39c2 Add a note to the theorem module descriptions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20341 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 16:27:14 +00:00
Richard Heck
c7e92d1cff Remove endnote from stdcustom.inc, as it is now in the endnotes module.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20340 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 16:24:36 +00:00
Richard Heck
1da3290453 Add decoration to endnotes module.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20339 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 16:23:46 +00:00
Uwe Stöhr
62a9ce0dd6 amsmaths.inc: fix copy and paste bug spotted by Georg, see http://www.lyx.org/trac/changeset/20257
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20264 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-13 18:33:06 +00:00
Martin Vermeer
ef743fc5d5 Add XML elements as a third flex inset variant
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20105 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 14:45:17 +00:00
Martin Vermeer
6c73681b07 Add error fallback to custom insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20030 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-04 03:48:24 +00:00
Martin Vermeer
ed6f900552 Use Minimalistic for branches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19973 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 11:40:09 +00:00
Richard Heck
2607927e2f Modularize the theorem modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19952 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 15:01:17 +00:00
Richard Heck
8a947f63da This is one of a series of patches that will merge the layout modules development in personal/branches/rgheck back into the tree.
Design goal: Allow the use of layout "modules", which are to LaTeX packages as layout files are to LaTeX document classes. Thus, one could have a module that defined certain character styles, environments, commands, or what have you, and include it in various documents, each of which uses a different document class, without having to modify the layout files themselves. For example, a theorems.module could be used with article.layout to provide support for theorem-type environments, without having to modify article.layout itself, and the same module could be used with book.layout, etc.

This patch adds the backend. The ModuleList class holds a list of the available modules, which are retrieved from lyxmodules.lst, itself generated by configure.py. There are two LFUNs available: modules-clear and module-add, which do the obvious thing; you can test by typing these into the minibuffer, along with the name of one of the available modules: URL (a CharStyle), Endnote (a Custom Inset), and---with the spaces---End To Foot (View>LaTeX and look at the user preamble), which are themselves in lib/layouts. There are some others, too, that allow theorems to be added to classes like article and book.

The GUI will come next.

Issues: (i) The configure.py script could be improved. It'd be nice, for example, if it tested for the presence of the LaTeX packages a particular module needs. But this would mean re-working the LaTeX script, and I don't know how to do that. Note that at present, the packages are ignored. This will change shortly. (ii) I've used std::string in LyXModule, following what seemed to be a precedent in TextClass. If some of these should be docstrings, please let me know, and I'll change them. (iii) There is at present no distinction between LaTeX and DocBook modules. Should there be? That is: Should there be modules that are available when the document class is a LaTeX class and others that are available only when it is DocBook? Or should there just be one set of modules? Each module can of course indicate for what it is suitable in its description.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19893 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 17:59:49 +00:00
Martin Vermeer
794ff76622 Add some more logical charstyles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19892 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 16:04:56 +00:00
Martin Vermeer
12210a88fb Oops...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19851 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 14:33:44 +00:00
Martin Vermeer
18299149f5 some more inclusions of stdinsets.inc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19850 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 14:32:06 +00:00
Martin Vermeer
77b575e562 Move background colour into the layout files -- for all collapsables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19813 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 20:32:58 +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
Martin Vermeer
9fe6ea87b2 fixed some classes to include inset defs, updated some version nrs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19802 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 08:33:03 +00:00
Martin Vermeer
e31d201dd6 Decoration added
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19795 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-25 18:41:58 +00:00
Martin Vermeer
30506f8e11 Clean-up in CharStyles, externalize detection of undefined styles to
layout files



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19790 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-25 14:43:59 +00:00
Martin Vermeer
d9a7f647c8 Oops -- thanks Richard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19773 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 15:15:38 +00:00
Martin Vermeer
540f3564f0 Inset configurability: separate charstyle and custom insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19769 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 12:45:40 +00:00
Martin Vermeer
e38b581bcb add preamble snippets to charstyles
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-22 18:55:03 +00:00
Martin Vermeer
612af5c5f0 inset configurability: ERT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19702 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 21:29:13 +00:00
Martin Vermeer
005c3ea9c0 charstyle update for beamer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19697 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 19:44:47 +00:00
Martin Vermeer
1bd92eb2f1 The necessary changes to these XML layouts (charstyle new format)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19696 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 19:43:10 +00:00
Martin Vermeer
e710636ee8 Symbolic colour names work\!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19664 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 18:57:48 +00:00
Martin Vermeer
96336caed7 make these definitions useful for latex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19656 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 14:22:39 +00:00
Martin Vermeer
ff682ec3e4 partial merge of charstyle and insetlayout stuff, part 2 (lyx2lyx)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19622 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-17 15:48:41 +00:00
Jean-Marc Lasgouttes
f86fc8d88c The counters labelstring patch. Part 3: adapt some layout files and documentation
* numarticle.inc:
	* numreport.inc: 
	* stdcounter.inc:
	* stdsections.inc:
	* stdstarsections.inc:
	* stdclass.inc:
	* scrbook.layout:
	* amsmath.inc: adapt: remove most of the LabelString in layouts,
	add the necessary stuff to counters.

	* lib/doc/Customization.lyx: document the new stuff.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19604 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-16 11:16:07 +00:00
Jean-Marc Lasgouttes
1c1a1eca82 fix file format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19592 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-15 19:25:59 +00:00
Jean-Marc Lasgouttes
b0d1a6b717 Fix bug 409 (Add support for numbered footnotes)
* src/insets/InsetFoot.cpp (updateLabels): number the footnote if
	(1) the footnote counter exists and (2) it is not in a title
	layout

	* lib/layouts/stdcounters.inc: add a footnote counter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19524 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 20:29:33 +00:00
Martin Vermeer
2bd998c29e Prepare for inset configurability
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19498 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 12:13:17 +00:00
José Matox
29d106fbf7 Convert layout files to utf8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19189 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-24 17:16:35 +00:00
Uwe Stöhr
ab507ec444 elsart.layout: fix Acknowlegments enviroment
(bug 3931: http://bugzilla.lyx.org/show_bug.cgi?id=3931)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18937 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-28 22:37:15 +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