Questions tagged [number]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 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 ...
user avatar
  • 1
0 votes
1 answer
54 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 ...
user avatar
  • 25
4 votes
2 answers
219 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 ...
user avatar
3 votes
1 answer
57 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{...
user avatar
  • 505
0 votes
1 answer
51 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 ...
user avatar
14 votes
3 answers
420 views

How can I create custom accents?

I need to make number accents above and below like this: How can I do it?
user avatar
  • 141
0 votes
1 answer
17 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,...
user avatar
1 vote
1 answer
23 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 ...
user avatar
  • 6,187
0 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
9 votes
4 answers
260 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 ...
user avatar
  • 830
0 votes
0 answers
78 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 ...
user avatar
0 votes
0 answers
23 views

I am trying to customize the figure caption using the \usepackage{caption}$ but I want figure caption in Bold Italic but number in Bold only

\renewcommand{\thefigure}{\arabic{section}.\arabic{\textit{figure}}} \usepackage{caption} \captionsetup{margin=10 pt,font=footnotesize,labelfont={bf,it}}
user avatar
5 votes
3 answers
215 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 ...
user avatar
3 votes
1 answer
61 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} ...
user avatar
0 votes
0 answers
18 views

How to tag equations behind curl brace [duplicate]

I want to put my equations behind a curly brace and number each of them. This is my code: ( \dfrac and \pfrac are self-defined commands and they have nothing to do width my question.) Here are my ...
user avatar
0 votes
1 answer
50 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?
user avatar
1 vote
1 answer
48 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 ...
user avatar
  • 113
0 votes
2 answers
43 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 ...
user avatar
  • 163
1 vote
2 answers
261 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} ...
user avatar
2 votes
2 answers
195 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/...
user avatar
  • 123
0 votes
0 answers
34 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 \...
user avatar
0 votes
1 answer
72 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 ...
user avatar
  • 1
6 votes
2 answers
662 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 ...
user avatar
  • 13.2k
2 votes
1 answer
14 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 ...
user avatar
1 vote
1 answer
57 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 \...
user avatar
3 votes
2 answers
111 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}^...
user avatar
  • 157
1 vote
2 answers
73 views

Beamer numbering problem, I only use one section, but I want to add section number without section command [closed]

I want to add 2. in front of every numbering like equations, lists, and figures. Thanks.
user avatar
0 votes
2 answers
64 views

How to change the equation number style to italic

The equation number style is always normalfont, how can I change it to italic font such as (1.1)?
user avatar
14 votes
4 answers
2k views

Computing a square root in TeX

We can simply compute approximations of the square roots of numbers, using these (mainly pure TeX) macros. \documentclass{article} \begin{document} \newcount\liczba \newcount\kwadrat \def\sqroot#1{\...
user avatar
0 votes
1 answer
83 views

expl3: How to display the line number in a warning message

Beginning with LaTeX3, I would like to log this warning Package foo Warning: blablabla on line XXX I suspect \msg_line_context would help but how to use it ? In the next MWE, it is not expanded \...
user avatar
0 votes
1 answer
224 views

When to use siunitx \num{} vs. plain math-mode

siunitx is a package that provides several macros to autoformat numbers along with prefixes and units. There is also a \num{} macro, that lets the user format a stand-alone number without any prefix ...
user avatar
  • 768
0 votes
1 answer
59 views

get value from \tdclock

this is my first time asking question here. I'm trying to make an animated tikzpicture but to do so i need the numeric output of \tdclock package, but after looking around for a couple of days, I'm ...
user avatar
  • 1
1 vote
1 answer
94 views

pgfmath: Integers without zeros, non-integers with zerofill (and fixed)

I want: · integers without zeros, e.g. -2 ---> -2 (not -2.0000) · non-integers with zerofill, e.g. 1.23 ---> 1.2300 e.g. 1.2345 --> 1.2345 Hints: · A pgfmath-solution would be nice (in ...
user avatar
  • 6,217
0 votes
1 answer
88 views

How to bolden the parentheses around issue number of an article in reference list while using apacite package?

I have tried using \textbf around the issue number but that bolds only the number itself and not parentheses around it. Tried \bf to bold the volume number and that worked. \documentclass[paper=a4, ...
user avatar
  • 3
1 vote
0 answers
36 views

How to set page number 2 as start page for roman / arabic numbers?

I am writing my master thesis on Latex. I want page number 2 to start with the roman number i. How do I do this? Now page nr 2 starts with ii (instead of i). The front page I have wiped out, using \...
user avatar
  • 11
2 votes
1 answer
57 views

biblatex: automaticallty convert volume numbers from roman to arabic

I've got automatically generated bibtex files which have many long roman volume numbers like LXXXVIII. This often cause overfull hboxes in the typeset bibliography because they cannot be hyphenated. ...
user avatar
  • 441
0 votes
0 answers
39 views

Can we remove equation number that we did not use automatically? [duplicate]

In LaTeX , can we remove equation number that we did not use in a paper automatically?
user avatar
  • 75
5 votes
2 answers
378 views

Binary Number Representation in 3d tikz node box

My effort is \documentclass[margin=1in]{standalone} \usepackage{tikz} \usetikzlibrary[arrows, decorations.pathmorphing, backgrounds, positioning, fit, petri] \begin{document} \begin{tikzpicture}[...
user avatar
5 votes
0 answers
156 views

Figurate numbers in LaTex [duplicate]

How can I produce figurate numbers with Tikz, such as the following: or the following: Are there templates for this kind of representation of number sequences? Thanks in advance!
user avatar
3 votes
2 answers
386 views

How to remove the small space separator in small numbers with SIunitx?

Large numbers have a nice space separator which I want to keep. But these gaps are annoying in small numbers and I want to get rid of them. Here's a MWE showing my issue: \documentclass[12pt,...
user avatar
  • 2,024
0 votes
1 answer
281 views

LaTeX commands for number sets with and without zero

Can somebody tell me the LatTeX commands for number sets with and without zero? All I'm able to find are the commands for the general sets (\mathbb{N} and so on...). Thank you! I'm talking about these ...
user avatar
  • 3
0 votes
1 answer
45 views

Help number pages

I want the first part to be numbered in Roman numerals. And the second part in regular numbers.And the numbering continues in every chapter.
user avatar
  • 5
3 votes
1 answer
119 views

chemnum - wrong numbering in text

This is a follow up question to this answer here. I am getting trouble with the numbering in text, when i combine the first scheme with a second scheme. If i include the text at position one, the ...
user avatar
2 votes
1 answer
66 views

chemnum - expand the replaced label by a few characters

I would like to label a compound like this, in my chemdraw file: Can chemnum replace the TMP in an .eps-file with 1a: M = Ti, n = 2 for example? Here is a similar question, but i would like to expand ...
user avatar
2 votes
2 answers
55 views

How to type theorem with automatic number by opmac

It is quite convenient to use the opmac in Plain TeX, but I still do not know how to type a mathematical theorem with automatic number. At this stage, I am only able to type a theorem manually as: \...
user avatar
  • 123
2 votes
0 answers
40 views

Advantage of math mode only for numbers [duplicate]

I wonder whether it makes a difference to write numbers, e.g., 3.1416 in math mode $3.1416$ or it is exactly the same as in text mode. I have many numbers in my document, especially decimal numbers, ...
user avatar
0 votes
1 answer
434 views

Fresh Numbering for theorems and Lemma in new chapter [duplicate]

I am building a report document. I want to start the numbering of lemmas and theorem with 1 in every new chapter. For example, I have 3 Lemmas and 2 theorems in Chapter number 1. Now, in chapter 2 I ...
user avatar
  • 107
0 votes
0 answers
39 views

Why isn't fontspec activating the +zero feature in Libertinus Serif?

The documentation for the font Libertinus Serif notes that the OpenType tag zero should enable slashed zeroes. However, when adding this feature in fontspec, it does not appear to work. Here is my (...
user avatar
1 vote
1 answer
89 views

round-minimum of siunitx

I have some table \documentclass{article} \usepackage{siunitx} \begin{document} \begin{table} \begin{tabular}{S[ table-alignment=right, table-format=5.1, ...
user avatar
  • 240