问题描述
我是新手。我使用microtype
包。我想将空格的最小宽度设置为常规空格的宽度。但是,使用默认设置,它缩小太多,我认为这会使文本的可读性降低。
最小工作示例
%%%%% Preamble %%%%%
\documentclass[10pt]{book}
% \usepackage[a4paper]{geometry}
\usepackage[
paperheight=7cm,
paperwidth=21cm,
top=1in,
bottom=1in,
right=1in,
left=1in,
portrait]{geometry}
\usepackage[slovak]{babel}
\usepackage{microtype}
\usepackage{xcolor}
% Font family
\usepackage[math-style=ISO, bold-style=ISO, partial=upright, nabla=upright]{unicode-math}
\setmainfont{Libertinus Serif}
% Paragraph and line settings
\setlength{\parindent}{0em} % Set paragraph indentation
\setlength{\parskip}{0.08in} % Paragraph spacing
\renewcommand{\baselinestretch}{1.0} % Line \expandafter\selectlanguage\expandafter{\cvlang}
% Custom commands
\newcommand{\paragraphStyle}[1]{%
\par
\begingroup
\setlength{\parindent}{0pt}%
\setlength{\parskip}{0.16in}%
\renewcommand{\baselinestretch}{1.0}%
\fontsize{20pt}{24pt}\selectfont
\noindent\color{black!100}%
\bfseries\ignorespaces #1\par
\endgroup
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
\paragraphStyle{
Pripomenieme si Pánovo zmŕtvychvstanie, budeme počúvať
}
\end{document}
输出
答案1
您可以使用 WordSpace 选项来调整间距。该值是一个比例因子(3 太大,仅用于此处的演示)。也可以单独调整拉伸和收缩值,请参阅 fontspec 的文档。
\documentclass[10pt]{book}
\usepackage[slovak]{babel}
\usepackage{microtype}
\usepackage{xcolor}
% Font family
\usepackage[math-style=ISO, bold-style=ISO, partial=upright, nabla=upright]{unicode-math}
\setmainfont{Libertinus Serif}[WordSpace={3}]
\begin{document}
Pripomenieme si Pánovo zmŕtvychvstanie, budeme počúvať
\end{document}
答案2
\documentclass[10pt]{book}
% \usepackage[a4paper]{geometry}
\usepackage[
paperheight=7cm,
paperwidth=21cm,
top=1in,
bottom=1in,
right=1in,
left=1in,
portrait]{geometry}
\usepackage[slovak]{babel}
\usepackage{microtype}
\usepackage{xcolor}
% Font family
\usepackage[math-style=ISO, bold-style=ISO, partial=upright, nabla=upright]{unicode-math}
\setmainfont{Libertinus Serif}
% Paragraph and line settings
\setlength{\parindent}{0em} % Set paragraph indentation
\setlength{\parskip}{0.08in} % Paragraph spacing
\renewcommand{\baselinestretch}{1.0} % Line \expandafter\selectlanguage\expandafter{\cvlang}
% Custom commands
\newcommand{\paragraphStyle}[1]{%
\par
\begingroup
\setlength{\parindent}{0pt}%
\setlength{\parskip}{0.16in}%
\setlength\spaceskip{12pt plus 2pt minus 2pt }% word space
\setlength\xspaceskip{14pt plus 4pt minus 2pt }% end of sentence space
\renewcommand{\baselinestretch}{1.0}%
\fontsize{20pt}{24pt}\selectfont
\noindent\color{black!100}%
\bfseries\ignorespaces #1\par
\endgroup
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
\paragraphStyle{
Pripomenieme si Pánovo zmŕtvychvstanie, budeme počúvať
}
\end{document}