ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] [LyX] New layout
@ 2003-02-02 10:42 Andrew Dunets
  2003-02-02 19:30 ` Vyacheslav Slobodyan
  2003-02-03  9:20 ` Alexandre Prokoudine
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Dunets @ 2003-02-02 10:42 UTC (permalink / raw)
  To: community

Hi.

Тут проскакивал вопрос - как поправить формат GOST в LyX, что-бы точки
в  конце
номеров разделов печатались. Расскажу как я создавал свой собственный
формат на
основе GOSTa.

1. Из каталога /usr/share/lyx/layouts/ надо скопировать в каталог
~/.lyx/layouts/ 2 файла: gost.layout и gost-koi8-r.inc. Если будут правиться
только точки, то другие файлы не нужны, но в случае чего - принцип тот же.

2. Файлы переименовываются в, например, met.layout и met.inc.

3. Дальше правиться met.layout:

3.1. Правиться вторая строка:

#  \DeclareLaTeXClass[article]{GOST}

на что-нибудь типа

#  \DeclareLaTeXClass[article]{METODA}

3.2. Правиться соответствующая директива Input с

Input gost-koi8-r.inc

на

Input met.inc

4. Запускается LyX и ему говорится Правка-Переконфигурировать. После
рестарта
должен появиться новый формат (в примере METODA).

5. Далее берется хороший букварь по LaTeX и met.inc затачивается по вкусу.
Например для исправления точек, строки (ориентировочно 515-524) с

% Отвечает за представление номера раздела в тексте
\newcommand{\sectname}[2]{%
~  \csname the#1\endcsname\quad
}

% Отвечает за представление номера раздела в содержании
\newcommand{\sectnameintoc}[2]{%
~  \protect\numberline{\csname the#1\endcsname}%
}

правятся на

% Отвечает за представление номера раздела в тексте
\newcommand{\sectname}[2]{%
~  \csname the#1\endcsname.\quad
}

% Отвечает за представление номера раздела в содержании
\newcommand{\sectnameintoc}[2]{%
~  \protect\numberline{\csname the#1\endcsname.}%
}

6. Для активации изменений в файлах формата может требоваться рестарт LyXa.

---
With the best regards,
Andrew Dunets.







^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-03  9:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-02 10:42 [Comm] [LyX] New layout Andrew Dunets
2003-02-02 19:30 ` Vyacheslav Slobodyan
2003-02-02 19:06   ` Andrew Dunets
2003-02-02 22:10     ` Vyacheslav Slobodyan
2003-02-02 21:31   ` Vitaly Lipatov
2003-02-03  9:20 ` Alexandre Prokoudine

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