首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >页面下载html简历-如何将免责声明部分移至最后一页?

页面下载html简历-如何将免责声明部分移至最后一页?
EN

Stack Overflow用户
提问于 2022-05-09 06:45:33
回答 1查看 294关注 0票数 0

从页面向下恢复模板为例,我想要免责声明部分(目前在第一页的右下角,读到“这份简历是用R包页面制作的。最后一次更新是在2021-08-18”)。移到最后一页的底部。

我已经粘贴了下面的模板r标记文档,但也可以通过在R Studio中打开一个新的R标记文档,以及通过选择"From Template“部分和"HTML简历”来访问它。

我从文档和阅读各种定制解决方案中了解到CSS所涉及的内容,但我不知道如何使用CSS将该部分强制放到最后一页。

代码语言:javascript
复制
---
title: "Lijia Yu's resume"
author: Lijia Yu
date: "`r Sys.Date()`"
output:
  pagedown::html_resume:
    # set it to true for a self-contained HTML page but it'll take longer to render
    self_contained: false
# uncomment this line to produce HTML and PDF in RStudio:
#knit: pagedown::chrome_print
---

Aside
================================================================================


![Lijia Yu](https://avatars1.githubusercontent.com/u/895125?s=400&v=4){width=80%}


Contact Info {#contact}
--------------------------------------------------------------------------------

- <i class="fa fa-envelope"></i> lijia.yu@outlook.com
- <i class="fa fa-github"></i> [github.com/yulijia](https://github.com/yulijia)
- <i class="fa fa-phone"></i> +1 000-000-0000
- For more information, please contact me via email.


Skills {#skills}
--------------------------------------------------------------------------------

- Experienced in statistical analysis, statistical learning models, and optimization methods.

- Full experience with next generation sequencing data analysis.

- Highly skilled in R, Bash, Perl, Python, LaTeX


Disclaimer {#disclaimer}
--------------------------------------------------------------------------------

This resume was made with the R package [**pagedown**](https://github.com/rstudio/pagedown).

Last updated on `r Sys.Date()`.



Main
================================================================================

Lijia Yu {#title}
--------------------------------------------------------------------------------

### Currently searching for a PhD student position

Please note that this is a *real* resume, and I'm really looking for a PhD
student position at the moment. I made this resume because Yihui asked me
if I'd like to test the **pagedown** package with my resume. If you are
interested in my background and skills, please feel free to contact me.


Education {data-icon=graduation-cap data-concise=true}
--------------------------------------------------------------------------------

### Beijing University of Chemical Technology

B.S. in Information and Computing Sciences

Beijing, China

2010

Thesis: Dyadic wavelet and its application in edge detection

### University of Chinese Academy of Sciences

M.S. in Bioinformatics

Beijing, China

2014

Thesis: A multi-omics study for intra-individual divergence of the distributions between mRNA isoforms in mammals


Research Experience {data-icon=laptop}
--------------------------------------------------------------------------------

### Graduate Research Assistant

Beijing Institute of Genomics, Chinese Academy of Sciences

Beijing, China

2011 - 2014

- Performed computational biology research towards understanding regulation of alternative splicing in human and mouse transcriptome.
- Found EGFR pathway related mutations, aimed to understand the impacts of cancer mutations on EGFR signaling pathway.

### Bioinformatican

My Health Gene Technology Co., Ltd.

Beijing, China

2015 - 2016

- Investigated how cancer cells spread to other parts of the body at the single cell level.

### Visiting Scientist

University of Alabama at Birmingham

AL, USA

2016 - 2018

- Investigated the role of mitochondria in development of cancer.
- Investigated the evolution of genome architecture and its role in important evolutionary events.
- Detected thrombotic thrombocytopenic purpura related mutations in mutiple patients' blood genome.
  

Professional Experience {data-icon=suitcase}
--------------------------------------------------------------------------------

### Data Scientist, intern

SupStat Inc.

Beijing, China

2014

::: concise
- Taught R language to beginners. 
- Wrote Shiny app demos.
- Converted statistical tutorials from SPSS to R language.
:::

### Bioinformatician

My Health Gene Technology Co., Ltd.

Beijing, China

2015 - 2016

::: concise
- Analyzed whole-exome sequencing data. 
- Wrote analysis pipelines of ChIP-seq, single cell DNA-seq and single cell RNA-seq.
- Studied tumor metastasis and wrote research reports. 
- Also did case studies to identify the genetic defect causing rare disease.
:::


Teaching Experience {data-icon=chalkboard-teacher}
--------------------------------------------------------------------------------

### Introduction to R Language for Beginners.

Instructor of R and Data Mining Training Courses at SupStat Inc.

Beijing, China

2014

### Computational Biology and Bioinformatics.

Teaching assistant of GBS CB2-201 courses at UAB

AL, USA

2016 - 2017


Selected Publications and Posters {data-icon=file}
--------------------------------------------------------------------------------

### Genetic and epigenetic signals are found predictive to the distribution of intra-individual divergence of alternative splicing.

Poster for 2013 International Conference of Genomics

Qingdao, China

2014

**Yu L**, Chen B, Zhang Z.

### ESCRT-0 complex modulates Rbf mutant cell survival by regulating Rhomboid endosomal trafficking and EGFR signaling.

J Cell Sci. 2016 May 15;129(10):2075-84.

N/A

2016 

Sheng Z, **Yu L**, Zhang T, Pei X, Li X, Zhang Z and Du W. 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-05-10 02:09:51

你想要的最好的方法是让作者支持这个特性。这里有一种不改变源代码的方法。将此块添加到Rmd的末尾

代码语言:javascript
复制
```{js move_disclaim, echo=FALSE}

(函数(){

代码语言:javascript
复制
var pages 
代码语言:javascript
复制
var timer = 0;
代码语言:javascript
复制
var changeDC = setInterval(function() {
代码语言:javascript
复制
    pages = document.querySelectorAll('.pagedjs_page');
代码语言:javascript
复制
    if(pages.length !== 2 && timer <= 5000) {
代码语言:javascript
复制
        timer += 200;
代码语言:javascript
复制
        return;
代码语言:javascript
复制
    }
代码语言:javascript
复制
    if(pages.length !== 2 && timer > 5000) return clearInterval(changeDC);
代码语言:javascript
复制
    var firstPage = pages[0];
代码语言:javascript
复制
    var lastePage = pages[pages.length - 1];
代码语言:javascript
复制
    var aside = firstPage.querySelector('#aside');
代码语言:javascript
复制
    var asideClone = aside.cloneNode();
代码语言:javascript
复制
    asideClone.id = "aside_last";
代码语言:javascript
复制
    var disclaim = document.querySelector('#disclaimer');
代码语言:javascript
复制
    asideClone.appendChild(disclaim);
代码语言:javascript
复制
    lastePage.querySelector('.pagedjs_page_content > div').appendChild(asideClone);
代码语言:javascript
复制
    clearInterval(changeDC);
代码语言:javascript
复制
}, 200);

)()

代码语言:javascript
复制

它是做什么的:

  1. 为什么我不只使用CSS呢?因为我做不到。免责声明的风格是position: absolutediv of position: relative中。因此,它被锁定在相对的div中。你对此无能为力(除非我不知道窍门)。
  2. 我的想法是使用js将该元素移到最后一页。
  3. 每次打开网页时,页面布局都会使用异步js函数动态呈现。也许不是你想象的那样,当Rmarkdown完成渲染时,我们应该已经准备好页面了。不,不是,作者使用一个名为{paged.js}的库来进行呈现。每次打开浏览器选项卡时,它都会生成布局。
  4. 当呈现完成时,作者没有发出任何事件,所以我无法知道呈现是否已经完成。所以我不知道什么时候能开始搬家。
  5. 我所做的就是增加一个每200毫秒运行一次的计时器。如果渲染完成,我做移动和移除计时器,或者如果它需要超过5s,我认为它是错误的,清除计时器,什么也不做。
  6. 您需要定义的一件事是pages.length !== 2。您需要知道它将生成多少页,这应该是一个固定的数字,您可以很容易地得到。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72167895

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档