How would one change TeX's pagination numbering system from decimal to one that would number pages in binary, hexadecimal, octal, or any other number system (e.g., the , with specialized characters for the numerals)?
122305
In a document, is it possible to change the base in which the numeration is written? The default numeration is decimal, but I would like to use an octal or hexadecimal numeration for instance.  Also, when I use a document class 'book' or 'report', how can I set a negative numeration before the main text? What I mean by this is that instead of small latin numeration (i, ii, iii, iv, ...) I would like the pages to decrease with a negative sign in front. Is there a way to do so?
48488
I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java.  If I have x items which I want to display in chunks of y per page, how many pages will be needed?
46763
I am working on a diplomatic edition of a 15th century book and it numbers its folios using the standard roman numerals of the time.  I've been using the following to get the page/folio in my header:  \newcommand{\rectoverso}[1]{\ifthenelse{\isodd{#1}}{r}{v}} \newcommand{\folio}[1]{\the\numexpr (#1+1)/2\relax} \uppercase\expandafter{\romannumeral \value{\folio{\thepage}}}\rectoverso{\thepage}   This works great, but the problem is that the roman numeral sequence is off of what I need.  Instead of I, II, III, IIII, V, VI, VII, VIII, IX, X, I get the subtractive IV (somewhat understandably, given it's the far more common one in modern usage).  My source text only (and always) uses the additive 4 in the one's position: 24 is XXIIII, 34 is XXXIIII but 44 is XLIIII.  9 is universally rendered subtractively as IX or XC.  Is there a package that allows for some control over which numbers are done additively and which are subtractively, or would my best option be to write my own custom definition to account for the specific style used in my book?
7806
I have simple code:  \documentclass{article}  \usepackage{algorithm}  \usepackage{algpseudocode}  \begin{document}  \begin{algorithm}   \caption{Examples}\label{alg:Examples}   \begin{algorithmic}[1]   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$    \end{algorithmic} \end{algorithm}          \end{document}     How to put a point after the number of the algorithm? I use chapters in report:  \documentclass[a4paper,12pt]{report}  \usepackage{algorithm}  \usepackage{algpseudocode}  \begin{document}  \chapter{Chapter 1}  \begin{equation} X_2=4 \end{equation}  \begin{algorithm}   \caption{Examples}\label{alg:Examples}   \begin{algorithmic}[1]   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$    \end{algorithmic} \end{algorithm}  \end{document}     How to change the numbering to take into account the chapters?
116410
I am using the article document class with amsthm. I would like number the theorems/corollaries/examples, etc., consecutively as follows:  1.1 Theorem 1.2 Example 1.3 Example 1.4 Proposition  However, what my LaTeX renders is  Theorem 1.1 Example 1.2 Example 1.3 Proposition 1.4  How do I get a numbering as in the first?
86130
I am using example given here by @stephan .  Works great however I want to get rid of dots and page numbers.  I added this to the preamble   \let\Contentsline\contentsline  \renewcommand\contentsline[3]{\Contentsline{#1}{#2}{}}   that removed the page numbers, but do not know how to remove the dots. I would appreciate your help. Its hard to get result without understanding the basics.
95571
I have two sections before the table of contents.  \documentclass{article} \usepackage{lipsum} \begin{document} \thispagestyle{empty} \section*{First random title} \lipsum[1] \section*{Second random title} \lipsum[2] \clearpage \tableofcontents \section{First section} \lipsum[3] \section{Second section} \lipsum[4] \section{Last section} Wombat \lipsum[5] \end{document}   The problem is, that LaTeX starts the page numbering on the first page and I don't want that. I want the page numbering to start after the table of contents. How can I do this?
56765
I am printing (Basically saving to file) a pdf. I want to print only the odd/even pages from a PDF. In the printing dialogue box which appears I see only 3 options in the range   All Pages Current Page Pages: (Specify a range)   Is there a way (without manually typing individual odd/even numbers comma separated) to accomplish this?  Is there any plugin sort of thing or alternative method to accomplish this?  I am using Ubuntu 17.04. I am attaching the screenshot of dialogue box below.
68616
I have a PDF that consists of several hundred pages of bilingual text. Since I need to use OCR on each language separately, I want to grab the even and odd pages and make two separate PDFs, using convert or ghostscript. The language I want to do first is on the odd-numbered pages. What convert or ghostscript command can I use to grab these and write them to a new file?
39265
As I  and found out the command \thepage doesn't always output the correct page number.  The proposed alternative is to use \pageref{here}\label{here}. But this seems too unhandy, because I have to change the label every time I want to get the current page, which makes it impossible to just replace it by a simple new command.  P.S.: In the end I want to define this:  \newcommand{\see}[1]{\cref{#1}\ifthenelse{\equal{\pageref{#1}}{\thepage}}{}{ on \cpageref{#1}}}   where the part on \cpageref{#1} should only be output if it is not the current page.
30056
Done Major Edit, to make the question clear.  Removing the last chapter line works. But keeping it makes latex go crazy. It prints numbers till 65536.. and errors: ** ERROR ** Page number 65536l too large!    MikTex, XeLatex, PdfLatex (endures a few more section, but then, the same error).  Drilling down, I have found that the problem is because of mdframed, specially usetwoside option. The error also seems to be a result of the following warnings:    The log is here:   \documentclass{book} \usepackage{xcolor} \usepackage{mdframed} \usepackage{titletoc} \usepackage{etoolbox}   \definecolor{secnum}{RGB}{13,151,225} \definecolor{ptcbackground}{RGB}{212,237,252} \definecolor{ptctitle}{RGB}{0,177,235}  \pretocmd{\tableofcontents}{\begin{mdframed}[backgroundcolor=ptcbackground,hidealllines=true]}{}{} \apptocmd{\tableofcontents}{\end{mdframed}}{}{} \patchcmd{\tableofcontents}{\contentsname}{\color{ptctitle}\contentsname}{}{}  \setcounter{tocdepth}{1}  \titlecontents{section}   [4em]{\sffamily}   {\color{secnum}\contentslabel{2.3em}\normalcolor}{}   {\titlerule*[1000pc]{.}\contentspage\\\hspace*{-3em}\vspace*{2pt}%     \color{white}\rule{\dimexpr\textwidth-20pt\relax}{1pt}}  \titlecontents{lsection}   [5.8em]{\sffamily}   {\color{secnum}\contentslabel{2.3em}\normalcolor}{}   {\titlerule*[1000pc]{.}\contentspage\\\hspace*{-5.8em}\vspace*{2pt}%     \color{white}\rule{\dimexpr\textwidth-15.5pt\relax}{1pt}}  \makeatletter \renewcommand*\l@chapter[2]{%   \ifnum \c@tocdepth &gt;\m@ne     \addpenalty{-\@highpenalty}%     \vskip 1.0em \@plus\p@     \setlength\@tempdima{1.5em}%     \begingroup       \parindent \z@ \rightskip \@pnumwidth       \parfillskip -\@pnumwidth       \leavevmode       \advance\leftskip\@tempdima       \hskip -\leftskip       \colorbox{ptctitle}{\strut%         \makebox[\dimexpr\textwidth-2\fboxsep-7pt\relax][l]{%           \color{white}\bfseries\sffamily#1%           \nobreak\hfill\nobreak\hb@xt@\@pnumwidth{\hss #2}}}\par\smallskip       \penalty\@highpenalty     \endgroup   \fi} \makeatother \newcommand\PartialToC{% \startcontents[chapters]% \begin{mdframed}[backgroundcolor=ptcbackground,hidealllines=true] \printcontents[chapters]{l}{1}{\colorbox{ptctitle}{%   \parbox[t]{\dimexpr\textwidth-2\fboxsep\relax}{%     \strut\color{white}\bfseries\sffamily\makebox[5em]{%       Chapter~\thechapter\hfill}Contents}}\vskip5pt} \end{mdframed}% }  \begin{document}  \tableofcontents  \chapter{Chapter One} \PartialToC \section{Section One One} \section{Section One Two} \section{Section One Three} \section{Section One Four}  \stopcontents[chapters] \chapter{Chapter Two} \PartialToC \section{Section Two One} \section{Section Two Two} \section{Section Two Three}  \stopcontents[chapters] \chapter{Chapter Three} \PartialToC \section{Section Three One} \section{Section Three Two} \section{Section Three Three} \section{Section Three Four} \section{Section Three Five} \stopcontents[chapters]  \chapter{Chapter Three}  \end{document}
21153
Is there a way to turn on line numbering for nano?
67026
I'm using bibunit and Natbib packages with a numerical numbering.   \begin{bibunit}[plainnat]     \nocite{ref1,ref2}     \putbib[mybiblio] \end{bibunit}  \begin{bibunit}[plainnat]     \nocite{ref3,ref4}     \putbib[mybiblio]  \end{bibunit}   How can I set the starting number for ref3 and ref4 to be different from 1 (say 15), without affecting the starting number for ref1 and ref 2? The desired result is the following:   [1] ref 1 [2] ref 2 [15] ref3 [16] ref4
74039
I've recently asked a question:   regarding working with chapters in tex. I have since learned that I must use documentclass report for the purposes of my document. However, now all of my Theorems, Corollaries, Remarks, and so forth are numbered "0.number.number" (with the first 0 never changing). I would like, at the very least, to understand how to make the first number denote the number of the chapter.  The current code I have is this:  \newtheorem{thm}{Theorem}[section] \newtheorem{rmk}[thm]{Remark} \newtheorem{qst}[thm]{Question} \newtheorem{prp}[thm]{Proposition} \newtheorem{hyp}[thm]{Hypotheses} \newtheorem{crl}[thm]{Corollary} \newtheorem{cnj}[thm]{Conjecture} \newtheorem{lem}[thm]{Lemma} \newtheorem{dff}[thm]{Definition} \newtheorem{clm}[thm]{Claim} \newtheorem{ntt}[thm]{Notation} \numberwithin{equation}{section}
77750
How i can give section numbers and page numbers with Bengali numerals in latex?
75350
Is it possible to have automatic rounding of numbers in a table?  Say that I have this, made in the usual way with a tabular environment:  pi  | 3.14592654 e   | 2.7182818284 phi | 1.6180339887   Can I control how many significant digits are shown without truncating the numbers manually myself?   So for example, if I need four significant digits, the numbers should appear as  pi  | 3.1459 e   | 2.7183 phi | 1.6180   Bonus points for actually rounding the numbers according to the usual rules without simply truncating them.    I understand this is probably non-trivial, so here's a relaxed version that will also work in my circumstances (all numbers have one and the same precision and character count):  (How) Can I control how many characters are rendered in a column of a table?  So if I define the text in the columns as:  \begin{tabular} % some black magic column definition    text &amp; alongword\\    text &amp; anotherlongword\\    text &amp; morelongwords\\ \end{tabular}   I'd like to get something like:  text along text anoth text morel   I know there are non-TeX ways to do this, and I will probably resolve to writing a script if all else fails, but I'm curious whether there's a way to do it solely with TeX &amp; friends.
38029
I am trying configure the Calculator to do some binary to hexadecimal conversions but I can't seem to get to scientific mode. Please can someone tell me how I configure?