For some reason, I have been unable to wrap an href within a table using the solutions presented here: Wrapping long lines that contain no spaces And, here: Forcing linebreaks in \url
Any suggestions or guidance is much appreciated!
Here is my MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{longtable}
\usepackage{array}
\usepackage{booktabs}
\usepackage{libertinus}
\usepackage{silence}
\WarningsOff[everypage]
\usepackage{everypage}
\pagenumbering{gobble}
\usepackage[hidelinks]{hyperref}
\hypersetup{pdfhighlight=/N}
\usepackage[margin=1cm, top=0cm, bottom=0cm]{geometry}
\usepackage{seqsplit}
\newcommand\wrap[2]{
\begin{minipage}{#1}
\seqsplit{#2}
\end{minipage}
}
\newcommand{\myorg}{\textbf{myorg}}
\newcommand{\mypublishingcompany}{\href{https://myorg.org}{myorg.org}}
\newcommand{\mycompany}{\href{https://myorg.com}{myorg.com}}
\newcommand{\ethaddressrawlink}[1]{\href{https://etherscan.io/address/#1}{#1}}
\newcommand{\ipfsrawlink}[1]{\href{https://ipfs.io/ipfs/#1}{#1}}
\newcommand{\nftaddress}{0x47fc890be8b1070c114bdff796915e4952fcf6a7}
\newcommand{\cidaddress}{QmUduh3i1YVgWd7bbjcvnFgnbF48uD7rJ6er2ogcA6gyrj}
\begin{document}
\color{blue}
\footnotesize
\begin{longtable}[l]{@{}p{1.5cm}
>{\raggedright\arraybackslash}p{1.5cm}
>{\raggedright\arraybackslash}p{3.5cm}
>{\raggedright\arraybackslash}p{3.5cm}@{}}
\toprule
\textbf{URL} & \textbf{Version} & \textbf{NFT} & \textbf{CID} \\
\midrule
\textit{\mycompany} & $1.0i$ & \textcolor{red}{\textsl{\ethaddressrawlink{\nftaddress}}} & \textcolor{teal}{\textsl{\ipfsrawlink{\cidaddress}}}\\
\\
\textit{\mypublishingcompany} & $1.1o$ & \wrap{2.5cm}{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} & \wrap{3.3cm}{zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz}\\
\\
\textit{\mypublishingcompany} & $1.0o$ &
\lipsum[1] & \lipsum[1]\\
\\
\bottomrule
\end{longtable}
\end{document}
longtablein aminipage?? the former has the sole purpose of allowing page breaks, the latter has the sole purpose of preventing page breaks – David Carlisle Jun 17 '23 at 11:00longtable. – Steven Jun 17 '23 at 21:55