I have created a code for a proof goal:
\centering{zz:\,$\{P,\,P \lif Q,\,Q \lif R\}\,\sststile{AL}{}\,R$`
The output looks like this:
Now I'd like to define a custom command which gives a very general recipe for this kind of code. It should have the following form:
\zz{formulas before the turnstile |- formula after the turnstile}[first argument of sststile, optional]
So in my example, it should be:
\zz{P,P \lif Q, Q \lif R|- R}[AL]
The command should work with any number for formulas before the turnstile, seperate them with a comma and add the extra space between them. Also, if I write |= instead of |- it should produce the double turnstile \sdtstile. How could I do that? I'm looking forward to your answers!
Here is the code I used:
\documentclass[a4paper,ngerman, abstracton, leqno]{scrartcl}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{turnstile}
\usepackage[LGRgreek]{mathastext} % removes italics from mathfont
\newcommand{\lif}{\rightarrow}
\begin{document}
\centering{zz:,${P,,P \lif Q,,Q \lif R},\sststile{AL}{},R$}
\end{document}


\zz{before}{after}[what]for one type of turnstyle and\ZZ{before}{after}[what]for the other type. I imagine you can invent something with your syntax too, but it will need much more "TeXhacking" skills... – Rmano May 18 '21 at 08:47\centeringgets no arguments, it's a switch: https://tex.stackexchange.com/questions/23650/when-should-we-use-begincenter-instead-of-centering/23653 – Rmano May 18 '21 at 08:48