TransWikia.com

How to typeset asymmetrical confidence level limits / uncertainties?

TeX - LaTeX Asked on July 1, 2021

Below is an example of an asymmetrical limit (or uncertainty)

enter image description here

How can I typeset this in a LaTeX equation? Such pair of numbers should be vertically stacked while being vertically center-aligned with rest of the equation.

Solution

$X^{+Y}_{-Z}$

2 Answers

Here's a way to stack asymmetrical limits using macro Vectorstack from package stackengine (based on further clarification you provide in comments to your question):

Output: Screenshot of output

Code:

documentclass{article}
usepackage{stackengine}
begin{document}
[
  %setstackgap{L}{baselineskip} % Uncomment and change this if you want to adjust vertical spacing between stacked content
  A = B 
  enskip Vectorstack{+0.60 -0.59}
  enskip textrm{cm}
]
end{document}

Answered by reportaman on July 1, 2021

I propose this solution using nccmath with the mrel.

documentclass[12pt]{article} 
usepackage{nccmath}
begin{document} $L=+0.39!mrel{+0.60[.12ex]-0.59} mathrm{cm}$
end{document}

Increasing the value of [...ex]:

documentclass[12pt]{article} 
usepackage{nccmath}
begin{document} $L=+0.39!mrel{+0.60[2ex]-0.59} mathrm{cm}$
end{document}

enter image description here

Answered by Sebastiano on July 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP