Questions tagged [number]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

How to change page number style?

I have changed the page number style for my table of contents in a .sty file with the renewcommand. \newcommand{\romantableofcontents}{ % creates a table of contents with roman (i, ii, iii, ...) ...
Hossein's user avatar
0 votes
1 answer
77 views

How to make Brill use lining figures in ConTeXt?

There's another question but it uses regular LaTeX instead of ConTeXt. I've tried but idk how to make this font have lining numerals. I checked via an online website to see that it is possible. \...
Adrik Ivanov's user avatar
1 vote
0 answers
37 views

Highlight the numbers on Number line

I would like to highlight the numbers with different colors like in first number line highlight the numbers from 0 to onwards, in second number line from 0 to onwards and in third number line ...
SandyM's user avatar
  • 2,771
0 votes
1 answer
25 views

Align bold numbers with roman ones in table of contents

General overview In TOC the page numbers of chapters (in bold) and section (in normal font) occur a ugly shift. I search a way to make them aligned. MWE Here is a MWE to reproduce this behavior: \...
fauve's user avatar
  • 2,511
2 votes
1 answer
111 views

Siunitx: formatting range

Following this, I obtain \sisetup{ range-phrase=— } \SIrange{40}{50}{\liter} 40 L—50 L Is there a way that can give me output in this format? 40—50 L
user3204810's user avatar
  • 1,415
1 vote
0 answers
128 views

Is there a basic float number type in LaTeX?

I've tried some examples with counters and numbers in LaTeX. I create a counter with \newcounter. I understand that it declares an integer. So if we make like this \newcounter{num} \setcounter{num}{10}...
Vladimir's user avatar
  • 589
0 votes
0 answers
9 views

Beamer moves up page number when using pgfputat

I want to make a list on the left and add logos on the left. pgfutat allows me to place the logos where I want, however when using it, it induces a top shift of the page numbering. How to hinders this ...
Nelou's user avatar
  • 13
0 votes
0 answers
57 views

How can I set the chapter-counter to infinity?

My professor introduced us to infinite graph-theory and made a little gimmick: Instead of increasing the chapter number by one, he set it right to infinity. Now I want to get it into my LaTeX-...
GamingForce4D's user avatar
0 votes
0 answers
27 views

Landscape table and page numbering

I have a problem with a landscape table and the page numbers. I have already tried several things. Maybe someone can help me fix it. \afterpage{% \clearpage \begin{landscape} \...
Justin's user avatar
  • 1
3 votes
1 answer
65 views

How can I include comma separator in Latex word count?

I have a word count command in Latex that works well, based on the code here. However, I want the output number to be comma separated for thousands (e.g., 1,000 instead of 1000). I have tried using \...
Marco Pastor Mayo's user avatar
1 vote
0 answers
149 views

ConTeXt: Numbers as verbal strings (e.g. 1=“first”)

With LaTeX, I can use the fmtcount package to typeset numbers as verbal strings and print e.g. “one”, “One”, “first” or “First” instead of 1 and “twenty-two”, “Twenty-two”, “twenty-second” or “Twenty-...
Fredrik P's user avatar
  • 1,386
0 votes
0 answers
47 views

Is it possible to deactive comma , in maths so we can write 3,1416 without 3{,}1416 or siunitx \num{3,1416}? [duplicate]

Is it possible to deactive comma , in maths so in Spanish (for example) we can write 3,1416 without 3{,}1416 or siunitx \num{3,1416}?
juanfal's user avatar
  • 181
0 votes
1 answer
59 views

How to give space between theorem number and theorem?

\documentclass[12pt,openany]{book} \usepackage{extsizes} \renewcommand{\baselinestretch}{1.2} \usepackage[ top=1.75cm, % Top margin bottom=3.5cm, % Bottom margin left=3.25cm, % Left ...
Samia Rani's user avatar
4 votes
3 answers
661 views

How to truncate a floating point number to an arbitrary decimal place?

Are there packages that provide a command that can truncate a floating point number not to the nearest integer, but to an arbitrary decimal place? For instance, 2.59 truncated to the first decimal ...
Evan Aad's user avatar
  • 11.1k
0 votes
0 answers
59 views

How to label and refer to appendix correctly

I am writing a report and I've tried to solve this problem by looking at other similar questions, however I'm not able to find a question matching mine exactly. All I want is to refer to something in ...
Calisi's user avatar
  • 1
3 votes
2 answers
59 views

How can number comparison be terminated in general way for macro parameter?

I'm wondering if there's a nice, generalized way to terminate a number which is given as a macro parameter either explicitly (as a number) or implicitly (as a register value or \chardef). This would ...
Dan Levin's user avatar
  • 411
12 votes
1 answer
1k views

How to write Graham's number in LaTeX?

I'm looking to write this image in LaTeX but every attempt has ended in failure. Help would be appreciated.
Jumper_Child64's user avatar
0 votes
1 answer
215 views

Algorithm Caption Numbering Restarting Each Chapter [duplicate]

I'm having an issue getting the caption numbering to restart per chapter. For background, to follow guidelines of the publisher, algorithms get forced into something called an "object," ...
TnDMeg's user avatar
  • 1
0 votes
1 answer
203 views

What is the usefulness of the package "erewhon"?

I'm using a preset overleaf project for MSc thesis and I found that the package erewhon produces numbers that do not align with the text. In my thesis I have many numbers that are not necessarily ...
g_don's user avatar
  • 779
3 votes
1 answer
198 views

I would like to number the figure in my presentation in LaTeX

I need to number the figure in my presentation, but I do not know why the figure appears without the number. I try what I could find on the Internet, but I still do not get the number. Instead of ...
user366566's user avatar
1 vote
0 answers
44 views

datetime2 "number too big" error when eliminating separators

I'm trying to produce a date/time output as a string of numbers without any separators: yyyymmddHHMMss. I was able to use the yearmonthsep= and other options in datetime2 to eliminate any colons or ...
jmcelroy's user avatar
0 votes
1 answer
203 views

How to change number font in equation to text number font in LaTeX?

I am using a template which is very long and has a lot of no-English characters. I found the numbers' font in the equations is different from the numbers in the text, so I hope to make the numbers' ...
Y. zeng's user avatar
  • 1,885
0 votes
1 answer
69 views

How to make Chapter numbers to be in position of dropcap like in the Bible

How to make Chapter numbers to be in position of dropcap like in the Bible (see picture)? And how can I avoid number '1' for first verse between Chapter number and first letter in first line?
Marjan Savli's user avatar
1 vote
4 answers
104 views

Numbered equation, alignedat enviroment, tall curly brace [duplicate]

I want to get a single equation number for this multiple equation with \label I need for cross referencing. Also, I need a tall curly brace prior to the equation number.
Gaurav Tambe's user avatar
0 votes
1 answer
79 views

\num changes font after Ubuntu upgrade

There is a certain font I would like to use for a document, and the rendered numbers look like this. {1234} I would like to control the placement of the decimal point too, however, once a number goes ...
celaeno's user avatar
  • 103
0 votes
1 answer
85 views

Set page numbering on specific pages

I have an article in which I'm using fancyhdr to make a header with section names and a footer on the right side of the pages. However I want to remove the header on some specific pages while keeping ...
Elenor's user avatar
  • 1
0 votes
1 answer
75 views

How do I get the equation number on the same line as the equation?

My equation number ends up on a new line. I am writing in Tufte class. This is example code: \begin{equation} \begin{alignedat}{2} &p_{u} &&\leftarrow p_{u}\cdot \frac{\Sigma_{i\in ...
Limpan's user avatar
  • 25
4 votes
2 answers
260 views

Symbol for blanks as ambiguous bits

I display bit strings with ambiguous bits, like 11-101-0011---10-1-1. So, "-" means could be "1" or "0". All symbols I tried like squares, circles display in a ...
Daniel Schwegler's user avatar
3 votes
1 answer
185 views

SIunitx and non-integer exponents

I'm going through a number of old documents where I used siunitx to display numbers in scientific notation with non-integer exponents, like: \documentclass{article} \usepackage{siunitx} \begin{...
Miyase's user avatar
  • 2,554
0 votes
1 answer
67 views

Missing number error in pgfplot [closed]

I got a weird error when I use add yshift=-1mm to my plot. The error does not appear when I use positive value. The shift works, but looking at the red error is really annoying. Can anyone suggest a ...
Pepa Jančík's user avatar
14 votes
3 answers
518 views

How can I create custom accents?

I need to make number accents above and below like this: How can I do it?
hellohi's user avatar
  • 141
0 votes
1 answer
20 views

repeat image but number don't repeat (ascending count)

i want to use same icon, repeat image but number (\dataNo) need to increase My current code: \documentclass[a4paper,oneside,14pt]{article} \usepackage[a4paper,landscape,left=0.0cm,right=0cm,top=0.0cm,...
ti saigon's user avatar
1 vote
1 answer
40 views

Getting custom output from numtoname

We can expand digits to words in memoir class using numtoname command. But when I expand 125000 using numtoname, I get an output one hundred and twenty-five thousands. Instead I would like to get an ...
Vaibhav's user avatar
  • 6,645
0 votes
1 answer
687 views

`Problem with enumerate

So I have been having issues with the enumerate command on my document. It initially works fine until I add a margin then it does this weird thing where It completely forgets about the previous ...
Nebrass Ibrahimi's user avatar
0 votes
0 answers
130 views

Coloring numbers outside string and variables using lstlisting and parsing don't work as expected. Need Help to fix with PDFLaTeX

I am writing my thesis and i need to put extract of code into it. Having developed all my C# code in Visual Studio, I would like to have more or less the same colors, so I have taken different ...
Matteo Di Fabio's user avatar
9 votes
4 answers
452 views

Compact/short number range representation

I googled, but couln't find a package to make number ranges in a compact/short form. In siunitx there's is a \numrange command, but this feature seems not to exist. Explaining: I'd like something like ...
Jander's user avatar
  • 1,128
0 votes
0 answers
376 views

Does LATEX produce more pages than MS Words if they have the exact same output?

My thesis should NOT exceed 30 pages and the nature of my research compels me to go beyond that limit. So I thought would it be the same number of pages IF I convert my latex document into MS Word? In ...
Aem Taibi's user avatar
5 votes
3 answers
356 views

Add hyphens to mobile number

I want to add my mobile number in a pdf line being generated using LaTeX how I want it to render: (+91) 7887-61x-xxx usage: \mobile{91}{788761xxxx} % Usage: \mobile{<countrycode><mobile ...
theSwapnilSaste's user avatar
3 votes
1 answer
170 views

Automatic calculation of check number for ISBN-13

Here is a simple example. If I have the first 12 digits of ISBN-13 number. \documentclass[12pt]{report} \parskip=12pt \def\ISBNnumber{978-618-5645-08} \pagestyle{empty} \begin{document} ...
Zeljko Hrcek's user avatar
0 votes
1 answer
79 views

Printing large numbers with numeric suffix

Is there any LaTeX package that pretty-prints a large number with appropriate numeric suffix, e.g., 6260563 -> 6.2M?
sherlock's user avatar
  • 1,473
1 vote
1 answer
113 views

How to import a sentence from a .txt file that will preserve the font characteristics of the rest of the paragraph?

I have numbers from an R script that I would like to include in a report that I am typing in LaTeX. There are enough numbers that I am concerned about making a typo, and I don't want to do copy/paste ...
Dave's user avatar
  • 113
0 votes
2 answers
52 views

Picture number sticking to image caption in Table of Figures

Problem In Table of Figures: When Chapter number and Pic number become too large, Pic number sticks to picture caption. (Same problem probably also exists in Table List but I don't have many tables so ...
TTT's user avatar
  • 173
1 vote
3 answers
980 views

How to change color of the equation numbers?

I would like to put part of text in different colors. I have a problem with equations as the equation numbers remain in black. See e.g.: \documentclass{article} \usepackage{color} \begin{document} ...
Emmanuel Delaleau's user avatar
2 votes
2 answers
677 views

Beamer: Add the frame number to the footer

With beamer, I would like to add the frame number to the footer. I am using texlive 20200327. Here is my code: \documentclass{beamer} \usetheme{Warsaw} \title{Beamer Example} % https://texblog.net/...
YuGiOhJCJ's user avatar
  • 233
0 votes
0 answers
45 views

Fraction in siunitx [duplicate]

Some time ago (last year) I had the following code working without errors \documentclass[12pt,a4paper]{article} \usepackage{siunitx} \begin{document} If we have \SI{2/3}{\mole} the reaction \ldots \...
Alby Stalks's user avatar
0 votes
1 answer
424 views

make number (1) different looking than letter (I)

I am doing a table and using both number 1 and the letter I in the same table. the problem is that they look similar and that creates confusion even for me. Is there a way to make them look dissimilar ...
ismail's user avatar
  • 1
6 votes
2 answers
681 views

How does one make a thousands glyph that scales appropriately?

James Grimmelman (https://twitter.com/grimmelm/status/1406257482029322250?s=20) posted an idea for a thousands glyph (three vertically stacked sideways zeros). What would be the best way of creating ...
JPi's user avatar
  • 13.6k
2 votes
1 answer
22 views

Remove 'and' from numname strings of ordinals

Is there a way using the numname package, to have the ordinal written out for long English numbers not include the word 'and'? That is, I would like \OrdinalToName{118} to produce 'One Hundred ...
ordinalsinorder's user avatar
1 vote
2 answers
118 views

Non-english Section numbering problem

I have the following code for numbering the section numbers in Bengali language. \makeatletter \def\bengalidigits#1{\expandafter\@bengali@digits #1@} \def\@bengali@digits#1{% \ifx @#1 \else \...
Israt Hossain's user avatar
3 votes
2 answers
225 views

Good way to get good looking bold circle with a letter over it

MWE: \documentclass{article} \usepackage{tikz} \newcommand\encircle[1]{% \tikz[baseline=(X.base)] \node (X) [draw, shape=circle, inner sep=10] {\strut #1};} \begin{document} $ \encircle{1}^...
Sofia's user avatar
  • 167