Week
- Slope Field Uniform Plotby Nick B on February 16, 2026 at 11:36 am
I am trying to create slope fields based on several examples I have seen on here. My issue is that when I change my equation (the slope field I want to draw) my image does not appear to be square. I would like it uniform. The uniformity changes based on what function I plot. Is there a way to fix this? The image attached is from AP Classroom. Note the uniformity all the way around and how it is square, or flush. that is what I am looking for. \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows.meta} \pgfplotsset{compat=1.18} \begin{document} \centering \begin{tikzpicture} \begin{axis}[ view={0}{90}, axis lines=middle, axis equal image, width=10cm, xmin=-5.5, xmax=5.5, ymin=-5.5, ymax=5.5, xtick={-4,-2,2,4}, ytick={-4,-2,2,4}, xlabel=$x$, ylabel=$y$, axis line style={thick, -{Triangle[scale=1.2]}}, clip=false ] \addplot3[ thick, color=red, declare function={ f(\x,\y) = \x; norm(\x,\y) = sqrt(1 + (f(\x,\y))^2); }, quiver={ u={1/norm(x,y)}, v={f(x,y)/norm(x,y)}, scale arrows=0.4, every arrow/.append style={-} }, % -------------------------------- samples=15, domain=-4.2:4.2, domain y=-4.2:4.2 ] {0}; \end{axis} \end{tikzpicture} \end{document}
- Help with abrupt interuption of `tlmgr` with `First directive needs to be 'name'`?by Explorer on February 16, 2026 at 7:59 am
I found no similar answer on the site. Here below is my story. As cfr post the newest package forest-ext on CTAN last month, I need to run tlmgr update --all, and I was waiting for that to update. However, the power supply of personal computer was unexpectedly cut off! Then the tlmgr was broken! When I turn on again, and run with tlmgr update --all again, it complained that: tlmgr update --all First directive needs to be 'name', not at C:/texlive/2025/tlpkg/TeXLive/TLPOBJ.pm line 106, <TMP> line 1. I have no idea with my unlucky case... Any suggestions to relieve my tlmgr? Possible related: tlgmr error: First directive needs to be 'name'… Edited: The explorer.exe's infomration with C:/texlive/2025/tlpkg/TeXLive/TLPOBJ.pm: Information with C:\texlive\2025\tlpkg: Edited Again: Since kind Max Chernoff mentioned at here and here: The error located at my broken texlive.tlpdb. When I replace my texlive.tlpdb with Max's version at here, the error message gone, but maybe some resource's difference, tlmgr doesn't think I have any package to update.... $tlmgr update --all tlmgr.pl: package repositories main = https://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable) tlcontrib = https://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlcontrib (not verified: gpg unavailable) tlcritical = https://tug.org/texlive/tlcritical/ (not verified: gpg unavailable) For more about verification, see https://texlive.info/verification.html. tlmgr.pl: saving backups to C:/texlive/2025/tlpkg/backups tlmgr.pl: no updates available As Ulrike Fischer and cabohah's advice, I would give 2026-preset a try😋, which looks more efficient. Edited Finally: With Max's version, and --reinstall, it works: tlmgr install --reinstall forest-ext tlmgr.pl: package repositories main = https://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable) tlcontrib = https://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlcontrib (not verified: gpg unavailable) tlcritical = https://tug.org/texlive/tlcritical/ (not verified: gpg unavailable) For more about verification, see https://texlive.info/verification.html. [1/1, ??:??/??:??] reinstall: forest-ext @main [1267k] running mktexlsr ... done running mktexlsr. tlmgr.pl: package log updated: C:/texlive/2025/texmf-var/web2c/tlmgr.log tlmgr.pl: command log updated: C:/texlive/2025/texmf-var/web2c/tlmgr-commands.log However, since ctug.org didn't provide a windows-specific texlive.tlpdb, maybe that is not purely compatible, and maybe not a quite extensive solution to this case.
- \mathunderbar automatically gobbles the subscript following itby Jinwen on February 16, 2026 at 3:27 am
Consider the following example: \documentclass{article} \usepackage{unicode-math} \begin{document} \( \mathunderbar{s}_f \) \( \mathunderbar{s}{}_f \) \end{document} It seems \mathunderbar automatically interprets the subscript following it as part of its argument. Is this behavior by design? Should I thus always write an empty group after it to get the correct output, as in the example above?
- Latex Math bracket right that covers two rows of aligned'sby Christopher Ettling on February 15, 2026 at 6:56 pm
Is it possible to make such a nice bracket like in the picture? \documentclass{article} \usepackage{amsmath,amssymb} \newcommand{\Z}{\mathbb{Z}} \begin{document} \begin{align*} a\!\in\!\Z\mid b\!\in\!\Z &\left\{ \begin{aligned} &\Leftrightarrow\left\{ \begin{aligned} \pm a &\mid \mp b\\ ac &\mid bc:\forall c\in\Z \end{aligned}\right.\\ &\Rightarrow\left\{ \begin{aligned} a\mid bc:\forall c\in\Z\\ |a|\le |b|\lor b=0 \end{aligned}\right.\\ &\land\left\{ \begin{matrix} a=0 &\Rightarrow& b=0\\ b\mid a &\Rightarrow& a=\pm b\\ b\mid c &\Rightarrow& a\mid c \end{matrix}\right. \end{aligned}\right. \end{align*} \end{document}
- TeX expansion with \number has mysterious error when followed by space, why?by Dan Levin on February 15, 2026 at 3:07 pm
This code produces the table I'm expecting with fully expandable copying: % same as \ltx@\ReturnAfterFi \long\def\ReturnAfterFi#1\fi{\fi#1} % expandable copies % #1=number, #2=text \def\xcopies#1#2{% \ifnum#1>0 #2% \ReturnAfterFi{\expandafter\xcopies\expandafter{\the\numexpr#1-1}{#2}}% \fi} \def\hundredtable{% \vtop{\offinterlineskip \global\count255=1 \everycr{\noalign{\hrule}}\tabskip0pt \halign{\strut \vrule ##&& \global\advance\count255 by 1 \hbox to 2.5em{\hss##\hss}\vrule\cr \xcopies{10}{\xcopies{10}{& \number\count255}\cr}\crcr}}} \hundredtable But an error occurs if I put a space after the \number command in the code block above, as shown here: ... \xcopies{10}{\xcopies{10}{& \number\count255 }\cr}\crcr}}} I thought the space would be optional. I've tried \relax and it, too, produces an error, with TeX saying the \ifnum doesn't complete. I suspect the \number command with the register is checking if it should multiply what follows and is therefore expanding the \ReturnAfterFi. But the space would seem to solve this, not cause it. Can someone explain the expansion error here?
- LaTeX zref-clever: automatically generate dash-separated figure ranges including non-consecutive labelsby taiwan12 on February 15, 2026 at 1:21 pm
I'm trying to use the zref-clever package in LaTeX to reference multiple figures in a compact, readable way. I want the output to: Merge consecutive figure numbers with a dash (-) Separate non-consecutive numbers with commas Never use "and" Work for any order of figure labels MWE \documentclass{article} \usepackage{graphicx} \usepackage{float} \usepackage[colorlinks]{hyperref} \usepackage{zref-clever} \begin{document} % Example of referencing figures \zcref{fig:figA, fig:figB, fig:figC, fig:figE, fig:figF} % figures 1-3, 5-6 \zcref{fig:figB, fig:figA} % figures 1-2 \zcref{fig:figD, fig:figA} % figures 1, 4 \zcref{fig:figA, fig:figB, fig:figC, fig:figE, fig:figG} % figures 1-3, 5, 7 \begin{figure}[H] \caption{Caption} \label{fig:figA} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figB} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figC} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figD} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figE} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figF} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figG} \end{figure} \end{document}
- cleveref \cref fails when there is a space after comma in multiple labels [duplicate]by taiwan12 on February 15, 2026 at 12:23 pm
I am using LaTeX with the cleveref package and I want to reference multiple figures like this: \cref{fig:figA, fig:figB}. However, it only works if there is no space after the comma: \cref{fig:figA,fig:figB}. Is there a clean way to make \cref handle spaces after commas in multiple labels automatically? I only came up with one idea: \crefspace which removes the every space. \documentclass{article} \usepackage{graphicx} \usepackage{float} \usepackage[colorlinks]{hyperref} \usepackage{cleveref} \begin{document} \begin{figure}[H] \caption{Caption} \label{fig:figA} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figB} \end{figure} \begin{figure}[H] \caption{Caption} \label{fig:figC} \end{figure} \cref{fig:figA,fig:figB} % works \cref{fig:figA, fig:figB} % does NOT work \end{document}
- LaTeX macro for typesetting AVMs and distance between AVM and text + typingby Stefan Müller on February 15, 2026 at 11:37 am
Decades ago a colleague wrote a macro for type setting Attribute Value Matrices (AVMs) for me. It is simple and can be used for AVMs with a type (italics at the left top bracket) and AVMs without type. The problem is that sometimes the AVMs are very close to preceding text and I do not see why. The distance between "Perfekt" and AVM is perfect, but the distance between "Passive" and the AVM is not. Of course this could be fixed by inserting a newline with 2pts extra space, but I would like to understand the problem and have a solution for it. Apart from this the whole AVM should be some points further to the left, so that it aligns with the text. I guess this is due to the array package, which probably adds some space for nesting brackets. This is of course welcome but should not happen at teh outermost bracket. This is my code: \documentclass{scrartcl} \usepackage{langsci-gb4e} \usepackage{array} \newcommand{\nliste}[1]{% \mbox{$\langle$\upshape\normalfont#1$\rangle$}% } \newcommand{\eliste}{% \mbox{% $\left\langle\right\rangle$}% } \newcommand{\ms}[2][]{% \mbox{% \delimiterfactor=1000 \delimitershortfall=0pt\tabcolsep=0pt% $\left[% \begin{tabular}{>{\upshape\scshape}l@{}>{\hspace*{5pt}\normalfont\itshape}l} \if\relax\detokenize{#1}\relax\else \multicolumn{2}{>{\normalfont\itshape}l}{#1}% \\% \fi% #2% \end{tabular}% \right]$% }% \vspace{1mm}% } \newcommand{\onems}[2][]{% \mbox{% \delimiterfactor=1000 \delimitershortfall=0pt \tabcolsep=0pt $\left[% \begin{tabular}{>{\upshape\scshape}l} \if\relax\detokenize{#1}\relax\else {\normalfont\itshape #1}% \\ \fi #2% \end{tabular}% \right]$% }% \vspace{1mm}% } \newcommand{\menge}[1]{% \mbox{% $% \left\{% \begin{tabular}{@{}l@{}}\ignorespaces#1\end{tabular}% \right\}% $% }% } \newcommand{\str}{{\normalfont\textit{str}}}% xspace does not work with NP[\str] \begin{document} The second AVM is too close to the `P'. There seems to be too much space before the AVM. \eal \ex Perfekt:\\ \ms{ spr & \nliste{ NP[\str]$_i$ }\\ comps & \nliste{ NP[\str]$_j$ }\\ arg-st & \nliste{ NP[\str]$_i$, NP[\str]$_j$ } } \ex Passiv:\\ \ms{ spr & \nliste{ NP[\str]$_j$ }\\ comps & \eliste\\ arg-st & \nliste{ NP[\str]$_j$ } } \zl \eal \label{linking-konstruktionen} \ex\label{transitiv-Konstruktion} die \emph{Transitive Construction}:\\ \ms{ syn & \ms{ cat & v\\ voice & active\\ }\\ val & \menge{ \onems{ role \ms{ gf & obj \\ %$\theta$ & \textsc{da}$-$\\ \textsc{da} & $-$\\ }\\ }}\\ } \ex die \emph{Subject Construction}:\\ \ms{ syn & \ms{ cat & v\\ }\\ val & \menge{ \onems{ role \onems{ gf \textit{subj} } }}\\ } \ex die \emph{Passive Construction}:\\ \ms{ syn & \ms{ cat & v\\ form & PastPart\\ }\\ val & \menge{ \ms{ role & \ms{ gf & obl\\ da & $+$\\ }\\ syn & \textrm{P[von]/}zero\\ }}\\ } \zl \ms[test]{ feature1 & value\\ feature2 & value} \ms[word]{ feature1 & value\\ feature2 & value} \ms[passive]{ feature1 & value\\ feature2 & value} \end{document} Another problem is the type in the last three AVMs. It seems to take all the space that would be needed if there were letters like `t' that stick out towards the top. But this is not the case for words like "passive". Could such types be raised by some points (according to font properties)? Sorry, for asking two questions in one. I can split them up, but since it is the same code, I thought it might be better this way.
- How to change the name "Publications " to "references" and how to make them colored?by Intuition on February 15, 2026 at 3:50 am
Here is a template of overleaf that I am using to write my research statement: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \moderncvcolor{red} \usepackage{lipsum} \usepackage[scale=0.75]{geometry} \firstname{} % Your first name \familyname{} % Your last name %\addbibresource{mybibliography.bib} %\bibliography{references} \title{ Research Statement} \address{W. Ethan Eagle}{} \mobile{(302) 584 3464} \email{ethan.eagle@gmail.com} %\addbibresource{mybibliography.bib} %\bibliography{references} \begin{document} \makecvtitle % Print the CV title %---------------------------------------------------------------------------------------- % EDUCATION SECTION %---------------------------------------------------------------------------------------- %\newpage %\addbibresource{references.bib} %\bibliography{references} \section{Previous Research Experience} 'Turbulence/Chemistry Interaction' and 'Thermo-fluids research.' ~\cite{MR1122302} {\hskip 2em}Details of my previous research work are available in my CV, but I would like to highlight my interests in diagnostic development for infrared imaging detection. The measurement capabilities of this diagnostic are just beginning to be understood, and I will continue to eagerly pursue and develop this measurement technique. I am also interested in continuing to make advanced measurements in combustion that can assess the impact of scalar dissipation on the ignition and inflammation of a mixture.\\ %---------------------------------------------------------------------------------------- \section{Research Goals} {\hskip 2em}I aim to develop a reputation as world-class expert in turbulence/chemistry interaction as applied to the areas of energy, health, and the environment. {\hskip 2em}To be successful as a starting faculty, I plan to start from simple 'unit' problems where I can explore the influence of boundary conditions in simple flow problems while developing diagnostic capability (e.g. infrared measurements of hydrocarbon distribution in atmospheric jet flames). {\hskip 2em}I have contacts to funding sponsors at the DOE, with NSF program managers in the turbulence and combustion sub-areas, and at DOD including AFRL and NRL, and will seek the support of these agencies through responses to FOAs regularly put out by these venues. \section{Teaching} My teaching interests span experiments in fluids, theoretical fluid dynamics, thermodynamics, and combustion. $\bullet{}$ Undergraduate: Thermodynamics, In/compressible Flows, Instrumentation (Lab), Combustion\\ $\bullet{}$ Graduate: Turbulent-Compressible-Viscous Flows, Combustion, Optical and Laser Diagnostics {\hskip 2em}I believe that a comprehensive set of courses on fundamental viscous and turbulent flows would be a worthwhile addition to a core competency at the undergraduate level. {\hskip 2em}I cultivate the following attitudes in students who complete course work or research with me: $\bullet{}$ demonstrate understanding of rigorous mathematical tools for design/analysis, (Teach others) $\bullet{}$ exhibit audience driven communication strategies, (Justify and explain the importance of research) $\bullet{}$ establish sound environmental/ethical/social reasoning. (Think long term, not just short term) %\section{References} %~\cite{MR1122302} %\addbibresource{references.bib} %\printbibliography [title={REFERENCES }, heading=bibintoc] \bibliographystyle{alpha} \bibliography{references} % Gunakan judul LITERATURE \end{document} I was wondering how to change the name "Publications " to "references" and how to make them colored? Notice that I created a file named references.bib that contains my citations from mathscinet Any help will be appreciated.
- Add a Transparent Effect to an Oval Imageby DDS on February 14, 2026 at 3:14 pm
Consider the code: \documentclass{book} \usepackage{xcolor,graphicx,comment} \usepackage[abs]{overpic} \usepackage{tikz} \definecolor{cadmiumgreen}{rgb}{0.0, 0.42, 0.235} % 0, 107, 60 \definecolor{Gold}{RGB}{228,168,73} \usepackage{transparent} \begin{document} \thispagestyle{empty} \begin{center} \begin{tikzpicture} \clip (0,0) ellipse (4.25cm and 5.5cm); \draw[line width=5pt,Gold,fill=cadmiumgreen] ellipse (4.25cm and 5.5cm); \node at (0,0) {\includegraphics[scale=.37,clip, trim = 0 0 0 0]{example-image-a}}; \draw[line width=12pt,Gold!70!black] ellipse (4.25cm and 5.5cm); \end{tikzpicture} \end{center} \begin{comment} \begin{center} \begin{tikzpicture} \clip (0,0) ellipse (4.25cm and 5.5cm); \draw[line width=5pt,Gold,fill=cadmiumgreen] ellipse (4.25cm and 5.5cm); \node at (0,0) {\includegraphics[scale=.37,clip, trim = 0 0 0 0]{example-image-a}\llap{\texttransparent{0.5}{\color{blue!35}}}}; \draw[line width=12pt,Gold!70!black] ellipse (4.25cm and 5.5cm); \end{tikzpicture} \end{center} \end{comment} \begin{figure} [!htb] \centering \includegraphics[width=8em,height=11em]{example-image}\llap{\texttransparent{0.5}{\color{blue!35}\rule{8em}{11em}}} \end{figure} \end{document} which produces the output: Now, I would like to add a visible (bluish) transparent effect to the first (green oval) image. However, when I try to incorporate the effect shown in the second image into the first, nothing seems to happen; that is, when I run the MWE with the \begin{comment}, \end{comment} taken out---nothing seems to happen. QUESTION: How may I add a transparent (blueish in this case) effect to the first (oval) image? Thank you.
- breve and macron over several lettersby rensemil on February 14, 2026 at 2:57 pm
I am using the metre package for metrical notation of Latin text. Here is my MWE: \documentclass[12pt]{article} \usepackage{metre} \begin{document} \begin{metrica} \=a \={ae} \-a \-{ae} \end{metrica} \end{document} This produces: The ā and ă are fine, but as you can see, with both of the "ae"s, the diacritics don't stretch to fill the whole width of the letters. Is it possible to change this so that the symbol matches the width of however many letters are under it? I would like it to work for not just 2 letters, but ideally as many as possible, e.g. I want to be able to draw a macron or even a breve over "huius" when I mark it as being one single syllable and the diacritic should then stretch to be as wide as it has to be to cover the whole word. This is what it should look like (note the macron in the first line on "praebeo" and the brevia on "aut" and "improbae". Thanks in advance!
- prime symbol sometimes in the wrong position with kpfonts-otf, how to replace it from another font?by Jinwen on February 14, 2026 at 10:30 am
Consider the following example: \documentclass{article} % \usepackage{kpfonts-otf} \usepackage{unicode-math} \setmathfont{KpMath-Regular.otf} % \setmathfont{texgyrepagella-math.otf}[range={\prime}] \begin{document} \( E^{E'}_{E'} \) \( E' \) \end{document} The prime symbol in the subscript is clearly in the wrong position: I tried to replace this symbol by, say, \setmathfont{texgyrepagella-math.otf}[range={\prime}], but instead of replacing the symbol from another font, it makes the situation worse: Is there any way to fix this behavior, or at least be able to replace this symbol from another font for which the display is correct? (Perhaps other than contacting the author of kpfonts-otf, as he is quite busy recently...)
- Display a range of values with the associated unitby Nicolas on February 14, 2026 at 9:24 am
I would like to be able to display in my text a range of values with the associated unit, for example 50-200 μm: I found well how to write"50 to 200 µm" (\qtyrange[range-units = single]{50}{200}{\micro\m}) or "50-200" (\numrange[range-phrase = --]{5}{200}) but nothing to make a mix of 2. Does anyone have any idea? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{siunitx} \begin{document} \qtyrange[range-units = single]{50}{200}{\micro\m} \numrange[range-phrase = --]{5}{200} \end{document}
- Strange geometric calculation error of ellipse with `arc` in tikz?by Explorer on February 14, 2026 at 7:33 am
I want to plot something as below in an elegant appraoch, with a handy control of the angle and eccentricity: (the pattern is not important here) Here below, I make some calculations: \documentclass[tikz,border=5pt]{standalone} \begin{document} \begin{tikzpicture}[line join=round] \def\R{5} \def\ell{0.9} \def\startAngle{40} \def\endAngle{90-\startAngle} \def\rhoo{\fpeval{\R*sind(45-\startAngle)/cosd(\startAngle)}} \def\Rx{\fpeval{\rhoo*(sqrt(1-(\ell^2*cosd(\startAngle)^2)))/(sqrt(1-\ell^2))}} \def\Ry{\fpeval{\Rx*(sqrt(1-\ell^2))}} \def\ellstartAngle{\fpeval{atand(\Rx/\Ry*tand(\startAngle))}} \filldraw[ fill=cyan!30, draw=cyan, very thick ] (\R,0) arc[start angle=0, end angle=\startAngle, radius=\R] { [rotate=-\startAngle] arc[start angle=-\ellstartAngle,end angle=180+\ellstartAngle,x radius=\Rx,y radius=\Ry] } arc[start angle=\endAngle, end angle=90, radius=\R] -- (0,\R) -- (\R,\R) -- cycle; \end{tikzpicture} \end{document} But it gives some drawbacks of the ellipse's ending tip: With the following sketch: My calculation thoughts is as below: noted that \StartAngle is \theta, and \ell is the ellipse's eccentricity with \def\rhoo{\fpeval{\R*sind(45-\startAngle)/cosd(\startAngle)}}, I want to derive the radius from origin of the ellipse, that is the \rho's distance in the sketch with the formula of the radius length from origin of the ellipse, that is: I want to derive the x-radius of ellipse, that is a(\Rx) via \def\Rx{\fpeval{\rhoo*(sqrt(1-(\ell^2*cosd(\startAngle)^2)))/(sqrt(1-\ell^2))}} Then I calaulated the y-radius with \Rx and \ell via \def\Ry{\fpeval{\Rx*(sqrt(1-\ell^2))}} Finally, I calculate the geometric angle of sub-path rotation learning from this answer via \def\ellstartAngle{\fpeval{atand(\Rx/\Ry*tand(\startAngle))}} I really have no idea of any mathematical calculation issues or just my tikz's parameter misunderstandings. Could somebosy give me a hand? (Any approach with neat syntax are all welcome! My calculation above is just to draw this in one \path)
- tabularx: more horizontal distance between {|X| |X|}by cis on February 14, 2026 at 7:05 am
How do I get more horizontal distance ? \documentclass[paper=a5]{scrarticle} \usepackage[margin=14mm, showframe=true]{geometry} \usepackage{tabularx,hhline,booktabs} \begin{document} \setlength{\arrayrulewidth}{3pt}% to see the rules clearly %\setlength{\tabcolsep}{5mm}% ungood \noindent% \begin{tabularx}{\textwidth}{|X| |X|} \hhline{|-||-|} Content Column 1 & Content Column 2 \\ \hhline{|-||-|} \end{tabularx} \end{document}
- diagbox pops error : "Package xcolor Error: Undefined color `diagbox'."by philippe on February 13, 2026 at 11:14 pm
Here is the MWE of the code I am attempting to use: \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \UseTblrLibrary{diagbox} \definecolor{MyLightGray}{gray}{0.9} \begin{document} \begin{table}[h] \centering \begin{tblr}{ colspec={|m{3cm}|X|X|X|}, hlines, vlines, cells={c,m}, } \SetCell{bg=MyLightGray,diagbox={Expertise}{Connaissance}} & \SetCell{bg=MyLightGray} Colonne 1 & \SetCell{bg=MyLightGray} Colonne 2 & \SetCell{bg=MyLightGray} Colonne 3 \\ Aucun / Standard & 0 & 2 & 6 \\ Spécial / COTS & 0 & 2 & 6 \\ \end{tblr} \end{table} \end{document} Here is the error I am getting while compiling : Package xcolor Error: Undefined color `diagbox'. I have no clue where xcolor comes from while it comes to diagbox, I may have a typo or something somewhere, this is driving me crazy! Please feel free to ask for more information, I don't know what more I could provide.
- Multiple independent compound numbering series in `chemnum` (generalizing two-series solution)by monty01 on February 13, 2026 at 9:48 pm
I am using the chemnum package together with chemstyle to label compounds in reaction schemes. By default, chemnum only provides a single global counter (cmpdmain), so compounds are numbered like: 1, 2, 3a, 3b, 4 … However, I need multiple independent numbering series, for example: literature compounds -> 1, 2, 3… target compounds -> T1, T2… intermediates -> INT1, INT2… supplementary information -> S1, S2… So effectively I want arbitrary named numbering series: \seriesBegin{EG} \replacecmpd{a} \seriesEnd \seriesBegin{INT} \replacecmpd{b} \seriesEnd and each series should continue later in the document without resetting. What I already found This answer provides a clever workaround for two parallel numbering series by saving and restoring cmpdmain: https://tex.stackexchange.com/a/759086/433835 code \documentclass{article} \usepackage{graphicx} \usepackage{chemstyle} % Provides the 'scheme' float environment (and general chem document styling) \usepackage{chemnum} % Provides compound numbering + psfrag-like replacement via \replacecmpd / \cmpd % --- Two "parallel" compound series trick ------------------------------------ % chemnum internally uses ONE main counter: cmpdmain. % To emulate two independent series (literature vs EG), we: % 1) save the current main counter value % 2) swap in the saved EG counter state % 3) turn on the "EG" prefix % 4) after the EG block, save the updated EG state and restore the main counter \newcounter{cmpdMainSaved} % temp storage: saves the current literature/main cmpd counter \newcounter{cmpdEGstate} % persistent storage: remembers where the EG series left off \newcommand{\EGseriesBegin}{% % Save the current "main" (literature) compound counter: \setcounter{cmpdMainSaved}{\value{cmpdmain}}% % Switch cmpdmain to the last saved EG state (so EG numbering continues): \setcounter{cmpdmain}{\value{cmpdEGstate}}% % Turn on a bold "EG" prefix for printing compound labels (EG1, EG2, ...): \setchemnum{pre-label-code=\textbf{EG}}% } \newcommand{\EGseriesEnd}{% % Save the updated EG state (so the next EG block continues where we stopped): \setcounter{cmpdEGstate}{\value{cmpdmain}}% % Turn off the EG prefix (back to plain numbers): \setchemnum{pre-label-code=}% % Restore the literature/main counter exactly where it was before EG mode: \setcounter{cmpdmain}{\value{cmpdMainSaved}}% } \begin{document} % --- Literature compounds: should print as 1,2 -------------------------------- \begin{scheme}[H] \replacecmpd{lit:a.1} % Register/replace the placeholder in the graphic with compound "1a" \replacecmpd{lit:b} % Register/replace the placeholder in the graphic with compound "2" \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \caption{Normal numbering} \end{scheme} % --- Your target compounds: should print as EG1, EG2 --------------------------- \EGseriesBegin % Switch into EG-series mode (prefix + separate counter state) \begin{scheme}[H] \replacecmpd{eg:a.1} % Register/replace placeholder with "EG1a" \replacecmpd{eg:b} % Register/replace placeholder with "EG2" \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \caption{EG numbering} \end{scheme} \EGseriesEnd % Leave EG mode and restore literature numbering \cmpd{eg:a.1}, \cmpd{eg:b} \cmpd{lit:a.1}, \cmpd{lit:b} % --- Continue EG series: should now print as EG3, EG4 -------------------------- \EGseriesBegin \begin{scheme}[H] \replacecmpd{eg:d} % Expected: EG3 \replacecmpd{eg:e} % Expected: EG4 \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \end{scheme} \EGseriesEnd \cmpd{eg:e} % --- Back to literature series: continues as 3,4 ------------------------------- \begin{scheme}[H] \replacecmpd{lit:c} % Expected: 3 \replacecmpd{lit:d} % Expected: 4 \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \caption{Normal numbering} \end{scheme} \cmpd{lit:c} % --- Later EG block: continues again (no reset) -------------------------------- % NOTE: If you ever want to restart the EG series at EG1, you can reset the state: % \setcounter{cmpdEGstate}{0} \EGseriesBegin \begin{scheme}[H] \replacecmpd{eg:f} \replacecmpd{eg:g} \includegraphics[width=.5\linewidth]{PhH-and-PhMe} \end{scheme} \EGseriesEnd \end{document}
- Any better suggestions with the pos of arrow on arc with tikz?by Explorer on February 13, 2026 at 12:25 pm
This question is similar to this link, but not exactly the same focues. What I want, is something like: But I want a better looking and better syntax of the arrow: The figure above is produced by: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{bending,decorations.markings,arrows.meta,calc,spath3} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[ >={Kite[inset=0pt,length=.32cm,bend]}, baz/.style={spath/save=curve}, foo/.style={ draw,tips=true,->, spath/remove empty components={curve}, spath/split at keep start={curve}{#1}, spath/use=curve }, foo/.default=0.5, ] \filldraw[thick,fill=gray!40] (4,0) node[below]{$R$} arc (0:180:4) node[below]{$-R$} -- (-3,0) arc(180:0:1) -- (1,0) arc(180:0:1) -- cycle; \path[baz] (4,0) arc (0:90:4);\path[foo=.4]; \path[baz] (0,4) arc (90:180:4);\path[foo]; \path[baz] (-3,0) arc (180:0:1);\path[foo=.55]; \path[baz] (1,0) arc (180:0:1);\path[foo=.55]; \draw[-Stealth] (-5,0) -- (5,0) node[below]{$\Re$}; \draw[-Stealth] (0,0) -- (0,5) node[right]{$\Im$}; \path node[below] {$O$} (60:4) node[above=3pt] {$C_{R}$}; \end{tikzpicture} \end{document} which learning from Andrew Stacey's elegant solution. However, the code above is manually seperated, my \foreach version didn't get expected result: \documentclass[tikz,border=5pt]{standalone} % https://tex.stackexchange.com/a/656167/322482 \usetikzlibrary{bending,decorations.markings,arrows.meta,calc,spath3} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[>={Kite[inset=0pt,length=.32cm,bend]}] \filldraw[ thick,fill=gray!40, spath/save=curve, ] (4,0) node[below]{$R$} arc (0:180:4) node[below]{$-R$} -- (-3,0) arc(180:0:1) -- (1,0) arc(180:0:1) -- cycle; \foreach \pos in {.1,.4,.675,.9}{% \path[ draw=blue,tips=true,->, spath/clone={tmp}{curve}, spath/remove empty components={tmp}, spath/split at keep start={tmp}{\pos}, spath/use=tmp, ]; } \draw[-Stealth] (-5,0) -- (5,0) node[below]{$\Re$}; \draw[-Stealth] (0,0) -- (0,5) node[right]{$\Im$}; \path node[below] {$O$} (60:4) node[above=3pt] {$C_{R}$}; \end{tikzpicture} \end{document} Edited: (I seemed to find some out-of-my-intuition features with spath3 and also reported at here, but actually turn out to be my fault of understanding the pos parameter of curve).
- Bold math with unicode-math and siunitxby pejsek on February 12, 2026 at 5:42 pm
I am creating a table that needs a bold header. In the header I want to typeset units using siunitx. I want the units to be inside parentheses. I am also using the unicode-math package and compiling with LuaLaTeX. \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \centering \setlength{\tabcolsep}{5mm} \renewcommand{\arraystretch}{1.1} \begin{tabular}{@{} l c @{}} \toprule \textbf{Material} & \textbf{Density} \(\symbf{ \left( \unit[per-mode=fraction]{\gram\per\centi\metre\cubed} \right) }\) \\ \midrule Air & \num{0.0012} \\ Water & \num{1} \\ \bottomrule \end{tabular} \end{document} The output looks like this: I want all of the header to be bold, including the scalable parentheses and all of the units. Like this: \documentclass{article} \usepackage{fontspec} %\usepackage{unicode-math} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \centering \setlength{\tabcolsep}{5mm} \renewcommand{\arraystretch}{1.1} \begin{tabular}{@{} l c @{}} \toprule \textbf{Material} & \textbf{Density} \boldmath\( \left( \unit[reset-math-version=false,per-mode=fraction]{\gram\per\centi\metre\cubed} \right) \) \\ \midrule Air & \num{0.0012} \\ Water & \num{1} \\ \bottomrule \end{tabular} \end{document} I experimented with some variations of this question but without much success. Thank you for any help.
- Character variant applied only to initialby Apothikon on February 12, 2026 at 5:14 pm
I am trying to achieve exactly the same result as this question butwith LuaLaTex (so,possibly using Lua OTF handler): Can one set a specific character variant in xelatex for the word first letter only? EDIT: Another approach may be to use a Babel transformation, even though this would make the feature language-related. Any advice? I give here a (very) minimal working example: \documentclass{article} \usepackage{fontspec} \setmainfont{EBGaramond12-Italic.otf} % I want to add: [CharacterVariant=5:0] only to initial v % probably using \directlua {fonts.handlers.otf.addfeature \begin{document} Ha visto un valvassore vivere come un valvassino invidioso che gridava evviva! \end{document}
- Bold small caps in Times New Romanby rensemil on February 12, 2026 at 2:27 pm
I am using fontspec in order to write in Times New Roman. The authors of cited literature are always set in small caps. This initially made problems because the font has no small caps, but I solved those by googling and finding a solution on stackexchange. However, the small caps don't work when they are also bold, e.g. in a section heading. This is my MWE: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{fontspec} \setmainfont{Times New Roman}[ SmallCapsFont={TeX Gyre Termes}, SmallCapsFeatures={Letters=SmallCaps}, ] \begin{document} \section{Regel von \textsc{Ritschl}} Regel von \textsc{Ritschl} \end{document} Which produces: As you can see, the small caps in the text body work just fine. In the heading, however, the small caps are not set bold. When using the ebgaramond package, this issue does not occur and everything looks as it should and very pretty, but, of course, in Garamond: I actually prefer the looks of Garamond but unfortunately I have to write in Times New Roman. Does anyone know how this could be fixed? Thanks in advance! If relevant: I am using LaTeX with LaTeX workshop in VSCode on a MacBook Air.
- Formatting ToC and chapters in a tagged PDFby wsmith on February 12, 2026 at 4:54 am
I have been tasked with designing a template for creating a tagged PDF that meets certain formatting requirements. The only major obstacle I have encountered is in generating a Table of Contents that meets these (rather stringent) demands. Normally, I would use tocloft for this; however, as it has been pointed out in other posts, this is currently not an option. I have tried working around this, but I must admit that I am out of my depth. Between the default settings and some things I have found on this forum, I have been able to get the ToC to a place that I like. There are three things I still can't figure out: I would like to set the font (italic or boldface) for the chapters, sections, subsection, etc. I would like to force chapter titles to appear uppercase in the ToC. I need to add the word "Page" above the page numbers in the ToC, list of figures, and list of tables. I have a cheap workaround for (2) which is just to make a new command: \newcommand{\Chapter}[1]{\chapter[\MakeUppercase{#1}]{#1}} but this is quite stupid. To acheive (3), I write \makeatletter \newcommand{\pageheaderlabel}{ \hfill\makebox[\@pnumwidth][c]{Page}\par\smallskip } \let\old@starttoc\@starttoc \renewcommand{\@starttoc}[1]{ \pageheaderlabel \old@starttoc{#1} } \makeatother but this is quite hacky (and is slightly off-center). On a somewhat related note, I have been using titlesec as I normally would; e.g, \usepackage[rm, tiny, center, compact]{titlesec} \titleformat{\chapter} {\ifdefined\boldheadings\bfseries\fi\centering\normalsize} {\thechapter.}{1em}{\makeuppercase} \titlespacing*{\chapter} {0pt} {0pt} {20pt} and I have not encountered any issues, despite the fact it is currently marked as incompatible with tagging. If it is breaking something, I cannot tell what. If there are any known workarounds to achieve this without titlesec, that would be much appreciated. ADDENDUM: Here is a stripped down example: % !TeX program = lualatex \DocumentMetadata{uncompress,lang=en, tagging=on, pdfstandard=ua-2,pdfstandard=a-4f} \documentclass[12pt]{report} \usepackage{lipsum} \usepackage[hidelinks]{hyperref} \usepackage{etoolbox} \usepackage[doublespacing]{setspace} \usepackage[letterpaper]{geometry} \geometry{verbose, margin=1in} \usepackage[rm, tiny, center, compact]{titlesec} % FORMATTING OPTIONS: %\def\BoldHeadings{} % <- uncomment to make chapters boldface (Goal: toggle consistently with ToC) \titleformat{\chapter} {\ifdefined\BoldHeadings\bfseries\fi\centering\normalsize} {\thechapter.}{1em}{\MakeUppercase} \titlespacing*{\chapter} {0pt} {0pt} {20pt} % To make "Page" appear above page #'s in TOC \makeatletter \newcommand{\pageheaderlabel}{ \hfill\makebox[\@pnumwidth][c]{Page}\par\smallskip } \let\old@starttoc\@starttoc \renewcommand{\@starttoc}[1]{ \pageheaderlabel \old@starttoc{#1} } \makeatother % add dots, courtesy of linked post \AddToHookWithArguments{contentsline/text/after}{ \ifnum#1=0 \dotfill \fi } % stupid trick to force chapter titles to be uppercase in TOC \newcommand{\Chapter}[1]{\chapter[\MakeUppercase{#1}]{#1}} \begin{document} \chapter*{TABLE OF CONTENTS} \addcontentsline{toc}{chapter}{TABLE OF CONTENTS} \begin{singlespace} \renewcommand\contentsname{\normalfont} {} \begingroup \let\clearpage\relax \let\cleardoublepage\relax \tableofcontents \endgroup \end{singlespace} \newpage % similar for LoF, LoT \Chapter{Fake Chapter} \section{Fake Section} \subsection{Fake Subsection 1} \subsubsection{Fake Subsubsection} \lipsum[3] \subsection{Fake Subsection 2} \lipsum[1] \end{document}
- Crop certain percent from each side of the figureby monty01 on February 11, 2026 at 8:20 pm
I would like to crop x percent from each side from the img. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[h] \centering \includegraphics[scale=0.3]{example-image-a} \caption{Caption} \label{fig:placeholder} \end{figure} \end{document} insted of using \includegraphics[scale=0.3]{example-image} I would like to call \cropimg{scale}{img}{crop percentage}
- Biblatex: First citation as full author + title; following citations ibid. or - when interrupted - short author-title citationby alcuinus on February 11, 2026 at 7:30 pm
The journal I am writing for requires: Whenever a bibliography entry is cited the first time: given name, family name, title, page -- no other data as publisher and so on When it is used again with other entries in between it will be shown as: familyname, title, page When it is used again without other entries in between it will be shown as"Ibid." With ext-verbose-trad1, citetracker=true I get "cit." which is not required. MWE: \documentclass[a4paper]{article} \usepackage[style=ext-verbose-trad1, citetracker=true,backend=biber]{biblatex} \begin{filecontents*}{\jobname.bib} @Book{A1, author = {Author, Anton}, title = {The First Very Long Title}, subtitle = {The Subtitle}, shorttitle = {The First}, year = {1900}, publisher = {The Printer}, address = {Printtown} } @Book{B2, Author = {Black, Berth}, Title = {The Second Title}, Year = {2000}, publisher = {The Typesetter}, address = {Typetown} } \end{filecontents*} \addbibresource{\jobname.bib} \begin{document} First title:\autocite[34]{A1}. Second citation (same title other page)\autocite[70]{A1}. Second title\autocite[12]{B2}. Back to first book (other page)\autocite[50]{A1}. Back to the first book (other page)\autocite[60]{A1}. Back to the first book (same page)\autocite[60]{A1}. Second title again\autocite[21]{B2}. \printbibliography \end{document} Question. How to substitute "cit." with shorttitle or title? See notes 4 and 7. The first and third note should print only given name + family name + title, but I will ask this in another post. Thanks for any help.
- pgfplots: Adjust groupplot to text widthby cis on February 11, 2026 at 9:28 am
I have a 2×2 groupplot (where the first plot should be replaced by a title "Supertitle") with titles in boxes. These "title boxes" should all have the same width, and boxes in the same row should have the same height. I achieved this using \vphantom{} because I didn't find a better method. How can I configure the settings such that the entire groupplot has a width of \textwidth? And a horizontal space between the columns like \tabcolsep (or something similar)? Is there a elegant way to do this by package keys? (resizebox etc. would certainly work, but that would be less elegant.) Ideally, it should stay a groupplot. PS: I'm using DIN A5 format here, but that shouldn't matter if the keys are set correctly. \documentclass[paper=a5]{scrartcl} \usepackage[margin=14mm, showframe]{geometry} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \pgfplotsset{compat=1.18} \begin{document} \section{Plots with Titles and Supertitle} \pgfmathsetlengthmacro\plotwidth{0.5*\textwidth-\the\arraycolsep} \begin{tikzpicture}[font=\footnotesize] \begin{groupplot}[ % Grouupplot settings ================== group style={ group size=2 by 2, % 2 columns, 2 rows vertical sep=25mm, horizontal sep=15mm, }, % Styles applied to all subplots ============== width=\plotwidth, height=30mm, % Title Styles ========================== title style={% at={(0,1)}, xshift=-3ex, align=left, anchor=south west, inner xsep=2pt, draw, fill=none, text width=0.925*\pgfkeysvalueof{/pgfplots/width}, },% ] % Title (Row 1, Col 1) \nextgroupplot[ % I don't know how to get this box to the same height without this trick: title={\vphantom{Plot 0} \\ \vphantom{000} \\ \vphantom{000}}, title style={name=super}, hide axis, ] \addplot[draw=none, samples={0}]{x}; % Plot 0 (Row 1, Col 2) \nextgroupplot[title={Title 0 \\ 000 \\ 000}] \addplot{x}; % Plot 1 (Row 2, Col 1) \nextgroupplot[title={Title 1 \\ 2-111 \\ 3-111 \\ 4-111}] \addplot{x^2}; % Plot 2 (Row 2, Col 2) \nextgroupplot[title={Title 2 \\ 2-222 \\ 3-222 \\ \vphantom{4-111}}] \addplot{x^3}; \end{groupplot} %% Supertitle \node[font=\bfseries\Large] at (super){Supertitle}; \node[anchor=north west, draw=none, align=left,] at (super.south west){ Some notes \\ below Supertitle}; \draw[cyan, very thick, |-|] (group c1r2.west) -- +(\plotwidth,0) node[midway, below, fill=yellow]{plotwidth =\plotwidth}; %% This gives a 'Overfull \hbox ' warning ================== \draw[red, thick, |-|, ] ([yshift=5mm]group c1r2.west) -- +(2*\plotwidth,0) node[midway, above, fill=yellow]{2*plotwidth =\plotwidth}; \end{tikzpicture} \end{document}
- Highlighting matrix multiplicationby Dimitrios ANAGNOSTOU on February 10, 2026 at 11:58 pm
I know there are several relevant questions on TeX Stack Exchange about nicely highlighting matrix multiplication, and some of them have excellent answers. I apologize if my question is a duplicate. I have managed to highlight the various entries manually, but it requires quite a bit of work. Is there a way to automate this procedure? \documentclass{article} \usepackage{amsmath, amssymb} \usepackage{xcolor} \usepackage[margin=1.5cm]{geometry} \begin{document} \section*{Matrix Multiplication} We want to compute the product \(AB\) for \[ A = \begin{bmatrix} 3 & 1 & -1 \\ -1 & 0 & 4 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & 1 & 3 \\ -1 & 3 & 4 \\ 0 & 2 & 5 \end{bmatrix}. \] We can illustrate the multiplication as follows, highlighting each row of \(A\) and each column of \(B\): \[ \begin{array}{c@{\hspace{2em}}c@{\hspace{1em}}c} & \begin{bmatrix} \color{blue}{2} & \color{orange}{1} & \color{purple}{3} \\ \color{blue}{-1} & \color{orange}{3} & \color{purple}{4} \\ \color{blue}{0} & \color{orange}{2} & \color{purple}{5} \end{bmatrix} & \\[1em] % \begin{bmatrix} \color{red}{3} & \color{red}{1} & \color{red}{-1} \\ \color{green}{-1} & \color{green}{0} & \color{green}{4} \end{bmatrix} & = & \begin{bmatrix} \underbrace{\color{red}{3}\cdot \color{blue}{2} + \color{red}{1}\cdot \color{blue}{-1} + \color{red}{-1}\cdot \color{blue}{0}}_{\color{black}{5}} & \underbrace{\color{red}{3}\cdot \color{orange}{1} + \color{red}{1}\cdot \color{orange}{3} + \color{red}{-1}\cdot \color{orange}{2}}_{\color{black}{4}} & \underbrace{\color{red}{3}\cdot \color{purple}{3} + \color{red}{1}\cdot \color{purple}{4} + \color{red}{-1}\cdot \color{purple}{5}}_{\color{black}{8}} \\[0.5em] % \underbrace{\color{green}{-1}\cdot \color{blue}{2} + \color{green}{0}\cdot \color{blue}{-1} + \color{green}{4}\cdot \color{blue}{0}}_{\color{black}{-2}} & \underbrace{\color{green}{-1}\cdot \color{orange}{1} + \color{green}{0}\cdot \color{orange}{3} + \color{green}{4}\cdot \color{orange}{2}}_{\color{black}{7}} & \underbrace{\color{green}{-1}\cdot \color{purple}{3} + \color{green}{0}\cdot \color{purple}{4} + \color{green}{4}\cdot \color{purple}{5}}_{\color{black}{17}} \end{bmatrix} \end{array} \] Thus, the final product is \[ AB = \begin{bmatrix} 5 & 4 & 8 \\ -2 & 7 & 17 \end{bmatrix}. \] \bigskip \textit{Note:} \(BA\) is not defined because \(B\) is \(3\times 3\) and \(A\) is \(2\times 3\); the number of columns of \(B\) (3) does not match the number of rows of \(A\) (2). In general, \(AB \neq BA\). \end{document}
- Another way to write powers?by Lara de Assumpcao Maffei Piero on February 10, 2026 at 10:43 pm
My new keyboard writes ^ as ˆ, and overleaf doesn't recognize these the same way. Is there an alternative symbol in latex for writting powers and indexes or some way to make overleaf recognize ˆ as ^?
- Numbering equations in dcases without \usepackage{empheq}by Sebastiano on February 10, 2026 at 9:09 pm
At the moment, I don't remember how to number the equations inside dcases , with the amsart class, without empheq, in order to assign a label to each one. \documentclass{amsart} \usepackage{mathtools} \begin{document} \begin{subequations} \begin{equation} \begin{dcases} 0 \le \frac{u+v}{2} \le 1 \\ 0 \le \frac{v-u}{2} \le 1 - \frac{u+v}{2} \end{dcases} \iff \begin{dcases} 0 \le u+v \le 2 \\ \label{Psojjn} 0 \le v-u \le 2 - (u+v) \end{dcases} \end{equation} \end{subequations} \end{document} Addendum: My desidered output.
- Creating Circular Domains with TikZ [closed]by Assuério Cavalcante on February 10, 2026 at 3:45 pm
First, apologies if this question has been asked before. I'm trying to create an image of a particular circular domain, but my limited TikZ knowledge has made this quite challenging. I've searched for similar examples online without success. Any guidance would be greatly appreciated!
- Interesting dashed linesby Dhairya Kumar on February 10, 2026 at 10:50 am
While writing down the above expression on Overleaf, I encountered the problem of drawing the dashed line in between the Left Hand Side and the Right Hand Side expressions. Do help me in writing it exactly that way. (I had written it in my own unique way, but without the dashed line, and would be intrigued to know if such a function existed.) My code & Output: \documentclass{article} \usepackage{amsmath} \begin{document} ARCTAN TERMS: \[\boxed{\sqrt{2}\zeta_1+1 \to \infty \implies \tan^{-1}(\sqrt{2}\zeta_1+1)\rightarrow \dfrac{\pi}{2}}\text{ and } \boxed{\sqrt{2}\zeta_1+1 \rightarrow -\infty \implies \tan^{-1}(\sqrt{2}\zeta_1+1)\to \dfrac{-\pi}{2}}\] \[\boxed{\sqrt{2}\zeta_1-1 \to \infty \implies \tan^{-1}(\sqrt{2}\zeta_1-1)\rightarrow \dfrac{\pi}{2}}\text{ and } \boxed{\sqrt{2}\zeta_1-1 \rightarrow -\infty \implies \tan^{-1}(\sqrt{2}\zeta_1-1)\to \dfrac{-\pi}{2}}\] Hence, \[\text{ Arctan terms evaluates to } \frac{\sqrt{2}}{4}\left(\frac{\pi}{2}+\frac{\pi}{2}-\left(\frac{-\pi}{2}-\frac{\pi}{2}\right)\right)=\frac{\pi}{\sqrt2}\] \end{document} Output: