I'm in the process of writing a large (100+ pages) technical/scientific document. Given the idiosyncrasy of Word's behavior with equations, figures, tables, etc. I am extremely hesitant to even attempt to write it in Word (plus LaTeX is just more fun!). However, I unfortunately do have to bend LaTeX to conform to the accepted standard Word format we have which means changing the fonts, sizes, spacing, etc.
I've been able to get close by Googling around, but I fear I'm adding more "band-aids" to the wound and not really solving the underlying problem. I realize that this will probably need to live in a new document class once completely tuned but I figured I'd post here for some help with the specifics. The transformation to a class can happen later.
Essentially, my question is this:
Where/how can one globally define the fonts (i.e. family, size, shape, etc.) for each of the environments used in a LaTeX document (i.e. global, sections, chapters, captions, etc.)?
Specifically, these are the issues I need to tackle (and my "band-aid" solutions thus far):
- - Change the margins to match (unrelated, but included for future people that run across this post.)
- - Solved with the "geometry" package:
Code: Select all
\usepackage[left=1in,top=1in,right=1in,bottom=1in,nohead,nofoot]{geometry}
- - Solved with this in the document body:- I'd like to set this globally (which might save some of the trouble I'm having below) tried this to no avail:
Code: Select all
\fontencoding {T1} \fontfamily {phv} \fontseries {m} \fontshape {n} \fontsize {11pt} {19pt} \linespread {1} \selectfont
Code: Select all
\renewcommand{\sfdefault}{\fontencoding{T1}\fontfamily{phv}\selectfont} \renewcommand{\familydefault}{\sfdefault}
- - Solved with the "sectsty" package:
Code: Select all
\usepackage{sectsty} \sectionfont{\fontfamily{phv}\fontseries{b}\fontsize{11pt}{20pt}\selectfont} \subsectionfont{\fontfamily{phv}\fontseries{b}\fontsize{11pt}{20pt}\selectfont} \subsubsectionfont{\fontfamily{phv}\fontseries{b}\fontsize{11pt}{20pt}\selectfont}
- - Solved with:
Code: Select all
\renewcommand{\contentsname}{Table of Contents}
- - This works with my previous fixes to the styles, but page numbers listed in the table are still in the default roman font. This is a nit-picky one, I could probably slip by with out it
- - Got close with the "caption" package, but it again looks like I need to be able to set the "normalsize" and "sfdefault" variables:
Code: Select all
\usepackage[labelfont=bf,labelsep=period,font={bf,sf,normalsize}]{caption}
- - Haven't found a solution to this yet...
- - Haven't got here yet...
- - Solved with the "geometry" package:
So all of this points to the question:
Where/how can one globally define the fonts (i.e. family, size, shape, etc.) for each of the environments used in a LaTeX document (i.e. global, sections, chapters, captions, etc.)?
I'd like to find the LaTeX equivalent of CSS for HTML, so I can essentially write:
Code: Select all
global {
fontfamily: pvh;
fontsize: 10pt 12pt;
}
section {
fontweight: b;
fontsize: 12pt;
}
...