书中的封面

书中的封面

我想做一本书,封面是这个 在此处输入图片描述

我发现这里。对于这个特定的首页,作者给出了以下代码

\newcommand*{\cdiam}{\prec\kern-2pt\succ}
\newcommand*{\titleZD}{\begingroup% Zuleika Dobson
\vspace*{2\baselineskip}
\centering
\begin{picture}(240,0)
\multiput(0,0)(24,0){10}{{\wb{10}{12}4}}
\multiput(-5,-21)(0,-24){15}{\rotatebox{90}{{\wb{10}{12}4}}}
\multiput(0,-360)(24,0){10}{{\wb{10}{12}4}}
\multiput(235,-21)(0,-24){15}{\rotatebox{90}{{\wb{10}{12}4}}}
\put(0,0){%
\begin{minipage}[t]{240pt}
\centering
\vspace*{2\baselineskip}
{\Huge Selected Conundrums}\\
{\large\itshape --- puzzles for the mind ---}%
\\[0.5\baselineskip]
{\large WITH ILLUSTRATIONS BY} \\[0.5\baselineskip]
{\large THE AUTHOR } \\[0.5\baselineskip]
{\LARGE T. H. E. AUTHOR} \par
\vspace*{5\baselineskip}
$\cdiam$\\[0.25\baselineskip]
$\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
$\cdiam\cdiam\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
$\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
$\cdiam$\par
\vspace*{5\baselineskip}
{\Large THE PUBLISHER}\\
{\Large\scshape year}\par
\vspace*{2\baselineskip}
\end{minipage}}
\end{picture}
\vfill
\null
\endgroup}

但我遇到了一个问题,因为我无法正确编译。我还需要在前言中添加什么?

提前致谢!

编辑

我设法让它看起来像这样 在此处输入图片描述

遵循 js bibra 的回答。

答案1

请让我知道这是否符合要求 - 您可用的字体可能存在缺陷 - 如果有错误,请不要担心 - 我们会解决的 - 尝试一下并让我知道

在此处输入图片描述

平均能量损失

\documentclass[oneside,english,a4paper, 12pt]{book}
\usepackage{fancyhdr, lastpage, changepage, graphicx}    
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=4cm,rmargin=2cm}

\makeatletter
\let\ps@plain\ps@fancy% Plain page style = fancy page style
\makeatother

\providecommand*{\wb}[2]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
\newcommand*{\cdiam}{\prec\kern-2pt\succ}

\begin{document}
\begin{titlepage}
\fontfamily{pbk}\selectfont  
    \vspace*{4.5\baselineskip}
    \centering
    \begin{picture}(600, 0)
      \multiput(0, 110)(20, 0){20}{{\wb{10}{12}4}}                    % Top Line
      \multiput(-5, 90)(0,-21){35}{\rotatebox{90}{{\wb{10}{12}4}}}    % Left Line
      \multiput(0,-630)(20, 0){20}{{\wb{10}{12}4}}                    % Bottom Line
      \multiput(400,90)(0,-21){35}{\rotatebox{90}{{\wb{10}{12}4}}}    % Right Line
\end{picture}

\centering
\vspace*{2\baselineskip}
{\Huge Selected Conundrums} \\[4em]
{\large\itshape --- puzzles for the mind ---}%
\\[0.5\baselineskip]
{\large WITH ILLUSTRATIONS BY} \\[0.5\baselineskip]
{\large THE AUTHOR } \\[0.5\baselineskip]
{\LARGE T. H. E. AUTHOR} \par
\vspace*{5\baselineskip}
$\cdiam$\\[0.25\baselineskip]
$\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
$\cdiam\cdiam\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
$\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
$\cdiam$\par
\vspace*{5\baselineskip}
{\Large THE PUBLISHER}\\
{\Large\scshape year}\par
\vspace*{2\baselineskip}    

  \end{titlepage}
\end{document}

编辑以解决字体问题 用户@ChaokangTai 已经给出了解决上述页面构建问题的方法——然而,由于未安装字体,4编译后页面边框中出现了图形

1.getnonfreefonts从以下网址下载脚本tug.org -- 字体脚本的链接是 --> http://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts

2.启动终端(适用于 Mac OS),然后在终端中输入以下内容,进入下载文件夹—— cd Downloads

执行前检查命令行中的拼写和空格

3.运行安装:

sudo texlua install-getnonfreefonts

4.该程序现已安装并准备自动下载和安装所有字体:只需运行::

getnonfreefonts --sys -a

5.它看起来很复杂 - 只需一步一步地按照 - 字体现在已经安装,您可以编译 MWE 代码以正确输出标题页。

编辑2 Overleaf 上没有可用的字体来满足创建此标题页的要求 - Overleaf 方面的回复以图片形式附加在下面

在此处输入图片描述

答案2

我还没有完全解决这个问题,但如果有帮助的话,我取得了一些进展。

您需要添加第 45 页和第 46 页列出的序言其中有些错误。\defincolor需要是\definecolor\newcommand*{\wb}[1]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}需要[1][2]。因此得出:

\documentclass{memoir}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{url}
\usepackage[svgnames]{xcolor}
\ifpdf
\usepackage{pdfcolmk}
\fi
%% check if using xelatex rather than pdflatex
\ifxetex
\usepackage{fontspec}
\fi
\usepackage{graphicx}
%%\usepackage{hyperref}
%% drawing package
\usepackage{tikz}
%% for dingbats
\usepackage{pifont}

\providecommand{\HUGE}{\Huge}% if not using memoir
\newlength{\drop}% for my convenience
%% specify the Webomints family
\newcommand*{\wb}[2]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
%% select a (FontSite) font by its font family ID
\newcommand*{\FSfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
%% if you don't have the FontSite fonts either \renewcommand*{\FSfont}[1]{}
%% or use your own choice of family.
%% select a (TeX Font) font by its font family ID
\newcommand*{\TXfont}[1]{\fontencoding{T1}\fontfamily{#1}\selectfont}
%% Generic publisher's logo
\newcommand*{\plogo}{\fbox{$\mathcal{PL}$}}
%% Some shades
\definecolor{Dark}{gray}{0.2}
\definecolor{MedDark}{gray}{0.4}
\definecolor{Medium}{gray}{0.6}
\definecolor{Light}{gray}{0.8}

%%%% Additional font series macros
\makeatletter
%%%% light series
%% e.g., kernel doc, section s: line 12 or thereabouts
\DeclareRobustCommand\ltseries
{\not@math@alphabet\ltseries\relax
    \fontseries\ltdefault\selectfont}
%% e.g., kernel doc, section t: line 32 or thereabouts
\newcommand{\ltdefault}{l}
%% e.g., kernel doc, section v: line 19 or thereabouts
\DeclareTextFontCommand{\textlt}{\ltseries}

% heavy(bold) series
\DeclareRobustCommand\hbseries
{\not@math@alphabet\hbseries\relax
    \fontseries\hbdefault\selectfont}
\newcommand{\hbdefault}{hb}
\DeclareTextFontCommand{\texthb}{\hbseries}
\makeatother

\newcommand*{\cdiam}{\prec\kern-2pt\succ}
\newcommand*{\titleZD}{\begingroup% Zuleika Dobson
    \vspace*{2\baselineskip}
    \centering
    \begin{picture}(240,0)
    \multiput(0,0)(24,0){10}{{\wb{10}{12}4}}
    \multiput(-5,-21)(0,-24){15}{\rotatebox{90}{{\wb{10}{12}4}}}
    \multiput(0,-360)(24,0){10}{{\wb{10}{12}4}}
    \multiput(235,-21)(0,-24){15}{\rotatebox{90}{{\wb{10}{12}4}}}
    \put(0,0){\begin{minipage}[t]{240pt}
        \centering
        \vspace*{2\baselineskip}
        {\Huge Selected Conundrums}\\
        {\large\itshape --- puzzles for the mind ---} \\[0.5\baselineskip]
        {\large WITH ILLUSTRATIONS BY} \\[0.5\baselineskip]
        {\large THE AUTHOR } \\[0.5\baselineskip]
        {\LARGE T. H. E. AUTHOR} \par
        \vspace*{5\baselineskip}
        $\cdiam$\\[0.25\baselineskip]
        $\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
        $\cdiam\cdiam\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
        $\cdiam\cdiam\cdiam$\\[0.25\baselineskip]
        $\cdiam$\par
        \vspace*{5\baselineskip}
        {\Large THE PUBLISHER}\\
        {\Large\scshape year}\par
        \vspace*{2\baselineskip}
        \end{minipage}}
    \end{picture}
    \vfill
    \null
    \endgroup}

\begin{document}
    \pagestyle{empty}
    \titleZD
    \clearpage
\end{document}

所以现在它可以编译了,但我仍然收到一个错误,即缺少一些字体形状,导致菱形被 4 替换。希望其他人可以使用它来进一步修复它。 在此处输入图片描述

相关内容