Is there a way to get n shorter strings out of a long one in Latex? Let's say I have something like \title{A very long title} and I want it to be broken into two pieces such that I can later use colorbox{red}{A very} and \color{blue}{long title}. The break point should be calculated through a distance provided by the user.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
||||
| show 1 more comment |
|
I don't think you need anything special for the
is all you need. You can abstract it with new commands:
|
||||
|
|


\title, yes, but you'll have to store the content first/before\maketitlesince most document classes remove\@title- the placeholder macro. By distance, you mean characters? – Werner Oct 22 '12 at 14:11\title{}command was just an example. What I have in mind is related to the\chapter{}command. – pluton Oct 22 '12 at 14:57The story of\\my lifewould probably be better split asThe story\\of my life. – egreg Oct 22 '12 at 21:04\chapter[optional]{substring1}{substring2}should be designed? – pluton Oct 23 '12 at 0:11