Text FormattingProblem with ifthenelse or ifmmode

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Problem with ifthenelse or ifmmode

Post by artemff »

Why such simple example generate error?

Code: Select all

\documentclass [a4paper, 12pt, oneside]{scrartcl}
\usepackage [cp1251] {inputenc}
\usepackage [english, russian] {babel}
\usepackage{indentfirst}
\usepackage{misccorr}
\usepackage{amsmath}
\usepackage{ifthen}
\begin{document}
$\ifthenelse{\ifmmode}{\text{В}}{В}$
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Re: Problem with ifthenelse or ifmmode

Post by artemff »

I have solved problem.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Problem with ifthenelse or ifmmode

Post by localghost »

Then please be so kind and post this solution here.


Best regards
Thorsten
Post Reply