Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to obtain toc and text formatting as shown in MWE.

 \documentclass[12pt,a4paper]{article}
 \usepackage[a4paper]{geometry}
 \usepackage{polyglossia}
 \setdefaultlanguage{polish}
 \usepackage[titles]{tocloft}

 \makeatletter
    \renewcommand{\numberline}[1]{%
    \@cftbsnum #1\@cftasnum~\@cftasnumb%
 }

\begin{document}

\newpage
\tableofcontents

\newpage
\section{Section 1}
bla bla \ref{app2} bla.

\subsection{Subsection 1}
\newpage

\appendix
    \addcontentsline{toc}{section}{Appendices}

    \section*{Appendices}
    \renewcommand{\thesubsection}{Appendix \Alph{subsection}.}
    \renewcommand{\theparagraph}{\Alph{subsection}}

    \subsection{Description.}
    \label{app1}

    \subsection{Description.}
    \label{app2}

\end{document}

But in section 1, I don't want to get "bla bla Appendix B. bla.", but: "bla bla B bla." (In polish due to declination I can't use header "Appendix B" in text.)

So, to solve my problem I can find how to:

  1. get only number from Appendix.

  2. make header "Appendix X. Description." without using:

 \renewcommand{\thesubsection}{Appendix \Alph{subsection}.}

In both ways I failed.

share|improve this question

closed as unclear what you're asking by Joseph Wright Aug 5 '13 at 7:21

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Welcome to TeX.sx! You don't have to sign with your name since it automatically appears in the lower right corner of your post. Also, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. Again, welcome! –  hpesoj626 Jan 9 '13 at 22:02
    
Thank you for welcoming me. I will adapt and won't make such mistakes again. –  Tomasz Jakubek Jan 10 '13 at 9:44
1  
I wouldn't think of it as a mistake. It is just the way things are done here. You will get used to it after a while. Enjoy the community. :) Once again, welcome! –  hpesoj626 Jan 10 '13 at 10:08
    
Up to this point, I don't think I understand what you are trying to achieve here. Can you make your question clearer or, better yet, post a picture that shows what you try to achieve? –  hpesoj626 Jan 11 '13 at 10:41

Browse other questions tagged or ask your own question.