From f70e78487e0cc8939e7496998a0bd4e3be2fd76c Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 21 May 2015 09:12:45 +0200 Subject: [PATCH] Auto-fill short title where appropriate Addresses: #4745 --- lib/layouts/IEEEtran.layout | 2 ++ lib/layouts/achemso.layout | 2 ++ lib/layouts/amsdefs.inc | 1 + lib/layouts/apa.layout | 1 + lib/layouts/apa6.layout | 1 + lib/layouts/beamer.layout | 60 +++++++++++++++++++------------- lib/layouts/europecv.layout | 1 + lib/layouts/iopart.layout | 1 + lib/layouts/jasatex.layout | 1 + lib/layouts/memoir.layout | 18 +++++++++- lib/layouts/revtex4-1.layout | 1 + lib/layouts/scrclass.inc | 5 +++ lib/layouts/siamltex.layout | 1 + lib/layouts/simplecv.layout | 1 + lib/layouts/stdinsets.inc | 1 + lib/layouts/stdsections.inc | 3 ++ lib/layouts/tufte-book.layout | 2 ++ lib/layouts/tufte-handout.layout | 1 + 18 files changed, 77 insertions(+), 26 deletions(-) diff --git a/lib/layouts/IEEEtran.layout b/lib/layouts/IEEEtran.layout index 3c13055c45..d97fb4b8a0 100644 --- a/lib/layouts/IEEEtran.layout +++ b/lib/layouts/IEEEtran.layout @@ -123,6 +123,7 @@ Style Author Argument 1 LabelString "Short Author|S" Tooltip "A short version of the author name" + InsertCotext 1 EndArgument LatexName author LabelSep xxx @@ -335,6 +336,7 @@ Style Appendix Argument 1 LabelString "Short Title" Tooltip "Short title for the appendix" + InsertCotext 1 EndArgument End diff --git a/lib/layouts/achemso.layout b/lib/layouts/achemso.layout index fd33587ead..6f1144bd68 100644 --- a/lib/layouts/achemso.layout +++ b/lib/layouts/achemso.layout @@ -76,6 +76,7 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title which will appear in the running header" + InsertCotext 1 EndArgument End @@ -110,6 +111,7 @@ Style Affiliation Argument 1 LabelString "Short name" Tooltip "Short name which appears in the footer of the title page" + InsertCotext 1 EndArgument End diff --git a/lib/layouts/amsdefs.inc b/lib/layouts/amsdefs.inc index a14da5d4cb..658cf94b6f 100644 --- a/lib/layouts/amsdefs.inc +++ b/lib/layouts/amsdefs.inc @@ -37,6 +37,7 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title which appears in the running headers" + InsertCotext 1 EndArgument Font Shape Smallcaps diff --git a/lib/layouts/apa.layout b/lib/layouts/apa.layout index a5b0812505..dd53646084 100644 --- a/lib/layouts/apa.layout +++ b/lib/layouts/apa.layout @@ -256,6 +256,7 @@ InsetLayout Caption:Centered Argument 1 LabelString "Short Title|S" Tooltip "The caption as it appears in the list of figures/tables" + InsertCotext 1 EndArgument HTMLStyle div.float-caption { diff --git a/lib/layouts/apa6.layout b/lib/layouts/apa6.layout index cf9e2a69e2..a34fed507f 100644 --- a/lib/layouts/apa6.layout +++ b/lib/layouts/apa6.layout @@ -356,6 +356,7 @@ InsetLayout Caption:Centered Argument 1 LabelString "Short Title|S" Tooltip "The caption as it appears in the list of figures/tables" + InsertCotext 1 EndArgument HTMLStyle div.float-caption { diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout index 4247886b25..a56dbd9d28 100644 --- a/lib/layouts/beamer.layout +++ b/lib/layouts/beamer.layout @@ -183,7 +183,7 @@ Style Description ParSep 0.3 Align Left LabelType Manual - LabelFont + LabelFont Series Bold EndFont End @@ -208,6 +208,7 @@ Style Part Argument 2 LabelString "Short Title|S" Tooltip "The part as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument NeedProtect 1 NextNoIndent 1 @@ -221,7 +222,7 @@ Style Part LabelType Static LabelString "Part" RefPrefix part - Font + Font Family Roman Series Bold Size Huge @@ -260,13 +261,14 @@ Style Section Argument 2 LabelString "Short Title|S" Tooltip "The section as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument - Font + Font Family Roman Series Bold Size huge EndFont - LabelFont + LabelFont Color latex EndFont LabelStringAppendix "\Alph{section}" @@ -318,13 +320,14 @@ Style Subsection Argument 2 LabelString "Short Title|S" Tooltip "The subsection as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument - Font + Font Family Roman Series Bold Size larger EndFont - LabelFont + LabelFont Color latex EndFont LabelStringAppendix "\arabic{section}.\arabic{subsection}" @@ -376,13 +379,14 @@ Style Subsubsection Argument 2 LabelString "Short Title|S" Tooltip "The subsubsection as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument - Font + Font Family Roman Series Bold Size large EndFont - LabelFont + LabelFont Color latex EndFont LabelStringAppendix "\arabic{section}.\arabic{subsection}.\arabic{subsubsection}" @@ -523,7 +527,7 @@ Style AgainFrame Font Color latex EndFont - LabelFont + LabelFont Family Roman Color latex Size Largest @@ -542,7 +546,7 @@ Style FrameTitle ParSep 1 Align Block LabelType No_Label - Font + Font Color Blue Size Largest EndFont @@ -556,6 +560,7 @@ Style FrameTitle Argument 2 LabelString "Short Frame Title|S" Tooltip "A short form of the frame title used in some themes" + InsertCotext 1 EndArgument End @@ -571,7 +576,7 @@ Style FrameSubtitle ParSep 1 Align Block LabelType No_Label - Font + Font Color Blue EndFont Argument 1 @@ -609,7 +614,7 @@ Style Column Tooltip "Column options (see beamer manual)" EndArgument LeftMargin "Start column (increase depth!), width:xx" - LabelFont + LabelFont Family Roman Color latex EndFont @@ -636,7 +641,7 @@ Style Columns TopSep 1 BottomSep 1 ParSep 0 - LabelFont + LabelFont Family Roman Color latex EndFont @@ -720,7 +725,7 @@ Style Overprint Align Left LabelType Static LabelString "Overprint" - LabelFont + LabelFont Family Roman Color latex EndFont @@ -741,7 +746,7 @@ Style OverlayArea TopSep 1 BottomSep 1 ParSep 0 - LabelFont + LabelFont Family Roman Color latex EndFont @@ -773,7 +778,7 @@ Style Uncover TopSep 1 BottomSep 1 ParSep 0 - LabelFont + LabelFont Family Roman Color Latex EndFont @@ -897,8 +902,9 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title which appears in the sidebar/header" + InsertCotext 1 EndArgument - Font + Font Size Huge Series Bold Color Blue @@ -929,8 +935,9 @@ Style Subtitle Argument 1 LabelString "Short Subtitle|S" Tooltip "Short subtitle which appears in the sidebar/header" + InsertCotext 1 EndArgument - Font + Font Size Large Series Bold Color Blue @@ -952,8 +959,9 @@ Style Author Argument 1 LabelString "Short Author|S" Tooltip "Short author which appears in the sidebar/header" + InsertCotext 1 EndArgument - Font + Font Size Largest Color Blue EndFont @@ -974,8 +982,9 @@ Style Institute Argument 1 LabelString "Short Institute|S" Tooltip "Short institute which appears in the sidebar/header" + InsertCotext 1 EndArgument - Font + Font Size Large Color Blue EndFont @@ -1017,8 +1026,9 @@ Style Date Argument 1 LabelString "Short Date|S" Tooltip "Short date which appears in the sidebar/header" + InsertCotext 1 EndArgument - Font + Font Size Largest Color Blue EndFont @@ -1037,7 +1047,7 @@ Style TitleGraphic ParSep 1 Align Center LabelType No_Label - Font + Font Size Huge Series Bold Color Blue @@ -1066,7 +1076,7 @@ Style Bibliography LabelType Bibliography LabelString "References" LabelBottomSep 0.7 - LabelFont + LabelFont Series Bold Size Larger EndFont @@ -1278,7 +1288,7 @@ Style LyX-Code \item[]} {\end{list}} EndPreamble - Font + Font Family Typewriter EndFont End @@ -1298,7 +1308,7 @@ Style NoteItem LabelSep xx LabelString "Note:" LeftMargin "Note:xx" - LabelFont + LabelFont Family Roman Color latex EndFont diff --git a/lib/layouts/europecv.layout b/lib/layouts/europecv.layout index 91517bb035..4ca5576c59 100644 --- a/lib/layouts/europecv.layout +++ b/lib/layouts/europecv.layout @@ -134,6 +134,7 @@ Style Section Argument 1 LabelString "Short Title|S" Tooltip "The title as it appears in the header" + InsertCotext 1 EndArgument ParSkip 0.4 TopSep 1.3 diff --git a/lib/layouts/iopart.layout b/lib/layouts/iopart.layout index 6e87ae25cb..0e5006e186 100644 --- a/lib/layouts/iopart.layout +++ b/lib/layouts/iopart.layout @@ -64,6 +64,7 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title that will appear in header line" + InsertCotext 1 EndArgument ParSkip 0.4 ItemSep 0 diff --git a/lib/layouts/jasatex.layout b/lib/layouts/jasatex.layout index 295868e1e7..106d38241c 100644 --- a/lib/layouts/jasatex.layout +++ b/lib/layouts/jasatex.layout @@ -73,6 +73,7 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title that will appear in header line" + InsertCotext 1 EndArgument LabelType No_Label Font diff --git a/lib/layouts/memoir.layout b/lib/layouts/memoir.layout index f6e23ffbca..eee8224a3e 100644 --- a/lib/layouts/memoir.layout +++ b/lib/layouts/memoir.layout @@ -55,19 +55,21 @@ Style Part Argument 1 LabelString "Short Title|S" Tooltip "The part as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument End - Style Chapter Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The chapter as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The chapter as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument End @@ -77,6 +79,7 @@ Style Chapter* Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The chapter as it appears in the table of contents" + InsertCotext 1 EndArgument End @@ -85,10 +88,12 @@ Style Section Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The section as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The section as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument End @@ -98,10 +103,12 @@ Style Subsection Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The subsection as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The subsection as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument End @@ -111,10 +118,12 @@ Style Subsubsection Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The subsubsection as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The subsubsection as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument End @@ -124,10 +133,12 @@ Style Paragraph Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The paragraph as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The paragraph as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument End @@ -137,10 +148,12 @@ Style Subparagraph Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The subparagraph as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The subparagraph as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument End @@ -204,10 +217,12 @@ Style Poemtitle Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The poem title as it appears in the table of contents" + InsertCotext 1 EndArgument Argument 2 LabelString "Short Title (Header)" Tooltip "The poem title as it appears in the running headers" + InsertCotext 1 Requires 1 EndArgument Font @@ -223,6 +238,7 @@ Style Poemtitle* Argument 1 LabelString "Short Title (TOC)|S" Tooltip "The poem title as it appears in the table of contents" + InsertCotext 1 EndArgument End diff --git a/lib/layouts/revtex4-1.layout b/lib/layouts/revtex4-1.layout index c8f521e073..ce87e043f2 100644 --- a/lib/layouts/revtex4-1.layout +++ b/lib/layouts/revtex4-1.layout @@ -198,6 +198,7 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title as it appears in the running headers" + InsertCotext 1 EndArgument Font Series Bold diff --git a/lib/layouts/scrclass.inc b/lib/layouts/scrclass.inc index 5c2cf9782f..312e9ccaba 100644 --- a/lib/layouts/scrclass.inc +++ b/lib/layouts/scrclass.inc @@ -125,6 +125,7 @@ Style Addpart Argument 1 LabelString "Short Title|S" Tooltip "The part as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument End @@ -135,6 +136,7 @@ Style Addchap Argument 1 LabelString "Short Title|S" Tooltip "The chapter as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument End @@ -145,6 +147,7 @@ Style Addsec Argument 1 LabelString "Short Title|S" Tooltip "The section as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument End @@ -282,6 +285,7 @@ InsetLayout Caption:Above Argument 1 LabelString "Short Title|S" Tooltip "The caption as it appears in the list of figures/tables" + InsertCotext 1 EndArgument HTMLStyle div.float-caption { @@ -304,6 +308,7 @@ InsetLayout Caption:Below Argument 1 LabelString "Short Title|S" Tooltip "The caption as it appears in the list of figures/tables" + InsertCotext 1 EndArgument HTMLStyle div.float-caption { diff --git a/lib/layouts/siamltex.layout b/lib/layouts/siamltex.layout index 1d64a20db0..ae059e414e 100644 --- a/lib/layouts/siamltex.layout +++ b/lib/layouts/siamltex.layout @@ -204,6 +204,7 @@ Style Title Argument 1 LabelString "Short Title|S" Tooltip "The title as it appears in the running headers" + InsertCotext 1 EndArgument Font Shape Smallcaps diff --git a/lib/layouts/simplecv.layout b/lib/layouts/simplecv.layout index 2477beda61..cbcafe11ae 100644 --- a/lib/layouts/simplecv.layout +++ b/lib/layouts/simplecv.layout @@ -50,6 +50,7 @@ Style Section Argument 1 LabelString "Short Title|S" Tooltip "The section as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument End diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index ffc507d9c7..422d8931a3 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -561,6 +561,7 @@ InsetLayout Caption:Standard Argument 1 LabelString "Short Title|S" Tooltip "The caption as it appears in the list of figures/tables" + InsertCotext 1 EndArgument HTMLStyle div.float-caption { diff --git a/lib/layouts/stdsections.inc b/lib/layouts/stdsections.inc index 0635303e4d..63d8e4b5db 100644 --- a/lib/layouts/stdsections.inc +++ b/lib/layouts/stdsections.inc @@ -31,6 +31,7 @@ Style Part Argument 1 LabelString "Short Title|S" Tooltip "The part as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument Font Series Bold @@ -61,6 +62,7 @@ Style Chapter Argument 1 LabelString "Short Title|S" Tooltip "The chapter as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument Font Series Bold @@ -90,6 +92,7 @@ Style Section Argument 1 LabelString "Short Title|S" Tooltip "The section as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument Font Series Bold diff --git a/lib/layouts/tufte-book.layout b/lib/layouts/tufte-book.layout index 755a856839..249300ef6e 100644 --- a/lib/layouts/tufte-book.layout +++ b/lib/layouts/tufte-book.layout @@ -79,6 +79,7 @@ Style Chapter Argument 1 LabelString "Short Title|S" Tooltip "The chapter as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument Font Series Bold @@ -106,6 +107,7 @@ Style Section Argument 1 LabelString "Short Title|S" Tooltip "The section as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument Font Series Bold diff --git a/lib/layouts/tufte-handout.layout b/lib/layouts/tufte-handout.layout index 61740b0b1e..5e01c3fef8 100644 --- a/lib/layouts/tufte-handout.layout +++ b/lib/layouts/tufte-handout.layout @@ -39,6 +39,7 @@ Style Part Argument 1 LabelString "Short Title|S" Tooltip "The part as it appears in the table of contents/running headers" + InsertCotext 1 EndArgument Font Series Bold -- 2.39.5