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

Right aligned in html #277

Merged
merged 1 commit into from
Apr 13, 2019
Merged

Conversation

Hagb
Copy link
Contributor

@Hagb Hagb commented Apr 13, 2019

It works… 虽然代码有点不好看……

(话说这些名字的前两行有一行是“\ ”,是干啥的?)

@tonghuix
Copy link
Contributor

我真不觉得这个是 dirty hack,合并!

@tonghuix tonghuix merged commit 7421861 into beijinglug:gnu-sync Apr 13, 2019
@tonghuix
Copy link
Contributor

tonghuix commented Apr 13, 2019

\ + 空格可以产生强制换行,这样可以让前文和落款之间有一定空当。当然也可以 <!--(PDF)->注释的方式来解决。

@Hagb
Copy link
Contributor Author

Hagb commented Apr 13, 2019

mkdocs 生成的文档中"\ "似乎直接被显示出来了……

@tonghuix
Copy link
Contributor

刚刚没本地测试一下,我发现在 PDF 版的整个落款部分缺失。

@Hagb
Copy link
Contributor Author

Hagb commented Apr 13, 2019

咦……我测试的时候看到是右置的落款……

@tonghuix
Copy link
Contributor

难道是版本的问题?

我用的是 Pandoc 2.7.1 + Texlive 2019。

@Hagb
Copy link
Contributor Author

Hagb commented Apr 13, 2019

我之前编译的显示出来是这样

捕获

捕获2

捕获3

@tonghuix
Copy link
Contributor

mkdocs 生成的文档中"\ "似乎直接被显示出来了……

mkdocs 对各种 Pandoc 支持的嵌入式格式支持不好,而且还有 #273 里面提到的字体问题。

@Hagb
Copy link
Contributor Author

Hagb commented Apr 13, 2019

emmm……可以给“\ ”加上“<!--(pandoc)(pandoc)-->”:<!--(pandoc)\ (pandoc)-->
pandoc 生成的 html、epub 有没有字体问题?

@tonghuix
Copy link
Contributor

emmm……可以给“\ ”加上“”:<!--(pandoc)\ (pandoc)-->
pandoc 生成的 html、epub 有没有字体问题?

没有字体问题,主要是我本地机器因为已经安装了相应的字体,浏览器会自动调取。

@Hagb
Copy link
Contributor Author

Hagb commented Apr 13, 2019

没有字体问题,主要是我本地机器因为已经安装了相应的字体,浏览器会自动调取。

emmm……我是想说,对于 mkdocs 生成的 html 我们要考虑附录 B 的字体在某些环境下的缺失,那么对于 pandoc 生成的需不需要考虑?

@tonghuix
Copy link
Contributor

没有字体问题,主要是我本地机器因为已经安装了相应的字体,浏览器会自动调取。

emmm……我是想说,对于 mkdocs 生成的 html 我们要考虑附录 B 的字体在某些环境下的缺失,那么对于 pandoc 生成的需不需要考虑?

你先测试一下再说

@Hagb
Copy link
Contributor Author

Hagb commented Apr 13, 2019

emmm……在学校,没有测试环境……
如果机器没有相关字体,那么 pandoc 生成的 html 也不能幸免吧?(我们需不需要考虑这种情况?)

@tonghuix
Copy link
Contributor

想办法找一个没有安装字体的机器,打开这个页面试试 https://fsfs-zh.readthedocs.io/appendix-b/

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

Successfully merging this pull request may close these issues.

2 participants