8.49.1 Top new questions this week

8.49.1.1 Within a macro, what's the most convenient way to force the compile to fail?
8.49.1.2 Error while compiling previously working code
8.49.1.3 Use \pgfmathresult in siunitx
8.49.1.4 Vertical alignment in a tree
8.49.1.5 Does June 2022 LaTeX require use of padmanagement-testphase and hyperref key pdfproducer?
8.49.1.6 How to calculate a mean in LaTeX?
8.49.1.7 Define \myfun which gives \myfun a \\ b  = a and \myfun a  = a
8.49.1.1 Within a macro, what's the most convenient way to force the compile to fail?

https://tex.stackexchange.com/landing/r/digest?cta=question&id=651874

In a macro containing some conditions searching for existing macros that match a pattern, I have a combination of conditions that should be impossible. If the user mistakenly provides parameters that ... 
[macros]
 
asked by scorchgeek https://tex.stackexchange.com/landing/r/digest?cta=user&id=23090 Score of 6
answered by David Carlisle https://tex.stackexchange.com/landing/r/digest?cta=user&id=1090 Score of 8
8.49.1.2 Error while compiling previously working code

https://tex.stackexchange.com/landing/r/digest?cta=question&id=651918

I'm trying to compile the exact same code suggested in the answer to How to Label and Caption TikzpictureS inside a tabular environment: 
\documentclass{article} 
\usepackage{tikz} 
\usetikzlibrary{calc} 
... 
[tikz-pgf] [errors] [captions]
 
asked by Ninoett https://tex.stackexchange.com/landing/r/digest?cta=user&id=253514 Score of 4
answered by David Carlisle https://tex.stackexchange.com/landing/r/digest?cta=user&id=1090 Score of 5
8.49.1.3 Use \pgfmathresult in siunitx

https://tex.stackexchange.com/landing/r/digest?cta=question&id=651836

I try to do some calculation and then want to use the result in a siunitx qty. 
However, this fails and I don't know why. 
\documentclass{article} 
\usepackage{pgfplots, siunitx} 
\newcommand{\scale}[1]{\... 
[tikz-pgf] [pgfmath]
                                                                                  

                                                                                  
 
asked by Manuel Schmidt https://tex.stackexchange.com/landing/r/digest?cta=user&id=54364 Score of 4
answered by Joseph Wright https://tex.stackexchange.com/landing/r/digest?cta=user&id=73 Score of 7
8.49.1.4 Vertical alignment in a tree

https://tex.stackexchange.com/landing/r/digest?cta=question&id=652003

I've used base=bottom and base=top to have the text in a child node vertically aligned. However, I don't have the desired output. I would like to have "You can" in front of the edge, not &... 
[tikz-pgf] [tikz-trees] [forest]
 
asked by JJSilva https://tex.stackexchange.com/landing/r/digest?cta=user&id=273526 Score of 3
answered by Jasper Habicht https://tex.stackexchange.com/landing/r/digest?cta=user&id=47927 Score of 4
8.49.1.5 Does June 2022 LaTeX require use of padmanagement-testphase and hyperref key pdfproducer?

https://tex.stackexchange.com/landing/r/digest?cta=question&id=651965

Are either of the commented-out lines below still needed with the June 2022 release of LaTeX? 
Specifically: 
Is the \RequirePackage{pdfmanagement-testphase} automatically invoked by \DocumentMetadata{... 
[hyperref] [pdf] [metadata] [hyperxmp]
 
asked by murray https://tex.stackexchange.com/landing/r/digest?cta=user&id=13492 Score of 3
answered by Ulrike Fischer https://tex.stackexchange.com/landing/r/digest?cta=user&id=2388 Score of 5
8.49.1.6 How to calculate a mean in LaTeX?

https://tex.stackexchange.com/landing/r/digest?cta=question&id=651935

I'd like to set up a LaTeX template for grading, which would contain several categories that are graded individually using A-F by the user of the template. Out of these, the final grade has to be ... 
[calculations] [xfp]
 
asked by krab1k https://tex.stackexchange.com/landing/r/digest?cta=user&id=209522 Score of 3
answered by wipet https://tex.stackexchange.com/landing/r/digest?cta=user&id=51799 Score of 5
8.49.1.7 Define \myfun which gives \myfun a \\ b  = a and \myfun a  = a

https://tex.stackexchange.com/landing/r/digest?cta=question&id=651783

How can I define a function \myfun which gives 
\myfun{a} -> a 
\myfun{a \\ b} -> a 
\myfun{a \\ b \\ c} -> a 
\myfun{$\theta$ \\ b \\ c} -> $\theta$ 
[macros]
 
asked by user182849 https://tex.stackexchange.com/landing/r/digest?cta=user&id=182849 Score of 3
answered by egreg https://tex.stackexchange.com/landing/r/digest?cta=user&id=4427 Score of 6