Hi all,

In the example below, I would like to have the style of the figure's caption to 
be \itx, but the inline formula is set with a larger body font: is it possible 
to setup the caption of a float so that a smaller size applies also to the math 
formula?

Best regards: Otared
PS: here is the example (not so minimal, sorry…)
% begin example-caption.tex
\setupcaption[figure][
        headstyle={\bix},
        style={\itx}]
\starttext

\startluacode 
        function weierstrass(n,x)
                local S = 0
                for k = 0, n do
                        S = S + 2^(-k)*math.cos(3^k*x)
                end
                return S
        end
\stopluacode

\startplacefigure[title={The Weierstrass function $\sum_{k=0}^n 
2^{-k}\cos(3^kx)$}]
\startMPcode{doublefun} 
        draw lmt_function [
        xmin = 0, xmax = 4*355/113, xstep =.001, 
        ymin = -2, ymax = 2,
        sx = 1mm, xsmall = 80, xlarge = 20, 
        sy = 4mm, ysmall = 40, ylarge = 4,
        xlabels = "yes",
        ylabels = "yes",
        linewidth = .015mm, offset = .1mm,
        code = "weierstrass(5,x)",
        frame = "sticks",
        xcaption = "$n = 5$",
        functions = {
                [
                        drawcolor = "darkred",
                ]
                }
        ] xsized .5TextWidth ;
\stopMPcode
\stopplacefigure

\stoptext
% begin example-caption.tex

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to