\documentclass{tufte-book}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{forest}
\usepackage{fourier}
\usepackage{soul}
\usepackage{tikz}
\usepackage{tikzsymbols}
\usepackage{emerald}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{background}
\usepackage{amsmath, amssymb, amsfonts}
\backgroundsetup{
scale=1,
angle=0,
opacity=.4,
contents={\includegraphics[width=\paperwidth,height=\paperheight]{frame}}
}
\newenvironment{loggentry}[2]
{\noindent\textbf{#2}\marginnote{#1}\\}{\vspace{0.2cm}}
\begin{document}
\pagecolor{brown}
\begingroup
\colorlet{darkgray}{black}
\title{Diary \# 1 \\ 2/4/22 - 31/12/22 }
\author{Bhaskar Vashishth}
\date{2022}
\endgroup
\maketitle
%\nopagecolor
\begin{loggentry}{2022-April 2 (Saturday)}{\color{teal}{\textit{Sleepless but discharge day}}
\colorlet{green}{red}
today. \dSmiley
\noindent \textit{Au revior!} \textit{\color{olive}{Good Night!}}
\end{loggentry}
\begin{loggentry}{2022-April 3 (Sunday)}{\textit{\color{cyan}{What a Day!}}}
hjkl}
\noindent \textit{\color{violet}{Good Night!}}
\end{loggentry}
\begin{loggentry}{2022-April-4 (Monday)}{\color{brown}{\textit{A good Day}}}
\noindent \\
\vskip 3mm
\begin{tikzpicture}
[
level 1/.style = {red, sibling distance = 3.5cm}
]
\node {This is me}
child {node [brown]{Happy}}
child {node [teal]{Sad!}}
child {node [cyan]{Anxious}};
\end{tikzpicture}
I choose happy.
\color{blue} {\textsc{Good Night!}} \Sleepey[2][darkgray].
\end{loggentry}
\begin{loggentry}{2022-April- 5 (Tuesday)}{\color{green}{\textit{An wonderful Day}}}
Everything is fine.
\textit{\color{red} GOOD NIGHT!}
\end{loggentry}
\end{document}
我在这里遗漏了什么?
答案1
注释太长了。至少这个可以编译(我没有这个emerald
包,所以取消了注释。然后修复了很多缺失}
或不相关}
的
我不知道它看起来是否像想象的那样。
\documentclass{tufte-book}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{forest}
\usepackage{fourier}
\usepackage{soul}
\usepackage{tikz}
\usepackage{tikzsymbols}
%\usepackage{emerald}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{background}
\usepackage{amsmath, amssymb, amsfonts}
\backgroundsetup{
scale=1,
angle=0,
opacity=.4,
contents=}
\newenvironment{loggentry}[2]
{\noindent\textbf{#2}\marginnote{#1}\\}{\vspace{0.2cm}}
\begin{document}
\pagecolor{brown}
\begingroup
\colorlet{darkgray}{black}
\title{Diary \# 1 \\ 2/4/22 - 31/12/22 }
\author{Bhaskar Vashishth}
\date{2022}
\endgroup
\maketitle
%\nopagecolor
\begin{loggentry}{2022-April 2 (Saturday)}{\color{teal}{\textit{Sleepless but discharge day}}}
\colorlet{green}{red}
today. \dSmiley
\noindent \textit{Au revior!} \textit{\color{olive}{Good Night!}}
\end{loggentry}
\begin{loggentry}{2022-April 3 (Sunday)}{\textit{\color{cyan}{What a Day!}}}
hjkl
\noindent \textit{\color{violet}{Good Night!}}
\end{loggentry}
\begin{loggentry}{2022-April-4 (Monday)}{\color{brown}{\textit{A good Day}}}
\noindent \\
\vskip 3mm
\begin{tikzpicture}
[
level 1/.style = {red, sibling distance = 3.5cm}
]
\node {This is me}
child {node [brown]{Happy}}
child {node [teal]{Sad!}}
child {node [cyan]{Anxious}};
\end{tikzpicture}
I choose happy.
\color{blue} {\textsc{Good Night!}} \Sleepey[2][darkgray].
\end{loggentry}
\begin{loggentry}{2022-April- 5 (Tuesday)}{\color{green}{\textit{An wonderful Day}}}
Everything is fine.
\textit{\color{red} GOOD NIGHT!}
\end{loggentry}
\end{document}