I have  \documentclass{article} \usepackage{pdfpages}  \begin{document}    Lorem. Read the answer for this from the document \ref{3rd_part} ....  \appendix \includepdf[pages={-}]{3rd_part.pdf} \label{3rd_part} % NOT working, problem here! \end{document}   This labelling does not work.  There is no need for   no figure environment no table environment no caption,   since the document is only a WYSIWYG made document.  How can you label an included pdfdocument and refer to it?
120438
I have this:  \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{interview}]{interview/interview} \includepdf[scale=0.8,pages=2-,pagecommand={}]{interview/interview} \label{appendix:bslut}   And I'm calling it with cleveref:  \cpagerefrange{appendix:b}{appendix:bslut}   The problem is that I get the wrong page number for the last page -- it adds a page. What should be "pages 1-5" is instead "pages 1-6". I have Googled this like a madman, and I can't figure out what to do. I hope some of the superstars here can help! I have cleveref after hyperref, as recommended...  EDIT: As requested, I tried to make an MWE, but for some reason it gives me:  LaTeX Warning: Reference `appendix:bslut' on page 1 undefined on input line 7.   Here it is, though. "multipage" should be a PDF spanning several pages.  \documentclass{memoir} \usepackage{pdfpages} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \chapter{Foo} Foo\cpagerefrange{appendix:b}{appendix:bslut}.  \chapter{Bar} \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{Multipage}]{multipage} \includepdf[scale=0.8,pages=2-,pagecommand={}]{multipage} \label{appendix:bslut}  \end{document}
100154
So I know one of hyperref's features is that it can add metadata to you PDFs. This is a nice feature and if you're putting stuff online, it's good to include metadata.  But is the hyperref package really the best way to do it? I mean, if you're using hyperref anyway, that's fine. But if you don't want hyperrefs in your document, it seems weird to include the package, and then turn off pretty much all its functionality. And given that hyperref is a shorthand for "package conflict nightmare", is seems insane that you should have to deal with it just for the sake of some metadata.  So I have two questions.   Is there a good reason that hyperref includes this functionality which is apparently unrelated to its primary purpose? Is there a better (smaller, less conflicty, easier...) option to include metadata in my PDFs?
110376
I have been trying to include pdf graphics in a document with this simple command:  \documentclass{beamer}  \begin{document}  \begin{frame}     \only&lt;1&gt;{\includegraphics[width=\textwidth]{test}}     \only&lt;2&gt;{\includegraphics[width=\textwidth]{test}}     \only&lt;3&gt;{\includegraphics[width=\textwidth]{test}} \end{frame}  \end{document}   Unfortunately, the three pictures (that are supposed to be identical), are not aligned identically (from the top).  Here is the test.pdf used for generating the pdf:   Here is the generated pdf:  (as you can(not?) see), the first and second image are not aligned.    Now if someone knows why it acts like this? Here I put a VME since it seems to me that no package were necessary except for the class Beamer. I have tried with my "usual" packages, maybe I am just missing the right one?  Just so you know, what I was able to do so far: if I put a ~ after {test}, then it gets aligned (note that it will not work on this minimal example, there are some packages missing).  Also something I noticed (because when I first met this probleme I had many more \only), it is always the one before last only that messes up! No matter how many \only, and then the last one will be aligned with the previous one (this is why we need at least three only lines).
45071
I have this command  \newcommand{\pdfappendix}[1]{     \includegraphics[scale=0.6]{pdf/#1.pdf} }   It works well when I have 1 page pdf but is not including the other pages. Now I decided to change the command to take a second argument which is the number of pages and will repeat \includegraphics that number of times.  I want something similar to (the following is not latex code):  \newcommand{\pdfappendix}[2]{     for index=1 to #2     {        \includegraphics[scale=0.6]{pdf/#1index.pdf}     } }   Example: MyPDF.pdf has 4 pages. I will split it in 4 pdfs with 1 page each: MyPDF1.pdf, MyPDF2.pdf, MyPDF3.pdf, MyPDF4.pdf. The output of the command will be:  Then I will write the command: \pdfappendix{MyPDF}{4}  And it will output:  \includegraphics[scale=0.6]{pdf/MyPDF1.pdf} \includegraphics[scale=0.6]{pdf/MyPDF2.pdf} \includegraphics[scale=0.6]{pdf/MyPDF3.pdf} \includegraphics[scale=0.6]{pdf/MyPDF4.pdf}   Is it possible to do that?  PS: I don't want to use \includepdf because I have some problems with section headers.
102673
I have these labels in the margin everywhere in my final document. I don't think they look good, and I want to get rid of them, but I can't figure out how.   I searched around and this is the closest I could find -   However, the text "showlabels" is nowhere in my files.  \usepackage[nolabel, final]{showlabels} does not remove the labels from the final pdf.  \usepackage[right]{showlabels} also does not move the labels to the right margin, which must mean the labels are coming from something else  Thanks
119827
I want to place three figures like this on the page:  (a) (b)   (c)   How do I achieve this using subfloat or any other method in LaTeX? The three figures need to have a common caption and label.  I have tried this:  \begin{figure}[h] \centering \begin{tabular}{c c} \subfloat[] { \includegraphics[scale=0.4]{1.pdf} } &amp; \subfloat[] { \includegraphics[scale=0.4]{2.pdf} } \\ \multicolumn{2}{c} \subfloat[] { \includegraphics[scale=0.6]{3.pdf} } \end{tabular} \caption{Some caption} \label{some-label} \end{figure}   But, this is displaying [] for the third figure instead of (c). Also it displays [] to one side of the page instead of center.
116262
My thesis is about a project I developed in a company. During the project, I generate several official documents that I'm appending at the end (using includepdf package). These documents have their own cover, so it's not necessary to create an almost blank page with only "Appendix A - Lorem ipsum", but if I don't include this I lose my reference in the index. What should I do? Thanks in advance!
73667
I'm creating a fancy header with hyperlinks () for a large document. However, if/when this document is printed, this header is not useful and uses up ink and space. Is it possible to include an element in a pdf file such that it is not actually printed to paper but does display on screen?
16718
Possible Duplicate:          My LaTeX document is acting strangely. Here is a simplified version of it:  \documentclass{article}  \begin{document}  \tableofcontents \newpage  \addcontentsline{toc}{part}{A Part of My Document} \include{includedfile}  \end{document}   And in includedfile.tex:  \section{My Section Title} Quack.   Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?
60154
Consider the Code below:  \documentclass[%     paper=A4,     twoside=true,     fontsize=12pt,     titlepage=true,     listof=totoc,     bibliography=totoc,     listof=flat,     open=right,     cleardoublepage=empty,     headsepline=true,     footsepline=false,     captions=tableheading,     numbers=noendperiod,     parskip=half-,     headings=normal]{scrbook} \usepackage[a4paper]{geometry} \geometry{     includehead=true,     hmarginratio=1:2,     vmarginratio=3:5,     textwidth=170mm,     textheight=230mm,     headheight=20pt,     footskip=15mm,     bindingoffset=6mm} \usepackage{showframe} \usepackage{blindtext} \usepackage[tocindentauto]{tocstyle} \usetocstyle{KOMAlike} \begin{document} \frontmatter \tableofcontents \cleardoublepage \mainmatter \blinddocument\blindtext \pagenumbering{Roman} \setcounter{page}{20} \appendix \blinddocument \end{document}   The roman pagenumbers in the table of contents are too wide. How to fix this?
22799
These may be separate questions, but the following MWE:    \usepackage{pdfpages} ...   \addcontentsline{lot}{subsection}{\ref{tab:UserRoles} \textbf{User Roles}}   \includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles}]{UserRolesTable}   ...   has several unexpected behaviors.   I get the following warning:  Package pdfpages Warning: There's something wrong with the entries of `addtolist'. Not all entries were processed. Check `addtolist' [in the MWE]."    Probably due to the \label not being bound to the inserted pdf (in a table environment), my inserted PDF is numbered using the section, and not the expected "Table X" value.   The manually-inserted LoT line (which also uses the section number rather than the incremented table number) is not formatted like the other lines in the LoT - the number lines up, but the table caption itself is not aligned with the others in the list.   The source PDF has no errors and displays correctly in the output PDF.  PDFLaTeX -> BibTex    MWE:  \documentclass[11pt,letterpaper,twoside,final]{article} \usepackage{pdfpages} \begin{document} \listoftables \begin{center} \textbf{Table \ref{tab:UserRoles} - The User Roles Table} \addcontentsline{lot}{subsection}{\ref{tab:UserRoles}  \textbf{User Roles}} % manual entry in ToC  \includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles, lot}]{UserRolesTable} \end{center} \end{document}
122296
I am failing to add a heading for the appendix to the ToC with the correct page number:  \documentclass{scrbook} \begin{document} \tableofcontents \chapter{test} \appendix \addcontentsline{toc}{part}{\appendixname} \chapter{First Appendix} \end{document}     I also tried to use the \addappheadtotoc command from the  package, but that changes nothing (expect that it writes 'Appendices' instead).  I assume that the appendix package provides the solution, but I could not figure out how to use it.
45076
I am giving a presentation and therefore I am using the  class. I have included some figures and it works, but there is no number after "Figure".  My code:  \documentclass{beamer}  \usepackage{graphicx} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{listings} \usepackage{xcolor} \usepackage{eso-pic} \usepackage{mathrsfs} \usepackage{url} \usepackage{amssymb} \usepackage{amsmath} \usepackage{multirow} \usepackage{hyperref} \usepackage{booktabs} \usepackage{wallpaper} \usepackage{bbm} \usepackage{cooltooltips} \usepackage{eso-pic} \usepackage{everyshi} \usepackage{calc} \usepackage{graphicx} \usepackage{ifthen} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{animate} \usepackage[singlespacing]{setspace} \usepackage[absolute,overlay]{textpos} \usepackage{enumerate} \usepackage{hyperref} \newenvironment{changemargin}[2]{%   \begin{list}{}{%     \setlength{\topsep}{0pt}%     \setlength{\leftmargin}{#1}%     \setlength{\rightmargin}{#2}%     \setlength{\listparindent}{\parindent}%     \setlength{\itemindent}{\parindent}%     \setlength{\parsep}{\parskip}%   }%   \item[]}{\end{list}}  \setbeamercolor{frametitle}{fg=red,bg=white}  \hypersetup{pdfpagemode=FullScreen} \renewcommand*{\UrlFont}{\normalfont}  \usetheme{Goettingen} \useinnertheme{circles} \beamertemplatenavigationsymbolsempty  \setbeamerfont{page number in head/foot}{size=\large} \setbeamertemplate{footline}[frame number]   %%% \begin{document}  \frame[plain]{ \titlepage }  \setbeamertemplate{background canvas}[default]  \frame{ \frametitle{}  \begin{figure} \begin{center} \includegraphics[scale=0.2]{varweakness} \caption{VaR as a quantile} \end{center} \end{figure}  }   \end{document}   Which gives the following frame with the figure:    (I am not sure what is causing the problem, therefore I did not delete any package.)  How can I get a number, e.g. Figure 1:?
111641
There is a compatibility problem between the  and the subcaption package. When I compile the following example (with PDFLaTex): \documentclass{cifa}  \usepackage{subcaption}  \begin{document} \begin{figure} \parbox{4cm}{\subcaption{This is a subcaption}\label{sub}}  \caption{nothing} \label{nothing} \end{figure}  See figure \ref{nothing}: there is \ref{sub} inside...  \end{document}  These warnings are displayed:  Package caption Warning: Unsupported document class (or package) detected, Package caption Warning: \caption will not be redefined since it's already  In addition the words &quot;figure&quot; and &quot;subfigure&quot; are displayed AFTER the captions. How to fix this issue?
111245
I would like to know how to include table of contents into a table of contents....  I have an example of how to spoof it into the toc - using \phantomsection - but it seems like when i have a long document the link goes a bit wrong - ie. it links to a couple of pages before.....  \phantomsection \addcontentsline{toc}{chapter}{Contents} \tableofcontents     Example:  \documentclass[12pt, a4paper, twoside]{book} \usepackage[english]{babel} \usepackage{amsfonts,dsfont} \usepackage[final]{pdfpages} \usepackage{hyperref}   %---------------------------------------------------------------------------------- \begin{document} \pagenumbering{roman}  %----------------------------------------------------------------------------------  %---------------------------------------------------------------------------------- \thispagestyle{empty} \begin{titlepage} {\Large \begin{center} {\bf XXXXXXXXXXXXXXX} \end{center} } \end{titlepage} %----------------------------------------------------------------------------------  \phantomsection \addcontentsline{toc}{chapter}{Contents} \tableofcontents   \phantomsection \addcontentsline{toc}{chapter}{List of Figures} \listoffigures  \phantomsection \addcontentsline{toc}{chapter}{List of Tables} \listoftables  %----------------------------------------------------------------------------------  \newpage \setcounter{page}{1} \pagenumbering{arabic}  \chapter{XXXXX} \label{chXXXXX}  \section{Introduction}\label{chXXXXX_Intro} BLAH BLAH BLAH.   %----------------------------------------------------------------------------------  %-------------------- \setboolean{@twoside}{false} \end{document}
39915
I am using (plain) TeX (not LaTeX or any other ...TeX). I want a pdf file made from my TeX-source/output that is able to have acrobat reader shown logical page numbers. My document’s preface page numbering should be displayed like “vi (6 of 123)” and the main part like “2 (12 of 123)” in acrobat reader’s tool bar.  How do i achieve that? Do I have to use \special, pdfTeX, dvipdfm(x)? How do I specify the roman numeral page numbers in the TeX source? Is there a (TeX) macro package for that?  Thanks to all TeX Wizards for your answers!
79345
I'm using the package showlabels which has the effect that when I label something with \label{thing1} the thing1 gets typeset in the margin of my document next to where I put the label. This works fine for equations in align and proof environments, and things like that.  The problem is that it does not work when I label a theorem, which I do like this:  \begin{theorem}\label{fact1} Important math statement. \end{theorem}   I can still refer to said theorem via \ref{fact1} but I cannot get the label to typeset in the margin next to the theorem.  EDIT: I originally failed to include a compilable example of the problem. @DavidCarlisle posted an example of the problem not occurring, but with showlabels replaced with showkeys, upon which I noticed that showkeys did not produce the problem.  Looking more closely at my preamble, the problem had to do with the hyperref package. The following does not result in the label on the theorem being displayed.  \documentclass{article}  \usepackage{showlabels} \usepackage{hyperref} \usepackage[english]{babel}  \newtheorem{theorem}{Theorem}[section]  \begin{document}  \begin{theorem}\label{a theorem}     Important math statement. \end{theorem}  \end{document}   On the other hand, if one moves the hyperref package so it is implemented before showlabels, as follows, it works.  \documentclass{article}  \usepackage{hyperref} \usepackage{showlabels} \usepackage[english]{babel}  \newtheorem{theorem}{Theorem}[section]  \begin{document}  \begin{theorem}\label{a theorem}     Important math statement. \end{theorem}  \end{document}