4.4.1 Top new questions this week

4.4.1.1 How to left-pad an integer with zeroes to make it many digits?
4.4.1.2 How is verbatim implemented?
4.4.1.3 Creating custom mathematical symbols
4.4.1.4 How can I stop LaTeX from leaving too little room between the contents of a contents line and the page number?
4.4.1.5 Is pgfplots able to draw a function such as $f(x) = x^2 \sin(1/x) + x/2$?
4.4.1.6 Sentences are crossing the margin. Is there any solution?
4.4.1.7 Filling in an area enclosed by two arcs and a line
4.4.1.1 How to left-pad an integer with zeroes to make it many digits?

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=412224

A minimal working sample should be give first: 
\documentclass{article} 
\newcounter{mynumber} 
\makeatletter 
\AtEndDocument{% 
\immediate\write\@auxout{% 
... 
[formatting] [numbering]
 
asked by Kuttens https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=140814 17 votes
answered by egreg https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=4427 10 votes
4.4.1.2 How is verbatim implemented?

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=412939

I'm curious as to how verbatim is implemented internally in TeX. I am mostly familiar with the basics of TeX's inner mechanics (catcodes, and what not), but I'm just curious about this command. 
[tex-core] [verbatim]
 
asked by Kevin Keith https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=88275 12 votes
answered by wipet https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=51799 11 votes
4.4.1.3 Creating custom mathematical symbols

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=413073

I need to create two custom symbols for an article I am writing. The two symbols should have the same size as usual mathematical symbols, and should look like this: 
(sorry for the small size). I  ... 
[math-mode] [symbols]
 
asked by Daniel Robert-Nicoud https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=27900 11 votes
answered by egreg https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=4427 22 votes
4.4.1.4 How can I stop LaTeX from leaving too little room between the contents of a contents line and the page number?

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=412478

If the length of a contents line is a bit too much, but not much too much, LaTeX squeezes it in before the page number. This looks pretty awful to me. 
How can I persuade it to break the line in this  ... 
[table-of-contents]
 
asked by cfr https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=39222 11 votes
answered by Kuttens https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=140814 9 votes
4.4.1.5 Is pgfplots able to draw a function such as $f(x) = x^2 \sin(1/x) + x/2$?

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=412404

I'm trying to draw the function described in the title on the interval $[-0.05,0.05]$, but all I get is a straight line: 
This is my code: 
\documentclass[a4paper,11pt,finnish]{report} 
... 
[tikz-pgf] [pgfplots]
 
asked by TheSodesa https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=127193 10 votes
answered by egreg https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=4427 9 votes
4.4.1.6 Sentences are crossing the margin. Is there any solution?

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=413016

Here is my MWE: 
\documentclass[12pt,a5paper,twoside]{book} 
\usepackage{ebgaramond} % main font 
\usepackage[utf8]{inputenc} 
\usepackage{blindtext} 
\usepackage{xcolor} 
%%%%%%%%%%% MARGIN %%%%%%%%% 
... 
[margins] [line] [lettrine]
 
asked by Ravi https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=151842 8 votes
answered by Phelype Oleinik https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=134574 18 votes
4.4.1.7 Filling in an area enclosed by two arcs and a line

https://tex.stackexchange.com/landing/r/newsletter?cta=question&id=412978

The code below is my attempt. It results in a shape that is drawn in black, but the code below does not fill it in correctly. 
\documentclass{article} 
\usepackage{tikz} 
\begin{document} 
... 
[tikz-pgf]
 
asked by Paul https://tex.stackexchange.com/landing/r/newsletter?cta=user&id=153829 7 votes