Re: Novice: How to change the headings color of a document
nomnex wrote: a. Where can I find the font information for the Chapt/Section/Sub-sec... article.cls b. Could you help with, say, the Section command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. the original definition is \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} So you need \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}\normalfont\Large\bfseries} or \usepackage{color} \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\color{blue}\normalfont\Large\bfseries}} HTH Jürgen
Re: Novice: How to change the headings color of a document
On Fri, 20 Jan 2012 09:16:27 +0100 Jürgen Spitzmüller sp...@lyx.org wrote: nomnex wrote: a. Where can I find the font information for the Chapt/Section/Sub-sec... article.cls b. Could you help with, say, the Section command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. the original definition is \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} snip Help much appreciated. Thank you Jürgen. -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
nomnex wrote: a. Where can I find the font information for the Chapt/Section/Sub-sec... article.cls b. Could you help with, say, the Section command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. the original definition is \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} So you need \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}\normalfont\Large\bfseries} or \usepackage{color} \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\color{blue}\normalfont\Large\bfseries}} HTH Jürgen
Re: Novice: How to change the headings color of a document
On Fri, 20 Jan 2012 09:16:27 +0100 Jürgen Spitzmüller sp...@lyx.org wrote: nomnex wrote: a. Where can I find the font information for the Chapt/Section/Sub-sec... article.cls b. Could you help with, say, the Section command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. the original definition is \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} snip Help much appreciated. Thank you Jürgen. -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
nomnex wrote: > a. Where can I find the font information for the > Chapt/Section/Sub-sec... article.cls > b. Could you help with, say, the "Section" > command, so that I have an idea of the complete syntax to pass in the > preamble [size, font, etc.]. the original definition is \newcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\bfseries}} So you need \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}\normalfont\Large\bfseries} or \usepackage{color} \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\color{blue}\normalfont\Large\bfseries}} HTH Jürgen
Re: Novice: How to change the headings color of a document
> On Fri, 20 Jan 2012 09:16:27 +0100 > Jürgen Spitzmüllerwrote: > > nomnex wrote: > > a. Where can I find the font information for the > > Chapt/Section/Sub-sec... > > article.cls > > > b. Could you help with, say, the "Section" > > command, so that I have an idea of the complete syntax to pass in > > the preamble [size, font, etc.]. > > the original definition is > > \newcommand\section{\@startsection {section}{1}{\z@}% >{-3.5ex \@plus -1ex \@minus -.2ex}% >{2.3ex \@plus.2ex}% >{\normalfont\Large\bfseries}} Help much appreciated. Thank you Jürgen. -- nomnex Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Novice: How to change the headings color of a document
I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. Google the list archive did not help much with my level of knowledge. I got a hint (see below), about changing the document class, but I don't know how: The reason, as Jurgen pointed out, is because the chapter headings turn up in the page headers---not to mention the TOC. So you really don't want to change its color anyway, not manually. If you want chapter headings to be colored, you change that in the document class. I probably need \usepackage{color} + a command to color all the document headings. Thanks -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. Google the list archive did not help much with my level of knowledge. I got a hint (see below), about changing the document class, but I don't know how: The reason, as Jurgen pointed out, is because the chapter headings turn up in the page headers---not to mention the TOC. So you really don't want to change its color anyway, not manually. If you want chapter headings to be colored, you change that in the document class. I probably need \usepackage{color} + a command to color all the document headings. I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. If you need more help, please ask. Richard
Re: Novice: How to change the headings color of a document
On Thu, 19 Jan 2012 22:04:52 -0500 Richard Heck rgh...@comcast.net wrote: On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. snip I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. If you need more help, please ask. Hello Richard, I do not understand the command syntax to pass in the preamble, after reading the titlesec PDF manual PDF. I am a complete novice. Could you provide an example or two; let say I want to change my document Section headings to a dark blue color. What is the exact command to pass in the document preamble. == \usepakage{titlesec} then what? == Thank you. -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
On Fri, 20 Jan 2012 14:56:05 +0900 nomnex nom...@gmail.com wrote: On Thu, 19 Jan 2012 22:04:52 -0500 Richard Heck rgh...@comcast.net wrote: On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings snip I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. snip This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Another version (found on http://tex.stackexchange.com) fails equally. \titleformat{\section} {\normalfont\sffamily\Large\bfseries\color{blue}} -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
nomnex wrote: This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Try \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}} HTH Jürgen
Re: Novice: How to change the headings color of a document
On Fri, 20 Jan 2012 07:18:24 +0100 Jürgen Spitzmüller sp...@lyx.org wrote: nomnex wrote: This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Try \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}} HTH Jürgen Thank you Jurgen, I was missing to add the color or xcolor package. I would like to keep the default article class settings of the Chapt/Section/Sub-sec/etc. and only change their color*. a. Where can I find the font information for the Chapt/Section/Sub-sec... b. Could you help with, say, the Section command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. Thanks in advance, nomnex *in the same way \addtokomafont{sectioning}{\color{blue}} works with the KOMA-Script. -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Novice: How to change the headings color of a document
I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. Google the list archive did not help much with my level of knowledge. I got a hint (see below), about changing the document class, but I don't know how: The reason, as Jurgen pointed out, is because the chapter headings turn up in the page headers---not to mention the TOC. So you really don't want to change its color anyway, not manually. If you want chapter headings to be colored, you change that in the document class. I probably need \usepackage{color} + a command to color all the document headings. Thanks -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. Google the list archive did not help much with my level of knowledge. I got a hint (see below), about changing the document class, but I don't know how: The reason, as Jurgen pointed out, is because the chapter headings turn up in the page headers---not to mention the TOC. So you really don't want to change its color anyway, not manually. If you want chapter headings to be colored, you change that in the document class. I probably need \usepackage{color} + a command to color all the document headings. I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. If you need more help, please ask. Richard
Re: Novice: How to change the headings color of a document
On Thu, 19 Jan 2012 22:04:52 -0500 Richard Heck rgh...@comcast.net wrote: On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. snip I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. If you need more help, please ask. Hello Richard, I do not understand the command syntax to pass in the preamble, after reading the titlesec PDF manual PDF. I am a complete novice. Could you provide an example or two; let say I want to change my document Section headings to a dark blue color. What is the exact command to pass in the document preamble. == \usepakage{titlesec} then what? == Thank you. -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
On Fri, 20 Jan 2012 14:56:05 +0900 nomnex nom...@gmail.com wrote: On Thu, 19 Jan 2012 22:04:52 -0500 Richard Heck rgh...@comcast.net wrote: On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings snip I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. snip This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Another version (found on http://tex.stackexchange.com) fails equally. \titleformat{\section} {\normalfont\sffamily\Large\bfseries\color{blue}} -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
nomnex wrote: This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Try \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}} HTH Jürgen
Re: Novice: How to change the headings color of a document
On Fri, 20 Jan 2012 07:18:24 +0100 Jürgen Spitzmüller sp...@lyx.org wrote: nomnex wrote: This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Try \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}} HTH Jürgen Thank you Jurgen, I was missing to add the color or xcolor package. I would like to keep the default article class settings of the Chapt/Section/Sub-sec/etc. and only change their color*. a. Where can I find the font information for the Chapt/Section/Sub-sec... b. Could you help with, say, the Section command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. Thanks in advance, nomnex *in the same way \addtokomafont{sectioning}{\color{blue}} works with the KOMA-Script. -- nomnex nom...@gmail.com Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Novice: How to change the headings color of a document
I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. Google & the list archive did not help much with my level of knowledge. I got a hint (see below), about changing the document class, but I don't know how: "The reason, as Jurgen pointed out, is because the chapter headings turn up in the page headers---not to mention the TOC. So you really don't want to change its color anyway, not manually. If you want chapter headings to be colored, you change that in the document class. " I probably need \usepackage{color} + a command to color all the document headings. Thanks -- nomnexFreenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
On 01/19/2012 08:54 PM, nomnex wrote: I do not know what package and what command to pass in a document preamble to change the color of all the headings (Chapter, section, sub-sec, etc...), from the default black to another color e.g. dark blue. I do not need to change the color of the header/footer, which probably request a different package or set of commands. Google& the list archive did not help much with my level of knowledge. I got a hint (see below), about changing the document class, but I don't know how: "The reason, as Jurgen pointed out, is because the chapter headings turn up in the page headers---not to mention the TOC. So you really don't want to change its color anyway, not manually. If you want chapter headings to be colored, you change that in the document class. " I probably need \usepackage{color} + a command to color all the document headings. I would suggest you look into the titlesec package. This provides specifically for custom styling of section, etc, headings, without affecting the page headers. If you need more help, please ask. Richard
Re: Novice: How to change the headings color of a document
> On Thu, 19 Jan 2012 22:04:52 -0500 > Richard Heckwrote: > > On 01/19/2012 08:54 PM, nomnex wrote: > > I do not know what package and what command to pass in a document > > preamble to change the color of all the headings (Chapter, section, > > sub-sec, etc...), from the default black to another color e.g. dark > > blue. I do not need to change the color of the header/footer, which > > probably request a different package or set of commands. > I would suggest you look into the titlesec package. This provides > specifically for custom styling of section, etc, headings, without > affecting the page headers. > > If you need more help, please ask. Hello Richard, I do not understand the command syntax to pass in the preamble, after reading the titlesec PDF manual PDF. I am a complete novice. Could you provide an example or two; let say I want to change my document Section headings to a dark blue color. What is the exact command to pass in the document preamble. == \usepakage{titlesec} then what? == Thank you. -- nomnex Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
> On Fri, 20 Jan 2012 14:56:05 +0900 > nomnexwrote: > > > On Thu, 19 Jan 2012 22:04:52 -0500 > > Richard Heck wrote: > > > > On 01/19/2012 08:54 PM, nomnex wrote: > > > I do not know what package and what command to pass in a document > > > preamble to change the color of all the headings > > I would suggest you look into the titlesec package. This provides > > specifically for custom styling of section, etc, headings, without > > affecting the page headers. This fails and generates an error message when I view to DVI \usepackage{titlesec} \titleformat*{\section}{\color{blue}} Another version (found on http://tex.stackexchange.com) fails equally. \titleformat{\section} {\normalfont\sffamily\Large\bfseries\color{blue}} -- nomnex Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net
Re: Novice: How to change the headings color of a document
nomnex wrote: > This fails and generates an error message when I view to DVI > > \usepackage{titlesec} > \titleformat*{\section}{\color{blue}} Try \usepackage{color} \usepackage{titlesec} \titleformat*{\section}{\color{blue}} HTH Jürgen
Re: Novice: How to change the headings color of a document
> On Fri, 20 Jan 2012 07:18:24 +0100 > Jürgen Spitzmüllerwrote: > > nomnex wrote: > > This fails and generates an error message when I view to DVI > > > > \usepackage{titlesec} > > \titleformat*{\section}{\color{blue}} > > Try > > \usepackage{color} > \usepackage{titlesec} > \titleformat*{\section}{\color{blue}} > > HTH > Jürgen Thank you Jurgen, I was missing to add the "color" or "xcolor" package. I would like to keep the default article class settings of the Chapt/Section/Sub-sec/etc. and only change their color*. a. Where can I find the font information for the Chapt/Section/Sub-sec... b. Could you help with, say, the "Section" command, so that I have an idea of the complete syntax to pass in the preamble [size, font, etc.]. Thanks in advance, nomnex *in the same way \addtokomafont{sectioning}{\color{blue}} works with the KOMA-Script. -- nomnex Freenode: nomnex Registered Linux user #505281. Be counted at: http://linuxcounter.net