Home > latex, perl > Replace accents for LaTeX

Replace accents for LaTeX

I have two simple scripts for LaTeX for working with special accented characters. They are made for Hungarian and French but they can be customized easily for other languages too.

replace_latex_accents.pl
This script allows you to write special Hungarian and French characters in a simple way (using the ISO-8859-1 (Latin-1) charset), then convert them to their LaTeX-equivalents.

Example: La'szlo' => L\'{a}szl\'{o}

replace_french_accents_to_latex.pl
This script converts a French accented text to LaTeX replacing the funny characters with their LaTeX equivalents.

Example: é => \'{e}

The scripts are available here.

Related stuff

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 80 other followers

%d bloggers like this: