Git Product home page Git Product logo

Comments (3)

wspr avatar wspr commented on May 27, 2024

I should have known what the problem was.

After not assigning the tt family, the a-zA-Z are still mapped to their unicode ranges. So trying to use another font with mathtt works in this example, but something like LM does not.

The solution is to be able to assign/remap ascii input into ascii output for arbitrary "styled" fonts, which is the gist of #28. E.g., if I don't have any fonts with sf maths, then I should be able to use, say, Lucida even though it's not strictly a maths font. (The mathspec package does this already.) And if I don't have mathtt, then I should be able to use Inconsolata.

Keep an eye out on issue #28.

from unicode-math.

jcsalomon avatar jcsalomon commented on May 27, 2024

URLs are still broken.
\documentclass{minimal}
\usepackage{unicode-math}
\setmainfont{Constantia}
\setmonofont{Consolas}
\setmathfont{Cambria Math}
\usepackage{url}
\begin{document}
Work in progress is publicly visible on my blog,
\url{http://optimalcontrol.wordpress.com/}.
\end{document}
The URL is set looking like :// . . /, with the appropriate number of blanks. TeXworks says only Constantia & Consolas are present in the PDF, so it’s not trying to use a mathtt alphabet from Cambria Math.

Please re-open. I’d consider this issue a CTAN blocker.

from unicode-math.

hdatma avatar hdatma commented on May 27, 2024

Refs.
TeXlive 2011, up to date

MWE:

\documentclass{minimal}
\usepackage{unicode-math}
\setmathfont{AsanaMath}
\usepackage{url}
\begin{document}
Text: \url{http://www.github.com}. More text.
\end{document}

Error:

lualatex test2
This is LuaTeX, Version beta-0.70.1-2011062107 (rev 4277)
restricted \write18 enabled.
(./test2.tex
LaTeX2e <2011/06/27>
[...]/local/texlive/2011/texmf-dist/tex/latex/base/minimal.cls
[...]/local/texlive/2011/texmf-dist/tex/latex/unicode-math/unicode-math.sty
[...]/local/texlive/2011/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty
...
! Undefined control sequence.
\Url@FormatString

l.7

?

Output after forcing:

Text: ://... More text.

No link at all is created.

from unicode-math.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.