From: Andrew Dunets <dap@tut.by> To: community@altlinux.ru Subject: [Comm] [LyX] New layout Date: Sun, 02 Feb 2003 13:42:49 +0300 Message-ID: <3E3CF629.3010600@tut.by> (raw) 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.
next reply other threads:[~2003-02-02 10:42 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-02 10:42 Andrew Dunets [this message] 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
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=3E3CF629.3010600@tut.by \ --to=dap@tut.by \ --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