ROI in LaTeX (\text{ROI})
- LaTeX command
\text{ROI}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Text and math mode
Where it is used
Return on investment: the gain from an investment relative to its cost, usually expressed as a percentage.
ROI is computed as \text{ROI} = (\text{gain} - \text{cost}) / \text{cost}, often multiplied by 100\% for display. Unlike IRR, it ignores the timing of cash flows, so annualized variants are used for multi-year comparisons. Typesetting it with \text keeps the letters upright and spaced as a word; typed raw in math, R, O, and I become italic variables, and the O can be mistaken for a zero. In fractions, use \frac with \text pieces in the numerator and denominator, or \dfrac in inline paragraphs to keep it readable.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
ROI: $\text{ROI}$
\[ \text{ROI} = \frac{\text{gain} - \text{cost}}{\text{cost}} \times 100\% \]
\end{document}Related symbols
- Summation
\sum_{t=1}^{n} - IRR
\text{IRR} - Present Value
\frac{C}{(1+r)^t} - NPV
\text{NPV} - Compound Interest
A = P(1 + r/n)^{nt} - Basis Point
\text{bp}
Frequently asked questions
- How do I write ROI in LaTeX?
- Type \text{ROI} in math mode, for example $\text{ROI} = \frac{\text{gain} - \text{cost}}{\text{cost}} \times 100\%$. Load amsmath first with \usepackage{amsmath}.
- Which package do I need for \text{ROI}?
- \text{ROI} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
- Can I use \text{ROI} in text mode, or only in math mode?
- Both. \text{ROI} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기