I have the following code:
\documentclass[parskip=half-]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[]{microtype}
\usepackage{hyperref}
\usepackage{geometry}
\usepackage{ragged2e}
\usepackage{makecell,xltabular}
\justifying
\geometry{
a4paper,
% includeheadfoot,
left=15mm,
right=15mm,
top=25mm,
bottom=25mm,
}
\usepackage[headsepline,plainheadsepline,manualmark]{scrlayer-scrpage}
\usepackage[bottom]{footmisc}
\begin{document}
\ttfamily
\begin{xltabular}{\linewidth}{|p{0.2\linewidth}p{0.2\linewidth}lX|}
\hline {\bfseries Address} & {\bfseries Name} & {\bfseries Value} & {\bfseries Description}\\\hline\hline\endfirsthead
\multicolumn{4}{r}{continued from previous page} \\
\hline {\bfseries Address} & {\bfseries Name} & {\bfseries Value} & {\bfseries Description}\\\hline\hline\endhead
\multicolumn{4}{r}{continued on next page} \\\endfoot
\endlastfoot
0x0000 & \hyperref[mylabel]{AAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBB} & 0x00000000 & General purpose control register General purpose control register General purpose control register General purpose control register\\\hline
\end{xltabular}
\label{mylabel}
\end{document}
The second column has a long word that is not wrapped.
How do I make it wrap and be contained within the cell? I also don't want the hyphenation character to be attached.
Best Answer
I suggest you either load the
seqsplit
package and encase the long string in a\seqsplit
directive or load thexurl
package and encase the long string in a\path
directive;\nolinkurl
works too.