I need to change the aspect of the chapter's title. I tryed tikz, using this other thread: Is there is a package so you can add text with visual effects like "WordArt" from "Word"
This is my code:
\documentclass[twoside,fleqn]{book}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[explicit]{titlesec}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{fadings,decorations.text}
\titleformat{\chapter}[display]
{\flushleft\normalfont}
{} {20pt}
{%
\begin{tikzfadingfrompicture}[name=tikz]
\node at (-14,-3) [text=transparent!20]
{\fontfamily{ptm}\Huge\selectfont\textbf{\textsc{#1}} };
\end{tikzfadingfrompicture}
\begin{tikzpicture}
\shade[path fading=tikz,fit fading=false,
left color=red,right color=orange]
(-7,-1) rectangle (8,1);
\end{tikzpicture}
}
\begin{document}
\chapter{Not so long title}
\lipsum[1-2]
\chapter{Very very very very loooong title-Centered}
\lipsum[1-2]
\end{document}
But it's not aligned with the text, it's centered instead.
How can I align it to the left?
Can I also put the tikz title into a tcolorbox? I wanted a frame and the number..



tikzcode in theoverlayfeature oftcolorbox– Dec 14 '15 at 19:11