Fonts & Character SetsAbout characters < and >

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
cidmi.dovic
Posts: 4
Joined: Tue Aug 24, 2010 9:03 am

About characters < and >

Post by cidmi.dovic »

Hi,

I am using these configuration inputs
\RequirePackage[latin1]{inputenc}
\RequirePackage[spanish,activeacute]{babel}
and when I put on my text the caharacters < and > after the compilation latex changes them for ¡ and ¿ respectively.

Any idea?, is there a possible way to force a character via ascii code or something like that.

thanks in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

About characters < and >

Post by localghost »

It is essential to know exactly what you are doing. Therefore we need a minimal working example (MWE) [1]. These characters are nothing special thus should not cause trouble.

And by the way, the \RequirePackage command is for use in document classes or packages. For documents there is the \usepackage command.

[1] View topic: Avoidable mistakes


Best regards and welcome to the board
Thorsten
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

About characters < and >

Post by CrazyHorse »

Code: Select all

\usepackage[T1]{fontenc}
should help

Herbert
cidmi.dovic
Posts: 4
Joined: Tue Aug 24, 2010 9:03 am

Re: About characters < and >

Post by cidmi.dovic »

thank you

solved using
\RequirePackage[T1]{fontenc}
\RequirePackage[latin9]{inputenc}
\RequirePackage[spanish,activeacute]{babel}

yes it is a documment class.
cidmi.dovic
Posts: 4
Joined: Tue Aug 24, 2010 9:03 am

Re: About characters < and >

Post by cidmi.dovic »

The problem is that using T1 fontenc the quality of the output is worse.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

About characters < and >

Post by Stefan Kottwitz »

In that case use a font that supports T1 encoding. For instance the high quality Latin Modern font designed to be the successor of the standard fonts:

Code: Select all

\usepackage{lmodern}
Or, install the cm-super package containing the standard Computer Modern font in T1 encoding. In that case there's no change needed in your document.

Stefan
LaTeX.org admin
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

About characters < and >

Post by CrazyHorse »

cidmi.dovic wrote:The problem is that using T1 fontenc the quality of the output is worse.
try

Code: Select all

\usepackage{mathpazo}
or as an alternative

Code: Select all

\usepackage{mathpazo}
\usepackage{libertine}
Herbert
cidmi.dovic
Posts: 4
Joined: Tue Aug 24, 2010 9:03 am

Re: About characters < and >

Post by cidmi.dovic »

Thank you stefan, you are a crack!!!
Regards.
Post Reply