我想将我的项目的第二行及后续行与第一行对齐。
到目前为止代码如下:
\documentclass[12 pt, a4paper]{book}
\usepackage{multicol}
\usepackage{geometry}
\geometry{
a4paper,
total={170 mm,257 mm},
left=20 mm,
top=20 mm,
}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{soul}
\usepackage{indentfirst}
\usepackage[utf8]{inputenc}
\usepackage{palatino}
\usepackage{color}
\usepackage{graphicx}
\usepackage{fancyhdr}
\setlength{\parindent}{2em}
\begin{document}
The conversion of Decimal number to n-Base can be performed bu using following steps:
\begin{itemize}
\setlength{\itemindent}{1cm}
\item Separate the integer part and the fractional part from the given Decimal number.
\item Repeatedly divide the integer part of the given Decimal number by N till the quotient becomes zero.
\end{itemize}
\end{document}
其输出如下:
我想要如下输出:
有人能帮助我吗?
答案1
您可以使用enumitem
。
\documentclass{article}
\usepackage{enumitem}
\begin{document}
The conversion of Decimal number to n-Base can be performed bu using following steps:
\begin{itemize}[left=2\parindent]
\item Separate the integer part and the fractional part from the given Decimal number.
\item Repeatedly divide the integer part of the given Decimal number by N till the quotient becomes zero.
\end{itemize}
\end{document}