1

This question already has an answer here:

I have a bigger table in my document, including several urls. I made them active with the \url{...}-command, and now I wanted to make them multi-line-cells by using the \specialcell{..\\..}-command, which is defined as

\newcommand{\specialcell}[2][c]{%
  \begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}

But this combination (\specialcell{\url{a\\b}}) does not result in a multi-line url, but instead in the url a\\b. Is there another way to get a multi-line url in a table cell?

marked as duplicate by Zarko, Community Jan 11 '16 at 19:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Try to use column type p{<width>}, than url` will break similarly as in text (with the same problems). Other options is use hyperref package: \hyperref[label_name]{''link text''} where you can more freely write you label (name of link). – Zarko Jan 11 '16 at 18:23
  • Can you maybe give me an example for p{<width>}? – arc_lupus Jan 11 '16 at 18:53
  • It will be better that you provide Minimal Working Example (MWE), which will show your problem. It should contain `\documentclass{...} <relevant packages and newcomand definitions> \begin{document} <your table with \url> \end{document}. I will then try to help you. – Zarko Jan 11 '16 at 18:58
  • 1
  • Then I suggest to close your question as duplicate to given link. – Zarko Jan 11 '16 at 19:01

Browse other questions tagged or ask your own question.