I have a big problem regarding the menukeys package, which uses tikz to allow you to graphically represent menus/file paths. The major problem: no linebreaks. If a menu item happens to exceed the line length, instead of switching to a new line, it just keeps going endlessly (becoming unreadable).
So, my question is: How do I get the individual tikz drawings to adhere to line breaks?
For the record, I mean something like:
|---------||----------------------------||---------
Lorem ipsum dolor |sit amet || consectetur adipiscing elit|| sed do
|---------||----------------------------||---------
-------------------------|
eiusmod tempor incididunt| ut labore et dolore magna aliqua.
-------------------------|
I've already seen this wonderful post (Boxed text, multiline), but since I'm a LaTeX novice, I'm struggling to understand how it works and how I can apply it to the menu design I have to use (not by choice XD).
I'd be super-grateful if the community could help me figure this out!
Here's the current menu style code I'm using (sorry for the bleep-outs, but I don't want to get in trouble for revealing the custom macro names):
\usepackage{menukeys}
\copymenustyle{********}{roundedmenus}
\newmenustylesimple{xxxxxxxx}{%
tw@set@tikz@colors,
rounded corners=0.3ex,
inner sep=0pt,
inner xsep=2pt,
text height=1.825ex,
text depth=0.7ex,
minimum width=0.7ex,
font=\relsize{-1}\xxxfontnamexxx,
signal,
signal to=nowhere,
signal pointer angle=110,
}{gray}
\makeatletter
\tw@declare@style*{*******}{% create style manually due to signal to and signal from diffs
\tikz[baseline={($(tw@node.base)+(0,-0.2ex)$)}]{%
\node(tw@node)[tw@roundedmenus@base,font=\relsize{-1}\normalfont,signal to=east,fill=gray!25]%
{\strut\CurrentMenuElement};}%
}[\hspace{-0.2em}\hspace{0em plus 0.1em minus 0.05em}]%
{%
\tikz[baseline={($(tw@node.base)+(0,-0.2ex)$)}]{%
\node(tw@node)[tw@roundedmenus@base,font=\relsize{-1}\normalfont,signal from=west,signal to=east,fill=gray!25]%
{\strut\CurrentMenuElement};}%
}{% Last Item
\tikz[baseline={($(tw@node.base)+(0,-0.2ex)$)}]{%
\node(tw@node)[tw@roundedmenus@base,font=\relsize{-1}\normalfont\bfseries,color=white,signal from=west,fill=gray]%
{\strut\CurrentMenuElement};}%
}{% Other Items
\tikz[baseline={($(tw@node.base)+(0,-0.2ex)$)}]{%
\node(tw@node)[tw@roundedmenus@base,font=\relsize{-1}\normalfont,color=white,fill=gray]{\strut\CurrentMenuElement};}%
}{gray}
\makeatother
\renewmenumacro{\menu}{********} % default: menus
\renewmenumacro{\directory}{xxxxxxx} % default: paths
\renewmenumacro{\keys}{xxxxxxxxxx} % default: roundedkeys
\renewmenumacro{\directory}[/]{paths}
((btw, apologies for the (somewhat) duplicate post. I couldn't expand on the original since I posted that before I signed up to the site. orz))

menukeysdocumentation, there are multiplehyphenatepathsoptions that may solve your issue since they allow linebreaks. Test them and see if this helps – BambOo Sep 23 '19 at 11:16