From ed0c7c756e441b2d2ba3633da233fc24361ac0d3 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 29 Oct 2010 00:30:52 +0000
Subject: interfaces 1.2 (27oct10)

git-svn-id: svn://tug.org/texlive/trunk@20235 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/interfaces/interfaces-titlesec.sty       | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/interfaces/interfaces-titlesec.sty')

diff --git a/Master/texmf-dist/tex/latex/interfaces/interfaces-titlesec.sty b/Master/texmf-dist/tex/latex/interfaces/interfaces-titlesec.sty
index 4ac65b17da9..2dc5fd60f5f 100644
--- a/Master/texmf-dist/tex/latex/interfaces/interfaces-titlesec.sty
+++ b/Master/texmf-dist/tex/latex/interfaces/interfaces-titlesec.sty
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% interfaces : 2010/10/20 v1.0 - interfaces : interfaces with keys for other packages (FC)
+%% interfaces : 2010/10/20 v1.1 - interfaces : interfaces with keys for other packages (FC)
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -45,7 +45,7 @@
 %% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
 %% 
 \ProvidesPackage{interfaces-titlesec}
-   [2010/10/20 v1.0 pgfkeys macros for titlesec (FC)]
+   [2010/10/27 v1.2 pgfkeys macros for titlesec (FC)]
 \RequirePackage{interfaces-base}
 \RequirePackage{auxhook}% for fix for \ttlp@append (odd/even pages, not implemented in interfaces)
 \itf@Check@Package{titlesec}
@@ -81,7 +81,7 @@
       {\pgfqkeys{/itf/titlesec/#1#2}
             {/itf/titlesec/@setup={#1}{#2},#4,/itf/titlesec/@update={#1}{#2}}}
       {\pgfqkeys{/itf/titlesec/#1#2}
-            {/itf/titlesec/@setup={#1}{#2},shape={#3},#4,/itf/titlesec/@update={#1}{#2}}}%
+            {/itf/titlesec/@setup={#1}{#2},#4,shape={#3},/itf/titlesec/@update={#1}{#2}}}%
 }% \itf@ttl@sectionformat
 %% private keys @setup and @update
 \pgfqkeys{/itf/titlesec}{%
@@ -196,7 +196,7 @@
 \def\itf@ttl@createsection#1{% sectionning command undefined: temporarily defined
    \expandafter\titleclass\csname#1\endcsname{straight}[*]%     in straight class
    \itf@AfterPackage{hypbmsec}{%
-      \AtBeginDocument{%
+      \AfterPreamble{%
          \csletcs{hbs@#1}{#1}%
          \csxdef{#1}{\noexpand\hbs@do\expandafter\noexpand\csname hbs@#1\endcsname}%
       }%
@@ -205,9 +205,9 @@
       \itf@cft@newsection{#1}{toc}%
    }%
    \itf@AfterPackage{interfaces-hypbmsec}{%
-      \cslet{last#1title}\@empty
-      \cslet{last#1bookmark}\@empty
-      \cslet{last#1toc}\@empty
+      \expandafter\let\csname last#1title\endcsname\relax
+      \expandafter\let\csname last#1bookmark\endcsname\relax
+      \expandafter\let\csname last#1toc\endcsname\relax
    }%
 }% \itf@ttl@createsection
 %%-----------------------------------------------------------------------------
@@ -234,7 +234,9 @@
       }%
    \pgfqkeys{/itf/titlesec/#1#2}{%
       shape/.value required,%
-      shape@cs/.initial=\csname ttlh@\pgfkeysvalueof{/itf/titlesec/#1#2/shape}\endcsname,% constant
+      shape@cs/.initial=
+         \ifdefined\itf@last@from@next\itf@last@from@next{#1}\fi % interfaces-hypbmsec
+         \csname ttlh@\pgfkeysvalueof{/itf/titlesec/#1#2/shape}\endcsname,% constant
          shape@cs/.is private=interface-titlesec,% constant
       font/.store as code,%
          format/.alias*=font,%
-- 
cgit v1.2.3

