Tag Info

Hot answers tagged

6

\documentclass{article} \usepackage{url} \usepackage{pgffor} \usepackage{xparse} \usepackage{xstring} \usepackage[colorlinks=true]{hyperref} \NewDocumentCommand{\FormatLinks}{% s% #1 =* not used yet O{}% #2 = optional title m% #3 = Mandatory title m% #4 = URL Link }{% \par \hspace*{1.0cm}\href{#4}{#3\IfValueT{#2}{~#2}}% }% ...


4

Not sure I'd use xstring if you already have l3 and pgf loaded but anyway: \documentclass{article} \usepackage{url} \usepackage{pgffor} \usepackage{xparse} \usepackage{xstring} \usepackage[colorlinks=true]{hyperref} \NewDocumentCommand{\FormatLinks}{% s% #1 =* not used yet O{}% #2 = optional title m% #3 = Mandatory title m% #4 = URL ...


2

Here is an attempt at getting a bibliography as described in your post, made with biblatex: \documentclass[firstinits=true]{acm_proc_article-sp} \usepackage{biblatex} \usepackage{filecontents} \usepackage{xpatch} \begin{filecontents}{mybiblio.bib} @ONLINE{ pal:working, URL = "http://opensource.mit.edu/papers/madanmohan.pdf", ORGANIZATION= "{M}{I}{T} ...


2

You need to pass \PassOptionsToPackage{hyphens}{url} before the url package is loaded for the first time - which in your case is by biblatex. So if you change your code to: \documentclass[11 pt, letterpaper, oneside, openright]{book} \listfiles \usepackage[spanish]{babel} % Manejo de idiomas} \usepackage[utf8]{inputenc} \usepackage{csquotes} ...


1

The underscore _ is the problem. Normally the underscore is only allowed in math mode to start an index. That is why LaTeX/BibTex reports the error. You should escape the underscore, i.\,e. write \_. BUT, I guess from your question that you are doing somehing fundamentally wrong. Normally, there is the special field url={} that should be used in a bib-file, ...


1

After some time of debug, I finally found what was wrong or actually the package responsible for that malfunction. I was using BibLaTeX, and as the following minimal working examples prove it, we have to declare the line \PassOptionsToPackage{hyphens}{url} before BibLaTeX is declared. Working example, links packages are declared before : ...



Only top voted, non community-wiki answers of a minimum length are eligible