MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guia do Utilizador Página 846

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 986
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 845
12 Classes – Alphabetical List
12-352
String specifying the white space type.
String Description
'preserve' Preserves white space and line breaks.
This is the only option that works in Microsoft Word and in
the MATLAB browser.
'normal' Sequences of white spaces collapse into a single white space.
Text wraps when necessary.
This is default.
'nowrap' Sequences of white spaces collapse into a single white space.
Text does not wrap to the next line. The text continues on the
same line until a <br /> tag is encountered.
'pre' White space is preserved by the browser. Text wraps only on
line breaks. Acts like the <pre> tag in HTML.
'pre-line' Sequences of white spaces collapses into a single white space.
Text wraps when necessary and on line breaks.
'pre-wrap' White space is preserved by the browser. Text wraps when
necessary and on line breaks.
Examples
Include White Space Between Titles
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
p = Paragraph('Chapter ');
p.Style = { CounterInc('chapter'),WhiteSpace('preserve') };
append(p, AutoNumber('chapter'));
append(d, p);
p = Paragraph('Chapter ');
p.Style = { CounterInc('chapter'),WhiteSpace('preserve') };
append(p,AutoNumber('chapter'));
append(d,p);
Vista de página 845
1 2 ... 841 842 843 844 845 846 847 848 849 850 851 ... 985 986

Comentários a estes Manuais

Sem comentários