Text Formattingincluding url

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

including url

Post by rajini »

Hello all,
I am using scrreprt class for my CV.
As usual i need to include a url, which contains symbols like '~'. I used verbatim environment for the url but it leaves some space above the url (if i click on the url seen on pdf, the link open correctly).
If i use \url {http:www.sdfjn.de} then the '~' is not displaying on pdf so if i click on the url, link does not opens correctly. The purpose is for references..
my code

Code: Select all

\documentclass[paper=a4,fontsize=12pt,BCOR=0mm,DIV=12,oneside]{scrreprt}
\linespread{1.3}
\pagestyle{plain}
\KOMAoptions{DIV=last}
\parindent 0pt
\begin{document}
\begin{enumerate}
\item
Name name,\\
Some institute,\\
Address.\\
url...here is my problem\\
Ph.: 0000000000

\item
Name name,\\
Address\\
url...here is my problem\\
\end{enumerate}
\end{document}
thanks for your reply.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

Re: including url

Post by rajini »

Sorry i forgot to include the package before \begin{document}..
Now it works.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: including url

Post by Stefan Kottwitz »

Hi rajini,

besides the url package you could use the hyperref package.

Stefan
LaTeX.org admin
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

including url

Post by bkarpuz »

Hi rajini,

I use the following for myself.
In Preambles

Code: Select all

\usepackage{hyperref}
In Document

Code: Select all

\url{http://www2.aku.edu.tr/\string~bkarpuz}
Best regards.
bkarpuz
Post Reply