Re: Lyx 1.5.4 lof caption length
On 23.09.2008, at 04:43, Fil wrote: Hi Daniel, Thanks for your quick reply. Your suggestion is what I was hoping for and i added it to the preamble, but I get a lot of errors which I otherwise didn't have. My setup is I have a main file the calls up all my other chapters. I'm assuming that the modifications only need to be done for the main call up file, I did try to include it in the other files just in case but it didn't have any effect. Yes, it is supposed to be in the master document's preamble. The errors I get are listed below and checking the latex log it looks like a lot of undefined references are missing }, I have references listed in the figure captions to so maybe its not recognising this properly? I just tried, references in the captions are no problem here. It may, however, have to do with the LaTeX class and how it defines \caption and so on. I am using koma-script (srcbook). About 40 errors, mostly -paragraph ended before \takeshort was complete Latex log say suspect forgotten } ...which may be related to the references in caption as a lot of these are listed. Are you sure you have a full stop (.) somewhere in the caption? I only get the paragraph ended before \takeshort was complete when I forgot to add a full stop. Maybe you have to adapt the \takeshort macro definition to better reflect your situation. Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] you've lost some text And -latex error:\begin{figure} on imput line 485 ended by \end{document} If it looks like its going to be a lot more complicated then I may just do the longer method previously mention in my first email. Well, having to manually change 60 or more captions might well be worth the effort to look for a more engineering-like solution :-) Daniel
Re: Lyx 1.5.4 lof caption length
On 23.09.2008, at 04:43, Fil wrote: Hi Daniel, Thanks for your quick reply. Your suggestion is what I was hoping for and i added it to the preamble, but I get a lot of errors which I otherwise didn't have. My setup is I have a main file the calls up all my other chapters. I'm assuming that the modifications only need to be done for the main call up file, I did try to include it in the other files just in case but it didn't have any effect. Yes, it is supposed to be in the master document's preamble. The errors I get are listed below and checking the latex log it looks like a lot of undefined references are missing }, I have references listed in the figure captions to so maybe its not recognising this properly? I just tried, references in the captions are no problem here. It may, however, have to do with the LaTeX class and how it defines \caption and so on. I am using koma-script (srcbook). About 40 errors, mostly -paragraph ended before \takeshort was complete Latex log say suspect forgotten } ...which may be related to the references in caption as a lot of these are listed. Are you sure you have a full stop (.) somewhere in the caption? I only get the paragraph ended before \takeshort was complete when I forgot to add a full stop. Maybe you have to adapt the \takeshort macro definition to better reflect your situation. Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] you've lost some text And -latex error:\begin{figure} on imput line 485 ended by \end{document} If it looks like its going to be a lot more complicated then I may just do the longer method previously mention in my first email. Well, having to manually change 60 or more captions might well be worth the effort to look for a more engineering-like solution :-) Daniel
Re: Lyx 1.5.4 lof caption length
On 23.09.2008, at 04:43, Fil wrote: Hi Daniel, Thanks for your quick reply. Your suggestion is what I was hoping for and i added it to the preamble, but I get a lot of errors which I otherwise didn't have. My setup is I have a main file the calls up all my other chapters. I'm assuming that the modifications only need to be done for the main call up file, I did try to include it in the other files just in case but it didn't have any effect. Yes, it is supposed to be in the master document's preamble. The errors I get are listed below and checking the latex log it looks like a lot of undefined references are missing }, I have references listed in the figure captions to so maybe its not recognising this properly? I just tried, references in the captions are no problem here. It may, however, have to do with the LaTeX class and how it defines \caption and so on. I am using koma-script (srcbook). About 40 errors, mostly -paragraph ended before \takeshort was complete Latex log say suspect forgotten } ...which may be related to the references in caption as a lot of these are listed. Are you sure you have a full stop (".") somewhere in the caption? I only get the "paragraph ended before \takeshort was complete" when I forgot to add a full stop. Maybe you have to adapt the \takeshort macro definition to better reflect your situation. Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] you've lost some text And -latex error:\begin{figure} on imput line 485 ended by \end{document} If it looks like its going to be a lot more complicated then I may just do the longer method previously mention in my first email. Well, having to manually change 60 or more captions might well be worth the effort to look for a more engineering-like solution :-) Daniel
Lyx 1.5.4 lof caption length
Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. I'd prefer to use the float figure caption(box) if possible so really I need to know if there is a command to cut off the text in the figure box so after that point the lof does not list it in the toc (but still under the figure) as I have some long descriptions and references listed. I know \caption [thing to go in tof]{thing to go under figure \cite{book}} works, however I prefer the figure float presentation. Plus I didn't realise this issue earlier and if I change I'll have to edited 60 or so captions now. Many thanks, Fil.
Re: Lyx 1.5.4 lof caption length
On 22.09.2008, at 16:51, Fil wrote: Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. I'd prefer to use the float figure caption(box) if possible so really I need to know if there is a command to cut off the text in the figure box so after that point the lof does not list it in the toc (but still under the figure) as I have some long descriptions and references listed. I know \caption [thing to go in tof]{thing to go under figure \cite{book}} works, however I prefer the figure float presentation. Plus I didn't realise this issue earlier and if I change I'll have to edited 60 or so captions now. Hi Fil, The following might help you if you put it in the preamble. It redefines \caption so that everything until the first period (.) is taken, without the period, as short caption. So: \caption{Man on moon. This picture shows Neil Armstrong, the first man on the moon.} effectively becomes: \caption[Man on moon]{Man on moon.\\ This picture shows Neil Armstrong, the first man on the moon.} Daniel %* %** float captions *** % We redefine \caption to support long figure texts. The captions % are typesetted with indented label in \sffamily\footnotesize. The first % sentence (everything up to the first period) is considered as the actual % caption (typesetted in boldface and used in the toc). The remaining part, % if any, is taken as figure text and typesetted below the caption. % % Note that captions now have to end with a period. However, if nothing follows % the period (no figure text) it does not appear in the output. % \let\oldcaption\caption \def\takeshort#1.#2\next{\gdef\short{#1}\def\two{#2\relax}% \gdef\everything{\if\two\relax {\bfseries #1}\else{\bfseries #1.}\\#2\fi}} \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}}
Re: Lyx 1.5.4 lof caption length
On Monday 22 September 2008, Daniel Lohmann wrote: On 22.09.2008, at 16:51, Fil wrote: Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. snip The following might help you if you put it in the preamble. It redefines \caption so that everything until the first period (.) is taken, without the period, as short caption. So: \caption{Man on moon. This picture shows Neil Armstrong, the first man on the moon.} effectively becomes: \caption[Man on moon]{Man on moon.\\ This picture shows Neil Armstrong, the first man on the moon.} An alternative is to use the Short Title. Click on the on the caption for the Figure, then click on InsertShort Title and enter what you would like to have in the LOF. Of course, this will mean editing each of your 60 or so captions -- but it is more flexible than Daniel's solution. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
RE: Lyx 1.5.4 lof caption length
Hi Daniel, Thanks for your quick reply. Your suggestion is what I was hoping for and i added it to the preamble, but I get a lot of errors which I otherwise didn't have. My setup is I have a main file the calls up all my other chapters. I'm assuming that the modifications only need to be done for the main call up file, I did try to include it in the other files just in case but it didn't have any effect. The errors I get are listed below and checking the latex log it looks like a lot of undefined references are missing }, I have references listed in the figure captions to so maybe its not recognising this properly? About 40 errors, mostly -paragraph ended before \takeshort was complete Latex log say suspect forgotten } ...which may be related to the references in caption as a lot of these are listed. Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] you've lost some text And -latex error:\begin{figure} on imput line 485 ended by \end{document} If it looks like its going to be a lot more complicated then I may just do the longer method previously mention in my first email. Cheers, Fil.
Lyx 1.5.4 lof caption length
Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. I'd prefer to use the float figure caption(box) if possible so really I need to know if there is a command to cut off the text in the figure box so after that point the lof does not list it in the toc (but still under the figure) as I have some long descriptions and references listed. I know \caption [thing to go in tof]{thing to go under figure \cite{book}} works, however I prefer the figure float presentation. Plus I didn't realise this issue earlier and if I change I'll have to edited 60 or so captions now. Many thanks, Fil.
Re: Lyx 1.5.4 lof caption length
On 22.09.2008, at 16:51, Fil wrote: Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. I'd prefer to use the float figure caption(box) if possible so really I need to know if there is a command to cut off the text in the figure box so after that point the lof does not list it in the toc (but still under the figure) as I have some long descriptions and references listed. I know \caption [thing to go in tof]{thing to go under figure \cite{book}} works, however I prefer the figure float presentation. Plus I didn't realise this issue earlier and if I change I'll have to edited 60 or so captions now. Hi Fil, The following might help you if you put it in the preamble. It redefines \caption so that everything until the first period (.) is taken, without the period, as short caption. So: \caption{Man on moon. This picture shows Neil Armstrong, the first man on the moon.} effectively becomes: \caption[Man on moon]{Man on moon.\\ This picture shows Neil Armstrong, the first man on the moon.} Daniel %* %** float captions *** % We redefine \caption to support long figure texts. The captions % are typesetted with indented label in \sffamily\footnotesize. The first % sentence (everything up to the first period) is considered as the actual % caption (typesetted in boldface and used in the toc). The remaining part, % if any, is taken as figure text and typesetted below the caption. % % Note that captions now have to end with a period. However, if nothing follows % the period (no figure text) it does not appear in the output. % \let\oldcaption\caption \def\takeshort#1.#2\next{\gdef\short{#1}\def\two{#2\relax}% \gdef\everything{\if\two\relax {\bfseries #1}\else{\bfseries #1.}\\#2\fi}} \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}}
Re: Lyx 1.5.4 lof caption length
On Monday 22 September 2008, Daniel Lohmann wrote: On 22.09.2008, at 16:51, Fil wrote: Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. snip The following might help you if you put it in the preamble. It redefines \caption so that everything until the first period (.) is taken, without the period, as short caption. So: \caption{Man on moon. This picture shows Neil Armstrong, the first man on the moon.} effectively becomes: \caption[Man on moon]{Man on moon.\\ This picture shows Neil Armstrong, the first man on the moon.} An alternative is to use the Short Title. Click on the on the caption for the Figure, then click on InsertShort Title and enter what you would like to have in the LOF. Of course, this will mean editing each of your 60 or so captions -- but it is more flexible than Daniel's solution. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
RE: Lyx 1.5.4 lof caption length
Hi Daniel, Thanks for your quick reply. Your suggestion is what I was hoping for and i added it to the preamble, but I get a lot of errors which I otherwise didn't have. My setup is I have a main file the calls up all my other chapters. I'm assuming that the modifications only need to be done for the main call up file, I did try to include it in the other files just in case but it didn't have any effect. The errors I get are listed below and checking the latex log it looks like a lot of undefined references are missing }, I have references listed in the figure captions to so maybe its not recognising this properly? About 40 errors, mostly -paragraph ended before \takeshort was complete Latex log say suspect forgotten } ...which may be related to the references in caption as a lot of these are listed. Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] you've lost some text And -latex error:\begin{figure} on imput line 485 ended by \end{document} If it looks like its going to be a lot more complicated then I may just do the longer method previously mention in my first email. Cheers, Fil.
Lyx 1.5.4 lof caption length
Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. I'd prefer to use the float figure caption(box) if possible so really I need to know if there is a command to cut off the text in the figure box so after that point the lof does not list it in the toc (but still under the figure) as I have some long descriptions and references listed. I know \caption [thing to go in tof]{thing to go under figure \cite{book}} works, however I prefer the figure float presentation. Plus I didn't realise this issue earlier and if I change I'll have to edited 60 or so captions now. Many thanks, Fil.
Re: Lyx 1.5.4 lof caption length
On 22.09.2008, at 16:51, Fil wrote: Hi, Please could you advise if you can set the caption length in LOF in the TOC?? . I'm using lyx 1.5.4. I'd prefer to use the float figure caption(box) if possible so really I need to know if there is a command to cut off the text in the figure box so after that point the lof does not list it in the toc (but still under the figure) as I have some long descriptions and references listed. I know \caption [thing to go in tof]{thing to go under figure \cite{book}} works, however I prefer the figure float presentation. Plus I didn't realise this issue earlier and if I change I'll have to edited 60 or so captions now. Hi Fil, The following might help you if you put it in the preamble. It redefines \caption so that everything until the first period (.) is taken, without the period, as "short caption". So: \caption{Man on moon. This picture shows Neil Armstrong, the first man on the moon.} effectively becomes: \caption[Man on moon]{Man on moon.\\ This picture shows Neil Armstrong, the first man on the moon.} Daniel %* %** float captions *** % We redefine \caption to support long figure texts. The captions % are typesetted with indented label in \sffamily\footnotesize. The first % sentence (everything up to the first period) is considered as the actual % caption (typesetted in boldface and used in the toc). The remaining part, % if any, is taken as figure text and typesetted below the "caption". % % Note that captions now have to end with a period. However, if nothing follows % the period (no figure text) it does not appear in the output. % \let\oldcaption\caption \def\takeshort#1.#2\next{\gdef\short{#1}\def\two{#2\relax}% \gdef\everything{\if\two\relax {\bfseries #1}\else{\bfseries #1.}\\#2\fi}} \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}}
Re: Lyx 1.5.4 lof caption length
On Monday 22 September 2008, Daniel Lohmann wrote: > On 22.09.2008, at 16:51, Fil wrote: > > Hi, > > > > Please could you advise if you can set the caption length in LOF in > > the TOC?? . I'm using lyx 1.5.4. > > > > The following might help you if you put it in the preamble. > > It redefines \caption so that everything until the first period (.) is > taken, without the period, as "short caption". > > So: > >\caption{Man on moon. This picture shows Neil Armstrong, the first > man on the moon.} > > effectively becomes: > > \caption[Man on moon]{Man on moon.\\ This picture shows Neil > Armstrong, the first man on the moon.} > An alternative is to use the Short Title. Click on the on the caption for the Figure, then click on Insert>Short Title and enter what you would like to have in the LOF. Of course, this will mean editing each of your 60 or so captions -- but it is more flexible than Daniel's solution. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
RE: Lyx 1.5.4 lof caption length
Hi Daniel, Thanks for your quick reply. Your suggestion is what I was hoping for and i added it to the preamble, but I get a lot of errors which I otherwise didn't have. My setup is I have a main file the calls up all my other chapters. I'm assuming that the modifications only need to be done for the main call up file, I did try to include it in the other files just in case but it didn't have any effect. The errors I get are listed below and checking the latex log it looks like a lot of undefined references are missing }, I have references listed in the figure captions to so maybe its not recognising this properly? About 40 errors, mostly -paragraph ended before \takeshort was complete Latex log say suspect forgotten } ...which may be related to the references in caption as a lot of these are listed. Also- latex error: not in outer par mode, in latex log says \begin{figure}[h] you've lost some text And -latex error:\begin{figure} on imput line 485 ended by \end{document} If it looks like its going to be a lot more complicated then I may just do the longer method previously mention in my first email. Cheers, Fil.