我试图在 Latex 中复制此文档。有人知道他们使用的是什么字体以及如何获得侧面的背景颜色吗?
这是我目前拥有的代码。
\documentclass[pdftex,12pt,legalpaper]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[margin=2cm]{geometry}
\usepackage[pdftex]{graphicx}
\usepackage[placement=top,position={0,0},angle=0,scale=1,hshift=-40,vshift=-22,]{background}
%\backgroundsetup{contents={\includegraphics[width=1cm,height=20cm]{tree}}}
\usepackage{pifont}
\usepackage{multicol}
\setlength{\columnsep}{0.5in}
\usepackage{xcolor}
\begin{document}
\section{Using packages}
\begin{multicols}{2}
\noindent
This section illustrates the use of the amsfonts package. Besides the itemize feature used, it also makes use of some special characters which can easily be accessed; for example the command {\textcolor{red}{clubsuit}} produces the character in front of ”\textbf{\underline{Problem}}” below. Moreover, math symbols illustrated here are commonly used during any math program, such as $\eta$. Note that icons commands are named after the usual names, example clubsuit is the clubs in the deck of cards. \vspace{.25cm}\\
The document also illustrates the ability to insert images as background.This is achieved using the package {\textcolor{red}{background.sty}}. This package is includedin the download of the MikTex and or TexWorks software. While running the pro-gram, you need to remove the graphicxpackage from the header of this tex document.\\
\indent
I used the following code to obtain the effect:
\vspace{2cm}
\noindent
\texttt{
\textbackslash usepackage[\\
\indent
placement=top, \\ \indent
position=\{0,0\},\\ \indent
angle=0,\\ \indent
scale=1,\\ \indent
hshift=-40,\\ \indent
vshift=-22,\\
]\{background\}\\backgroundsetup\{contents=\{\\ \indent includegraphics[width=1cm,\\
\indent height=20cm]\{tree\}\}\}\\}\vspace{.25cm}
\noindent Of course the coordinate (0, 0) positions thestart of image at top left corner. From here,I altered the shifts to get the image at theright position.\\ \indent
The background package also allows you to color a certain region of the page with a background color of choice. \\ \indent Notice under ”Some Functions:”, the capital letter P is written as $ \mathbb{P} $. This can be obtained using the command mathbb\{P\}.\\
\indent Remember that commands carry thebackslash before it.
\end{multicols}
\section{An enumerated list using icons vs numbering}
\begin{multicols}{2}
\renewcommand{\labelitemi}{$\clubsuit$}
\begin{itemize}
\item \textbf{\underline{Problem}}\\
There is none. \\
\LaTeX\ is easy.
\end{itemize}
\renewcommand{\labelitemi}{$\spadesuit$}
\begin{itemize}
\item \textbf{\underline{Some Functions:}}
\begin{enumerate}
\item $tan x $
\item $ F(x) = \mathbb{P}(X \geq x) =
\begin{cases} 0 & x > a \\
\frac{x-a}{b-a} & a \geq x \geq b \\
1 & b > x \\
\end{cases}
$
\item $ \displaystyle{ \lim_{x\to\infty} \left(2+\frac{1}{x} \right)^x} $
\end{enumerate}
\end{itemize}
\renewcommand{\labelitemi}{$\heartsuit$}
\renewcommand{\labelitemii}{$\vartriangleright$}
\begin{itemize}
\item \underline{Some Math Symbols:}
\begin{itemize}
\item $\eta$
\item $\sigma$
\item $\epsilon$
\item $\alpha $
\end{itemize}
\end{itemize}
\renewcommand{\labelitemi}{$\diamondsuit$}
\renewcommand{\labelitemii}{\dag}
\begin{itemize}
\item \textbf{\underline{Finite and Infinite Summations}}
\begin{itemize}
\item $ \sum $
\item $ \int $
\item $ \oint $
\end{itemize}
\end{itemize}
\end{multicols}
\section{Page Format}
For this document, I used legal paper versus the usual a4 paper. Of course more styles can be added to a document to make it more visually attractive, but we must abide by Technical Writing principles, ”Simplicity is Sophistication”; that is, add details that highlight the document,do not create documents that highlight details.
\end{document}
'''
答案1
我认为这段代码将帮助您入门。
当然你应该为侧面图像找到一棵合适的“树”。
% !TeX TS-program = pdflatex
\documentclass[12pt,legalpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=2cm]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage[
placement=top,
position={0,0},
angle=0,
scale=1,
hshift=-44,
vshift=-15
]{background}
\backgroundsetup{contents={\includegraphics[width=1cm,height=30cm]{example-image-a}}}
\usepackage{pifont}
\usepackage{multicol}
\setlength{\columnsep}{0.5in}
\usepackage{xcolor}
\begin{document}
\section{Using packages}
\begin{multicols}{2}
\noindent
This section illustrates the use of the amsfonts package. Besides the itemize feature used, it also makes use of some special characters which can easily be accessed; for example the command {\textcolor{red}{clubsuit}} produces the character in front of ``\textbf{\underline{Problem}}'' below. Moreover, math symbols illustrated here are commonly used during any math program, such as $\eta$. Note that icons commands are named after the usual names, example clubsuit is the clubs in the deck of cards.
The document also illustrates the ability to insert images as background.
This is achieved using the package {\textcolor{red}{background.sty}}.
This package is included in the download of the MikTex and or TexWorks software.
While running the program, you need to remove the graphicx package from the header of this tex document.
I used the following code to obtain the effect:
\columnbreak
\begin{verbatim}
\usepackage[
placement=top,
position={0,0},
angle=0,
scale=1,
hshift=-40,
vshift=-22,
]{background}
\backgroundsetup\{contents= {
includegraphics[width=1cm,
height=20cm]\{tree}}}
\end{verbatim}
\noindent Of course the coordinate (0, 0) positions the start of image at top left corner. From here, I altered the shifts to get the image at the right position.
The background package also allows you to color a certain region of the page with a background color of choice.
Notice under ``\textbf{Some Functions:}'', the capital letter P is written as
$\mathbb{P}$.
This can be obtained using the command {\color{red} \verb_mathbb{P}_}.
Remember that commands carry the backslash before it.
\end{multicols}
\section{An enumerated list using icons vs numbering}
\end{document}