Added tcolorbox for uses; some typofixes

This commit is contained in:
Kenneth John Odle 2026-07-25 12:07:13 -04:00
parent 7455de7144
commit 370226ff41
7 changed files with 37 additions and 13 deletions

View File

@ -4,8 +4,8 @@
%\fontsize{28}{42}\selectfont %\fontsize{28}{42}\selectfont
{\centering {\centering
{\Huge \textsc{Useful Linux Commands}} {\Huge \textsc{Useful Linux Commands}}
\noindent{}{\color{brown8}\rule{\textwidth}{1.5pt}} \noindent{}{\color{green7}\rule{\textwidth}{2.5pt}}
\noindent{}{\color{green5}\rule[2mm]{\textwidth}{0.5pt}} \noindent{}{\color{brown8}\rule[2mm]{\textwidth}{1.0pt}}
\vspace{2mm} \vspace{2mm}
{\large \textit{A Grimoire of Command Line Magic}} {\large \textit{A Grimoire of Command Line Magic}}
@ -14,7 +14,7 @@
Issue \#\kissue{} Issue \#\kissue{}
\vspace{5mm} \vspace{5mm}
Written and Edited by\\K.J. Odle Written and Edited by\\Kenneth John Odle
\vspace{5mm} \vspace{5mm}
\kpubdate{} \kpubdate{}

View File

@ -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{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. \paragraph{``How can I send you corrections or suggestions for future issues?''} My contact information is listed in the ``Impressum'' on page ii.

View File

@ -2,7 +2,7 @@
\section{To Convert a PDF to an Image} \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}[] \begin{Verbatim}[]
pdftoppm input.pdf output -png 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: 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}[] \begin{Verbatim}[]
pdftoppm input.pdf output -png -f 5 \l 10 -singlefile pdftoppm input.pdf output -png -f 5 -l 10 -singlefile
\end{Verbatim} \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; 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. 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} \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} \section{This is just a test}

View File

@ -2,4 +2,6 @@
\section{To Remove Part of a Filename from Multiple Files} \section{To Remove Part of a Filename from Multiple Files}
\lettrine{U}{se} the \texttt{mmv}\index{mmv} package to do this. \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.

View File

@ -25,7 +25,7 @@
\setlength{\beforechapskip}{0mm} \setlength{\beforechapskip}{0mm}
\setlength{\midchapskip}{2mm} \setlength{\midchapskip}{2mm}
\setlength{\afterchapskip}{10mm} \setlength{\afterchapskip}{10mm}
\setsecheadstyle{\Fontlukas\slshape\bfseries\large}% Set \section style \setsecheadstyle{\Fontlukas\slshape\bfseries\Large}% Set \section style
} }
\makechapterstyle{kfront}{ \makechapterstyle{kfront}{
@ -50,8 +50,8 @@
%\newcommand{\kinfo}{{\footnotesize Chapter \thechapter: \leftmark{}\rightmark}} %\newcommand{\kinfo}{{\footnotesize Chapter \thechapter: \leftmark{}\rightmark}}
\newcommand{\kinfo}{{\footnotesize Issue \kissue{} • Summer}} \newcommand{\kinfo}{{\footnotesize Issue \kissue{} • Summer}}
\makepagestyle{kpage} \makepagestyle{kpage}
\makeevenhead{kpage}{\textsc{Walking}}{}{\kinfo} \makeevenhead{kpage}{\textsc{Useful Linux Commands}}{}{\kinfo}
\makeoddhead{kpage}{\kinfo}{}{\textsc{Walking}} \makeoddhead{kpage}{\kinfo}{}{\textsc{Useful Linux Commands}}
\makeevenfoot{kpage}{}{\thepage}{} \makeevenfoot{kpage}{}{\thepage}{}
\makeoddfoot{kpage}{}{\thepage}{} \makeoddfoot{kpage}{}{\thepage}{}
\makeheadrule{kpage}{\textwidth}{0.1mm} \makeheadrule{kpage}{\textwidth}{0.1mm}

View File

@ -52,5 +52,24 @@
% Lettrine options % Lettrine options
%\renewcommand{\LettrineFontHook}{\Zallmanfamily} %\color{green5}} % Initial font and color %\renewcommand{\LettrineFontHook}{\Zallmanfamily} %\color{green5}} % Initial font and color
\renewcommand{\LettrineFontHook}{\EileenBlfamily} %\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}
}

View File

@ -21,7 +21,7 @@
%%% TOC %%% TOC
\pagestyle{empty} \pagestyle{empty}
\tableofcontents \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 \iffalse % Comment out the list of figures
\pagestyle{empty} \pagestyle{empty}