~ubuntu-manual/ubuntu-manual/maverick-do-not-use

« back to all changes in this revision

Viewing changes to ubuntu-manual.cls

  • Committer: Kevin Godby
  • Date: 2010-04-06 05:18:07 UTC
  • Revision ID: godbyk@gmail.com-20100406051807-9hvdmz388o774oxv
* Pulled in newer version of the Tufte-book class.
* Decreased amount of text required to share the page with a float.
* Restricted orphans and widows.
* Rewrote terminal environment.
* Changed \userinput macro to set text in bold.
* Reduced spacing around advanced and warning icons.
* Changed Arabic font.
* Added Hebrew translations for \ie and \eg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
\setcounter{topnumber}{2}
445
445
\setcounter{bottomnumber}{2}
446
446
\setcounter{totalnumber}{4}
447
 
\renewcommand{\topfraction}{0.899}
448
 
\renewcommand{\bottomfraction}{0.600}
449
 
\renewcommand{\textfraction}{0.100}
450
 
 
451
 
 
 
447
\renewcommand{\topfraction}{0.900}
 
448
\renewcommand{\bottomfraction}{0.900}
 
449
\renewcommand{\textfraction}{0.050}
 
450
\renewcommand{\floatpagefraction}{0.900}
 
451
 
 
452
% Disallow orphans and widows
 
453
\AtBeginDocument{%
 
454
  \widowpenalty=10000%
 
455
  \clubpenalty=10000%
 
456
  \raggedbottom%
 
457
}%
452
458
 
453
459
%
454
460
% Define useful macros
461
467
 
462
468
% An environment for displaying terminal output
463
469
\newenvironment{terminal}{%
464
 
  \begin{quotation}
465
 
    \unskip\noindent\ttfamily\parskip0pt\parindent0pt\obeylines\ignorespaces%
 
470
  \begin{list}{}{%
 
471
    \setlength{\itemindent}{0pt}%
 
472
    \setlength{\labelwidth}{0pt}%
 
473
    \setlength{\labelsep}{0pt}%
 
474
    \setlength{\leftmargin}{12pt}%
 
475
    \setlength{\rightmargin}{12pt}%
 
476
    \setlength{\listparindent}{0pt}%
 
477
    \setlength{\topsep}{0.5\baselineskip}%
 
478
    \setlength{\partopsep}{0pt}%
 
479
    \setlength{\parsep}{0pt}%
 
480
    \setlength{\itemsep}{0pt}%
 
481
  }%
 
482
    \small\ttfamily\obeylines%
 
483
    \item\relax
466
484
}{%
467
 
  \end{quotation}%
 
485
  \end{list}%
468
486
}
469
487
 
470
488
% An environment to set the list of credits (names) in three columns.
481
499
% Macros to distinguish prompts and user input from program output in terminal displays
482
500
\newcommand{\prompt}{\texttt{\$}~}
483
501
\newcommand{\rootprompt}{\texttt{\#}~}
484
 
\newcommand{\userinput}[1]{{\ttfamily\textcolor{AccentDeepRed}{#1}}}% FIXME we'll adjust this formatting later -- red for easy editing at the moment
 
502
%\newcommand{\userinput}[1]{{\ttfamily\textcolor{AccentDeepRed}{#1}}}% FIXME we'll adjust this formatting later -- red for easy editing at the moment
 
503
\newcommand{\userinput}[1]{{\ttfamily\bfseries{#1}}}% FIXME we'll adjust this formatting later -- red for easy editing at the moment
485
504
\newcommand{\code}[1]{{\ttfamily#1}}
486
505
 
487
506
% Icons for advanced and warning notices
498
517
    \centering\usebox\advancedicon%
499
518
  \end{minipage}%
500
519
  \hfill%
501
 
  \begin{minipage}[t]{\linewidth-0.5in}%
 
520
  \begin{minipage}[t]{\linewidth-0.30in}%
502
521
    \vspace{-\baselineskip}\small\em#1%
503
522
  \end{minipage}%
504
523
  \hspace{\parindent}%
516
535
    \centering\usebox\warningicon%
517
536
  \end{minipage}%
518
537
  \hfill%
519
 
  \begin{minipage}[t]{\linewidth-0.5in}%
 
538
  \begin{minipage}[t]{\linewidth-0.30in}%
520
539
    \vspace{-\baselineskip}\small\em#1%
521
540
  \end{minipage}%
522
541
  \hspace{\parindent}%