Text Formatting<x>

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

<x>

Post by helllo »

Hi,
I'm trying to type <x> in Latex.
any help please ?
Thanks.
Last edited by helllo on Mon Aug 23, 2010 2:15 pm, edited 1 time in total.

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

<x>

Post by php1ic »

I'll assume you have tried typing <x> in maths mode

Code: Select all

\documentclass[a4paper,11pt]{article}

\begin{document}

\[\langle x \rangle\]

\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

<x>

Post by Stefan Kottwitz »

If you acidentally typed <x> in text mode, it would not work in standard font encoding. < and > would not be shown in the outpout. If you add

Code: Select all

\usepackage[T1]{fontenc}
both symbols will correctly be shown. Just to mention, that using T1 would be a good idea. See perhaps [url=Special LaTeX characters]Special LaTeX characters[/url].

Though math should be typed in math mode of course.

Stefan
LaTeX.org admin
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

<x>

Post by helllo »

Hi,
here is the way i did it at first :

Code: Select all

The class of x is denoted by : $<x>$.
but it was too big (I'm talking about < and >, they were more like smaller than and greater than, than the actual thing I wanted).
But it works well the way php1ic advised.
Thanks.
Post Reply