Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

声明页和授权页替换成扫描的图片 #36

Closed
Ebonnov opened this issue Jun 23, 2012 · 14 comments
Closed

声明页和授权页替换成扫描的图片 #36

Ebonnov opened this issue Jun 23, 2012 · 14 comments

Comments

@Ebonnov
Copy link

Ebonnov commented Jun 23, 2012

本科生论文最终提交的电子版要求声明页和授权页有签字。这产生了把声明页和授权页整替换成扫描的图片的需求。

我看到context/t-thuthesis里有授权页的定义, 但是不清楚这里如何影响到latex/下面内容的生成。求教:)

@alick
Copy link
Contributor

alick commented Jun 23, 2012

模版里面没法替换为带签名的扫描页,没必要替换为不带签名的扫描页。

替换为扫描页是个扫描后编辑PDF文件的事情。一些PDF编辑软件允许提取、重组PDF中的若干页面。latex 方面 pdfpages 宏包应该有用。

@xueruini
Copy link
Contributor

2012/6/23 Ebonnov <
reply@reply.github.com

本科生论文最终提交的电子版要求声明页和授权页有签字。这产生了把声明页和授权页整替换成扫描的图片的需求。

很久以前此功能是支持的,后来学校说不允许在电子版中用扫描图片。

我看到context/t-thuthesis里有授权页的定义, 但是不清楚这里如何影响到latex/下面内容的生成。求教:)


Reply to this email directly or view it on GitHub:
https://github.com/xueruini/thuthesis/issues/36

@Ebonnov
Copy link
Author

Ebonnov commented Jun 23, 2012

不明白为什么没法替换, 应该是我对模板的什么机制还不了解。比如说用pdfpages宏包, 先用现在cover的代码生成一个授权页的pdf, 然后在cover的位置改成插入单页pdf, 最后在替换的时候替换授权页的pdf文件或者cover位置的文件名。这么做会坏在哪一步呢?

@alick
Copy link
Contributor

alick commented Jun 23, 2012

@Ebonnov 我理解的使用pdfpages宏包的使用方法是新建一个文档 final.tex:

...
\includepdf[pages=1]{main.pdf}
\includepdf[pages=1]{auth-scanned.pdf}
\includepdf[pages=3-]{main.pdf}
...

这类似于使用 pdftk 工具合并几个pdf文档。

当然,直接修改 main.tex 利用 pdfpages 宏包应该也可以。而且这样似乎有不破坏文档中超链接的好处(这对打印版没有太大意义)。

@alick
Copy link
Contributor

alick commented Jul 28, 2012

这里的信息可能对合并PDF有所帮助:https://wp-awesome.rhcloud.com/2012/06/29/merge-pdf-with-bookmark-link-reserved/

@ahyangyi
Copy link
Contributor

我记得我当时提交本科论文的时候正好人不在国内并且机器坏了只能在别人机器上用或者ssh回自己台式机用,结果捣鼓了很久很久然后才怎么解决了。。。
总之我觉得提供一个粗暴地用图片替换特定页的功能还是有用的吧,那几个需要签字的页本来就是特殊页。

最后,我觉得在宏包里提供这个功能固然增加了宏包的复杂程度,不过某种意义上也使事后文件的整理稍微方便一点儿吧。我现在这里的存根就是源文件,编译后的pdf,待插入的图片,替换图片后的pdf四部分,如果宏包支持的话其实就只需要把图片放进figures/目录里就好了。

@xueruini
Copy link
Contributor

2012/10/13 Yi Yang notifications@github.com

我记得我当时提交本科论文的时候正好人不在国内并且机器坏了只能在别人机器上用或者ssh回自己台式机用,结果捣鼓了很久很久然后才怎么解决了。。。
总之我觉得提供一个粗暴地用图片替换特定页的功能还是有用的吧,那几个需要签字的页本来就是特殊页。

最后,我觉得在宏包里提供这个功能固然增加了宏包的复杂程度,不过某种意义上也使事后文件的整理稍微方便一点儿吧。我现在这里的存根就是源文件,编译后的pdf,待插入的图片,替换图片后的pdf四部分,如果宏包支持的话其实就只需要把图片放进figures/目录里就好了。

以前有这个功能,后来学校说提交电子版不用扫描签名,就去掉了。


Reply to this email directly or view it on GitHubhttps://github.com/xueruini/thuthesis/issues/36#issuecomment-9382377.

@liuml07
Copy link
Collaborator

liuml07 commented Oct 15, 2012

贵校委员会每年都做点小改动,这个是它存在的意义所在吗?

2012/10/13 Ruini Xue notifications@github.com

2012/10/13 Yi Yang notifications@github.com

我记得我当时提交本科论文的时候正好人不在国内并且机器坏了只能在别人机器上用或者ssh回自己台式机用,结果捣鼓了很久很久然后才怎么解决了。。。
总之我觉得提供一个粗暴地用图片替换特定页的功能还是有用的吧,那几个需要签字的页本来就是特殊页。

最后,我觉得在宏包里提供这个功能固然增加了宏包的复杂程度,不过某种意义上也使事后文件的整理稍微方便一点儿吧。我现在这里的存根就是源文件,编译后的pdf,待插入的图片,替换图片后的pdf四部分,如果宏包支持的话其实就只需要把图片放进figures/目录里就好了。

以前有这个功能,后来学校说提交电子版不用扫描签名,就去掉了。


Reply to this email directly or view it on GitHub<
https://github.com/xueruini/thuthesis/issues/36#issuecomment-9382377>.


Reply to this email directly or view it on GitHubhttps://github.com/xueruini/thuthesis/issues/36#issuecomment-9402181.

Mingliang LIU (刘明亮 in Chinese)

PACMAN Group, Dept. of Computer Science & Technology
Tsinghua University, Beijing 100084, China
Email: liuml07@mails.tsinghua.edu.cn
Homepage: http://pacman.cs.tsinghua.edu.cn/~liuml07/

@alick
Copy link
Contributor

alick commented Oct 15, 2012

@ahyangyi 可以考虑加这个特性。最好搞成一个开关(宏包选项,比如叫 forprint)。

@xueruini
Copy link
Contributor

杨大侠,靠你了 :)

On Tue, Oct 16, 2012 at 12:24 AM, Alick Zhao notifications@github.comwrote:

@ahyangyi https://github.com/ahyangyi 可以考虑加这个特性。最好搞成一个开关(宏包选项,比如叫
forprint)。


Reply to this email directly or view it on GitHubhttps://github.com/xueruini/thuthesis/issues/36#issuecomment-9451276.

@xueruini
Copy link
Contributor

实现起来其实还好,将扫描结果当成图片插入一个独立的页中,代码中对应的页选择性屏蔽。

@xueruini
Copy link
Contributor

任务书不需要放进去么?

@xueruini
Copy link
Contributor

https://github.com/xueruini/thuthesis/tree/bachelor-img

替换图片凑了一个,看看思路是否可行

alick added a commit to alick/thuthesis that referenced this issue Jun 4, 2015
@alick
Copy link
Contributor

alick commented Jun 4, 2015

基于上面的思路,我用 pdfpages 实现了一下。大家看看?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants