Giter Club home page Giter Club logo

Comments (10)

josephwright avatar josephwright commented on August 24, 2024

Original comment by Jhabriel Varela (Bitbucket: jhabriel, GitHub: jhabriel):


I successfully fixed this problem adding in the options of the document class declaration mathserif. This changes the font in the math mode and all the accents work perfectly.

So, my first line is like this:
\documentclass[10pt,a4paper,mathserif]{beamer}

This should work.
Regards

Jhabriel

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Joseph Wright (Bitbucket: josephwright, GitHub: josephwright):


This is a more general font issue, and changing the behaviour at the beamer end would be a bad idea at this stage.

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Vedran Miletić (Bitbucket: rivanvx, GitHub: Unknown):


I would like to make first release as soon as possible, so this will not go into it, but I have this in mind.

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Vedran Miletić (Bitbucket: rivanvx, GitHub: Unknown):


If it's possible, and if it's a Beamer issue (and not fonts or something else), it will be fixed. I'm kind of busy right now, but I will look into it after we make a first release.

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Juan Luis Varona (Bitbucket: jvarona, GitHub: Unknown):


Good idea, Nico.

Indeed, I usually use \usepackage{lmodern} instead of traditional cmr when I write in spanish, but with T1. (I didn't include lmodern in my example to have a minimal example.)

To use LY1 seems to be a good workaround.

In any case, I think that the problem with T1 should bi fixed.

Yours,

Juan Luis

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Nico Schlömer (Bitbucket: nschloe, GitHub: nschloe):


Hi Juan,

yes, you are right: I see exactly what you reported.

I don't know what the error is here, but I reckon that is something that needs to be fixed within beamer anyway.

I tried a bit further and used the LY1 encoding (TeX 'n ANSI) which has become quite popular over the last years; with the standard TeX fonts, that won't work (as they don't include sans-serif LY1 encoded fonts), but if you load the lmodern package (which I'd recommend you to do anyway when working with accented characters), you get fine result:

\usepackage{lmodern}
\usepackage[LY1]{fontenc}

Cheers,

Nico

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Juan Luis Varona (Bitbucket: jvarona, GitHub: Unknown):


The file generated with T1 and without beamer.

Juan Luis

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Juan Luis Varona (Bitbucket: jvarona, GitHub: Unknown):


[Ignore this message; I do not how to remove this "Bump" whose meaning I do not understand. Sorry.]

Bump!

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Juan Luis Varona (Bitbucket: jvarona, GitHub: Unknown):


Dear Nico,

[Sorry for my English]

With article, your example does not undesidered results (at least, with TeXLive 2009). With beamer, the results are indeed undesidered.

Actually, I think that it is a beamer problem.

Beamer assign the mathematical font with accents to T1, instead of using OT1.

This means that when it looks in the position "13 (where \acute points),
he does not found the accent (OT1) but the quote (T1).

Without spanish, the problem can be reproduced with

\documentclass[10pt]{beamer}

\usepackage[T1]{fontenc}

\begin{document}
\begin{frame}

Without babel, the problem also arises with

$\mathrm{\acute{o}}$

\end{frame}

\end{document}

If it fails with spanish with \min, \max, it is because he uses some similar to \mathrm

Juan Luis

from beamer.

josephwright avatar josephwright commented on August 24, 2024

Original comment by Nico Schlömer (Bitbucket: nschloe, GitHub: nschloe):


Hi Juan (?),

this may not strictly be a beamer issue.

Get sans serif font to work properly in LaTeX is unfortunately a bit of a mess; common ways to achieve it may be to

\usepackage{sfmath}

With this, the file

% \documentclass{beamer}
\documentclass{article}

\usepackage[spanish]{babel}

\renewcommand{\familydefault}{\sfdefault}
\usepackage{sfmath}

\usepackage[T1]{fontenc}

\title{Spanish accented math operators do not works with T1 and beamer}

\author{Juan Luis Varona
President of Cervan\TeX, the Spanish TeX Users Gropup
http://www.cervantex.es}

\date{}

\begin{document}

In spanish, you write, for instance, ``m\'aximo'', and ``l\'imite'', and the corresponding math operators max and lim (with backslash, of course) automatially put the accent. But you get horrible results with beamer if you use T1 encoding:

\[ \max\{ 2, 3 \} = 3. \]

\[ \lim_{n \to \infty} \frac1n = 0 \]

They works properly without T1 enconding or without beamer.

\end{document}

generates the exact same undesired results. Don't know if beamer is using sfmath as well, and if there are better alternatives to it. I'd certainly be worth looking into this I believe.

Cheers,
Nico

from beamer.

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.