On 14/06/2011 10:49 AM, H. Hodges wrote:

Julien Rioux<jrioux<at>  physics.utoronto.ca>  writes:






There is a way to distinguish in-text section text and in-toc section
text. If that's what you want, here's how to do it. With your cursor on
the section line inside the LyX editor window, use the menu Insert>
Short Title to insert the text that appear in the TOC and in page headers.

Hope this helps,
Julien


Thanks, that worked...except for Part headings. The Short Title option is greyed
out in that case. Anyone have any ideas on how to keep a graphic in the heading
of the main document, but out of the corresponding heading listing in the table
of contents?







This looks like an oversight, because LaTeX itself provides this feature also for parts, but LyX doesn't.

Solution: Define "OptionalArgs 1" for the "Part" style in the layout file you are using. (if this sounds alien to you just ask and I or someone will try to explain)

Devs: See attached patch.

--
Julien
Index: lib/layouts/stdsections.inc
===================================================================
--- lib/layouts/stdsections.inc	(revision 39050)
+++ lib/layouts/stdsections.inc	(working copy)
@@ -27,6 +27,7 @@
 	ParSep                0.8
 	Align                 Center
 	Alignpossible         Center
+	OptionalArgs          1
 	Font
 	  Series              Bold
 	  Size                Huge
Index: lib/layouts/stdstarsections.inc
===================================================================
--- lib/layouts/stdstarsections.inc	(revision 39050)
+++ lib/layouts/stdstarsections.inc	(working copy)
@@ -17,6 +17,7 @@
 	LatexName             part*
 	LabelType             No_Label
 	LabelCounter	      ""
+	OptionalArgs          0
 End
 
 

Reply via email to