diff --git a/chapters/1-titlepage.tex b/chapters/1-titlepage.tex index 4af536d..78c9b7e 100644 --- a/chapters/1-titlepage.tex +++ b/chapters/1-titlepage.tex @@ -4,8 +4,8 @@ %\fontsize{28}{42}\selectfont {\centering {\Huge \textsc{Useful Linux Commands}} -\noindent{}{\color{brown8}\rule{\textwidth}{1.5pt}} -\noindent{}{\color{green5}\rule[2mm]{\textwidth}{0.5pt}} +\noindent{}{\color{green7}\rule{\textwidth}{2.5pt}} +\noindent{}{\color{brown8}\rule[2mm]{\textwidth}{1.0pt}} \vspace{2mm} {\large \textit{A Grimoire of Command Line Magic}} @@ -14,7 +14,7 @@ Issue \#\kissue{} \vspace{5mm} -Written and Edited by\\K.J. Odle +Written and Edited by\\Kenneth John Odle \vspace{5mm} \kpubdate{} diff --git a/chapters/ch00-intro.tex b/chapters/ch00-intro.tex index 08e0242..0fa4358 100644 --- a/chapters/ch00-intro.tex +++ b/chapters/ch00-intro.tex @@ -6,7 +6,7 @@ What follows here is a compendium of commands and their options that I have foun \paragraph{Installation} Many, but not all, of these packages are included by default in many (but again, not all) Linux distros. If they are not included in your distro, you will need to install them. I have not included installation information for two main reasons. First, it would simply take up too much space, especially for something that generally can be easily found at the other end of a web search. Second, these methods may change over time, rendering the information contained here obsolete. -\paragraph{``Why didn't you include information about command \textit{X}?''} Probably because I have never used it and am thus not familiar with it, or don't use it often enough to warrant inclusion here. But I may possibly include it in a future issue. +\paragraph{``Why didn't you include information about command \textit{X}?''} Probably because I have never used it and am thus not familiar with it, or don't use it often enough to warrant its inclusion here. But I may possibly include it in a future issue. \paragraph{``How can I send you corrections or suggestions for future issues?''} My contact information is listed in the ``Impressum'' on page ii. diff --git a/chapters/ch01-images.tex b/chapters/ch01-images.tex index e08eabf..49c3f38 100644 --- a/chapters/ch01-images.tex +++ b/chapters/ch01-images.tex @@ -2,7 +2,7 @@ \section{To Convert a PDF to an Image} -\lettrine[]{U}{se} the \texttt{pdftoppm} command (from the \label{poppler-utils} \texttt{poppler-utils}\index{poppler-utils} package) to convert part or all of a pdf to an image. For example, to convert a pdf to a png: +\lettrine[]{U}{se} the \texttt{pdftoppm}\index{pdftoppm} command (from the \label{poppler-utils} \texttt{poppler-utils}\index{poppler-utils} package) to convert part or all of a pdf to an image. For example, to convert a pdf to a png: \begin{Verbatim}[] pdftoppm input.pdf output -png @@ -17,7 +17,7 @@ pdftoppm input.pdf output -png -f 5 -singlefile To convert a range of pages, use the \texttt{-f} flag to specify the first page to convert and use the \texttt{-l} flag to specify the last page of the range: \begin{Verbatim}[] -pdftoppm input.pdf output -png -f 5 \l 10 -singlefile +pdftoppm input.pdf output -png -f 5 -l 10 -singlefile \end{Verbatim} The default resolution is 150 dpi. To change this, use the \texttt{-rx} flag to specify the resolution along the x-axis, and the \texttt{-ry} flag to specify the resolution along the y-axis; @@ -28,9 +28,12 @@ pdftoppm input.pdf output -png -rx 300 -ry 300 Doubling the resolution along both axes will increase the file size by an approximate factor of four, and will also increase the amount of detail in the image. +\ktcbox{When creating \LaTeX{} tutorials for the web, I will generally use the \texttt{standalone} class and then convert the resulting pdf to a png image for use with html.} + \section{To Extract Images from a PDF File} -\lettrine[findent=0mm]{T}{o} extract images from a pdf file, use the \texttt{pdfimages} command (also from the same package\index{poppler-utils} mention in \S \ref{poppler-utils} ). +\lettrine[findent=0mm]{T}{o} extract images from a pdf file, use the \texttt{pdfimages} command (also from the same package\index{poppler-utils} mentioned in \S \ref{poppler-utils} ). + \section{This is just a test} diff --git a/chapters/ch03-files.tex b/chapters/ch03-files.tex index fc67c67..308d86e 100644 --- a/chapters/ch03-files.tex +++ b/chapters/ch03-files.tex @@ -2,4 +2,6 @@ \section{To Remove Part of a Filename from Multiple Files} -\lettrine{U}{se} the \texttt{mmv}\index{mmv} package to do this. \ No newline at end of file +\lettrine{U}{se} the \texttt{mmv}\index{mmv} package to do this. + +\lettrine{T}{his} can also be accomplished by using the \textbf{rename}\index{rename} command. \ No newline at end of file diff --git a/parts/2-memoir.tex b/parts/2-memoir.tex index cd90c0c..c0b5f5c 100644 --- a/parts/2-memoir.tex +++ b/parts/2-memoir.tex @@ -25,7 +25,7 @@ \setlength{\beforechapskip}{0mm} \setlength{\midchapskip}{2mm} \setlength{\afterchapskip}{10mm} -\setsecheadstyle{\Fontlukas\slshape\bfseries\large}% Set \section style +\setsecheadstyle{\Fontlukas\slshape\bfseries\Large}% Set \section style } \makechapterstyle{kfront}{ @@ -50,8 +50,8 @@ %\newcommand{\kinfo}{{\footnotesize Chapter \thechapter: \leftmark{} • \rightmark}} \newcommand{\kinfo}{{\footnotesize Issue \kissue{} • Summer}} \makepagestyle{kpage} -\makeevenhead{kpage}{\textsc{Walking}}{}{\kinfo} -\makeoddhead{kpage}{\kinfo}{}{\textsc{Walking}} +\makeevenhead{kpage}{\textsc{Useful Linux Commands}}{}{\kinfo} +\makeoddhead{kpage}{\kinfo}{}{\textsc{Useful Linux Commands}} \makeevenfoot{kpage}{}{\thepage}{} \makeoddfoot{kpage}{}{\thepage}{} \makeheadrule{kpage}{\textwidth}{0.1mm} diff --git a/parts/4-commands.tex b/parts/4-commands.tex index 5404558..9977599 100644 --- a/parts/4-commands.tex +++ b/parts/4-commands.tex @@ -52,5 +52,24 @@ % Lettrine options %\renewcommand{\LettrineFontHook}{\Zallmanfamily} %\color{green5}} % Initial font and color \renewcommand{\LettrineFontHook}{\EileenBlfamily} %\color{green5}} % Initial font and color -%\renewcommand*{\DefaultLhang}{0.5} % Default lhang value +\renewcommand*{\DefaultLhang}{0.5} % Default lhang value +% Ninecolors saturation +\NineColors{saturation=low} + +% tcolorbox macro + +\newcommand{\ktcbox}[1]{ + \begin{tcolorbox}[ + boxrule=0.5pt, + arc=4mm, + colbacktitle=green9, + coltitle=green3, + colback=white, + colframe=green7, + fonttitle=\Fontlukas\bfseries\slshape\Large, + fontupper=\small, + title=How I Use This: + ]#1 +\end{tcolorbox} +} diff --git a/ulc_001.tex b/ulc_001.tex index 4b0b7db..6a0c8d7 100644 --- a/ulc_001.tex +++ b/ulc_001.tex @@ -21,7 +21,7 @@ %%% TOC \pagestyle{empty} \tableofcontents -\clearpage % Delete if TOC runs to 2n pages +%\clearpage % Delete if TOC runs to 2n+1 pages \iffalse % Comment out the list of figures \pagestyle{empty}