关于springer数据封面的绘制问题

发布于 2025-04-24 19:10:48

求助大家如何将这个图标和“springer”调整的紧凑并且和原书一样呀?

预期效果

image.png

实际局部效果

image.png

代码源文件

main.tex

代码文本,参考自这个链接

\documentclass{article}

\usepackage{tikz}
\usepackage{xcolor}
\usepackage{graphicx} 

\definecolor{bg@main}{RGB}{254,216,71}
\definecolor{bg@second}{RGB}{249,241,179}
\definecolor{bg@third}{RGB}{247,234,156}
\definecolor{text@main}{RGB}{254,216,71}
\definecolor{text@second}{RGB}{2,49,102}
\definecolor{text@third}{RGB}{162,148,65}

\usepackage{times,fontawesome5}
\usepackage[paperwidth=16.51cm, paperheight=24.77cm]{geometry}

\def\maketitle{%
    \newgeometry{margin=0pt}
    \begin{titlepage}
        \begin{tikzpicture}[remember picture, overlay]
            \def\textnode[#1]#2;{
                \node[anchor=west, align=left, #1] #2;
            }
            \fill[left color=bg@second] (current page.north west) rectangle (current page.south east);
            \fill[bg@main] (current page.south east) rectangle ++(-0.9\paperwidth, 0.69\paperheight) coordinate (t1);
            \fill[bg@third] (t1) rectangle ++(-0.1\paperwidth, -0.137\paperheight);
            
            \draw[white, very thick] (current page.north west) ++ (.1\paperwidth, 0) -- ++ (0, -\paperheight);
            \draw[white, very thick] (current page.north west) ++ (0, -.31\paperheight) -- ++ (\paperwidth, 0);
            \draw[white, very thick] (current page.north west) ++ (0, -.447\paperheight) -- ++ (.1\paperwidth, 0);
            
            \textnode[text=text@third, font=\LARGE] at ([xshift=0.1\paperwidth + 0.75cm, yshift=-0.75cm]current page.north west) {Graduate Text in Mathematics};
            \textnode[text=text@main, scale=5, anchor=north east] at (current page.north east) {GTM};
            \textnode[text=text@second, anchor=south west, scale=2.4] at ([xshift=0.75cm]t1) {Mathematician Analysis};
            \textnode[text=text@second, anchor=north west, scale=7] at ([xshift=0cm]t1) {Introduction \\ to Real \\ Analysis};
            % 插入自定义图片并调整
            \node[anchor=south east] at ([shift={(-1cm,1cm)}]current page.south east) {
                \begin{minipage}[b][1.5cm][c]{1.5cm}
                    \includegraphics[width=\linewidth]{Springer-logo.png}
                \end{minipage}
                \begin{minipage}[b][1.5cm][c]{3cm}
                    \centering \normalsize Springer
                \end{minipage}
            };
        \end{tikzpicture}
    \end{titlepage}
    \restoregeometry
}

\begin{document}
    \maketitle
\end{document}

小马的图片...

Springer-logo.png

查看更多

关注者
0
被浏览
77
1 个回答
Sagittarius Rover
Sagittarius Rover 8小时前
我要成为Typst糕手/(ㄒoㄒ)/~~

随缘改了下...

\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fontspec}
\setmainfont{TeX Gyre Pagella}
\definecolor{bg@main}{RGB}{254,216,71}
\definecolor{bg@second}{RGB}{249,241,179}
\definecolor{bg@third}{RGB}{247,234,156}
\definecolor{text@main}{RGB}{254,216,71}
\definecolor{text@second}{RGB}{2,49,102}
\definecolor{text@third}{RGB}{162,148,65}
\usepackage[paperwidth=16.51cm, paperheight=24.77cm]{geometry}
\def\maketitle{%
    \newgeometry{margin=0pt}
    \begin{titlepage}
        \begin{tikzpicture}[remember picture, overlay]
            \def\textnode[##1]##2;{%
                \node[anchor=west, align=left, ##1] ##2;
            }
            \fill[left color=bg@second] (current page.north west) rectangle (current page.south east);
            \fill[bg@main] (current page.south east) rectangle ++(-0.9\paperwidth, 0.69\paperheight) coordinate (t1);
            \fill[bg@third] (t1) rectangle ++(-0.1\paperwidth, -0.137\paperheight);
            
            \draw[white, very thick] (current page.north west) ++ (.1\paperwidth, 0) -- ++ (0, -\paperheight);
            \draw[white, very thick] (current page.north west) ++ (0, -.31\paperheight) -- ++ (\paperwidth, 0);
            \draw[white, very thick] (current page.north west) ++ (0, -.447\paperheight) -- ++ (.1\paperwidth, 0);
            
            \textnode[text=text@third, font=\LARGE] at ([xshift=0.1\paperwidth + 0.75cm, yshift=-0.75cm]current page.north west) {Graduate Text in Mathematics};
            \textnode[text=text@main, scale=5, anchor=north east] at (current page.north east) {GTM};
            \textnode[text=text@second, anchor=south west, scale=2.4] at ([xshift=0.75cm]t1) {Mathematician Analysis};
            \textnode[text=text@second, anchor=north west, scale=7] at ([xshift=0cm]t1) {Introduction \\ to Real \\ Analysis};
            % 插入自定义图片并调整
            \node[anchor=south east] at ([shift={(-1cm,1cm)}]current page.south east) {%
                \begin{minipage}[b][1.5cm][c]{2cm}
                    \hfill\includegraphics[width=1.5\linewidth]{springer_horse.png}
                \end{minipage}%
                \begin{minipage}[b][1.5cm][c]{3cm}
                    \centering \huge\bfseries Springer
                \end{minipage}
            };
        \end{tikzpicture}
    \end{titlepage}
    \restoregeometry
}
\begin{document}
    \maketitle
\end{document}
  • 如果你不懂,就不要乱改别人的参数,在参考链接中明明是:
\def\textnode[##1]##2;{%
                \node[anchor=west, align=left, ##1] ##2;%
            }%

怎么到你这里一抄就变成了#1#2(?)你能解释解释吗...

  • 请自行学习tikznode的用法
  • 同时再自行学习minipage环境的用法

image.png

不会markdown语法不要提问。

P.S. markdown语法是很重要的,问题描述也要完整,清楚

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览