LINUX.ORG.RU
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel} % русский шрифт

\usepackage{fancyhdr} % пакет для установки колонтитулов
\fancyhf{} % очистка текущих значений
\fancyhead[C]{\thepage} % установка верхнего колонтитула
\renewcommand{\headrulewidth}{0pt} % убрать разделительную линию.

\begin{document}

\pagestyle{empty} % нумерация выкл.

Строка1.1

Строка1.2

\clearpage
\setcounter{page}{2}
\pagestyle{fancy} % нумерация вкл.

Строка2.1

Строка2.2

\end{document}

http://s.arboreus.com/2007/07/latex_19.html

anonymous
()
Ответ на: комментарий от a_korotysheva
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel} % русский шрифт

\usepackage{fancyhdr} % пакет для установки колонтитулов
\fancyhf{} % очистка текущих значений
\fancyhead[C]{\thepage} % установка верхнего колонтитула
\renewcommand{\headrulewidth}{0pt} % убрать разделительную линию.

\begin{document}

\pagestyle{empty} % нумерация выкл.

Строка1.1

Строка1.2

\clearpage
\setcounter{page}{2}
\pagestyle{fancy} % нумерация вкл.

Строка2.1

Строка2.2

\clearpage

Строка3.1

Строка3.2

\end{document}

можно минимальный пример нерабочего кода?

anonymous
()
Ответ на: комментарий от anonymous

\documentclass[12pt]{report} \usepackage[russian]{babel} \usepackage{tabularx} \usepackage{graphicx} \usepackage{graphics} \usepackage{textcomp} \usepackage{fancyhdr} \graphicspath{{image/}}

\usepackage{fancyhdr} % пакет для установки колонтитулов \fancyhf{} % очистка текущих значений \fancyhead[C]{\thepage} % установка верхнего колонтитула \renewcommand{\headrulewidth}{0pt} % убрать разделительную линию.

%%%%%%%%% Theorems, Lemmas etc. \newcounter{theorem} \newcounter{corcountrer} \newcounter{theoremcounter} \newcounter{lemmacounter} \newcounter{remarkcounter} \newcounter{propositioncounter} \newcounter{definitioncounter} \newcounter{examplecounter} \newcounter{corollarycounter} % Environment definitions \newtheorem{cor}[corcountrer]{Corollary} \newtheorem{theorem}[theoremcounter]{Теорема} \newtheorem{lemma}[lemmacounter]{Lemma} \newtheorem{remark}[remarkcounter]{Замечание} \newtheorem{proposition}[propositioncounter]{Proposition} \newtheorem{definition}[definitioncounter]{Определение} \newtheorem{example}[examplecounter]{Example} \newtheorem{exa}[examplecounter]{Пример} \newtheorem{corollary}[corollarycounter]{Следствие} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Page layout settings \setlength{\textwidth}{6.2in} \setlength{\topmargin}{0in} \setlength{\textwidth}{6.2in} \setlength{\textheight}{8.4in} %\setlength{\textheight}{1\textheight} \setlength{\oddsidemargin}{-0.in} \setlength{\evensidemargin}{-0.in} \renewcommand{\baselinestretch}{1.3} %\setlength{\parindent}{0em}

\renewcommand{\theequation}{\thesection.\arabic{equation}} \renewcommand{\chaptername}{Глава} \renewcommand{\abstractname}{Введение} \renewcommand{\contentsname}{Оглавление} \renewcommand{\appendixname}{Приложение} \renewcommand{\bibname}{Список литературы} \renewcommand{\figurename}{Рис}

\newcommand{\be}{\begin{equation}} \newcommand{\ee}{\end{equation}} \newcommand{\ber}{\begin{eqnarray}} \newcommand{\eer}{\end{eqnarray}}

\newcommand{\vp}{{\mathbf p}} \newcommand{\vz}{{\mathbf z}} \newcommand{\vf}{{\mathbf f}} \newcommand{\A}{{\mathbf A}} \newcommand{\B}{{\mathbf B}} \newcommand{\la}{{\lambda}}

\newcommand{\nin}{\noindent} \newcommand{\non}{\nonumber} \newcommand{\half}{\frac{1}{2}} \newcommand{\quarter}{\frac{1}{4}}

\def\qed{\hfill \vrule height1.3ex width1.2ex depth-0.1ex} \def\bbb#1{{\rm I\mkern-3.5mu #1}} \def\bba#1#2{{\rm #1\mkern-#2mu\fudge #1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\pagestyle{empty} % нумерация выкл.

\large

\input{files/titulnik.tex}

\clearpage \setcounter{page}{2} \pagestyle{fancy} % нумерация вкл.

\tableofcontents

\clearpage \chapter* {Введение}\label{intro} \addcontentsline{toc}{chapter}{\protect\numberline { Введение} } \input{files/intro.tex}

\clearpage \chapter {Основные понятия}\label{ch1} \input {files/glava1.tex}

\clearpage \chapter {Нестационарные системы обслуживания с катастрофами}\label{ch4} \input {files/katas.tex}

\clearpage \addcontentsline{toc}{chapter}{\protect\numberline {Список литературы} } \input {files/biblio.tex}

\end{document}

a_korotysheva
() автор топика
Ответ на: комментарий от a_korotysheva

проблема не с четностью, а с типом документа report и разделом chapter. на страницах с chapter колонтитулы не изменяются

anonymous
()
Ответ на: комментарий от a_korotysheva

вот решение:

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyhead[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% redefinition of the plain style:
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyhead[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.