سلام. اقا خب فایل اصلیشو هم میزاشتی ما هم استفاده کنیم
دوستان اگه کسی میدونه لطفا یه فایل بزاره دستورشو یاد بگیریم ماهم بتونیم اینکارو انجام بدیم. مرسی
\makeatletter
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
\hskip -\if@RTL\rightskip\else\leftskip\fi
#1\nobreak\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\centerline{\huge\bfseries\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\vskip 40\p@
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
\renewcommand{\@starttoc}[1]{%
\hboxR to \textwidth{عنوان \hfill صفحه}
\begingroup
\makeatletter
\@input{\jobname.#1}%
\if@filesw
\expandafter\newwrite\csname tf@#1\endcsname
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
\fi
\@nobreakfalse
\endgroup}
\makeatother
\titleformat{\chapter}[display]
{\normalfont\Huge\bfseries\centering}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing{\chapter}{3pc}{6cm}{1cm}[3pc]
\titleformat{\chapter}[display]
{\normalfont\Huge\bfseries\centering}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing{\chapter}{3pc}{6cm}{1cm}[3pc]
مرسی از لطفتون. دقیقا ۳ خط رو حذف کردم مشکل برطرف شدخواهش میکنم.
ممنونم
فقط یه سوال دیگه اینکه کلمه صفحه دقیقا بالای شماره صفحات نیست و باید یکم به طرف چپ بره . از کجا میتونم تغییر بدم؟
مرسی از لطفتون. دقیقا ۳ خط رو حذف کردم مشکل برطرف شد
ممنونم
فقط یه سوال دیگه اینکه کلمه صفحه دقیقا بالای شماره صفحات نیست و باید یکم به طرف چپ بره . از کجا میتونم تغییر بدم؟
سلام. اقا خب فایل اصلیشو هم میزاشتی ما هم استفاده کنیمدر اینجا انتظار نداشته باشید که دیگران به تمام پرسش های شما پاسخ بدهند. کمی جستجو و تلاش بد نیست.
دوستان اگه کسی میدونه لطفا یه فایل بزاره دستورشو یاد بگیریم ماهم بتونیم اینکارو انجام بدیم. مرسی
\makeatletter
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\if@RTL\rightskip\else\leftskip\fi\@tempdima
\hskip -\if@RTL\rightskip\else\leftskip\fi
#1\nobreak\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\centerline{\huge\bfseries\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\vskip 40\p@
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
\renewcommand{\@starttoc}[1]{%
\hboxR to \textwidth{{\bf عنوان} \hfill {\bf صفحه}}
\begingroup
\makeatletter
\@input{\jobname.#1}%
\if@filesw
\expandafter\newwrite\csname tf@#1\endcsname
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
\fi
\@nobreakfalse
\endgroup}
\makeatother