我必须写一篇论文,我想使用 Latex,但我不知道该怎么做:
我想在文档顶部写一列文本,并创建一个包含所有注释的两列表格,这些注释与文档顶部的内容有关。下面写的注释必须跟在文本后面(因此,如果文本放在另一页,注释也必须放在另一页),我必须选择注释应该放在哪一列。
我能在 Latex 中做到这一点吗?如果可以,怎么做?
谢谢您的帮助
\documentclass[12pt]{report}
\usepackage[italian]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[hypertexnames=false]{hyperref}
\usepackage{lipsum}% dummy text
\usepackage{tabularx}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit\ap{1}. Praesent lectus sem, consequat a malesuada id, commodo quis ligula. Quisque quis mi sed turpis aliquam fermentum. Vivamus dui diam, sodales quis egestas nec, malesuada sagittis eros\ap{2}. Praesent eget aliquet nisi. Duis sit amet velit molestie, fermentum nibh eget, pulvinar erat\ap{3}. Quisque a congue ligula, tempus venenatis tortor. Vivamus lobortis odio nunc, et blandit nunc imperdiet at. Aenean interdum commodo odio, eu aliquam urna fermentum in. Praesent\ap{4} in placerat enim. Quisque scelerisque augue nec gravida mattis. Praesent sit amet nisl tempus, venenatis ante commodo, tristique turpis. Phasellus quis sem rutrum, sollicitudin velit sed, hendrerit quam\ap{5}. Maecenas vehicula erat sed massa maximus, quis cursus orci tempor. Mauris lobortis arcu tellus, interdum efficitur nibh molestie in. Praesent\ap{6} nec ipsum et nulla vehicula posuere non in nulla.
\begin{tabularx}{\textwidth}{ |X|X| }
\hline
Left Note & Right Note \\
\hline
1) this the first left note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla & 4) this the first right note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
3) this is the second left note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla & 2) this is the second right note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
5) this is the third left note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla & 6) this is the third right note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
\end{tabularx}
\end{document}
注意:这只是一个展示布局的示例,我也可以使用脚注命令来执行此操作,但我不知道如何操作。
重要的事实是,注释必须遵循文本(正如我上面所说的)
答案1
你可能会觉得这很有趣。
\documentclass[12pt]{report}
\usepackage[italian]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[hypertexnames=false]{hyperref}
\usepackage{lipsum}% dummy text
\usepackage{afterpage}
\usepackage{tabularx}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit\ap{1}. Praesent lectus sem, consequat a malesuada id, commodo quis ligula. Quisque quis mi sed turpis aliquam fermentum. Vivamus dui diam, sodales quis egestas nec, malesuada sagittis eros\ap{2}. Praesent eget aliquet nisi. Duis sit amet velit molestie, fermentum nibh eget, pulvinar erat\ap{3}. Quisque a congue ligula, tempus venenatis tortor. Vivamus lobortis odio nunc, et blandit nunc imperdiet at. Aenean interdum commodo odio, eu aliquam urna fermentum in. Praesent\ap{4} in placerat enim. Quisque scelerisque augue nec gravida mattis. Praesent sit amet nisl tempus, venenatis ante commodo, tristique turpis. Phasellus quis sem rutrum, sollicitudin velit sed, hendrerit quam\ap{5}. Maecenas vehicula erat sed massa maximus, quis cursus orci tempor. Mauris lobortis arcu tellus, interdum efficitur nibh molestie in. Praesent\ap{6} nec ipsum et nulla vehicula posuere non in nulla.
\footnotetext[0]{\hspace{-2em}
\begin{tabularx}{\textwidth}{ |X|X| }
\hline
Left Note & Right Note \\
\hline
1) this the first left note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla & 4) this the first right note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
3) this is the second left note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla & 2) this is the second right note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
5) this is the third left note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla & 6) this is the third right note bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
\end{tabularx}}
\end{document}
答案2
我找到了一个解决方案:
\footnotetext{\hspace{-2em}
\begin{minipage}[t]{0.45\linewidth}%
\setcounter{enumi}{0}
\item Left footnote
\end{minipage}\hfill
\begin{minipage}[t]{0.45\linewidth}%
\setcounter{enumi}{0}
\item Right footnote
\end{minipage}
}
使用此代码,每个脚注都跟在其单词后面