Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
%url package
\usepackage{url}

%code that makes URL font the same
\newcommand{\urlwofont}[1]
{
\urlstyle{same}\url{#1}
}

\begin{figure}[htbp]
    \centering
    \includegraphics[width=8cm, scale=0.55]{../Figures/~}
    \caption{\small ~).
\protect\urlwofont{http://www.google.com/~}}
    \label{~}
\end{figure}

I am using this sequence when stating reference URL for figures.

However, how can I make this URL bold?? I tried to use {\bf}, but I don`t know where to put it or how to use it. Can anybody give advice for this?

share|improve this question
    
Hi Michita, welcome to tex exchange! I indented your code snippets by clicking on the {} icon, and used backticks to highlight your {\bf}. I also removed the thanks- it may sound strange, but the best way to thank folks is to 'upvote' (and hopefully, accept) their answers :) –  cmhughes Mar 9 '12 at 22:36
add comment

2 Answers

\documentclass{article}
\pagestyle{empty}
\usepackage{url}  % or \usepackage{hyperref}
\begin{document}

Normal font:
\url{http://tex.stackexchange.com/}


Bold:
\def\UrlFont{\bfseries}
\url{http://tex.stackexchange.com/}
\end{document}

enter image description here

share|improve this answer
    
Thank you for your advice. It really helped me a lot! –  Michita Mar 9 '12 at 23:49
add comment

You may use UrlFont like this:

\def\UrlFont{\bfseries\rmfamily}  
\url{This is bold roman}
share|improve this answer
    
Thanks~ it works very well!! –  Michita Mar 9 '12 at 23:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.