How to extract the amount of pages of a pdf in c#
Determine number of pages in a PDF file
The StackExchange™ MultiCollider SuperDropdown™ says I've got replies, but I've already viewed those. How many ways can $r$ nonconsecutive integers be chosen from the first $n$ integers? How to report issues with the mobile SE application Rename ToC, List of Figures, References I would like to know how to rename the standard list of figures, table of contents, and references. What I saw so far relying on \renewcommand{\contentsname}{name} did not work so far.  Here's the list of preambles I use:  \documentclass[12pt]{report} \usepackage[utf8]{inputenc}  \usepackage{fourier} \pagestyle{headings} \usepackage{marvosym} \usepackage[pdftex]{graphicx} \usepackage[margin=2.5cm]{geometry} \usepackage{rotating} \usepackage{amsmath} \usepackage{booktabs} \usepackage{url} \usepackage{natbib} \usepackage{setspace} \linespread{1.5} \newenvironment{remark}{\par\mbox{}\par\noindent{\bfseries             \emph{Remark}\/}:\normalfont}{\par} \newenvironment{defin}{\par\mbox{}\par\noindent\bfseries \emph{\Pointinghand\     }\normalfont}{\par} \setcounter{toc**strong text**depth}{2}  \usepackage[colorlinks=true, a4paper=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref} \pdfcompresslevel=9 \setstretch{1.0} %vertical stretch \usepackage{fontspec} \setmainfont[BoldFont       = AvenirNextRoundedPro-Bold.otf , ItalicFont     =AvenirNextRoundedPro-Italic.otf]{AvenirNextRoundedPro-Reg.otf} \defaultfontfeatures{Mapping=tex-text} \usepackage{multirow} \usepackage{array} \usepackage{booktabs} \usepackage{hyperref} \hypersetup{ hidelinks, } \usepackage{ragged2e} \usepackage{euler} \usepackage[euler-digits,euler-hat-accent]{eulervm} \usepackage[labelfont=bf]{caption} \usepackage{wrapfig} \usepackage{amsmath} \usepackage{amssymb}  \usepackage[english]{babel} \usepackage[nottoc]{tocbibind} %Adds "References" to toc \usepackage{titlesec} \titleformat{\chapter}[display]{\bfseries\huge}{\filleft\Large\chaptertitlename~\thechapter}{1ex}{\vspace{1ex}\filright}[\vspace{0.5ex}\titlerule] \usepackage{float} \usepackage{etoolbox} \makeatletter \patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{} \renewcommand*\l@figure{\@dottedtocline{1}{2em}{6em}} \let\l@table\l@figure  \makeatother % default for 3rd arg: 2.3em - for list of figures and tables \usepackage{background} \definecolor{textcolor}{HTML}{000000}             \newcommand\Text{c\quad o\quad n\quad f\quad i\quad d\quad e\quad n\quad t\quad i\quad a\quad l} \SetBgColor{textcolor}\SetBgOpacity{0.3}\SetBgAngle{90}         \SetBgPosition{current page.center} \SetBgVshift{-0.33\textwidth} \SetBgScale{1.8}         \SetBgContents{\sffamily\Text} %for confidential   I also use TexMaker. I do not know how relevant it is, but here my document language is set to English (even if it's not the language I write in, in that document, but it isn't a problem seemingly). What I also saw is that, if I remove babel and the references, I can rename my ToC and LoF, LoT. But I need the references though. Any tip would be very welcome!  Edit: I cannot provide text data from my project, because it is confidential. Here's what I can provide from the main document. Here is what I can include more.  \begin{document} \include{02_front}  \setcounter{page}{0} \pagenumbering{roman} \tableofcontents \listoffigures \listoftables \newpage \setcounter{page}{0} \pagenumbering{arabic} \chapter{blabla} \section{test é è åøæ î} \appendix \bibliographystyle{plain}  \bibliography{80_refs}   \end{document}   Also, I actually finished writing my thesis but I need to summarize it briefly in another language, am would be extremely unwilling to test and remove packages that "might be" not very useful. I literally only have to change these names of ToC, LoF, ToF and references. Conjugacy Class in a matrix group with columns of standard basis I want to find the conjugacy classes of this group: $$G=\{(a_1,a_2,a_3):a_i=\pm e_j\}\subset GL_3(\mathbb C)$$ I know that $S_3$ is one of the subgroups of this group, so I can check which elements of $S_3$ continues to be conjugate in our group, I know that in $Z(G)$ there is two elements $I,-I$. I know that I have to check the diagonal matrices on which ones are conjugate, but I don't know how to finish and find the others conjugacy class of this group, and I don't Know how to find the number of the elements of the conjugacy class. I'll be thankful for help Are There Any Mechanics for Removing Possession? So I'm thinking of a few adventure hooks for my players, and I thought about the possibility of them removing a demon that has possessed a noble. Are there currently any mechanics or rules surrounding possession and the removal of entities?  If not, does anyone have any play-tested homebrew rules? How to display special German characters "ÄÜÖß" in a map? Is there anyway to restore the Blender default Cloth settings? Or is there anyway to find what the default settings are?  I didn't realize at the time that by changing the values I was overriding the default values.  Using Blender v2.76. The center of the dihedral group How to prove that the center of the dihedral group $D_{2n}$ is $\{1,r^{n}\}$ and the center of $D_{2n-1}$ is $\{1\}$?  I don't know how to prove it in this general case. When to delete your 0 vote answers? I've been in the SO community a little over a month now - and having a great time!  As I grow into a contributing citizen of stackoverflow, i'd like to ensure that i'm being responsible with my answers.   I've answered a few questions, some without upvotes, some voted on and some accepted.  I feel that after a certain period of time, 0 vote answers are probably providing more clutter than value.  Apparently, nobody has found them useful, so they probably aren't (or are poorly written). Tonight I went through and deleted my answers with 0 upvotes where some answer was accepted.  That was an easy decision.   I left my 0 vote answers where nothing was accepted yet, well, because I think they could provide the information that the OP requested.  But at some point, I think my answers might just be cluttering the issue.  So my question to you is: How do you know when it's time to delete your 0 vote answers?  Or even 1 vote answers for that matter? How to replace a video on YouTube I need to make a small correction in a video I uploaded to YouTube. Googling shows that this is not possible. However, I remember seeing it done before. I posted a comment on a video saying that a certain part of the video was missing. I got a reply back that it was fixed, and when I went to see the video again, it was changed. How was this done? How to determine an object's class? If class B and class C extend class A and I have an object of type B or C, how can I determine of which type it is an instance? Is there even an automatic ban on meta? Somewhere I heard the automatic question ban on Meta is set lower than on the main site. But looking at the profile of  it looks like there is absolutely no automatic ban on meta.  Is this intended behaviour? Update: Failed to lock /var/cache/apt/archives/lock I am running the upgrade(12.10 to 13.04) through terminal and it keeps getting stuck at this:  Failed to lock /var/cache/apt/archives/lock   What do I do? I have root access. I have no idea what else to try other than a clean install.  Checking package manager Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done   Calculating the changes Calculating the changes  Do you want to start the upgrade?   3 packages are going to be removed. 155 new packages are going to be  installed. 1204 packages are going to be upgraded.   You have to download a total of 595 M. This download will take about  1 hour 15 minutes with a 1Mbit DSL connection and about 23 hours with  a 56k modem.   Fetching and installing the upgrade can take several hours. Once the  download has finished, the process cannot be canceled.    Continue [yN]  Details [d]y  Fetching  Could not download the upgrades   The upgrade has aborted. Please check your Internet connection or  installation media and try again. All files downloaded so far have  been kept.   Failed to lock /var/cache/apt/archives/lock    Restoring original system state  Aborting Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done  root@chaitanya-XPS-Ubuntu:~# This is about a step in a derivation of the expression for the relativistic Doppler effect.  Consider a source receding from an observer at a velocity $v$ along the line joining the two. Light is emitted at frequency $f_s$ and wavelength $\lambda_s$. The frequency $f_0$ and wavelength $\lambda_0$ received by the observer will be different.  Some textbooks now argue that the wavelength received by the observer is given by $\lambda_0=(c+u)T_0$, where $T_0$ is the time period of the wave in the observers frame. The argument given is that the successive "crests" will be an extra distance $uT_0$ apart due to movement of the source. Upon relativistically transforming the time period in the source frame to the observer frame, the correct result $f_0=f_s\sqrt{\frac{c-u}{c+u}}$ is obtained.  But the argument for the wavelength seems reminiscent of the classical Doppler effect for sound. Is it really applicable here through this argument? And is there a way to show the same result for $\lambda_0$ mathematically? Why would you put Identity Increment other than 1 in SQL? Induction proof: n lines in a plane Assume that there are $n$ infinitely long straight lines lying on a plane in such a way that no two lines are parallel, and no three lines intersect at a single point. Prove that these lines divide the plane into $\frac{n^2+n+2}{2}$ regions. (Hint: Any two non-parallel straight lines on a plane must intersect at exactly one point.)  Can someone tell me where to start here? I know to prove the base where $n=0$, but don't know how to proceed.  Any help is greatly appreciated! How to remove RVM (Ruby Version Manager) from my system optimality of the Carnot cycle Cylindrical vs azimuthal symmetry What is the difference between cylindrical and azimuthal symmetry, are they the same? I have not been able to find a clear explanation of these terms wrt. a cylinder. I need to know which length I should integrate over to solve the problem below.  A cylinder of radius $R$ and length $L$ has a cylindrically symmetric volume charge density of $\rho(x)$. Calculate the total charge on the cylinder.