weixin_47708382 2024-07-14 12:06 采纳率: 0%
浏览 27

CTEX宏包如何修改

img

不知道如何去掉右上脚期刊名字那些内容,感觉是改变宏包,但是懵懵懂懂,把有些内容删了之后就显示不对劲。哪位比较懂,帮忙看看如何修改
ctex模版如下所示:

\documentclass{jssms}
%建议使用此模版前登陆www.ctex.org/CTeXDownload下载Latex软件.
%此模板需调用宏包jssms.cls, 请确保此宏包与tex文件在同一文件夹下.
%请使用CCT&LaTex编译.


\numberwithin{equation}{section}
% 公式编号会随着Section而变动,如(1.1),(1.2),(2.1)...,如果不便使用,您可以将这个命令删去
%--------------文内自定义命令----------------

%实现了用\caption{}可以Figure1 黑体
\usepackage[font=small,labelsep=quad,labelfont=bf,width=\textwidth,format=hang,indention=0mm]{caption}

\usepackage[font=small,labelsep=quad,labelfont=bf]{caption}

\def\RM{\rm}
\def\It{\it}
\def\hat{\widehat}
\def\tilde{\widetilde}
\def\bar{\overline}
\def\epsilon{\varepsilon}
\def\dd{{\rm d}}
\def\ii{{\rm i}}
\def\ee{{\rm e}}
\def\q{\quad}
\def\dint{\displaystyle\int}
\def\vsp{\vspace{1mm}}
\def\no{\nonumber}
\def\q{\quad} \def\qq{\qquad}
\def\ay{\arraycolsep=1.5pt}
\def\d{\displaystyle}
\def\dfrac{\displaystyle\frac}
\def\la {\langle}              \def\ra {\rangle}
\def\n{\noindent}
\def\*{$\!\!^{^{^{\displaystyle *}}}$}
%**************************************************
\def\jssmszi{\zihao{10}\ziju{0.135}}
\parindent=2\ccwd
\def\rmn#1{\romannumeral #1}
\def\Rmn#1{\expandafter\uppercase\expandafter{\romannumeral #1}}
\def\cases#1{\left\{\,\vcenter{\normalbaselines \openup\jot
    \ialign{$\displaystyle{##}$\hfil&\quad{##}\hfil\crcr#1\crcr}}
    \right.}
%---------------------------------------
%--------------文内自定义命令结束------------

%--------------作者自定义命令----------------



%--------------作者自定义命令结束------------

%*************************************************
%***************************************

%-------------正文开始------------------

\begin{document}

\thispagestyle{empty}



\TitleMark{1}


 \BeginTitle

\Title{1}

\Author{1$^{1}$}%例如:\\ 乙
 {(1. )}



\Abstract{1}

\Keywords{.}%甲, 乙, 丙, 丁.



\ETitle{1} %英文标题名称全大写

\EAuthor{\uppercase{1} 1$^{1}$} % 作者姓名的拼音,姓在前,名在后,
{\small(1. )}


\EAbstract{. }

\EKeywords{.}%


\EndTitle



\Section{引\ \ 言}




\Section{系统模型}
\Subsection{2.1}








\vskip 1cm {
%%特别提醒:参考文献中若为中文文献,请后附英文翻译。
\BeginRef %%{作者名, 文题, 刊, 书名, 年, 卷(期): 起止页码.}

\bibitem{ref1}列举几类参考文献的排版格式 (Layout the formats of several
references).

\bibitem{ref2} Bustos M C, Concha F. On the construction of global
weak solutions in the
kynch theory of sedimentation. {\it Math. Methods in the Appl.
Sci.}, 1988,  {\bf 10}(3): 245--264.%注:英文文献期刊排版格式

\bibitem{ref3} 赵群依, 刘顺兰,王江柱. 生成$M$序列的一种新的算法. 计算机安全,
2007, (11): 11--13. \\
(Zhao Q Y, Liu S L, Wang J Z. A new algorithm of $M$ sequences
generation. {\it Network $\&$ Computer Security}, 2007, (11):
11--13.)%注:中文参考文献需附对应英文翻译,且中文文章杂志名称不用斜体。


\bibitem{ref4} Courant R,  Friedrich K F. Supersonic Flows and
Shock Waves. New York:
Wiley-Interscience, 1948.%注:英文文献书排版格式

\bibitem{ref5} 冯克勤, 刘凤梅. 代数与通信. 北京: 高等教育出版社, 2005.
\\(Feng K Q, Liu F M. Algebra and Communication. Beijing: Higher
Education Press, 2005.)%注:中文文献书排版格式

\bibitem{ref6} Chen W H, Wei C G,  Lu X M. Mean square exponential
 stability of uncertain linear impulsive stochastic
  systems with Markovian switching.  Chinese Control and Decision
  Conference, 2013, 22--34.%注:会议论文排版格式

\bibitem{ref7} 李骥泽, 廖正录, 申世芳, 等. 用ARIMA 模型对
我国猪肉价格的走势分析. 猪业科学, 2013, (6): 126--129.\\
(Li J Z, Liao Z L, Shen S F, et al. The analysis of the pork price
change trend in China by the ARIMA model. {\it Swine Industry
Science}, 2013, (6): 126--129.)%注:超过三个作者的文献排版格式

\bibitem{ref8} 赵闯. 结合灰色理论的BP 神经网络猪肉价格预测的建模与改进研究.
硕士论文.吉林大学, 吉林,
2010.\\
(Zhao C. The modeling and improvement of BP neural network
prediction for the price of pork which combined with gray theory.
Master Thesis. Jilin University, Jilin, 2010.)%注:学位论文排版格式

\bibitem{ref9}Text.
\bibitem{ref10}Text.
\bibitem{ref11}Text.
\bibitem{ref12}Text.
\bibitem{ref13}Text.
\bibitem{ref14}Text.
\bibitem{ref15}Text.
\bibitem{ref16}Text.
\bibitem{ref17}Text.
\EndRef

}


\end{document}


\begin{equation*}
  \frac{\dd P_1(t)}{P_1(t)}=(r+\mu(t)-l_1X(t))\dd t+\hat{\sigma}\dd Z_{P_1}(t),\eqno{( \mathrm{A}.1)}
\end{equation*}
\begin{equation*}
  \frac{\dd P_2(t)}{P_2(t)}=(r+\mu(t)+l_2X(t))\dd t+\hat{\sigma}\dd Z_{P_2}(t),\eqno{( \mathrm{A}.2)}
\end{equation*}


宏包如下所示:

%%
%% This is file `jssms.cls',
%% generated with the docstrip utility.
%%
%% ----------------------------------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%% 
%% This file may only be distributed together with a copy of original
%% source files. You may however distribute original source files
%% without such generated files. Copying of this file is authorized
%% only if either:
%% (1) you make absolutely no changes to your copy, including name; OR
%% (2) if you do make changes, you first rename it to some other name.
%% 
%% To produce the documentation run the original source files ending
%% with `.dtx' through LaTeX.
%% 
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{jssms}
  [2011/06/30 v0.1b Journal of System Science and Mathematical Science Chinese Series
   article document class]
\newif\ifjssms@evenend \jssms@evenendfalse
\DeclareOption{evenend}{\jssms@evenendtrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{cctart}}
\PassOptionsToClass{twoside}{cctart}
\ProcessOptions
\LoadClass{cctart}
\RequirePackage{graphicx, graphics,subfigure,picins,indentfirst,lastpage,epsfig,
                epstopdf, booktabs,multirow}% by Song 20151024
\RequirePackage{amsmath,amsthm,amssymb,amsfonts,amscd,mathrsfs,bm,enumerate}
\RequirePackage[numbers,square,comma,sort&compress]{natbib}
\RequirePackage{ifpdf,fancyhdr}
\input scrload.tex

\topmargin 0 true cm
\oddsidemargin 0pt
\headheight=16pt \headsep=20pt
%\footheight=0pt \footskip=0pt
\evensidemargin 0pt
\textwidth=14.5 true cm
\textheight=21 true cm

\parindent=2\ccwd
\linespread{1.3}
%\renewcommand\baselinestretch{1.1}
\allowdisplaybreaks[4]
\newfam\cryfam
\newfam\smbfam
\newfont{\htxt}{eufm10 scaled \magstep0}
\font\tenthxt=eufm10 scaled \magstep0 \font\tenBbb=msbm10 scaled
\magstep0 \font\tencyr=wncyr10 scaled \magstep0 \font\tenrm=cmr10
scaled \magstep0 \font\tenbf=cmb10 scaled \magstep0
\font\tenBb=msbm7 \font\tenB=msbm10 scaled \magstep3
\def\cyr{\tencyr}
\def\Bbb{\tenBbb}
\def\Bb{\tenBb}
\def\B{\tenB}
\def\txt{\tenthxt}



\def\ST{\songti\rm\relax}
\def\HT{\heiti\bf\relax}
\def\FS{\fangsong\relax}
\def\KS{\kaishu\relax}

\def\RM{\rm}
\def\It{\it}
\def\hat{\widehat}
\def\tilde{\widetilde}
\def\bar{\overline}
\def\epsilon{\varepsilon}
\def\dd{{\rm d}}
\def\ii{{\rm i}}
\def\q{\quad}
\def\dint{\displaystyle\int} 
\def\vsp{\vspace{1mm}}
\def\no{\nonumber}
\def\q{\quad} \def\qq{\qquad}
\def\ee{{\rm e}}
\newcommand{\rulex}{\hfill\rule{1mm}{3mm}}
\def\ay{\arraycolsep=1.5pt}
\def\d{\displaystyle}
\def\dfrac{\displaystyle\frac}
\def\la {\langle}              \def\ra {\rangle}
\def\n{\noindent}
\def\*{$\!\!^{^{^{\displaystyle *}}}$}
%\def\jssmszi{\zihao{10}\ziju{0.135}}
\ziju{0.135}


\def\jssms@beginENV{%
  \openin\@firstpage=firstpage.dat
  \ifeof\@firstpage
    %long 09-10-10 \setcounter{page}{1}
  \else
    \global\read\@firstpage to\@fpage
    \setcounter{page}{\@fpage}
  \fi
  \closein\@firstpage
}
\def\jssms@endENV{%
  \ifjssms@evenend%
    \ifodd\arabic{page}\hrule height0pt depth0pt\newpage
    \thispagestyle{empty}\ \fi
  \fi
  \@checkend{document}\clearpage
  \begingroup
  \addtocounter{page}{-1}
  \immediate\openout\@@lastpage=lastpage.dat
  \immediate\write\@@lastpage{\arabic{page}}
  \immediate\closeout\@@lastpage
  \endgroup
}

\def\b{\bigg}\def\bi{\Big}
\newcommand*\EditorNote[1]{%
  \begingroup
    \long\def\@makefntext##1{\zihao{6}\parindent 1em\indent\indent\hbox to 0pt{\hss$^{}$}##1}%
    \footnotetext{#1}%
  \endgroup}
\newcommand*\FootNote[1]{%
  \begingroup
    \long\def\@makefntext##1{\zihao{6}\parindent 1em\indent\indent\hbox to 0pt{\hss$^{}$}##1}%
    \footnote{#1}%
  \endgroup}
\newcommand\PageNum[1]{\setcounter{page}{#1}}
\def\ps@headings{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
  \def\@evenhead{%
    \pushziti\vbox{\hbox to\textwidth{\rlap{\small\thepage}
    \hfill {\zihao{-5}\songti {ϵ}
                  \quad {ͳ}\quad  {  }\quad  {ѧ}\quad  {  }
                  \quad {  }\quad {ѧ}}
    \hfill {\small\jssms@volume}{\zihao{-5}\songti   }
    \llap{}}\protect\vspace{2truemm}\relax
    \hrule depth0pt height0.15truemm width\textwidth}\popziti}
  \def\@oddhead{%
    \pushziti\vbox{\hbox to\textwidth{\rlap{}
    {\small\jssms@number}{\zihao{-5}\songti   }\hfill
    {\small\zihao{-5}\songti \jssms@titlemark}\hfill
    \llap{\small\thepage}}
    \protect\vspace{2truemm}\relax
    \hrule depth0pt height0.15truemm width\textwidth}\popziti}
  \let\@mkboth\@gobbletwo
  \let\sectionmark\@gobble
  \let\subsectionmark\@gobble
}% by Song 20131122  ҳü  Ϊ          ʽ    żҳ  ʱ  Ӧ 滻
%%\ps@headings
\newcommand*\TitleMark[1]{\def\jssms@titlemark{#1}}
\def\jssms@year{01}
\def\jssms@month{1}
\def\jssms@volume{0}
\def\jssms@number{0}
%%\newcommand*\Volume[4]{
%%\def\jssms@year{#1}
%% \def\jssms@month{#2}
%%\def\jssms@volume{#3}
%%\def\jssms@number{#4}}
\def\jssms@paperid{}
\newcommand*\PaperID[1]{%
  \def\jssms@paperid{#1}}
\def\jssms@documentcode{}
\newcommand*\DocumentCode[1]{%
  \def\jssms@documentcode{#1}}
\newcommand*\jssms@shortmonthname[1]{%
\ifcase#1\or Jan.\or Feb.\or Mar.\or Apr.\or May\or Jun.%
\or Jul.\or Aug.\or Sep.\or Oct.\or Nov.\or Dec.\fi}
\newcommand*\Title[1]{%
 %\vspace*{0.3cm}%by Song 2017-01-17
  \begin{center}
    {\zihao{2}\heiti\huge\bf #1}\\[.2in]
  \end{center}
}
\newcommand*\ETitle[1]{%
  \vskip 0.6 cm %by Song 2017-01-17
  \begin{center}
    {\large\bf #1}\\[2mm]
  \end{center}
}
\newcommand*\Author[2]{%
 %\vspace*{0.3cm}%by Song 2017-01-17
  \begin{center}
    \zihao{4}\fangsong#1\\[0.2cm]
    \songti\zihao{6}#2\\[.1in]
  \end{center}
}
%\newcommand*\SAuthor[2]{%
 %\begin{center}
 %   \zihao{4}\fangsong#1\\[0.2cm]
 %   \songti\zihao{6}#2\\[.1in]
 % \end{center}
%}

\newcommand*\EAuthor[2]{%
  \begin{center}
    \zihao{4}\fangsong#1\\[2mm]
     \zihao{6} #2\\[2mm]
  \end{center}
}

%%\newcommand*\BeginTitle{%
%%\hspace{-0.5cm}\parbox[b]{4.5truecm}{\footnotesize\baselineskip=11pt\noindent%
%%{\zihao{5}\heiti  {ϵ} \hspace*{1.5mm}  {ͳ} \hspace*{1.5mm} {  } \hspace*{1.5mm}  {ѧ}\hspace*{1.5mm}{  } \hspace*{1.5mm}  {  }\hspace*{1.5mm} {ѧ}}\\
%%{\small\it J.\,\, Sys.\,\, Sci.\,\,} \& {\small\it \,\,\, Math.\,\, Scis.}\\[-1mm]
%%{\bf\small \jssms@volume}(\small\jssms@number)\quad\,\,(\small\jssms@year, \small\jssms@month),\,\,\,\quad \thepage--\pageref{LastPage}\\} \hfill\parbox[t]{4.5truecm}{}}

\newcommand*\BeginTitle{%
\parbox[b]{6truecm}{} \hfill
\parbox[t]{4.5truecm}{\footnotesize\baselineskip=11pt\noindent%
{\zihao{5}\heiti  {ϵ} \hspace*{1.5mm}  {ͳ} \hspace*{1.5mm} {  } \hspace*{1.5mm}  {ѧ} \hspace*{1.5mm} {  } \hspace*{1.5mm}  {  }\hspace*{1.5mm} {ѧ}}\\
{\small\it J.\,\, Sys.\,\, Sci.\,\,} \& {\small\it \,\,\, Math.\,\, Scis.}\\[-1mm]
{\bf\small \jssms@volume}(\small\jssms@number)\quad\,\,(\small\jssms@year, \small\jssms@month),\,\,\,\quad \thepage--\pageref{LastPage}\\}}

\newcommand*\EndTitle{\vskip .1in}
\newcommand*\Abstract[1]{%
  \begingroup\vskip.1in\narrower\noindent
    {\heiti \small ժҪ}\small\quad  #1 \baselineskip 12.3pt
   \par\vskip 0.3cm\endgroup}
\newcommand*\EAbstract[1]{%
  \begingroup\vskip.1in\narrower\noindent 
  {\bf Abstract}\quad  #1 \baselineskip 12.3pt
  \par\vskip.1in\endgroup}
\newcommand*\Keywords[2][ ؼ   ]{%
  \begingroup\narrower\noindent
    {\heiti \small #1}\small\quad  #2%
  \par\vskip 0.3cm\endgroup}
\newcommand*\EKeywords[2][Keywords]{%
  \begingroup\narrower\noindent
    {\bf #1}\quad #2%
  \par\endgroup}
\newcommand*\MRClass[2][MR(2000)        ]{%
  \begingroup\narrower\noindent
    {\heiti\zihao{-5}\small  \bf #1}\zihao{6}\ \ #2%
  \par\endgroup}
  
  \newcommand*\DOI[2][DOI]{%
  \begingroup\narrower\noindent
    {\songti\zihao{-5} \bf #1}\zihao{6}\ \ 10.12341/jssms#2% 
  \par\small  \endgroup}
  
\newcommand*\Section[2][]{%
  \edef\jssms@temp{#1}
  \ifx\jssms@temp\@empty\addtocounter{section}{1}
  \else\setcounter{section}{#1}\fi
  \vskip 0.5cm
  \leftline{\large\zihao{-4}\heiti\bf\thesection\ \ #2} 
  \vskip 0.3cm
  \normalsize
  \abovedisplayskip=4.0pt plus 2.0pt minus 2.0pt
  \belowdisplayskip=4.0pt plus 2.0pt minus 2.0pt
  \baselineskip 15.3pt
}
\def\Subsection#1{\vskip 0.2cm\noindent {\zihao{5}\heiti\bf #1}
     \vskip 0.1cm}
\def\Subsubsection#1{\vskip 0.1cm\noindent {\zihao{5}\heiti\bf #1}
     \vskip 0.05cm}
\renewcommand\refname{\zihao{5}\heiti    \quad    \quad    \quad   \vspace*{4mm}} % by Song 20121107
\makeatletter
        \renewcommand\@biblabel[1]{{[#1]\hfill}}
     \makeatother
\newcommand\BeginRef{\vspace*{4mm}\small \zihao{6}\baselineskip 11pt
\parindent=0pt \hangindent=0.6cm \hangafter=1
 %  by Song 20121107
\begin{thebibliography}{199}\addtolength{\itemsep}{-1.5ex}
}
\newcommand\EndRef{\end{thebibliography}}
\newcommand*\REF[1]{\bibitem{#1}}
\newcommand*\supercite[1]{\textsuperscript{\cite{#1}}}
\endinput
%%
%% End of file `jssmsc.cls'.



  • 写回答

3条回答 默认 最新

  • 阿里嘎多学长 2024-07-14 12:51
    关注

    以下内容由CHATGPT及阿里嘎多学长共同生成、有用望采纳:


    要去除CTeX宏包中的右上角期刊名字等内容,你需要定位到控制这一部分显示的宏包或命令。根据你提供的宏包定义和模板代码,我们可以按照以下步骤进行操作:

    1. 定位相关命令:根据你的宏包定义,控制页眉显示的命令主要集中在\ps@headings这个命令中。你需要查找与\@evenhead\@oddhead相关的代码段。

    2. 注释掉相关代码:在\ps@headings定义中,找到设置\@evenhead\@oddhead的代码,并尝试注释掉它们。例如:

      \def\@evenhead{...} % 这里的代码控制偶数页的页眉
      \def\@oddhead{...}  % 这里的代码控制奇数页的页眉
      

      你可以将这些代码段注释掉,或者修改它们,以去除不需要的内容。

    3. 编译并检查:每次修改后,重新编译你的LaTeX文档,并检查是否已经去除了不需要的页眉内容。同时,确保其他部分没有受到影响。

    4. 备份原始模板:在进行任何修改之前,确保备份原始的LaTeX模板和宏包文件,以便在出现问题时能够恢复。

    5. 查阅文档和社区帮助:如果你不熟悉LaTeX的某些命令或宏包,可以查阅LaTeX官方文档或在相关社区寻求帮助。

    根据你的宏包定义,以下是可能需要修改的部分:

    \def\@evenhead{%
        \pushziti\vbox{\hbox to\textwidth{\rlap{\small\thepage}
        \hfill {\zihao{-5}\songti {ϵ}
                      \quad {ͳ}\quad  {  }\quad  {ѧ}\quad  {  }
                      \quad {  }\quad {ѧ}}
        \hfill {\small\jssms@volume}{\zihao{-5}\songti   }
        \llap{}}\protect\vspace{2truemm}\relax
        \hrule depth0pt height0.15truemm width\textwidth}\popziti}
    

    尝试注释掉或修改这个宏定义中的内容,特别是那些看起来像是期刊名字的部分。

    请注意,这些修改可能会影响到文档的其他部分,因此需要仔细测试并确保整体格式仍然符合要求。如果你不确定如何进行修改,或者在修改过程中遇到问题,可以进一步寻求社区的帮助。

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 7月14日