Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jiazhu 宏包是否能实现 linespread < 1 的排版效果? #289

Open
3 of 11 tasks
ChihSee-Hsie opened this issue Apr 24, 2023 · 0 comments
Open
3 of 11 tasks

jiazhu 宏包是否能实现 linespread < 1 的排版效果? #289

ChihSee-Hsie opened this issue Apr 24, 2023 · 0 comments

Comments

@ChihSee-Hsie
Copy link

ChihSee-Hsie commented Apr 24, 2023

检查

  • 已在 issues 中进行搜索(包括已关闭的问题)

编译环境

  • 操作系统

    • Windows 11
    • Windows 8/8.1
    • Windows 7
    • 更早版本的 Windows
    • macOS
    • Linux(请附发行版)
  • TeX 发行版

    • TeX Live 2023
    • MiKTeX
    • CTeX 套装 2.9.2.164
    • 更早版本的 CTeX 套装

jiazhu 宏包是否能实现 linespread < 1

如题,在排版实践时,有时会在注文中使用一些瘦长的字体以复现古籍排版的效果。我在一次排版中利用自制的瘦长字体(使用 FontForge,字宽缩减为原先的 49%,字高不变)排版,指令 ratio = 1,并设置 format = \linespread{0.5},希望实现注文字高与正文相同的效果。但此时夹注的断行出了问题。于是我改通过设置 format = \setlength{\baselineskip}{正文字号 / 2} 的方式,迂回地实现了这一目的,然而这样做在断页时仍有问题——当页面最后一行出现了夹注,则会提前一行跨页。具体如下图:

效果示例

(TL 2023, upLaTeX)

几个 MWE 如下:

  1. \linespread{0.5} 时夹注断行出现的问题
%arara: uplatex
%arara: dvipdfmx
\documentclass[tate, uplatex, dvipdfmx, jafontsize = 3pt]{jlreq}
\usepackage[T1]{fontenc}
\usepackage[scheme = plain]{ctex}
\usepackage{lltjp-geometry}
\usepackage{geometry}
	\geometry{
		paperheight = 10mm,
		paperwidth = 10mm,
		%bottom = 19mm,
		textwidth = 5zw,
		textheight = 9pt, % 一页三行
	}
\usepackage{jiazhu}
	\jiazhuset{
		ratio = 0.5,
		format = \linespread{0.5}\color{red},
		beforeskip = 0pt,
		afterskip = 0pt,
	}
\usepackage{color}

\begin{document}
\lineskiplimit = -1000pt
\baselineskip = 3pt
\parindent = 0pt
\pagestyle{empty}
〇〇〇〇〇〇〇〇〇\jiazhu{一二三四〇〇〇〇〇〇〇〇〇〇}〇〇〇 %第一行夹注只显示其中的第一排,且位置靠左。本应靠左的第一行第二排内容不见
\end{document}

断行

  1. 提前跨页的问题
%arara: uplatex
%arara: dvipdfmx
\documentclass[tate, uplatex, dvipdfmx, jafontsize = 3pt]{jlreq}
\usepackage[T1]{fontenc}
\usepackage[scheme = plain]{ctex}
\usepackage{lltjp-geometry}
\usepackage{geometry}
	\geometry{
		paperheight = 10mm,
		paperwidth = 10mm,
		%bottom = 19mm,
		textwidth = 5zw,
		textheight = 9pt, % 一页三行
	}
\usepackage{jiazhu}
	\jiazhuset{
		ratio = 1,
		format = \setlength{\baselineskip}{1pt}\color{red},
		beforeskip = 0pt,
		afterskip = 0pt,
	}
\usepackage{color}

\begin{document}
\lineskiplimit = -1000pt
\baselineskip = 3pt
\parindent = 0pt
\pagestyle{empty}
〇〇〇〇〇〇〇〇〇\jiazhu{〇}〇〇〇〇\newpage %当最后一行没有夹注,则可以填满三行
〇〇〇〇〇〇〇〇〇\jiazhu{〇〇〇}〇〇〇〇 %当最后一行出现夹注,则会提前跨页
\end{document}

编译结果

如有解答,我在这里预致谢忱。

相同问题: CTeX-org/ctex-kit#660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant