nico wrote:
Hi Willi,
On Sat, 20 May 2006 20:14:30 +0200, Willi Egger
wrote: Provided I understnad you correctly, then you could play with code as:
\setuphead
Thanks, but it is not a global heading style I look for, but the ability to do things like this:
\section{This {\tt file} {\em is} {\bf quite important}}
So that it appears "This file is quite important" in the bookmark, instead of "This {file} {is} {quite important}".
Hehe - may be first time I can help ;0) Recently I asked for something similar: how to get a short version of a figure caption into the List of Figures while maintaining the long version in the actual caption. As a solution Hans came up with the 'selector' feature below (not sure wheather the last release has it yet). Look in the archive ... If I understand you correctly this may be applicable to your problem. Joh %%%%%%%%%%%%%%%%%%%%% % Float definitions % %%%%%%%%%%%%%%%%%%%%% % Define selectors for short caption versions (Hans Hagen) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \unprotect % let's reuse this one in selectors (from syst-ext) \def\dofilterfromstr#1#2% max n {\ifcase#1\or \ifcase#2\or \strippedcsname\firstofoneargument \else \strippedcsname\gobbleoneargument \fi \or \ifcase#2\or \strippedcsname\firstoftwoarguments \or \strippedcsname\secondoftwoarguments \else \strippedcsname\gobbletwoarguments \fi \or \ifcase#2\or \strippedcsname\firstofthreearguments \or \strippedcsname\secondofthreearguments \or \strippedcsname\thirdofthreearguments \else \strippedcsname\gobblethreearguments \fi \or \ifcase#2\or \strippedcsname\firstoffourarguments \or \strippedcsname\secondoffourarguments \or \strippedcsname\thirdoffourarguments \or \strippedcsname\fourthoffourarguments \else \strippedcsname\gobblefourarguments \fi \or \ifcase#2\or \strippedcsname\firstoffivearguments \or \strippedcsname\secondoffivearguments \or \strippedcsname\thirdoffivearguments \or \strippedcsname\fourthoffivearguments \or \strippedcsname\fifthoffivearguments \else \strippedcsname\gobblefivearguments \fi \fi} \def\filterfromvalue#1#2#3% value max n {\@EA\@EAEAEA\csname % we use the fact that an \@EA\ifx\csname#1\endcsname\relax % undefined cs has become \relax \strippedcsname\gobbleoneargument % which we then gobble here \else \dofilterfromstr{#2}{#3}% \fi \endcsname\csname#1\endcsname} \def\filterfromnext#1#2% max n {..}{..}{..}{..} {\csname\dofilterfromstr{#1}{#2}\endcsname} % new, selectors \definesystemvariable{sx} \def\defineselector{\dodoubleargument\dodefineselector} \def\setupselector {\dodoubleargument\dosetupselector} \def\dodefineselector[#1][#2]{\getparameters[\??sx#1][\c!max=2,\c!n=1,#2]} \def\dosetupselector [#1][#2]{\getparameters[\??sx#1][#2]} \unexpanded\def\select#1% {\filterfromnext {\executeifdefined{\??sx#1\c!max}1} {\executeifdefined{\??sx#1\c!n }1}} \protect % Define the caption selector \defineselector[caption][max=2,n=2] % Format captions %%%%%%%%%%%%%%%%% \setupcaptions[style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]},width=\textwidth] \setupcaption[table][location=top] % Setup List Of Figures %%%%%%%%%%%%%%%%%%%%%%% \defineXMLargument [listoffigures] { \start \setupselector[caption][n=1] \completelistoffigures[criterium=text] %\writetolist[chapter]{Figures}{} \stop } % in the text: \placefigure {\select{caption}{shortcaption}{Longcaption}}