2.28.1 Top new questions this week

2.28.1.1 How to Generate Random Negative Integer?
2.28.1.2 Why is tilde not available out of the box in TeX?
2.28.1.3 How can I know the number of expandafters when appending to a csname macro?
2.28.1.4 Spacing in math mode
2.28.1.5 Print only Unique numbers
2.28.1.6 How to draw a polygon with different line color and rounded corners?
2.28.1.7 How to add numbers occuring in a text?
2.28.1.1 How to Generate Random Negative Integer?

http://tex.stackexchange.com/questions/320610/how-to-generate-random-negative-integer

I am trying to create a worksheet constituted of random numbers so that kids can practice integer operations. E.g. 
3+-9=? 
2x(-5)=? 
18/-3=? 
Etc. 
How do I do this? 
Here is what I've tried so far. 
...
 

- asked by WeCanLearnAnything (15 votes), answered by Paul Gaborit (15 votes)

2.28.1.2 Why is tilde not available out of the box in TeX?

http://tex.stackexchange.com/questions/320855/why-is-tilde-not-available-out-of-the-box-in-tex

Today I need to type ~ in my document, but apparently it does not get rendered properly. I just got a blank space. I searched on the web and I found the same problem here. However, its solutions show  ...
 

- asked by Single Fighter (13 votes), answered by David Carlisle (32 votes)

2.28.1.3 How can I know the number of expandafters when appending to a csname macro?

http://tex.stackexchange.com/questions/320933/how-can-i-know-the-number-of-expandafters-when-appending-to-a-csname-macro

I am looking for an informative answer here. If I want to append to a macro, I have a couple of options, each depending on whether I want the items fully expanded, partially expanded (a certain number  ...
 

- asked by macmadness86 (9 votes), answered by Joseph Wright (8 votes)

2.28.1.4 Spacing in math mode

http://tex.stackexchange.com/questions/320695/spacing-in-math-mode

In Math mode, if I write ":", it will automatically insert spaces before and after the colon. For example, $s:type$ will be shown as "s : type". How can I remove these spaces?
 

- asked by Java Developer (9 votes), answered by Bernard (8 votes)

2.28.1.5 Print only Unique numbers

http://tex.stackexchange.com/questions/320489/print-only-unique-numbers

Have list of numbers captured through the command \Numbers. When using \PrintNumbers, it should print only the unique numbers. 
MWE: 
\documentclass{article} 
\makeatletter 
\gdef\PrintNumbers{} 
...
 

- asked by Kumaresh PS (9 votes), answered by Werner (10 votes)

2.28.1.6 How to draw a polygon with different line color and rounded corners?

http://tex.stackexchange.com/questions/321156/how-to-draw-a-polygon-with-different-line-color-and-rounded-corners

I want to draw a polygon with different line color and rounded corners, but the corners of polygon are not rounded! 
\documentclass[12pt]{report} 
\usepackage{tikz} 
\begin{document} 
...
 

- asked by hosein (8 votes), answered by cfr (4 votes)

2.28.1.7 How to add numbers occuring in a text?

http://tex.stackexchange.com/questions/320548/how-to-add-numbers-occuring-in-a-text

How make LaTeX to remember some numbers and output the total sum by calling another command? Consider this example: 
\documentclass{article} 
\usepackage{lipsum} 
\begin{document} 
The price of the  ...
 

- asked by student (8 votes), answered by Willie Wong (10 votes)