From: Vyacheslav Sokolov <vence@status.comcor.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Нумерация формул
Date: Sat, 01 Feb 2003 01:43:15 +0300
Message-ID: <3E3AFC03.1050908@status.comcor.ru> (raw)
In-Reply-To: <20030201020806.25264867.pem@rbcmail.ru>
Pyatnitskich Evgeniy wrote:
>On Fri, 31 Jan 2003 12:49:24 +0300
>Vyacheslav Sokolov <vence@status.comcor.ru> wrote:
>
>>Pyatnitskich Evgeniy wrote:
>>
>>>>>По умолчанию, в LyX в стиле article используется сквозная
>>>>>нумерация формул. Можно ли это как-нибудь изменить?
>>>>>
>>>>В документации на LyX приводится пример нумерации с номером главы
>>>>через точку. Где именно, не помню.
>>>>
>>>Да нет. Мне нужен не номер главы, а номера _формул_ через точку.
>>>Формул что-то в работе много...
>>>
>>Пакет amsmath, команда \numberwithin{equation}{section}.
>>
>
>Краснею от стыда, но всё же...
>
>А как ей пользоваться?
>
>В прембуле указать /usepackage{amsmath} ?
>А потом /numberwithin{набираю_формулу} ?
>
Не совсем так:
%---------------------------------------------------------------
documentclass{article}
\usepackage{amsmath}
\begin{document}
\numberwithin{equation}{section}
\section{The first section}
\begin{equation}
x = y
\end{equation}
\begin{equation}
y = x
\end{equation}
\section{The second section}
\begin{eqnarray}
u & = & v
\end{eqnarray}
\begin{eqnarray}
v & = & u
\end{eqnarray}
\end{document}
%---------------------------------------------------------------
Второй аргумент команды \numberwithin{#1}{#2} задает уровень нумерации:
\numberwithin{equation}{section} - двойная нумерация (раздел.формула),
\numberwithin{equation}{subsection} - тройная (раздел.подраздел.формула)
и т.п.
В качестве первого аргумента можно задать не только equation (нумерация
выключенных формул), но и названия других окружений, в которых используются
счетчики - тогда изменится поведение этих счетчиков. Но при этом результат
может оказаться несколько неожиданным :-) , так что использование первого
аргумента, отличного от equation, всегда нуждается в проверке.
--
В.Соколов
next prev parent reply other threads:[~2003-01-31 22:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-30 11:07 Pyatnitskich Evgeniy
2003-01-30 17:16 ` Dmitry Ivanov
2003-01-31 9:18 ` Pyatnitskich Evgeniy
2003-01-31 9:49 ` Vyacheslav Sokolov
2003-01-31 20:08 ` Pyatnitskich Evgeniy
2003-01-31 22:43 ` Vyacheslav Sokolov [this message]
2003-01-31 10:28 ` Dmitry Ivanov
2003-01-31 9:28 ` Pyatnitskich Evgeniy
2003-01-31 10:10 ` Oleg K. Artemjev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E3AFC03.1050908@status.comcor.ru \
--to=vence@status.comcor.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git