Comments (10)
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.
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.
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.
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.
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.
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.
Original comment by Juan Luis Varona (Bitbucket: jvarona, GitHub: Unknown):
The file generated with T1 and without beamer.
Juan Luis
from beamer.
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.
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
\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.
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)
- overlayarea takes space even with height 0 HOT 5
- `allowframebreaks` is not honored for labeled slides HOT 1
- Labeled `fragile=singleslide` frames are shown despite `<all:0>`
- appendixframenumber does not work with frame numbers HOT 4
- Displacement of `column` with action specification HOT 3
- The use of `The use of this option is evil` is evil HOT 5
- Undefined `\beamer@andstripped` when `usepdftitle=false` with `Bergen` theme HOT 4
- `hyperref` Warning: "Glyph not defined in PU encoding" in `title`, `author`, etc., for non-Unicode input encoding HOT 12
- Adjusting text height in own beamer template HOT 6
- Font inheritance in blocks HOT 1
- Overlay command creates spurious spacing for + infty
- Footline Missing When Storing Frame in a Box HOT 3
- Setting `\hypersetup{citecolor=...}` has no effect on `\cite{...}`? HOT 4
- Strange looking vertical skip in headline of outer scheme `miniframes` HOT 2
- Tabel of contents HOT 1
- in article mode, \newline fails if ragged2e is used HOT 2
- Please enable Beamer notes (including the "show only notes" beamer option) in article mode. HOT 2
- support `\@currentHpage`
- Something's wrong with 'structure'. HOT 3
- define \fnum@table HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beamer.