Spec-Zone.ru › Octave 8

11.11.2.1 Использование разметки публикации в скриптовых файлах

Для использования разметки публикации, начните с набора символов ‘##’ или ‘%%’ в начале новой строки. Для совместимости с MATLAB ‘%%%’ обрабатывается так же, как ‘%%’.

Строки, следующие за ‘##’ или ‘%%’, начинаются с одного из символов ‘#’ или ‘%’, за которым следует хотя бы один пробел. Эти строки интерпретируются как секция. Секция заканчивается на первой строке, не начинающейся с ‘#’ или ‘%’, или когда достигается конец документа.

Секция, начинающаяся в первой строке документа, за которой следует другой, возможно пустой, заголовок секции, интерпретируется как заголовок документа и вступительный текст.

Для ясности, см. пример ниже:

%% Headline title
%
% Some *bold*, _italic_, or |monospaced| Text with
% a <https://www.octave.org link to GNU Octave>.
%%

# "Real" Octave commands to be evaluated
sombrero ()

## Octave comment style supported as well
#
# * Bulleted list item 1
# * Bulleted list item 2
#
# # Numbered list item 1
# # Numbered list item 2

© 1996–2022 The Octave Project Developers
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://docs.octave.org/v7.2.0/Using-Publishing-Markup-in-Script-Files.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API