有人可以在 LaTeX 的示例代码中用相同的字体大小制作这张家庭作业问题表模板的图片吗
顺便说一下,我已经在文档前面添加了两张图片,让它更可爱,如果有人能从中得到启发,制作不同的模板样式
例如给 Box 添加颜色使其更加美观
任何帮助,将不胜感激
我累了
\documentclass{article}
\usepackage{xcolor}
\usepackage{fancybox}
\pagestyle{empty}
\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}[remember picture, overlay]
\begin{scope}[shift={(current page.south west)}]
\draw (6,32) node {\includegraphics[scale=0.7]{1.jpg}};
\draw (2.5,27) node {\includegraphics[scale=0.2]{2.jpg}};
\end{scope}
\end{tikzpicture}
\noindent
\shadowbox{%
\begin{minipage}{\dimexpr\textwidth-\shadowsize-2\fboxrule-2\fboxsep}
\textcolor{black}{\sffamily INTEGRATION}\par\vspace{\baselineskip}
\textcolor{black}{\sffamily Professor : M.R. Educ}\par\vspace{\baselineskip}
\hspace*{\fill}
\end{minipage}}
\begin{description}
\item[Exercice 1: ] Déterminer la sommabilité sur $I$ des fonctions suivantes:
\end{description}
Bla Bla Bla
\begin{description}
\item[Exercice 2: ]
Bla Bla Bla
\end{description}
\begin{description}
\item[Exercice 3: ]
Bla Bla Bla
\end{description}
\end{document}
答案1
和tcolorbox
定义自己的阴影很容易。
您必须调整盒子尺寸,但下一个代码可以作为起点。
\documentclass{article}
\usepackage{xcolor}
%\usepackage{fancybox}
\usepackage{mwe}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage[most]{tcolorbox}
\pagestyle{empty}
\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes.misc}
\begin{document}
%\begin{tikzpicture}[remember picture, overlay]
%\begin{scope}[shift={(current page.south west)}]
%\draw (6,32) node {\includegraphics[scale=0.7]{example-image-a.jpg}};
%\draw (2.5,27) node {\includegraphics[scale=0.2]{example-image-b.jpg}};
%\end{scope}
%\end{tikzpicture}
%\noindent
%\shadowbox{%
%\begin{minipage}{\dimexpr\textwidth-\shadowsize-2\fboxrule-2\fboxsep}
% \textcolor{black}{\sffamily INTEGRATION}\par\vspace{\baselineskip}
% \textcolor{black}{\sffamily Professor : M.R. Educ}\par\vspace{\baselineskip}
% \hspace*{\fill}
%
%
%\end{minipage}}
\noindent
\begin{tcolorbox}[enhanced, colback=white, colframe=black,
fontupper=\sffamily, sharp corners,
shadow={4pt}{4pt}{0mm}{black},boxrule=1pt]
INTEGRATION \hfill SMA \hfill Semester 4\\
Professor : M.R. Educ \hfill Year: 2013--2014\\
\centerline{\rmfamily SÉRIE D'EXERCICES}
\end{tcolorbox}
\begin{description}
\item[Exercice 1: ] Déterminer la sommabilité sur $I$ des fonctions suivantes:
\end{description}
Bla Bla Bla
\begin{description}
\item[Exercice 2: ]
Bla Bla Bla
\end{description}
\begin{description}
\item[Exercice 3: ]
Bla Bla Bla
\end{description}
\end{document}