![包 textpos 与图形标题字体和格式不一致](https://linux22.com/image/474550/%E5%8C%85%20textpos%20%E4%B8%8E%E5%9B%BE%E5%BD%A2%E6%A0%87%E9%A2%98%E5%AD%97%E4%BD%93%E5%92%8C%E6%A0%BC%E5%BC%8F%E4%B8%8D%E4%B8%80%E8%87%B4.png)
我尝试将一些图像放置在书中的特定位置(事实上,大多数页面只包含图像和相应的标题),为此我使用了 textpos 包。同时,我尝试修改图形的格式,为此我使用了 caption 包。
但是,使用 textpos 放置图像会破坏我的标题格式。欢迎提供任何提示。
这是一个 mwe:
\documentclass[12pt,german,twoside,openany]{book} % use larger type; default would be 10pt
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\usepackage[german]{babel}
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage[backend=bibtex,sorting=none]{biblatex}
\usepackage{multicol}
\usepackage[usenames,dvipsnames]{color}
\usepackage[x11names]{xcolor}
\usepackage[pagecolor=none]{pagecolor}
\usepackage{float}
\usepackage[absolute,showboxes]{textpos}
%\usepackage{fontspec}
\usepackage{caption}
\usepackage[papersize={30cm,30cm},total={25cm,25cm},top=2cm,inner=3cm,footskip=2cm]{geometry} % to change the page dimensions
\setlength{\TPHorizModule}{10mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{10mm}{10mm} % start everything near the top-left corner
\setlength{\parindent}{0pt}%
\captionsetup[figure]{labelfont={bf,small},labelformat={default},textfont={it,small},format={hang},name={Abb.},justification=centerlast}
\setlength{\abovecaptionskip}{-5pt}
\title{Titel}
\author{Stephan Natschläger}
\date{} % Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
\maketitle
\pagestyle{plain}
\chapter{kapitel 1} \label{chap_1}
\begin{textblock}{12}(8,13)
\begin{figure}[H]
\includegraphics[width=120mm]{20200705_JKU_IR_700_0011}
\label{fig:20200705_JKU_IR_700_0011}
\caption{JKU, some description}
\end{figure}
\end{textblock}
\newpage
\begin{figure}[H]
\includegraphics[width=250mm]{20200705_JKU_IR_700_0011}
\label{fig:20200705_JKU_IR_700_0011}
\caption{JKU, some description}
\end{figure}
\end{document}