LaTeX 调整目录项中的空间
我正在努力解决通过以下方式添加的自定义目录项:
\addcontentsline{toc}{section}{Some text here}
实际上,我的问题是我需要添加一些包含按时间顺序排列的日期周期的项目,例如:
12/1/2005 - 3/3/2006 Some event.........................................1
10/10/2005 - 11/30/2005 Some other event................................2
这看起来不太好。我想做的是将事件描述调整到某个行位置,如下所示:
12/1/2005 - 3/3/2006 Some event.....................................1
10/10/2005 - 11/30/2005 Some other event...............................2
我尝试使用 \makebox 但似乎不允许在 \addcontentsline{toc}{section}{...} 命令中使用。
还有人有其他建议吗?
I am struggling with custom toc items added via:
\addcontentsline{toc}{section}{Some text here}
Actually my problem is that I need to add some items which contain chronological date periods like:
12/1/2005 - 3/3/2006 Some event.........................................1
10/10/2005 - 11/30/2005 Some other event................................2
This looks not so nice. What I would like to do is adjusting event description to some line position to look like:
12/1/2005 - 3/3/2006 Some event.....................................1
10/10/2005 - 11/30/2005 Some other event...............................2
I tried to use \makebox but as it seems it is not allowed to be used within \addcontentsline{toc}{section}{...} command.
Does anyone have other suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
明白了...
\makebox 是一个脆弱的命令,所以我需要保护它:)
抱歉产生噪音!
奥瓦内斯
Got it...
\makebox is a fragile command, so I need to protect it :)
Sorry for noise!
Ovanes