add tag
mirabilos
In this example…

```
\documentclass{article}%
\usepackage[bf,sf,raggedright]{titlesec}%
\usepackage{parskip}%
\titleformat{name=\subsubsection,numberless}{\normalfont\normalsize\bfseries}{\textbullet}{0.5em}{}%

\begin{document}

blub

\subsubsection*{2010–2020: foo, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, blah}

blub

\end{document}
```

… the subsubsection title is indented on the second line by the bullet, but ideally I want to save the horizontal position of the `foo` (i.e. after colon+space of the year span) and use that as indent for the second line.

Something like this:

```
blub

• 2010–2020: foo, bar, baz, bar, baz, bar,
             baz, bar, …, blah
             
blub
```
Top Answer
samcarter
You could place the second part of the title in a parbox:


```
\documentclass{article}%
\usepackage[bf,sf,raggedright]{titlesec}%
\usepackage{parskip}%
\titleformat{name=\subsubsection,numberless}{\normalfont\normalsize\bfseries}{\textbullet}{0.5em}{}%

\begin{document}

blub

\subsubsection*{2010–2020: \parbox[t]{9.6cm}{foo, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, bar, baz, blah}}

blub

\end{document}
```

![Screenshot 2025-03-08 at 16.52.36.png](/image?hash=294ac18843072b6f34af698661b4424b416ec932550952e8574c98d5cec9c139)

One could calculate the width of the parbox automatically, but assuming that the year ranges probably all have a similar width, one could simply start with some big length, say 15cm and then check the .log file for the overfull box warning to see how much smaller the box needs to be.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.