这是我的基本问题:
我想写在一行上
Thesis: "something really long that
should continue here like this"
我怎样才能做到这一点?(无表格)
编辑:
我在这样的表格环境中使用它:
\documentclass[a4paper,10pt]{article}
\begin{document}
\begin{tabular}{r|p{11cm}}
other lines & text here \\
&Thesis: "something really long that\\
&should continue here like this"\\
\end{tabular}
\end{document}
答案1
使用\phantom{Thesis:}
。这将留下尽可能多的空间,因为Thesis:
以下是针对您的具体情况的两种方法:
\documentclass{article}
\begin{document}
\begin{tabular}{r|l}
other lines & text here \\
&Thesis: "something really long that\\
&\phantom{Thesis: }should continue here like this"\\
\end{tabular}
\hrule
\begin{tabular}{r|p{11cm}}
other lines & text here \\
&Thesis: "something really long that\\
&\noindent\phantom{Thesis: }should continue here like this"\\
\end{tabular}
\end{document}
答案2
你可以使用该hanging
包来做这样的事情:
这里我创建了一个命令,它接受一个参数,并创建一个悬挂段落,其缩进量等于参数的宽度。(我已更改列宽以显示换行。)
\documentclass{article}
\usepackage{hanging}
\usepackage{calc}
\newlength{\hangwidth}
\newcommand{\myhang}[1]{\settowidth{\hangwidth}{#1}\hangpara{\hangwidth}{1}#1}
\begin{document}
\begin{tabular}{r|p{3cm}}
other lines & text here \\
&\myhang{Thesis: }``something really long that
should continue here like this''\\
\end{tabular}
\end{document}