2012-04-16 2 views
1

이라고 쓰면, LaTeX은 그것을 목차에 넣고 headsepline 섹션을 수행합니다. \addsec*{Acronymes}을 쓸 때, LaTeX는 그것을 목차에 넣지 않고 headsepline 섹션에 쓰지 않습니다. 그러나 그것이 목차에 나타나지 않고 헤드 라인에 나타나기를 바랍니다.라텍스 - addsec 및 headsepline

그래서 어떻게 되나요? 를 통해

{% \begingroup 
\renewcommand{\addcontentsline}[3]{}% Remove functionality of \addcontentsline 
\addsec{Acronymes}% 
}% \endgroup 

그룹화를 사용하여 - - 목차에 요소를 추가 담당 매크로 당신은 순간적으로 \addcontentsline의 기능을 제거 할 수 있습니다

\documentclass[a4paper, 12pt, german, headsepline, footsepline, listtotoc, bibtotoc]  {scrartcl} 
\bibliographystyle{annotate} 

\usepackage[T1]{fontenc} 
\usepackage{lmodern} 
\usepackage[ansinew]{inputenc} 
\usepackage[ngerman]{babel} 
\usepackage[babel, german=quotes]{csquotes} 

\usepackage[printonlyused]{acronym} 

%head and footsepline 
\usepackage[headsepline,plainheadsepline]{scrpage2} 
\clearscrheadfoot 
\pagestyle{scrheadings} 
\automark[subsection]{section} 
\ihead{my title} 
\ohead{\headmark} 
\ifoot{my name} 
\ofoot{\pagemark} 

\usepackage{hyperref} 
\hypersetup{ 
colorlinks, 
citecolor=blue, 
filecolor=blue, 
linkcolor=blue, 
urlcolor=blue 
} 


\begin{document} 

\input{include/Abstract} 
\newpage 
\tableofcontents 
\newpage 
\listoffigures 
\newpage 
\listoftables 
\newpage 
\addsec*{Acronymes} 
%\addsec{Acronymes} 
\begin{acronym} 
\acro{HTTP}{Hypertext Transfer Protocol} 
\end{acronym} 

\end{document} 
+1

LaTeX 관련 질문은 [TeX.SE] (http://meta.tex.stackexchange.com/questions/1436/welcome-to-tex-sx)에 게시하는 것이 가장 좋습니다. –

답변

2

:

내가 이것을 위해 무슨 짓을했는지 그게 전부 {}은 그룹이 끝난 후 명령 재정의가 복원되도록합니다.

+0

완벽하게 작동합니다. 감사합니다. 괄호 안에 "3"이 왜 있는지 설명 할 수 있습니까? –

+1

'\ addcontentsline' 매크로는 ['\ addcontentsline {} {} {}'] (http://insti.physics.sunysb.edu/latex-help/ltx-193.html) 형식으로 사용됩니다. 3 개의 인수가 필요합니다. 나는 여전히 3 개의 인수를 취하기 위해 재정의했지만 아무것도하지 않았다. 즉, 그것들은 단지 그것들을 멍청하게 만든다. [help with'\ newcommand'와'\ renewcommand'] (http://www.public.asu.edu/~rjansen/latexdoc/ltx-18.html)도 참조하십시오. – Werner

+0

고맙습니다. –