[Tex/LaTex] Latin Modern Math in LaTeX

fontslatin-modernpdftex

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 รจ)

Best Answer

First a side remark: With xelatex you should never load inputenc (you did it in your example).

Beside this: Theoretically it is possible to use symbols from an open type font in pdftex. But you need to create a tfm-file, you need to create enc-file(s) and a map-entry. And as pdftex can't subset open type you probably also need to split the open type and create various type1 fonts. This means a lot of work - and imho all this new files will count as "strange packages" and so your publisher will not like it. If you really don't want to use any other package you could perhaps cheat like this:

\documentclass{article}
\usepackage{lmodern}
\begin{document}
$\lbrack\!\lbrack x \rbrack\!\rbrack$
\end{document}