HTMLLabel of flex inset

2017-03-15 Thread subaochen
hi,


I have a custom flex inset (please check attachment: not-inset.module), but 
when export a lyx file to xhtml by "File->export->LyxHTML" (please check 
test.lyx), the exported xhtml file don't contain the htmllabel of flex inset. 
that is, I want the exported file just like:


NOTE a note 
text


but the exact output file is:


a note text


I have debuged lyx and find that In file src/insets/InsetText.cpp, function 
InsetText::insetAsXHTML will check il.counters().empty(), but it failed here, I 
don't know how to fix it, any hints here? Thanks in advance!




--
Best regards,
 Baochen Su

note-inset.module
Description: Binary data


test.lyx
Description: Binary data


Re: List of Figures

2017-03-15 Thread CarLaTeX
2017-03-15 4:42 GMT+01:00 Steve Burnham :

>
>
> On Mon, Mar 13, 2017 at 4:10 AM CarLaTeX  wrote:
>
>
> 2017-03-13 8:27 GMT+01:00 Guenter Milde :
>
> On 2017-03-12, Steve Burnham wrote:
> > On Sat, Mar 11, 2017 at 10:35 PM CarLaTeX  wrote:
> >> Il 12 Mar 2017 4:05 AM, "Steve Burnham"  ha scritto:
>
> >> I'm having a hard time figuring an error out LyX gives on compilation.
> I'm
> >> trying to include a list of figures in my document. One document based
> on
> >> the same template (custom university thesis template) but this document
> >> throws the following error:
>
> >> Contents.
>
> >> ! Undefined control sequence.
>
> >> l.117 \listoffigures
>
> ...
>
> > I was trying to avoid the minimal example since I have to use a
> > dropbox link because of all of the custom class and layout files.
>
> We still ask to provide a minimal example. It is far more easy for you
> than for anyone else (downloading and experimenting with uncommon stuff)
> and has to be done anyway to get to the core of the problem.
>
> Günter
>
>
> Sorry, I did "reply" instead of "reply to all":
>
> --
> The culprits are these commented lines in your uuthesis.cls:
>
> %\newif\iflistoffigures
> ...
> %\listoffigurestrue
> ...
> %
> %\def\listoffigures{
> %  \iflistoffigures
> %\newpage
> %\thispagestyle{empty}
> %\addcontentsline{toc}{chapter}{LIST OF FIGURES}
> %\mainheading{LIST OF FIGURES}\vskip 3pt
> %\ifnoisy \typeout{List of Figures.} \fi
> %\@starttoc{lof}
> %  \else
> %\ifnoisy \typeout{No list of figures.} \fi
> %  \fi
> %}
>
> If you leave out all the "%", you'll get your LoF.
>
> However, I think you have to ask who provided you the uuthesis.cls, maybe
> they have commented those lines because they don't want LoFs in that kind
> of thesis.
>
> Good luck for your graduation!
>
> Carla
> -
>
> P.S. = However, Günter is right, I you had done a MWE, you would probably
> have found the problem by yourself!
>
>
> Thank you all that did it.
>
> Funny thing is once I started uncommenting things I realized that I was
> the one who commented it out several years ago when I was doing my master's
> thesis. The rule is if you have more than 25 figures then there is no list
> of figures which I find silly. I have more than 25 for my dissertation but
> for my own personal copy I want the list. I swore I had removed the
> functionality but thought I made changes in the preamble. After being
> unable to fix it I figured it must be something else and emailed out. So
> thanks again, it feels great to be finished!
>
> -Steve
>

I'm happy to hear you've solved your problem.
The rule is very silly, indeed!
The LoF is useful when you have a lot of figures, not on the contrary!
Have a good day!

Carla