Document Classes ⇒ Indenting subsections using the article.cls
Indenting subsections using the article.cls
I am using the article class, but have one issue.
I would like for subsections and subsubsections to be progressively indented. As it is, they are never indented.
Can someone give me some coaching on this??
Thanks for any help.
Paul Vogt,
Charlotte, NC
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Indenting subsections using the article.cls
B.A.
Re: Indenting subsections using the article.cls
A quick look says this is perfect.
Best Regards,
Paul
Re: Indenting subsections using the article.cls
Despite the 27 pages of gobble-de-gook in the titlesec documentation, I still can't indent subsections.
Can anybody help?
Is there not an easy way? See below.
Thanks for any help,
Paul
1.0 My First Section
This first section is dedicated to the subject of section one.
1.1 The First Subsection
some words about the topic.
1.2 The Second SubSection
A terrifically interesting point about the second subsection.
2.0 My Second Section
2.1 A subheading
here are some compelling words.
Re: Indenting subsections using the article.cls
I figured out how to indent the subsection headings by making a simple edit in article.cls
Now I have to figure out how to indent the body text under the subsection heading
Any sugestions?
Thanks for any help,
paul
Re: Indenting subsections using the article.cls
1.0 My First Section
This first section is dedicated to the subject of section one.
___1.1 The First Subsection
___some words about the topic.
___1.2 The Second SubSection
___A terrifically interesting point about the second subsection.
2.0 My Second Section
___2.1 A subheading
___here are some compelling words.
Right?
If that's the case, are sure you want those subsections, etc. to be real subsections and so on? I'm saying that because there is an easy solution if you may consider them as sort of theorems, corollaries, ...: the ntheorem package lets you do that quite easily: it introduces a newlength called theoremindent. I personally use it to have an indention of proofs with respect to the surrounding text. Have a look at the doc to see the possibilities.
Best regards,
B.A.
Re: Indenting subsections using the article.cls
Thanks so much for responding, Yes, That is what I'm trying to do. Is it just me or this rediculously complicated for such a simple thing? All I want to do is indent the subsections progressively. It seems to me that that another edit to the article.cls should take care of it. I probably just have to set up an if block and look at the subsection depth or something. Unfortunately, I'm at the point where I have to either figure this out or go back to MSWord. I have work to do!!
Can you recommend a good resource for learning the language so I can get past this?
Thanks again for any help,
Paul Vogt,
Charlotte, NC
Re: Indenting subsections using the article.cls
\let\oldsubsbsection\subsection
\renewcommand{\subsection}{\leftskip=1in\oldsubsection}
Of course, it's up to you to do the same for other levels. This way of doing was found in the excellent uktexfaq (question 291).
For learning the language, there are nowadays quite a number of tutorials on the web (see the tug site); the LaTeX Companion is also quite useful. Actually, it all depends on the level at which these tutorials aim (my english isn't very good, I'm afraid). I think people learn progressively, and as they learn, they become more demanding. Personally, I first learnt to do simple things, and, as I progressively discovered the power of (La)TeX, I began to write some macros. Finally, when I have something 'nonstandard' to do, I first search whether some real guru has done it more or less. Examples of such packages, that let the user customize extensively are (for me) titlesec (for sections and such stuff), ntheorem (if one types a lot of maths) and enumitem(for all sorts of lists).
Best regards,
B.A.
Re: Indenting subsections using the article.cls
Once again, Thank You!
Can you tell me how to navigate to this uktexfaq 291?
I don't know how to find it.
Thnaks Very Much,
Paul
Re: Indenting subsections using the article.cls
http://www.tex.ac.uk/tex-archive/
There's a direct link in the home page.
Btw, did you use the parameter !ht (! means 'do all you can to put it here'). If your float appears on top of a page, and your document in final form, try:
\clearpage
\thispagestyle{empty}
\begin{figure}
...
B.A.