在xaringan里面使用\ref引用时,点击生成的链接,会跳转到第一页。谷歌了半天只找到https://stackoverflow.com/questions/50384848/disable-mathjax-equation-reference-link-in-xaringan-slides/51566909,不是解决问题而是直接把链接禁用了。。。。
请问有什么解决方案吗?
我的涉及rmd文件代码如下:
头文件:
---
title: "Elastic-net: a Regularization and Variable Selection Method"
date: "2018/09/30"
warning: Internal Seminar use only
bibliography: [Bibliography.bib]
biblio-style: apalike
link-citations: yes
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
写label的部分
---
# The Grouping Effect
- Previous methods:
- Principle Component Analysis : Found high correlated genes.
- Tree-Harvesting: Select group of gene by Hierachical Clustering.
- ...
Regression analysis with generic penaly can be written as
$$\begin{equation}\label{eq1}\hat\beta=\operatorname*{argmin}_\beta |y-X\beta|^2+\lambda J(\beta)\tag{1}\end{equation}$$
写ref的部分:
---
# The Grouping Effect
#### Lemma2:
Assume that $x_i=x_j,i,j\in\{1,...,p\}$
(a) If $J(\cdot)$ is strictly convex, then $\hat\beta_i=\hat\beta_j,\forall \lambda>0$
(b) If $J(B)=|\beta|_1$, then $\hat\beta_i\hat\beta_j\geqslant0$ and $\hat\beta^*$ is another minimizer of equation of general regression with penalty in page 10 \ref{eq1}, where
顺带一提这段如果在rmarkdown里面直接knitr,连ref出来的的 “1” 都不会出现,但是在xaringan的输出文件里面,会出现一个带超链接的 "1",但是点击以后会跳转到ppt的首页