Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
[Q] Increase fontsize in Latex in Matlab Publishing?

Subject: [Q] Increase fontsize in Latex in Matlab Publishing?

From: Kevin Hung

Date: 20 Aug, 2005 20:06:59

Message: 1 of 2

Hi everyone,

I just started to use Matlab Publishing? I would like to type simple
equation such as

% $$\vec{s} = a_1 \cdot \vec{b_1}

This works well. But I would like to increase the font size of the
equation since the equation looks small compared with the rest of the
HTML file. I can try the following but it makes no difference to the
size,

% $$\fontsize{200}{200}\vec{s} = a_1 \cdot \vec{b_1}

Also I would like to add either tab or spaces in front of the
equation so that it does not start at column 1.

Thanks.

Subject: [Q] Increase fontsize in Latex in Matlab Publi

From: Matthew Simoneau

Date: 29 Aug, 2005 17:34:53

Message: 2 of 2

Because $$ here puts you into math mode in LaTeX, the normal TeX
formatting commands don't work. Perhaps a TeX-head will jump in here
and tell us if there's a way.

You can hack the font size larger. In publish.m, near line 404,
there's a line like this:

    temptext = text('parent',tempaxes,'position',[.5 .5], ...
        'horizontalalignment','center','fontsize',22, ...
        'interpreter','latex');

You can adjust the "22" appropriately.

You'll also need to delete the equations in your "html" directory to
have them regenerated.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us