New answers tagged

4

The error occurs because acrsine does not exist for angles greater than 90. After limiting refraction, total internal reflection occurs. Therefore, it is no longer possible to calculate the angle of the refracted ray as you try. \documentclass[border=10pt,tikz]{standalone} \usepackage{xcolor} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}...


3

Try \detokenize\expandafter: \documentclass[a4paper,11pt]{book} \usepackage{pgffor} \usepackage[demo]{graphicx} \usepackage[margin=1.25in]{geometry} \usepackage{physics} \usepackage{amsfonts} \usepackage{amsmath} \usepackage[nottoc]{tocbibind} \usepackage[nodisplayskipstretch]{setspace} \usepackage{float} \usepackage{caption} \usepackage{subcaption} \...


2

The reasons for which \global\setlength fails with pdfpages are this package loads calc; if calc is not loaded, \global\setlength works by accident. I suggest a different approach which avoids global settings. The macro \getmaxlength has an optional argument which should be something that wraps the resulting dimension, by default just showing the value. \...


Top 50 recent answers are included