Text FormattingAppendix - wrong template

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
basfot
Posts: 8
Joined: Tue Dec 02, 2014 7:53 pm

Appendix - wrong template

Post by basfot »

Hi, I have tex file template cls and I need fix appendix. After build of code is

1) Wrong href in content to appendix section
2) Appendix title is after bibliography

Can you help me? Thanks a lot.

Code: Select all

% Nejprve uvedeme tridu dokumentu s volbami
%\documentclass[bc,male,java,dept460]{diploma}						% jednostranny dokument
\documentclass[bc,male,java,dept460,twoside]{diploma}		% oboustranny dokument
\usepackage[czech]{babel}


% Zadame pozadovane vstupy pro generovani titulnich stran.
\ThesisAuthor{Jiří Dvorský}

% U bakalarske praxe neni nutne nazev zadavat
\ThesisTitle{Ukázka sazby diplomové nebo bakalářské práce}

% U bakalarske praxe neni nutne anglicky nazev zadavat
\EnglishThesisTitle{Diploma Thesis Typesetting Demo}

\SubmissionDate{16. dubna 2009}

\PrintPublicationAgreement{true}

\AccessRestriction{Zde vložte text dohodnutého omezení přístupu k Vaší práci, chránící například firemní know-how.
Zde vložte text dohodnutého omezení přístupu k Vaší práce, chránící například firemní know-how.
A zavazujete se, že\par
\begin{enumerate}
\item o práci nikomu neřeknete,
\item po obhajobě na ni zapomenete a
\item budete popírat její existenci.
\end{enumerate}
A ještě jeden důležitý odstavec. A ještě jeden důležitý odstavec.
A ještě jeden důležitý odstavec. A ještě jeden důležitý odstavec.
A ještě jeden důležitý odstavec. A ještě jeden důležitý odstavec.
Konec textu dohodnutého omezení přístupu k Vaší práci.}

\Thanks{Rád bych na tomto místě poděkovala všem, kteří mi s prací pomohli, protože bez nich by tato práce nevznikla.}

\CzechAbstract{Tohle je nějaký abstrakt. Tohle je nějaký abstrakt. Tohle je nějaký abstrakt. Tohle je nějaký abstrakt.
Tohle je nějaký abstrakt. Tohle je nějaký abstrakt. Tohle je nějaký abstrakt. Tohle je nějaký abstrakt.
Tohle je nějaký abstrakt. Tohle je nějaký abstrakt. Tohle je nějaký abstrakt. Tohle je nějaký abstrakt.}

\CzechKeywords{typografie, \LaTeX, diplomová práce}

\EnglishAbstract{This is English abstract. This is English abstract. This is English abstract. This is English abstract. This is English abstract. This is English abstract.}

\EnglishKeywords{typography, \LaTeX, master thesis}

% Pridame pouzivane zkratky (pokud nejake pouzivame).
\AddAcronym{DVD}{Digital Versatile Disc}
\AddAcronym{TNT}{Trinitrotoluen}
\AddAcronym{OASIS}{Organization For The Advancement Of Structured Information Systems}
\AddAcronym{HTML}{Hyper Text Markup Language}


% Zadame cestu a jmeno souboru ci nekolika souboru s digitalizovanou podobou zadani prace
% Pri sazbe se pak hledaji soubory Figures/Zadani1.jpg, Figures/Zadani2.jpg atd.
% Do diplomove prace se postupne vlozi vsechny existujici soubory Figures/ZadaniXXX.jpg
% Pokud toto makro zapoznamkujeme sazi se stranka s upozornenim
%\ThesisAssignmentImagePath{Figures/Zadani}

% Zadame soubor s digitalizovanou podobou prohlaseni
% Pokud toto makro zapoznamkujeme sazi se cisty text prohlaseni
\DeclarationImageFile{Figures/Prohlaseni.jpg}



% Zacatek dokumentu
\begin{document}

% Nechame vysazet titulni strany.
\MakeTitlePages

% Asi urcite budeme potrebovat obsah prace.
\tableofcontents
\cleardoublepage	% odstrankujeme, u jednostranneho dokumentu o jednu stranku, u oboustrenneho o dve

% Jsou v praci tabulky? Pokud ano vysazime jejich seznam.
% Pokud ne smazeme nasledujici makro.
\listoftables
\cleardoublepage	% odstrankujeme, u jednostranneho dokumentu o jednu stranku, u oboustrenneho o dve

% Jsou v praci obrazky? Pokud ano vysazime jejich seznam.
\listoffigures
\cleardoublepage	% odstrankujeme, u jednostranneho dokumentu o jednu stranku, u oboustrenneho o dve


% Jsou v praci vypisy programu? Pokud ano vysazime jejich seznam.
\lstlistoflistings
\cleardoublepage	% odstrankujeme, u jednostranneho dokumentu o jednu stranku, u oboustrenneho o dve



% Zacneme uvodem
\section{Úvod}
\label{sec:Uvod}
Tento text je ukázkou sazby diplomové práce v \LaTeX{}u pomocí třídy dokumentů \verb|diploma|.
Pochopitelně text není skutečnou diplomovou prací, ale jen ukázkou použití
implementovaných maker v praxi. V kapitole \ref{sec:Typo} jsou ukázky použití
různých maker a prostředí. V kapitole \ref{sec:Conclusion} bude \uv{jako závěr}. Zároveň
tato kapitola slouží jako ukázka generování křížových odkazů v \LaTeX{}u.



\section{Ukázky sazby}
\label{sec:Typo}


\subsection{Ukázka nadpisů}
Toto je nadpis podsekce, generováno makrem \verb|\subsection|.


\subsubsection{subsection}

\paragraph{paragraph}


\subparagraph{subparagraph}
Ale tak hluboko se asi stejně nikdo nedostane.



\subsection{Sazba definic, vět atd.}
Určitě se bude hodit prostředí pro sazbu definice jako je definice binárního vyhledávacího
stromu, viz definice \ref{def:BinVyhlStrom}.

\begin{remark}
Následující definice a věty nedávají dohromady příliš smysl. Jsou tu jen pro ukázku.
\end{remark}






\section{Závěr}
\label{sec:Conclusion}
Tak doufám, že Vám tato ukázka k něčemu byla. Další informace najdete v~publikacích
\cite{goossens94,lamport94}.

\bigskip
\begin{flushright}
Jiří Dvorský
\end{flushright}




\begin{thebibliography}{99}

\bibitem{goossens94} Goossens, Michel,
\textit{The \LaTeX\ companion,} New York: Addison, 1994.

\bibitem{lamport94} Lamport, Leslie,
\textit{\LaTeX: a document preparation system: user's guide and reference manual},
New York: Addison-Wesley Pub. Co., 1994.

\end{thebibliography}


\appendix{Appendix Title}
\section{Grafy a měření}
Tohle je příloha k práci. Většinou se sem dávají grafy, tabulky, které by vzhledem
ke svému počtu překážely v textu diplomky.
\clearpage

\InsertFigure{Figures/Graf}{0.7\textwidth}{Nějaký graf}{fig:SampleGraph}

\end{document}

Attachments
diploma.cls
(4.52 KiB) Downloaded 230 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Appendix - wrong template

Post by Johannes_B »

Your document does not run for me because some file needed for pdfx is missing.

Code: Select all

pdfTeX warning (Object streams): \pdfobjcompresslevel > 0 requires \pdfminorver
sion > 4. Object streams disabled now.
! pdfTeX error (ext5): cannot open file for embedding.
l.137 ...eam attr{/N 4}  file{sRGBIEC1966-2.1.icm}
The appendix in your example is called after the bibliography, so it is not surprising that it is typeset after the bibliography ;-)

Commenting out the package, i get a lot of other errors related to the class. This could be indicating that my version, from one of your previous posts, is too old. Unfortunately, i have blindingly replaced your input with the verion on my hard drive. Can you check for changes and upload a newer version if existing? Please attach the file to the forum post, and not paste it in here.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
basfot
Posts: 8
Joined: Tue Dec 02, 2014 7:53 pm

Appendix - wrong template

Post by basfot »

Ok. Here is zip with all needed files.

Code: Select all

http://leteckaposta.co/file/499403578.1/9a38c781e603aeec7ca07e6c7f7e7616250c67f6/cs
Problem is that appendix links doesn't works correctly and wrong placeing of "Appendix title."
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Appendix - wrong template

Post by Johannes_B »

Please add the following just before \begin{document}:

Code: Select all

\makeatletter
\renewcommand\appendix{\cleardoublepage
  \phantomsection
  \addcontentsline{toc}{section}{\appname}%
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \gdef\thesection{\@Alph\c@section}
  \renewcommand{\theHsection}{\thesection}
  }
  \makeatother
The command \appendix does not get any arguments, please note that.

You should contact the author and tell him about the appendix problem.

There is other stuff going on in the code. If there is a repository on github, where development is taking place, i would be happy to take a further look.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
basfot
Posts: 8
Joined: Tue Dec 02, 2014 7:53 pm

Re: Appendix - wrong template

Post by basfot »

Nice. Links now works and it looks fine. Now I would like to know two small things.

1) When I need change style of appendix title where is this possible?
2) And I need this is specific question. If I want to continue on the some like is appendix title so it's possible on some way?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Appendix - wrong template

Post by Johannes_B »

Hi, i don't know what you mean by changing the appendix title. Can you elaborate on that?

Concerning the second question, sorry. I don't even have a clue what you might have been asking for.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply