![在列表环境中缩进多行](https://linux22.com/image/362041/%E5%9C%A8%E5%88%97%E8%A1%A8%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%BC%A9%E8%BF%9B%E5%A4%9A%E8%A1%8C.png)
我想让第二行之后的行从第二行左边距缩进。使用以下方法
minipage
失败。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\begin{document}
\begin{itemize}
\item xxxxx\\ \href{https://www.google.com.tw/}{https://www.google.com.tw/}
\hfill\begin{minipage}{\textwidth-2em}
\lbrack While conventional search engines ranked results by counting how many times the search terms appeared on the page, the two theorized about a better system that analyzed the relationships among websites.\rbrack
\end{minipage}
\end{itemize}
\end{document}
\hangindent
也失败了。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\begin{document}
\begin{itemize}
\item xxxxx\\ \href{https://www.google.com.tw/}{https://www.google.com.tw/}\\ \hangindent=2em\hangafter=-3\lbrack While conventional search engines ranked results by counting how many times the search terms appeared on the page, the two theorized about a better system that analyzed the relationships among websites.\rbrack
\end{itemize}
\end{document}
谢谢。
答案1
使用嵌套的 itemize:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\usepackage{hyperref}
\begin{document}
\begin{itemize}
\item xxxxx\\
\href{https://www.google.com.tw/}{https://www.google.com.tw/}
\begin{itemize}[label={},nosep,leftmargin=2em]
\item\relax [While conventional search engines ranked results by counting how many times
the search terms appeared on the page, the two theorized about a better
system that analyzed the relationships among websites.]
\end{itemize}
\end{itemize}
\end{document}