For a diagram for a class this week, I’ve written a LaTeX command to draw star graphs using TikZ. A star graph $K_{1,n}$ is a graph with a single central node, $n$ radial nodes, and $n$ edges connecting the central node to each radial node. I am sharing this here in case it is useful to anyone else.

## You're reading: Posts Tagged: LaTeX

### LaTeX for typesetting a multi-pile Nim game

**Update July 2020:** I have now taken the plunge and written this into a LaTeX package called nimsticks. The version in the package is an improved version of the macro given below in a couple of ways – it works with LuaTeX and XeTeX, and it has both block-centred and inline modes. I describe this in a new blog post nimsticks: LaTeX package for drawing Nim sticks and games.

I am preparing to teach our new final year module ‘Game Theory and Recreational Mathematics’. So I’m thinking about game typesetting in LaTeX (texlive-games is useful in this regard). I was looking for an easy way to display multi-pile Nim games. Usually, I find searching “latex thing” finds numerous options for typesetting “thing” in LaTeX, but here I was struggling.

Nim objects could be anything, of course, but conventionally sticks or stones are used. There are various types of dot in LaTeX that might look like stones, but somehow a line of dots didn’t seem satisfactory. There are various ways to draw a line (not least simply typing ‘|’), including some tally markers (e.g. in hhcount). My problem with these (call me picky) is that they are all identical lines, and a ‘heap’ of them just looks very organised. Really, I want a set of lines that looks like someone just threw them into heaps (though probably without crossings for the avoidance of ambiguity). So I wrote my own.

### You can finally use TeX for maths in Microsoft Office… just about

As of next month, you’ll be able to type TeX maths into Office 365 apps and it’ll work.

See the announcement on the Microsoft Developer blog for more details. **Warning:** it’s a bit complicated.

### ShareLaTeX and Overleaf are merging

Once upon a time (2011), there launched an online LaTeX editor called ShareLaTeX. The very next year, there launched an online LaTeX editor called writeLaTeX. In 2015, writeLaTeX rebranded as Overleaf. Both Overleaf and ShareLaTeX offer browser-based LaTeX editing. Think of it like Google Docs for LaTeX. Both operate under a freemium model. If you use one of them, know that the other is fairly similar. If (like me) you were vaguely aware that there was an online LaTeX editor out there without using it, it was probably one of these or the other (or, I’m pretty sure, both at different times). Though note that these are not the only browser-based LaTeX editors – a native operating system ‘B’ means browser-based in this Wikipedia list of TeX editors and there are currently ten Bs in the list.

Recently, Overleaf fully acquired ShareLaTeX (Scribtex Limited) and plans to integrate the two products into one. The announcement says everyone from both teams will continue to be involved. The announcement contains more detail, a FAQ list and the following explanation.

What does this mean for you as an Overleaf or ShareLaTeX user? No worries! You won’t see any big change in the near future. Both services you know and love will continue to serve you as you have come to expect and be supported by the combined Overleaf and ShareLaTeX team. Over the coming months, we will be working on merging Overleaf and ShareLaTeX together into a single service. We aim to make the transition as smooth as possible. As we develop the combined service, we are actively seeking your feedback and input, starting with this survey. Ideally the only differences you will notice are the improvements to the editor you are currently using.

### More information

Exciting News — ShareLaTeX is joining Overleaf on the Overleaf Blog.

Also: ShareLaTeX Joins Overleaf on the ShareLaTeX Blog, which appears to be the same text.

### Photomath can read my writing

I remember when OCR of mathematics was such a difficult problem that there was no good solution. I remember hints some years ago that the then-current version of InftyReader could do a reasonable job of taking a PDF document and converting it into LaTeX code, but it was far from perfect.

Today my phone told me that the app Photomath has an update and now supports handwriting recognition. This means I can write something like this:

### Fresh Turing preprints!

A couple of papers by Alan Turing have appeared on the arXiv.

No, that’s right – *The Applications of Probability to Cryptography* and *The Statistics of Repetitions* are two papers Turing wrote during the Second World War, and they’re now available on the arXiv, transcribed into modern LaTeX by Ian Taylor.

### KaTeX is a (partial) alternative to (some of) MathJax

Khan Academy has released a new library to typeset mathematical notation on webpages, called KaTeX.