Hi everybody,
when I use the titlesec package to for leftmargin paragraph headings,
this headings will align perfectly with normal text, but they won't
align with an equation- or an itemize-environment in the first line.
How do I make them align?
See this pdf for a visualisation of the problem:
http://www.scribd.com/doc/36184235/Titl ... eft-Margin
Code:
\documentclass[]{article}
\usepackage{geometry}
\geometry{a4paper,left=9cm,right=3cm, top=2cm, bottom=3cm}
\usepackage{titlesec}
\titleformat{\paragraph}[leftmargin]{\normalfont\vspace{14pt}\sffamily
\filleft}{\theparagraph}{0em}{}[]
\titlespacing{\paragraph}{15pc}{-0.5pc}{1pc}
\begin{document}
\paragraph{Was versteht man unter einer Draisine bzw. einer
Laufmaschine?}
Die Draisine oder Laufmaschine (so auch der vom Erfinder verwendete
Name) ist ein einspuriges, von Menschenkraft betriebenes Fahrzeug ohne
Pedale, das als Urform des heutigen Fahrrads gilt.
\paragraph{Wie viel ist dreizehn mal acht?}
\begin{equation}
7\times8=8+8+8+8+8+8+8+8+8+8+8+8+8=56
\end{equation}
\paragraph{Aus welchen Zutaten besteht Schokolade?}
\begin{itemize}
\item Kakao
\item Milch
\item Zucker
\end{itemize}
\end{document}
Thanks for any ideas,
Mcforgi
Page Layout ⇒ titlesec - problem with aligning paragraphs headings
titlesec - problem with aligning paragraphs headings
- Attachments
-
- titlesec_paragraph_leftmargin.PDF
- (42.96 KiB) Downloaded 199 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
titlesec - problem with aligning paragraphs headings
For your information this topic has been posted to at least three forums at the same time.
Other forums:
Stefan
Other forums:
- http://stackoverflow.com/questions/3534 ... gin-option
- goLaTeX.de (removed)
Stefan
LaTeX.org admin
titlesec - problem with aligning paragraphs headings
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: titlesec - problem with aligning paragraphs headings
Thanks gmedina,
I would have helped (probably easier than to talk about crossposts), but I feel a bit fooled being asked to solve a problem without knowing that other places are already on it as well.
Stefan
I would have helped (probably easier than to talk about crossposts), but I feel a bit fooled being asked to solve a problem without knowing that other places are already on it as well.
Stefan
LaTeX.org admin