我已经准备了一个不言自明的 MWE 来检查interaction
各种对象的模式ConTeXt ver: 2013.01.10 01:04 MKIV
。Evince
文档查看器用于测试。
问题:
如何设置不同的颜色来区分不同类型的超链接,如浮动/引用/URL?
使链接以相同的缩放设置打开,而不是切换到
FitHeight
模式?指向章节/部分的链接以相同的缩放设置打开,同时将引用的对象放在屏幕的顶部。但是,指向浮动的链接会更改缩放设置并默认为FitHeight
模式。每个书目条目后的超链接页码列表,用于返回到引用该条目的页面(
backref
中的选项hyperref
)。在目录/浮点数列表中,章节/浮点数的编号应该是超链接,而不是整行(就像在 MWE 中发生的那样)。
我希望通过在 中设置简单的参数来回答上述所有问题context
。这就是我将它们全部归为一类的原因。
平均能量损失
\setupbibtex[database=bib]
\setuppublications[alternative=num, refcommand=authornum]
\setupinteraction
[state=start,
click=yes,
focus=standard,
color=red]
\useURL[garden][http://www.contextgarden.net]
\starttext
\subject{Contents}
\placecontent
\subject{Figures}
\placelistoffigures
\section[chap:one]{Emulating {\tt hyperref}}
\subject{Bibliography}
Please refer \cite[me13b] for no particular reason. Is
there {\tt backref} like facility in \CONTEXT so that
there is a clickable list of page numbers after each
reference to come back to the page on which it was referred.
\subject{URLs}
Anything hyperref can do, \CONTEXT\ can do natively.
May be I ought to search \from[garden].
%
\placefigure[here][fig:dummy]{Dummy figure}{\externalfigure[dummy]}
%
\subject{Various Lists}
I would like {\em only} the chapter/section/subsection/float numbers
to be clickable in the TOC and List of floats. Presently, the entire
line is hyperlinked.
\subject{Footnotes}
Lets check a footnote now\footnote{Though typographically not
recommended, footnotes are never the less handy at times.}. When I click
on the footnote number, the page opens in {\tt FitHeight} mode instead of putting
the footnote on screen in the current zoom settings. Same thing happens
when I click on the footnote to come back.
\subject{Floats}
Now, lets refer to the figure \in[fig:dummy] which is in chapter
\in[chap:one] titled \about[chap:one] on page \at[chap:one].
When I click any of the {\tt chapter} related links in {\tt FitWidth} mode,
it takes me nicely to the chapter name still in {\tt FitWidth} mode. However,
when I click on the figure number, it switches back to {\tt FitHeight} mode.
Ideally, one would like a link to take me to the refered object in the currect
zoom level.
\section{Bibliography}
\placepublications[criterium=text]
\stoptext
书目目录
@article{me13,
title = {This bibliography in context},
author = {Convert, Recent},
journal = {Tex SX},
volume = {1},
number = {1},
pages = {1-11},
year = {2013},
}
答案1
如何设置不同的颜色来区分不同类型的超链接,如浮动/引用/URL?
\definereferenceformat[infigure][style=bold, color=green] \infigure[fig:somefig]
使链接以相同的缩放设置打开,而不是切换到 FitHeight 模式?指向章节/部分的链接以相同的缩放设置打开,同时将引用的对象放在屏幕的顶部。但是,指向浮动对象的链接会更改缩放设置并默认为 FitHeight 模式。
看起来像是一个错误。请在上下文邮件列表中报告。
每个书目条目后的超链接页码列表,用于返回到引用该条目的页面(
backref
中的选项hyperref
)。\setuppublicationlist[pagenumber=yes]
以前在 MkII 中可以工作,但是当 bib 模块转换为 MkIV 时它就坏了。只要给出确切的规范,重新实现它并不困难(参见这次讨论)
在目录/浮点数列表中,章节/浮点数的编号应该是超链接,而不是整行(就像在 MWE 中发生的那样)。
\setuplist[interaction=sectionnumber]