It seems that Latin Modern Math font works fine only with XeTeX and LuaTeX. Is it possible to use Latin Modern Math font with LaTeX and pdfLaTeX?
The publisher requires that I use LaTeX/pdfLaTeX, so using XeTeX or LuaTeX is not an option. I cannot use strange packages, I have to use minimal additional packages. The article's font is Latin Modern and the encoding of the file is set to uft8 and I am not permitted to change these.
I want to use the \lBrack
symbol in Latin Modern Math font. The font is defined according to Unicode Math Symbols in Latin Modern Math. However, when I use \lBrack
pdfLaTeX tells me that \lBrack
is not defined. The issue is not the command \lBrack
itself. I don't mind defining it. I just want to have the symbol for \lBrack
(Unicode 027E6) from the Latin Modern Math font appear in my output, i.e. the PDF file generated by pdfLaTeX.
I don't want to use other packages that provide similar symbols, it is not an option.
If I were using XeLaTeX I could have written something like:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{unicode-math}
\pagestyle{empty}
\begin{document}
$\lBrack$
\end{document}
But as I wrote I am not allowed to use XeLaTeX and have to use pdfLaTeX. If I run pdfLaTeX on the same code I get an error because unicode-math
requires XeLaTeX or LuaTex engine.
Essentially, I want to has some command without add anymore packages which does what the code above does in XeLaTeX.
I have tried to directly access the charter but it doesn't seem to work. For example, I tried:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amssymb}
\pagestyle{empty}
\begin{document}
$\mathsf{\mathbf{}}$
${\mathchar"027E8}$
\end{document}
This does compile with pdfLaTeX but it doesn't work correctly: it produces another character, not \lBrack
.
ps: I don't have a clue why I need to put \mathsf{\mathbf{}}
there, neither I understand why I need the amssymb package
, but without these it doesn't compile. It gives an error
\textfont 7 is undefined (character è)
\usepackage{lmodern}
in your preamble? – Werner Jul 8 '13 at 1:40nath
package. – A.Ellett Jul 8 '13 at 2:24\lBrack
is not defined, but you need to load a package which provides that command: I was suggestingnath
. Maybe you should post a MWE so we can better understand what's not working for you. – A.Ellett Jul 8 '13 at 2:40