General ⇒ Section formatting headaches
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Section formatting headaches
Sections: section headers need to be larger than the default size, olive green (trying to figure out how to create different shades of colors for text) and with no numbers. The trick is, that that sections *do* need to appear in the TOC with numbers (I know I can use \section*{section name} to remove the number but then, it won't appear in the TOC).
Subsections: subsection headers need to be indented. In fact, I need to have a lot of control over indentation and how text is lined up. So far, I haven't had a lot of success with the \noindent tag.
There are other issues, but I'll have to create a list before I can post them all.
I got the text on the cover page to turn red, but besides using \HUGE, I can't get that text any bigger. Is that the limit of text size in LaTeX?
Thanks.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Section formatting headaches
I am sure with LaTeX you could implement most of your layout requirements, even the unusual. The latter may require to look deeper inside the source, especially the documentclasses and the LaTeX sources.
Concerning text sizes, you may use \fontsize and perhaps fix-cm, try this example:
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage{fix-cm}
\begin{document}
\centering
\fontsize{60}{70}\selectfont Huge text
\end{document}
I think if you had several different issues it would be a good idea to use a designated thread for the discussion of each issue.
Stefan
Section formatting headaches
Do not worry, LaTeX can produce the same (poor?) results.tipwire45 wrote:...have the same "look and feel" as when the document was produced in Word...
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Section formatting headaches
Titlesec has a companion package,titletoc, which lets you customise the toc.
Finally, to obtain any size of font, you have to use postscript fonts (or ttf with a lower quality), you have to use low-level font commands,e.g., if you want a font at 60 pt, with an interline spacing of 72 pt, you just type:
\fontsize{60}{72}\selectfont.
I'll add that if you really want to mimick word, there exists a package for such a non professional result, called wordlike.
Regards,
B.A.
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Section formatting headaches
Thanks, everyone. Sorry about the "shotgun approach" to asking for help, here. Frankly, I'm in something of "panic mode" at the moment. It's not that there isn't enough documentation regarding LaTeX and such and it's not like I don't feel like, in time, I could pick up more than the basics, it's a matter of timing. The document in question needs to be completely converted ASAP so it can be updated regarding the company's latest incarnation of its product. That job has fallen on me.Stefan_K wrote:I think if you had several different issues it would be a good idea to use a designated thread for the discussion of each issue.
I am meeting with the developer who "talked me into" using LaTeX this morning to compare my current efforts to the stated goal and see what the best approach is. Hopefully, between all my resources (this forum included), I'll be able to ramp up to the speed and skill level I need to get the job done.
In the meantime, I'll implement your suggestions and see how the apply to my document.
Cheers.
-Trip
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Section formatting headaches
I started using examples from the titlesec documentation and what I could find in The LaTeX Companion, Second Edition and came up with this:
Code: Select all
\usepackage{titlesec}
\titleformat{\section}[leftmargin]{\Huge\bfseries}
{\S\,{thesection}{.5em}{}[\quad]
Code: Select all
\setcounter{secnumdepth}{-2}
Code: Select all
\titleformat{\section}[leftmargin]{\Huge\bfseries}
{}{}{}[]
Code: Select all
\documentclass[12pt]{article}
\usepackage{verbatim,textcomp}
\usepackage[pdftex]{color,graphicx}
\usepackage[table]{xcolor}
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{array,booktabs}
\usepackage{multirow}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{makeidx}
\usepackage[pdftex,colorlinks=true,linkcolor=black,urlcolor=blue]{hyperref}
\usepackage{titlesec}
\titleformat{\section}[leftmargin]{\Huge\bfseries}
{}{}{}[\quad]
\renewcommand{\labelitemii}{$\circ$}
\setcounter{secnumdepth}{-2}
\makeindex
\begin{document}
\begin{titlepage}
\begin{center}
% Upper part of the page
\textcolor{red}{\textsc{\Huge \textbf{User Guide}}}\\[1cm]
\end{center}
\end{titlepage}
\pagenumbering{roman}
%create a copyright page as a separate page
\vspace*{\fill}
\begingroup
\centering
Copyright \copyright 2008\\
by Inc.\\
All Rights Reserved\\
\endgroup
\vspace*{\fill}
\newpage
% insert the table of contents
\tableofcontents
\newpage
\pagenumbering{arabic}
%Chapter 1
\section{Welcome}
\subsection*{Using this guide}
\paragraph{} The User Guide has information and instructions for all users of the application. This guide
will help you:
\begin{itemize}
\item Understand what a host-based application is.
\item Log into the application.
\item Navigate the website.
\item Provide general user tips.
\item Identify the different users.
\item Apply the methods for managing the user environment.
\item Explain the thresholds.
\item Manage the queue.
\item Use reports.
\item Understand setup.
\end{itemize}
\newpage
\section{Getting Started}
\begin{itemize}
\item Workstation requirements
\item Logging into the Web Console
\item Overview of the site navigation
\item Basic use tips
\end{itemize}
\end{document}
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Section formatting headaches
Code: Select all
\titleformat{\section}[leftmargin]
{\color{webgreen}\normalfont\Huge\bfseries}{}{}{}
Oh, I defined "webgreen" based on another thread on this forum (I've been doing some searching) as:
Code: Select all
\definecolor{webgreen}{rgb}{0,.65.75,0}
http://www.latex-community.org/viewtopic.php?f=5&t=548
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Section formatting headaches
Code: Select all
\titleformat{\section}[leftmargin]
{\color{webgreen}\filright\normalfont\Huge\bfseries}{}{}{}
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Section formatting headaches
I understand, you want to move the section title to the left? One idea without [leftmargin], setting negative horizontal space before the title:
Code: Select all
\titleformat{\section}
{\color{webgreen}\normalfont\Huge\bfseries}{}{}{\hspace*{-12pt}}