LyX ⇒ AppendixA
-
- Posts: 8
- Joined: Sat Jul 05, 2014 1:39 pm
AppendixA
I'm using Lyx 2.1.4 on a Mac (El capitan).
When I compile my PDF, everything works fine.
However, the hyperlinks to the Appendixes (I have more than one) show as "AppendixA", "AppendixB", etc.. rather than "Appendix A", "Appendix B", ..
In other words, there is no space between "Appendix" and the letter identifying the Appendix.
Any idea how to fix this?
Thanks,
RT
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: AppendixA
can you post your document as LaTeX export from LyX, here as attachment? This way we can find the cause.
You can remove text content from the exported copy, so you don't need to show the real content. Just so that we can verify the problem.
Stefan
-
- Posts: 8
- Joined: Sat Jul 05, 2014 1:39 pm
Re: AppendixA
Thanks for your reply.
Please find attached a minimal working file in which I reproduce (and explain) the issue.
The file comes in two formats (.tex and .lyx). I also attach the PDF for your convenience.
Thanks a lot!
Riccardo
- Attachments
-
- Appendix_issue.lyx
- (3.4 KiB) Downloaded 425 times
-
- Appendix_issue.pdf
- (18.73 KiB) Downloaded 261 times
-
- Appendix_issue.tex
- (1.4 KiB) Downloaded 394 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
AppendixA
Add
\def\appendixname{Appendix }
into your preamble after loading package babel.* Doesn't matter though, the journal staff will convert your document to conform to the journal rules.
-
- Posts: 8
- Joined: Sat Jul 05, 2014 1:39 pm
AppendixA
I put it at the end of the preamble as you suggested but unfortunately it did not work.
In the preamble I have what follows:
Code: Select all
\makeatletter
\def\ps@pprintTitle{%
\let\@oddhead\@empty
\let\@evenhead\@empty
\let\@oddfoot\@empty
\let\@evenfoot\@oddfoot
}
\makeatother
\usepackage{bm}
\usepackage{pdflscape}
\usepackage{changepage}
\let\cleardoublepage\clearpage
\usepackage{hyperref}
\usepackage{colortbl}
\definecolor{halfgray}{gray}{0.95}
\def\appendixname{Appendix }
Thanks!
RT
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
AppendixA
Johannes' tipp works, but you should do it after the preamble:
Code: Select all
\begin{document}
\def\appendixname{Appendix }
Code: Select all
\addto\captionsenglish{%
\renewcommand\appendixname{Appendix }%
}
Stefan
-
- Posts: 8
- Joined: Sat Jul 05, 2014 1:39 pm
Re: AppendixA
Thanks a lot! It works nicely.
Thanks again!
RT
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
AppendixA
No problem.

Just by the way, a comment. In LaTeX (and it should be the same in Word) we define styles for formatting. We don't apply physical formatting repeatedly within the document. For example here:
Code: Select all
\begin{center}
\textbf{\Huge{}Appendix }\label{part:Appendix}
\par\end{center}
\textbf{\Huge...}
should be part of a macro.That's good for consistent headings, and a single point of changes. Just a late evening talk about that everything in LaTeX is about styles and macros and a document is free of direct formatting. 
Stefan
-
- Posts: 8
- Joined: Sat Jul 05, 2014 1:39 pm
Re: AppendixA
Indeed! Thanks for the advice!
RT