* [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
* Re: [Comm] [LyX] New layout
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 21:31 ` Vitaly Lipatov
2003-02-03 9:20 ` Alexandre Prokoudine
1 sibling, 2 replies; 6+ messages in thread
From: Vyacheslav Slobodyan @ 2003-02-02 19:30 UTC (permalink / raw)
To: community
Andrew Dunets пишет:
> Тут проскакивал вопрос - как поправить формат GOST в LyX, что-бы точки
> в конце
> номеров разделов печатались. Расскажу как я создавал свой собственный
> формат на
> основе GOSTa.
[..skip..]
Спасибо огромное!!! Файлики немного изменились, но смысл тот-же. Удалось
всё сделать, как надо.
Потом я начал ковыряться с нумерацией страниц.. Мне нужно было убрать
цифры с низа страниц, и поместить их в правый верхний угол. Угробил день
накануне сдачи (защита через неделю, а документы сейчас все сдаём)
диплома (а он у меня ещё не скомпонован), но нашёл fancyhdr, разобрался
немного с его работой.. Но тут выяснилось, что убрать номер с низа
страницы не получается в стиле GOST, и к тому-же фиксированные какие-то
данные в стиле GOST не смещают текст на странице немного ниже, уступая
место номеру странице, как в других стилях (тот-же article), а
наслаиваются на заголовок fancyhdr, или номер страницы, формируемый этим
пакаджем. Отсюда 2 вопроса: как из GOST (или других стилей) убрать
нумерацию страниц снизу листов, и как "приспустить" верхнюю границу
текста в стиле GOST? А заодно- как там регулируется нижняя страница?
Наверно, я уже в упор в layout не вижу некоторых простых вещей..
P.S. Кто после такого суточного ковыряния скажет, что LyX- самое удобное
средство для скоростного формирования студенческих дипломов в строгом
соответствии с требованиями кабинета дипломного проектирования (с данным
набором стилей) - покусаю. Если-бы делал в любом другом редакторе-
диплом был-бы готов. А так ни готово практически ничего. Куча
разрозненных материалов.. :(
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] [LyX] New layout
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
1 sibling, 1 reply; 6+ messages in thread
From: Andrew Dunets @ 2003-02-02 19:06 UTC (permalink / raw)
To: community
Hi.
Vyacheslav Slobodyan пишет:
| Отсюда 2 вопроса: как из GOST (или других стилей) убрать нумерацию
| страниц снизу листов, и как "приспустить" верхнюю границу текста в
| стиле GOST? А заодно- как там регулируется нижняя страница? Наверно, я
| уже в упор в layout не вижу некоторых простых вещей..
|
Для "стаскивания" вниз верхней границы я изменил в формате параметры на
такие величины:
~ \setlength{\headheight}{1cm} % высота верхнего колонтитула
~ \setlength{\headsep}{7mm} % расстояние между верхним колонтитулом и
основным текстом
~ \setlength{\topmargin}{-1.5cm} % сдвиг области печати относительно
верхней направляющей
~ % она расположена на
дюйм ниже верхнего края листа
Возможно стоит подкорректировать этот параметр
~ \setlength{\textheight}{22.5cm} % высота основного текста
Нумерацию можно изменить и без fancyhdr, переопределив соответствующие
внутренние команды латеха
\let\@oddfoot\@empty % убираем номер страницы снизу
\def\@oddhead{%
\makebox[16.3cm][c]{-\thepage-}% добавляем номер страницы сверху в виде -45-
}
Не совсем красиво, но работает. 16.3 - ширина основного текста. Должна
совпадать со значением параметра из команды \setlength{\textwidth}{16.3cm}
| P.S. Кто после такого суточного ковыряния скажет, что LyX- самое
| удобное средство для скоростного формирования студенческих дипломов в
| строгом соответствии с требованиями кабинета дипломного проектирования
| (с данным набором стилей) - покусаю. Если-бы делал в любом другом
| редакторе- диплом был-бы готов. А так ни готово практически ничего.
| Куча разрозненных материалов.. :(
Не драматизируй. Все у тебя получится 8-).
---
With the best regards,
Andrew Dunets.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] [LyX] New layout
2003-02-02 19:06 ` Andrew Dunets
@ 2003-02-02 22:10 ` Vyacheslav Slobodyan
0 siblings, 0 replies; 6+ messages in thread
From: Vyacheslav Slobodyan @ 2003-02-02 22:10 UTC (permalink / raw)
To: community
Andrew Dunets пишет:
> | Отсюда 2 вопроса: как из GOST (или других стилей) убрать нумерацию
> | страниц снизу листов, и как "приспустить" верхнюю границу текста в
> | стиле GOST? А заодно- как там регулируется нижняя страница? Наверно, я
> | уже в упор в layout не вижу некоторых простых вещей..
> |
>
> Для "стаскивания" вниз верхней границы я изменил в формате параметры на
> такие величины:
[..skip..]
> Нумерацию можно изменить и без fancyhdr, переопределив соответствующие
> внутренние команды латеха
>
> \let\@oddfoot\@empty % убираем номер страницы снизу
Ура! Точно в цель! =) Пришло "озарение" о значениях переменных в
layout, избавился от цифирок внизу, и нумерация от fancyhdr замечательно
вошла благодаря указанным параметрам страницы! Спасибо огромное!!!
>
> | P.S. Кто после такого суточного ковыряния скажет, что LyX- самое
> | удобное средство для скоростного формирования студенческих дипломов в
> | строгом соответствии с требованиями кабинета дипломного проектирования
> | (с данным набором стилей) - покусаю. Если-бы делал в любом другом
> | редакторе- диплом был-бы готов. А так ни готово практически ничего.
> | Куча разрозненных материалов.. :(
>
> Не драматизируй. Все у тебя получится 8-).
Спасибо огромнейшее за поддержку! =)) Это очень важно для поддержания
боевого духа. =)
P.S. Беру свои слова по поводу сложностей с дипломом в LyX обратно.
;)) Если есть знания и желание- всё будет. Ну и, конечно, без помощи не
оставят.. ;))
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] [LyX] New layout
2003-02-02 19:30 ` Vyacheslav Slobodyan
2003-02-02 19:06 ` Andrew Dunets
@ 2003-02-02 21:31 ` Vitaly Lipatov
1 sibling, 0 replies; 6+ messages in thread
From: Vitaly Lipatov @ 2003-02-02 21:31 UTC (permalink / raw)
To: community
On 2 Февраль 2003 22:30, Vyacheslav Slobodyan wrote:
> работой.. Но тут выяснилось, что убрать номер с низа страницы
> не получается в стиле GOST, и к тому-же фиксированные какие-то
> данные в стиле GOST не смещают текст на странице немного ниже,
> уступая место номеру странице, как в других стилях (тот-же
> article), а наслаиваются на заголовок fancyhdr, или номер
> страницы, формируемый этим пакаджем. Отсюда 2 вопроса: как из
> GOST (или других стилей) убрать нумерацию страниц снизу
А вы README читали, идущие с lyx-gost? Там написано.
> листов, и как "приспустить" верхнюю границу текста в стиле
> GOST? А заодно- как там регулируется нижняя страница? Наверно,
> я уже в упор в layout не вижу некоторых простых вещей..
См. файл gost-koi8-r.inc
Раздел "Настройки размера области текста", начинается примерно на
30-ой строчке.
>
> P.S. Кто после такого суточного ковыряния скажет, что LyX-
Не надо было ковыряться. Надо было писать диплом, и задавать
вопросы по поводу оформления в рассылку.
> самое удобное средство для скоростного формирования
> студенческих дипломов в строгом соответствии с требованиями
> кабинета дипломного проектирования (с данным набором стилей) -
Это вкус вашего кабинета проектирования. У нас в университете все
язык просто проглотили, когда получили диплом, выполненный с
использованием стиля ГОСТ без всяких изменений.
> покусаю. Если-бы делал в любом другом редакторе- диплом был-бы
> готов. А так ни готово практически ничего. Куча разрозненных
> материалов.. :(
А просто потому, что никто не взялся сделать нормальный класс для
подготовки студенческих дипломов.
--
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! LaTeX! LyX!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] [LyX] New layout
2003-02-02 10:42 [Comm] [LyX] New layout Andrew Dunets
2003-02-02 19:30 ` Vyacheslav Slobodyan
@ 2003-02-03 9:20 ` Alexandre Prokoudine
1 sibling, 0 replies; 6+ messages in thread
From: Alexandre Prokoudine @ 2003-02-03 9:20 UTC (permalink / raw)
To: community
On Sun, 02 Feb 2003 13:42:49 +0300
Andrew Dunets <dap@tut.by> wrote:
А может закинете это на ATMSK?
И вообще, пора wiki для LyX заводить... :-)
--
Alexandre Prokoudine
ALT Linux Documentation Team
JID: prokoudine@jabber.org
^ 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