latex compatibility fixes for systems that don't have MinionPro

metadata
Wenzel Jakob 2011-08-04 12:43:53 -04:00
parent ec1d6ae917
commit effbe773a8
3 changed files with 17 additions and 10 deletions

View File

@ -136,17 +136,20 @@ in the root directory.
\subsubsection{Releasing Ubuntu packages} \subsubsection{Releasing Ubuntu packages}
To redistribute Ubuntu packages over the Internet, it is convenient to To redistribute Ubuntu packages over the Internet, it is convenient to
put them into an \code{apt}-compatible repository. To prepare such a put them into an \code{apt}-compatible repository. To prepare such a
repository, put the two \code{deb}-files built in the last section, as well as the repository, put the two \code{deb}-files built in the last section,
\code{collada-dom} \code{deb}-files into a new directory and inside as well as the \code{collada-dom} \code{deb}-files into a public directory
it, run made available by a HTTP server and inside it, run
\begin{shell} \begin{shell}
$\text{\$}$ dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz $path-to-htdocs\text{\$}$ dpkg-scanpackages path/to/deb-directory /dev/null | gzip -9c > path/to/deb-directory/Packages.gz
\end{shell} \end{shell}
This will create a respository index file named \code{Packages.gz}. This will create a respository index file named \code{Packages.gz}.
Finally, the whole directory can be uploaded to some public location Note that you must execute this command in the root directory of the
HTTP server's web directory and provide the relative path to the
package files -- otherwise, the index file will specify the wrong package
paths. Finally, the whole directory can be uploaded to some public location
and then referenced by placing a line following the pattern and then referenced by placing a line following the pattern
\begin{shell} \begin{shell}
deb http://<url-to-package-directory> ./ deb http://<path-to-deb-directory> ./
\end{shell} \end{shell}
into the \code{/etc/apt/sources.list} file. into the \code{/etc/apt/sources.list} file.

View File

@ -27,7 +27,11 @@
\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}} \newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
\newcommand{\MtsVer}{\color{lstattrib}\texttt{"\MitsubaVersion"}} \newcommand{\MtsVer}{\color{lstattrib}\texttt{"\MitsubaVersion"}}
\newcommand{\showbreak}{$\rhookswarrow$ }
\IfFileExists{MinionPro.sty}
{\newcommand{\showbreak}{$\rhookswarrow$ }}
{\newcommand{\showbreak}{$\hookleftarrow$ }}
\newcommand{\parheader}[1]{\vspace{2mm}\textbf{\color{myblue}#1}} \newcommand{\parheader}[1]{\vspace{2mm}\textbf{\color{myblue}#1}}
\newcommand{\otoprule}{\midrule[.8pt]} \newcommand{\otoprule}{\midrule[.8pt]}
@ -35,7 +39,7 @@
\newcommand{\parameters}[1]{ \newcommand{\parameters}[1]{
\setlength\fboxrulebackup\fboxrule \setlength\fboxrulebackup\fboxrule
\setlength\fboxrule{0.8pt} \setlength\fboxrule{0.8pt}
\begin{figure}[h]\centering\arrayrulecolor{lstframe} \begin{figure}[htbp]\centering\arrayrulecolor{lstframe}
\fcolorbox{lstframe}{lstshade}{\begin{tabular}{@{\hspace{3mm}}P{3cm}P{2.2cm}p{8.3cm}@{\hspace{3mm}}} \fcolorbox{lstframe}{lstshade}{\begin{tabular}{@{\hspace{3mm}}P{3cm}P{2.2cm}p{8.3cm}@{\hspace{3mm}}}
%\toprule %\toprule
\\[-2.2ex] \\[-2.2ex]
@ -48,7 +52,7 @@
} }
\newcommand{\renderings}[1]{ \newcommand{\renderings}[1]{
\begin{figure}[h!] \begin{figure}[htbp!]
\setcounter{subfigure}{0} \setcounter{subfigure}{0}
\centering \centering
\hfill \hfill

View File

@ -31,7 +31,7 @@
\IfFileExists{MinionPro.sty} \IfFileExists{MinionPro.sty}
{\usepackage[opticals,fullfamily,lf]{MinionPro}} {\usepackage[opticals,fullfamily,lf]{MinionPro}}
{\message{Package MinionPro.sty was not found.}} {\usepackage{charter}\message{Package MinionPro.sty was not found. Reverting to charter.}}
\setcounter{secnumdepth}{3} \setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3} \setcounter{tocdepth}{3}