<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"  
	xmlns:dc="http://purl.org/dc/elements/1.1/"  
	>  
<channel>
	<title>Comments on: Fancy chapter headings with TikZ</title>
	<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/</link>
	<description>Typography with TeX and LaTeX</description>
	<pubDate>Sat, 13 Mar 2010 21:33:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Stefan Kottwitz</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-735</link>
		<dc:creator>Stefan Kottwitz</dc:creator> 
		<pubDate>Thu, 11 Mar 2010 18:18:25 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-735</guid>
		<description>Hi Kevin!

Thank you for your comment. We all were LaTeX beginners at some time. Concerning your question, you could use foot commands of fancyhdr or scrpage, further change the relation to the current page node, like south west instead of north west. Here's the comment #11 modified with this intention:

&lt;pre lang="LaTeX"&gt;
\documentclass[svgnames]{scrartcl}
\usepackage[automark]{scrpage2}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{tikz}
\newcommand*\tikzhead[1]{%
  \begin{tikzpicture}[remember picture,overlay]
    \node at (current page.south west)
      {\begin{tikzpicture}[remember picture, overlay]
        \draw[fill=LightSkyBlue] (0,0) rectangle
          (\paperwidth,2cm);
        \node[anchor=east,xshift=.9\paperwidth,
              yshift=2cm,rectangle,
              rounded corners=15pt,inner sep=11pt,
              fill=MidnightBlue]
              {\color{white}#1};
       \end{tikzpicture}
      };
   \end{tikzpicture}}
\clearscrheadings
\ifoot{\tikzhead{Page \thepage}}
\pagestyle{scrheadings}
\begin{document}
\tableofcontents
\clearpage
\blinddocument
\end{document}
&lt;/pre&gt;

Stefan</description>
		<content:encoded><![CDATA[<p>Hi Kevin!</p>
<p>Thank you for your comment. We all were LaTeX beginners at some time. Concerning your question, you could use foot commands of fancyhdr or scrpage, further change the relation to the current page node, like south west instead of north west. Here&#8217;s the comment #11 modified with this intention:</p>

<div class="wp_syntax"><div class="code"><pre class="latex"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">svgnames</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>[<span style="color: #2222D0; font-weight: normal;">automark</span>]{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>[<span style="color: #2222D0; font-weight: normal;">english</span>]{<span style="color: #2222D0; font-weight: normal;">babel</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">blindtext</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">tikz</span>}
<span style="color: #800000; font-weight: normal;">\newcommand</span>*<span style="color: #800000; font-weight: normal;">\tikzhead</span>[<span style="color: #2222D0; font-weight: normal;">1</span>]{<span style="color: #808080; font-style: italic;">%</span>
  <span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">tikzpicture</span>}[<span style="color: #2222D0; font-weight: normal;">remember picture,overlay</span>]
    <span style="color: #800000; font-weight: normal;">\node</span> at (current page.south west)
      {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{tikzpicture</span>}[<span style="color: #2222D0; font-weight: normal;">remember picture, overlay</span>]
        <span style="color: #800000; font-weight: normal;">\draw</span>[<span style="color: #2222D0; font-weight: normal;">fill=LightSkyBlue</span>] (0,0) rectangle
          (<span style="color: #800000; font-weight: normal;">\paperwidth</span>,2cm);
        <span style="color: #800000; font-weight: normal;">\node</span>[anchor=east,xshift=.9<span style="color: #800000; font-weight: normal;">\paperwidth</span>,
              yshift=2cm,rectangle,
              rounded corners=15pt,inner sep=11pt,
              fill=MidnightBlue]
              {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\color</span>{white</span>}#1};
       <span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">tikzpicture</span>}
      };
   <span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">tikzpicture</span>}}
<span style="color: #800000; font-weight: normal;">\clearscrheadings</span>
<span style="color: #800000; font-weight: normal;">\ifoot</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\tikzhead</span>{Page <span style="color: #800000; font-weight: normal;">\thepage</span></span>}}
<span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}
<span style="color: #800000; font-weight: normal;">\tableofcontents</span>
<span style="color: #800000; font-weight: normal;">\clearpage</span>
<span style="color: #800000; font-weight: normal;">\blinddocument</span>
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</pre></div></div>

<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-732</link>
		<dc:creator>Kevin</dc:creator> 
		<pubDate>Tue, 09 Mar 2010 17:37:15 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-732</guid>
		<description>Wow! this is great code and helpful comments!  I'm a very bad LaTeX noob and this is very insightful.  One question:  Is there any way to make this bar appear at the bottom of the page (with the page number embedded into it) instead of the top?</description>
		<content:encoded><![CDATA[<p>Wow! this is great code and helpful comments!  I&#8217;m a very bad LaTeX noob and this is very insightful.  One question:  Is there any way to make this bar appear at the bottom of the page (with the page number embedded into it) instead of the top?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Kottwitz</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-728</link>
		<dc:creator>Stefan Kottwitz</dc:creator> 
		<pubDate>Mon, 08 Mar 2010 20:17:20 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-728</guid>
		<description>Hi,

that's no problem if you would use the &lt;a href="http://ctan.org/pkg/titlesec" rel="nofollow"&gt;titlesec&lt;/a&gt; package, try this example:
&lt;pre lang="LaTeX"&gt;
\documentclass[a4paper,10pt]{book}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{lmodern}
\usepackage{fixltx2e}
\usepackage{titlesec}
\titleformat{\chapter}[display]
  {\fontsize{80pt}{90pt}\selectfont\bfseries}
  {\thechapter}{20pt}{\Huge}
\begin{document}
\Blinddocument
\end{document}
&lt;/pre&gt;
titlesec provides many features to customize chapter headings. The &lt;a href="http://ctan.org/pkg/fncychap" rel="nofollow"&gt;fncychap&lt;/a&gt; package offers more chapter heading styles.

Stefan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>that&#8217;s no problem if you would use the <a href="http://ctan.org/pkg/titlesec" rel="nofollow">titlesec</a> package, try this example:</p>

<div class="wp_syntax"><div class="code"><pre class="latex"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper,10pt</span>]{<span style="color: #2222D0; font-weight: normal;">book</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>[<span style="color: #2222D0; font-weight: normal;">english</span>]{<span style="color: #2222D0; font-weight: normal;">babel</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">blindtext</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">lmodern</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fixltx2e</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}
<span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\chapter</span></span>}[<span style="color: #2222D0; font-weight: normal;">display</span>]
  {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\fontsize</span>{80pt</span>}{<span style="color: #2222D0; font-weight: normal;">90pt</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\bfseries</span>}
  {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\thechapter</span></span>}{<span style="color: #2222D0; font-weight: normal;">20pt</span>}{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span></span>}
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}
<span style="color: #800000; font-weight: normal;">\Blinddocument</span>
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</pre></div></div>

<p>titlesec provides many features to customize chapter headings. The <a href="http://ctan.org/pkg/fncychap" rel="nofollow">fncychap</a> package offers more chapter heading styles.</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: -</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-727</link>
		<dc:creator>-</dc:creator> 
		<pubDate>Fri, 05 Mar 2010 15:56:47 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-727</guid>
		<description>Hi Stefan,

I'm a LaTeX noobie just started working with it.
I want to have a chapter title without the chapter part and a big number instead of a small. I found out how to do the first part, but i cant get a bigger number.

i want this for example:

"a big number" 2.
title name: Introduction

tnx.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I&#8217;m a LaTeX noobie just started working with it.<br />
I want to have a chapter title without the chapter part and a big number instead of a small. I found out how to do the first part, but i cant get a bigger number.</p>
<p>i want this for example:</p>
<p>&#8220;a big number&#8221; 2.<br />
title name: Introduction</p>
<p>tnx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vahid Damanafshan</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-699</link>
		<dc:creator>Vahid Damanafshan</dc:creator> 
		<pubDate>Fri, 12 Feb 2010 19:20:56 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-699</guid>
		<description>Hi Stefan,
Thank you so much. The example is online at:
http://vdamanafshan.blogspot.com/2010/02/fancy-chapter-headings-with-tikz.html</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
Thank you so much. The example is online at:<br />
<a href="http://vdamanafshan.blogspot.com/2010/02/fancy-chapter-headings-with-tikz.html" rel="nofollow">http://vdamanafshan.blogspot.com/2010/02/fancy-chapter-headings-with-tikz.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Kottwitz</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-698</link>
		<dc:creator>Stefan Kottwitz</dc:creator> 
		<pubDate>Wed, 10 Feb 2010 22:57:07 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-698</guid>
		<description>Hi Vahid,

of course you can add it, feel free to use the code. Perhaps provide a link back to this page allowing the visitors of your blog to read the discussion and examples here as well.

Best regards,

Stefan</description>
		<content:encoded><![CDATA[<p>Hi Vahid,</p>
<p>of course you can add it, feel free to use the code. Perhaps provide a link back to this page allowing the visitors of your blog to read the discussion and examples here as well.</p>
<p>Best regards,</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vahid damanafshan</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-696</link>
		<dc:creator>vahid damanafshan</dc:creator> 
		<pubDate>Wed, 10 Feb 2010 20:57:49 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-696</guid>
		<description>Dear Stefan,
Thank you for this example. Can I add the above example to my blog?</description>
		<content:encoded><![CDATA[<p>Dear Stefan,<br />
Thank you for this example. Can I add the above example to my blog?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-678</link>
		<dc:creator>Jennifer</dc:creator> 
		<pubDate>Fri, 15 Jan 2010 20:41:23 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-678</guid>
		<description>Hi Stefan,

I am currently writing on my Uni thesis and because I really enjoy good looking layouts and liked your idea, I was wondering if you could answer me two questions (Please not that I am fairly new to Latex):

1. Is it possible to split the chapter number and chapter name into 2 different boxes?

2. Can I fill the big lightskyblue box with external pictures (i.e. jpgs or similar)?

Thank you
Jennifer</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am currently writing on my Uni thesis and because I really enjoy good looking layouts and liked your idea, I was wondering if you could answer me two questions (Please not that I am fairly new to Latex):</p>
<p>1. Is it possible to split the chapter number and chapter name into 2 different boxes?</p>
<p>2. Can I fill the big lightskyblue box with external pictures (i.e. jpgs or similar)?</p>
<p>Thank you<br />
Jennifer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Kottwitz</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-670</link>
		<dc:creator>Stefan Kottwitz</dc:creator> 
		<pubDate>Mon, 07 Dec 2009 20:12:25 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-670</guid>
		<description>Hi Campbel!

You could just use \\ or &lt;a href="http://texblog.net/help/latex/ltx-275.html" rel="nofollow"&gt;\newline&lt;/a&gt; to break the line inside the \parbox. Perhaps show a &lt;a href="http://minimalbeispiel.de/mini-en.html" rel="nofollow"&gt;minimal example&lt;/a&gt; that shows the problem in detail, the code example would allow to give really appropriate help.

Stefan</description>
		<content:encoded><![CDATA[<p>Hi Campbel!</p>
<p>You could just use \\ or <a href="http://texblog.net/help/latex/ltx-275.html" rel="nofollow">\newline</a> to break the line inside the \parbox. Perhaps show a <a href="http://minimalbeispiel.de/mini-en.html" rel="nofollow">minimal example</a> that shows the problem in detail, the code example would allow to give really appropriate help.</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Campbel</title>
		<link>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-665</link>
		<dc:creator>Campbel</dc:creator> 
		<pubDate>Tue, 01 Dec 2009 09:59:39 +0000</pubDate>
		<guid>http://texblog.net/latex-archive/layout/fancy-chapter-tikz/#comment-665</guid>
		<description>Hi, I have a section heading that is spanning more than one line and when i used \parbox, it was out of the paper margin. I mean the total length is more than what it should be. How can i handle this and i dont want to use - when breaking the last word. I want the last word to go to another line and at the same time not to maintain a double space between the section name.</description>
		<content:encoded><![CDATA[<p>Hi, I have a section heading that is spanning more than one line and when i used \parbox, it was out of the paper margin. I mean the total length is more than what it should be. How can i handle this and i dont want to use - when breaking the last word. I want the last word to go to another line and at the same time not to maintain a double space between the section name.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
