字体太细,线条消失

字体太细,线条消失

我无法为我的论文找到合适的字体,因为无论我如何尝试,衬线字体在某些地方看起来都太细了,并且部分字符消失了。

在此处输入图片描述 在此处输入图片描述

您可以在“A”、“e”、“g”、“s”、“o”和其他一些地方看到它。

我的序言如下:

\documentclass[12pt]{report}

\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
\usepackage{mathtools}
\usepackage{hyperref,theoremref}
\hypersetup{
    pdftitle={Thesis},
    colorlinks=true, linkcolor=doc!90,
    bookmarksnumbered=true,
    bookmarksopen=true
}
\usepackage{multicol,array}
\usepackage{tikz-cd}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\usepackage{comment}
\usepackage{import}
\usepackage{microtype}
\usepackage{fancyhdr}
\usepackage{tikzsymbols}
\usepackage{tabularray}


\usepackage{tkz-graph}

\usepackage{xcolor}
\usepackage{libertine}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{helvet}

\DisableLigatures{encoding = *, family = *}
\begin{document}


This chapter will describe a language modelling framework that seeks to solve the previously described problems. The framework automatically induces a hierarchical, graph based N-Gram structure from raw text, which is easy to explain, predict and efficiently updateable. The structure models the text as a hyperedge which has been compressed into a grammar-like structure of nested hyperedges. The structure avoids repetitions and other redundancy while maintaining all of the containment relations between elements which are used for a count-based language modelling.


\end{document}

我使用 Latex Workshop 在 vs-code 中进行编译,lualatex命令如下:

    "latex-workshop.latex.tools": [
    
        {
            "name": "latexmk",
            "command": "lualatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "--output-directory=%OUTDIR%",
                "%DOC%"
            ],
            "env": {}
        },
    ],

答案1

发布的代码产生

在此处输入图片描述

您的图像似乎没有使用 Linux Libertine,除非您收到有关缺少文件的错误或警告,否则这种情况不会发生。(发生任何错误后,pdf 都无法使用,仅供调试辅助)

你的 pdf 上的输出是什么pdffonts,应该是:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
KYKDBY+LinLibertineT                 Type 1            Custom           yes yes yes     11  0

该文档针对 8 位字体进行设置:如果您使用 lualatex,则会收到警告

LaTeX Font Warning: Font shape `T1/LinLibertine(0)/m/n' undefined
(Font)              using `T1/cmr/m/n' instead on input line 112.

因此使用 cm 字体而不是 linux libertine。看起来您只安装了位图 T1 字体(这意味着您很可能正在使用 miktex,并且没有安装带有 type1 cm 字体的 cm-super 包)

相关内容