我怎样才能使这本词典看起来更好一些?

我怎样才能使这本词典看起来更好一些?

因此,我正在研究一种人工语言,并尝试开始编写它的词典。我有以下设置

\documentclass[twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{fancyhdr} 
\usepackage[bindingoffset=0.2in,margin=0.75in,paperwidth=5.25in,paperheight=8in]{geometry}

\pagestyle{fancy} 
\fancyhead[LO,LE]{\rightmark}
\fancyhead[RE,RO]{\leftmark}
% set the font
\renewcommand*\rmdefault{bch}
\newcommand{\comment}[1]{}
% remove chapter numbering
\usepackage{titlesec}
\titleformat{\chapter}
  {\Large\bfseries} % format
  {}                % label
  {0pt}             % sep
  {\huge}           % before-code
% remove section numbering
\setcounter{secnumdepth}{0}
% this is how we define the actual dictionary items. markboth is for 
% setting the page headers so that first and last words appear there.
\newcommand{\ditem}[1]{\item[#1] \markboth{\footnotesize \textbf{#1}}{\footnotesize \textbf{#1}}}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%% title page
\begin{center}

\thispagestyle{empty}
\vbox{\vspace{5cm}
{\huge Birāznékhteria Dictionary}}
\vfill
{\large Trinity}
\vfill

\end{center}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%% table of contents
\tableofcontents

%%%%%%%%%%%%%%%%%%%%%%%% Preface
\chapter{Preface}

This is the preface.

\newpage

% \chapter{The Dictionary}
% we'd like the text size to be a bit smaller for the definitions
\footnotesize
% we'd like two columns of definitions

% Section A start
\begin{multicols}{2}

\begin{description}
\section{A}
\ditem{Abandon} \textit{-v.} definition 1 \textit{-n.} definition 2
\ditem{Abandoned} \textit{-v.} definition 1 \textit{-n.} definition 2

\end{description}
\end{multicols}
 % Section A Ends
 
 % Section S starts
 \begin{multicols}{2}

\begin{description}
\section{S}
\ditem{Sarpa} \textbf{sar.pa} \textit{n.} Snake, A long reptilian with no legs which lives on water and land. (Colloquially) A person who act nice to you but is a foe.
\ditem{Sugor} \textbf{su.gor} \textit{n.} Tree
\end{description}
\end{multicols}
 % Section s Ends
 
\end{document}

问题是,渲染时看起来不太好,而且一些文本放错了位置(不知道代码是否有缺陷),就像这样。

在此处输入图片描述

所以我的问题是我怎样才能使它变得更好并且看起来更好?

具体来说,我想知道如何在同一个块中创建定义文本

我在这里先向您的帮助表示感谢!

答案1

看看这个代码:

\documentclass[twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{fancyhdr,emptypage} 
\usepackage[bindingoffset=0.2in,margin=0.75in,paperwidth=5.25in,paperheight=8in]{geometry}

\pagestyle{fancy} 
\fancyhead[LO,LE]{\rightmark}
\fancyhead[RE,RO]{\leftmark}
% set the font
\renewcommand*\rmdefault{bch}
\newcommand{\comment}[1]{}
% remove chapter numbering
\usepackage{titlesec}
\titleformat{\chapter}
  {\Large\bfseries} % format
  {}                % label
  {0pt}             % sep
  {\huge}           % before-code
% remove section numbering
\setcounter{secnumdepth}{0}
% this is how we define the actual dictionary items. markboth is for 
% setting the page headers so that first and last words appear there.
\newcommand{\ditem}[1]{\item[#1] \markboth{\footnotesize \textbf{#1}}{\footnotesize \textbf{#1}}}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%% title page
\begin{center}

\thispagestyle{empty}
\vbox{\vspace{5cm}
{\huge Birāznékhteria Dictionary}}
\vfill
{\large Trinity}
\vfill

\end{center}
\clearpage
%%%%%%%%%%%%%%%%%%%%%%%% table of contents
\tableofcontents

%%%%%%%%%%%%%%%%%%%%%%%% Preface
\chapter{Preface}

This is the preface.

\newpage

% \chapter{The Dictionary}
% we'd like the text size to be a bit smaller for the definitions
\footnotesize
% we'd like two columns of definitions
\section{A}
% Section A start
\begin{multicols}{2}

\begin{description}

\ditem{Abandon} \textit{-v.} definition 1 \textit{-n.} definition 2
\ditem{Abandoned} \textit{-v.} left \textit{-n.} definition 2
\ditem{Alone} \textbf{a.lo.ne} \textit{-n.} only one person 
\ditem{Atom} \textit{-n.} definition 1 \textit{-n.} 

\end{description}
\end{multicols}
 % Section A Ends
\section{S} 
 % Section S starts
 \begin{multicols}{2}

\begin{description}

\ditem{Sarpa} \textbf{sar.pa} \textit{n.} Snake, A long reptilian with no legs which lives on water and land. (Colloquially) A person who act nice to you but is a foe.
\ditem{Sugor} \textbf{su.gor} \textit{n.} Tree
\ditem{Sigaro} \textbf{si.ga.ro} \textit{n.} Big sigarette
\end{description}
\end{multicols}
 % Section s Ends
 
\end{document}

他的主要输出(对空白页也进行了一些改进):

在此处输入图片描述

相关内容