Fonts & Character Sets ⇒ \L in math mode?
-
rvandegrift
- Posts: 4
- Joined: Sat Nov 20, 2010 9:45 pm
\L in math mode?
Is there any way to get an L with stroke (\L) in math mode? I've been using \mbox to date, but this causes botched formatting in some contexts (superscripts and subscripts are my particular pain points).
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\L in math mode?
Depending on your encoding you might also be able to use the character Ł directly. (E.g., with unicode/utf encoding and loading \usepackage[utf8]{inputenc}, I can use it.)
If you're having trouble getting it work right in a particular context, it would be helpful to see a minimal working example showing the problem.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\L in math mode?
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\L
\[
\L
\]
Ł
\[
Ł
\]
\end{document}Thorsten
- Attachments
-
- mathmodeL.log
- (13.12 KiB) Downloaded 284 times
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
rvandegrift
- Posts: 4
- Joined: Sat Nov 20, 2010 9:45 pm
\L in math mode?
Code: Select all
\documentclass{article}
\begin{document}
$\L$
\end{document}
Ross
- Attachments
-
- luk-test.log
- (2.15 KiB) Downloaded 313 times
Re: \L in math mode?
I'm attaching my log and the output. (I added \listfiles to the beginning of the code to get a file list, but it's so minimal I doubt it will be useful.)
- Attachments
-
- scratch.log
- (3.49 KiB) Downloaded 291 times
-
- scratch.pdf
- (8.32 KiB) Downloaded 440 times
-
rvandegrift
- Posts: 4
- Joined: Sat Nov 20, 2010 9:45 pm
\L in math mode?
Looks LaTeX kicks out the L with stroke as a non-math mode character. To see the difference, check out this:
Code: Select all
$x_L x_\LRoss
\L in math mode?
This makes them the same size:
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$x_{L} x_{\text{\L}}$
\end{document}
-
rvandegrift
- Posts: 4
- Joined: Sat Nov 20, 2010 9:45 pm
Re: \L in math mode?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\L in math mode?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10