## You're reading: Posts Tagged: LaTeX

### LaTeX/TikZ to draw a star graph $K_{1,n}$

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.

### 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.

### 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.

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.