Files
jlengrand.github.io/_posts/2012-05-21-insert-urls-into-a-latex-document.markdown
julien lengrand-lambert 553d103141 Fixes post with bash code
2014-02-09 17:43:14 +01:00

53 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
layout: post
status: publish
published: true
title: Insert urls into a Latex document
author: Julien Lengrand-Lambert
author_login: jlengrand
author_email: julien@lengrand.fr
author_url: http://www.lengrand.fr
wordpress_id: 598
wordpress_url: http://www.lengrand.fr/?p=598
date: 2012-05-21 13:18:59.000000000 +02:00
categories:
- tips
tags:
- latex
- url
- document
- texmaker
comments: []
---
A really simple tip today, that helped me a lot some time ago.
If you use <a title="latex" href="http://fr.wikipedia.org/wiki/LaTeX" target="_blank">LaTeX</a> to create your reports, you may want to include weblinks or urls.
The process is quite simple, simply include the url package in the header of your document
{% highlight bash %}
\usepackage{url}
{% endhighlight %}
and then insert your desired url :
{% highlight bash %}
\url{http://www.lengrand.fr}
{% endhighlight %}
You may want to play a bit, a there are different url styles. Here is a simple example
{% highlight bash %}
\urlstyle{rm}
{% endhighlight %}
Of course, all those links are still active after your pdf conversion!
Long time I haven't used Latex, I tend to write everything with <a title="GDocs" href="https://docs.google.com/a/spacemetric.com/#home" target="_blank">GDocs </a>now :)