इस समस्या को हल करने के कुछ तरीके हैं; दुर्भाग्यवश, मुझे इस चरण में केवल आपके लिए एक हैक मिला है। एक समस्या यह है कि यदि हम "परिशिष्ट" शब्द को शामिल करने के लिए अनुभाग संख्या "ए" को फिर से परिभाषित करते हैं, तो यह सामग्री की तालिका के स्वरूपण को गड़बड़ कर देता है। तो इसके बजाय, मैंने अभी एक नया सेक्शनिंग कमांड परिभाषित किया है जो बिना किसी संख्या के अनुभाग को प्रिंट करता है और मैन्युअल रूप से "परिशिष्ट एक्स" सम्मिलित करता है।
\appendix
\addcontentsline{toc}{section}{Appendix~\ref{app:scripts}: Training Scripts}
\section*{Sample Training Scripts
\label{app:scripts}
Blah blah appendix content blah blah blah.
मैं मैन्युअल रूप से करने के लिए एक लाइन कहा:
बदसूरत का प्रकार, लेकिन कम से कम यह किसी भी मार्कअप :)
\documentclass{article}
\makeatletter
\newcommand\[email protected][1]{%
\refstepcounter{section}%
\[email protected]*{Appendix \@Alph\[email protected]: #1}%
\addcontentsline{toc}{section}{Appendix \@Alph\[email protected]: #1}%
}
\let\[email protected]\section
\[email protected]@macro\appendix{\let\section\[email protected]}
\makeatother
\begin{document}
\tableofcontents
\section{goo}
\label{a}
This is sec~\ref{a}
\section{har}
\label{b}
This is sec~\ref{b}
\appendix
\section{ji}
\label{c}
This is app~\ref{c}
\subsection{me}
does this look right?
\end{document}
स्रोत
2009-04-05 00:11:07
जो वास्तव में प्रोग्रामिंग से संबंधित नहीं है, क्षमा करें! –
तो किस तरह के लेटेक्स प्रश्न मान्य हैं? – chriss
@ जोहान्स: मैं असहमत हूं। एसओ ने प्रोग्रामिंग से संबंधित लाटेक्स समस्याओं का लगातार इलाज किया है। यह उचित है, क्योंकि टीएक्स और लाटेक्स पूरी भाषा ट्यूरिंग कर रहे हैं। – dmckee