LaTeX三栏布局中图片与项目符号的对齐及链接图标添加问题
三栏LaTeX文档的图片与列表对齐及链接图标实现问题
此前在LaTeX相关社区发布过该问题但未获回复,现寻求解决方案。
我正在用LaTeX创建三栏结构文档:第一栏为主题,第二栏是项目符号列表,第三栏放置不同尺寸的图片,同时希望在每张图片右下角添加小型链接图标,标识其为可点击超链接。
我的LaTeX代码如下:
\documentclass[11pt,ngerman]{moderncv} \renewcommand{\familydefault}{\sfdefault} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{geometry} \usepackage[UKenglish]{babel} \geometry{verbose,tmargin=1cm,bmargin=1cm,lmargin=2.5cm,rmargin=2.5cm} \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage{graphicx} \usepackage{fontawesome5} \usepackage{verbatim} \newcommand{\cmmnt}[1]{} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} \providecommand{\tabularnewline}{\\} \usepackage[super]{nth} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \moderncvtheme[blue]{classic} \usepackage{lastpage} \firstname{firstName} \familyname{lastName} \title{topic} \address{} \usepackage{graphicx} \newcommand{\Csharp}{%\n {\settoheight{\dimen0}{C}C\kern-.05em \resizebox{!}{\dimen0}{\raisebox{\depth}{\#}}}} \makeatother \usepackage{babel} \usepackage{xpatch} %\usepackage[absolute,overlay]{textpos} \usepackage{textpos} \usepackage{wrapfig} \xpatchcmd{\cventry}{.\strut}{\strut}{}{} \begin{document} \maketitle \vspace{-0.9cm} \vspace{-0.3cm} \section{Section} \vspace{0.2cm} \cventry{Topic}{\n \begin{minipage}[t]{0.6\textwidth} \begin{itemize} \item {\normalfont Point1} \item {\normalfont Point2} \item {\normalfont Point3} \end{itemize} \end{minipage}% \hspace{-5cm} \begin{minipage}[t]{0.3\textwidth} \raggedleft \raisebox{-0.5\height - 0.3cm}{ \href{https://www.google.com/}{\includegraphics[height=1.5cm]{example-image-a}} } \end{minipage} }{}{}{}{}{} \cventry{Topic}{\n \begin{minipage}[t]{0.6\textwidth} \begin{itemize} \item {\normalfont Point1} \item {\normalfont Point2} \end{itemize} \end{minipage}% \hspace{-4.855cm} \begin{minipage}[t]{0.3\textwidth} \raggedleft \raisebox{-0.5\height}{ \href{https://www.google.com/}{\includegraphics[height=1.6cm, width=1.8cm]{example-image-a}} } \end{minipage} }{}{}{}{}{} \cventry{Topic}{\n \begin{minipage}[t]{0.6\textwidth} \begin{itemize} \item {\normalfont Point1} \item {\normalfont Point2} \item {\normalfont Point3} \end{itemize} \end{minipage}% \hspace{-3.05cm} \begin{minipage}[t]{0.3\textwidth} \raggedleft \raisebox{-0.5\height - 0.3cm}{ \href{https://www.google.com/}{\includegraphics[height=1.5cm]{example-image-a}} } \raisebox{-0.5\height - 0.3cm}{ \href{https://www.google.com/}{\includegraphics[height=1.5cm]{example-image-b}} } \end{minipage} }{}{}{}{}{} \cventry{Topic}{\n \begin{minipage}[t]{0.6\textwidth} \begin{itemize} \item {\normalfont Point1} \item {\normalfont Point2} \end{itemize} \end{minipage}% \hspace{-3.05cm} \begin{minipage}[t]{0.3\textwidth} \raggedleft \raisebox{-0.5\height - 0.3cm}{ \href{https://www.google.com/}{\includegraphics[height=1.5cm]{example-image-a}} } \raisebox{-0.5\height - 0.3cm}{ \href{https://www.google.com/}{\includegraphics[height=1.6cm, width=1.8cm]{example-image-b}} } \raisebox{-0.5\height - 0.3cm}{ \href{https://www.google.com/}{\includegraphics[height=1.5cm]{example-image-c}} } \end{minipage} }{}{}{}{}{} \end{document}
当前效果:
核心需求:
- 每行图片与对应项目符号列表垂直居中对齐;
- 图片行列对齐,即每行第N张图片位于上一行第N张图片正下方;
- 在每张图片右下角添加小型链接图标,标识其为可点击超链接。
预期效果:
目前图片对齐效果不符合预期,也不清楚如何有效添加链接图标。图片间距调整并非关键,链接图标也非必需,但需确保图片间横竖方向均居中对齐,且图片在项目符号列表中保持平衡对称布局。此前咨询未得到合适方案,恳请提供实现上述对齐及图标添加的指导建议。
内容的提问来源于stack exchange,提问作者Daniel
相关产品推荐
相关产品推荐

