大量的更新
This commit is contained in:
4
0-pandoc-失败/epub-失败/convert.ps1
Normal file
4
0-pandoc-失败/epub-失败/convert.ps1
Normal file
@@ -0,0 +1,4 @@
|
||||
#pandoc perplexity.md --from markdown+pipe_tables+fenced_code_blocks+fenced_code_attributes --to epub3 --filter mermaid-filter.cmd --epub-embed-font="C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectAGiPrompt\\0-pandoc电子书转换\\fonts\\SourceHanSansCN-Medium.otf" --css="epub-style.css" --syntax-highlighting=pygments --standalone --toc --toc-depth=3 --output output.epub
|
||||
|
||||
|
||||
pandoc perplexity.md -f markdown -t pdf -o output.pdf --pdf-engine=xelatex -V geometry:margin=0.5in --syntax-highlighting=kate --filter=mermaid-filter.cmd --standalone --table-of-contents --number-sections
|
||||
66
0-pandoc-失败/epub-失败/epub-style.css
Normal file
66
0-pandoc-失败/epub-失败/epub-style.css
Normal file
@@ -0,0 +1,66 @@
|
||||
@font-face {
|
||||
font-family: "Source Han Sans CN";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src: url("C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectAGiPrompt\\0-pandoc电子书转换\\fonts\\SourceHanSansCN-Medium.otf");
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Source Han Sans CN", sans-serif;
|
||||
font-size: 1.2em;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
/* 表格样式 */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px 12px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #f5f5f5;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
/* 代码块样式 */
|
||||
pre {
|
||||
background-color: #f4f4f4;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
padding: 1em;
|
||||
overflow-x: auto;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: "Courier New", monospace;
|
||||
background-color: #f4f4f4;
|
||||
padding: 2px 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 标题样式 */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Source Han Sans CN", sans-serif;
|
||||
font-weight: bold;
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
BIN
0-pandoc-失败/fonts/SourceHanSansCN-Medium.otf
Normal file
BIN
0-pandoc-失败/fonts/SourceHanSansCN-Medium.otf
Normal file
Binary file not shown.
9
0-pandoc-失败/pdf/chinese-template.tex
Normal file
9
0-pandoc-失败/pdf/chinese-template.tex
Normal file
@@ -0,0 +1,9 @@
|
||||
\documentclass{article}
|
||||
\usepackage{xeCJK}
|
||||
\setCJKmainfont{C:\Users\wddsh\Documents\IdeaProjects\ProjectAGiPrompt\0-pandoc\fonts\SourceHanSansCN-Medium.otf}
|
||||
\usepackage{geometry}
|
||||
\geometry{margin=0.5in}
|
||||
\usepackage{listings}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{longtable}
|
||||
\usepackage{booktabs}
|
||||
7
0-pandoc-失败/pdf/convert.ps1
Normal file
7
0-pandoc-失败/pdf/convert.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
pandoc C:\Users\wddsh\Documents\IdeaProjects\ProjectAGiPrompt\0-pandoc\perplexity.md -f markdown -t pdf -o output.pdf --pdf-engine=xelatex --syntax-highlighting=kate --filter=mermaid-filter.cmd --standalone -V CJKmainfont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" -V CJKsansfont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" -V CJKmonofont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" --variable=CJKoptions:BoldFont="C:/Users/wddsh/Documents/IdeaProjects/ProjectAGiPrompt/0-pandoc/fonts/SourceHanSansCN-Medium.otf" --variable=numbersections:false --variable=secnumdepth:0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
17
0-pandoc-失败/转换pandoc.md
Normal file
17
0-pandoc-失败/转换pandoc.md
Normal file
@@ -0,0 +1,17 @@
|
||||
在windows系统中,使用pandoc将一个markdown文件转换为epub文件,请基于如下的条件转换
|
||||
1. 完整保留markdown的语法,去除掉特殊符号
|
||||
2. epub中的字体,使用思源黑体CN-Medium
|
||||
3. markdown中的表格,注意在epub中有合适的表格结构
|
||||
4. markdown中的mermaid图像,请解析为合适的图片嵌入至epub中
|
||||
5. markdown中的代码块,请合理的解析,在epub中有引用或者突出显示
|
||||
|
||||
请基于上面的要求,给出转换命令
|
||||
|
||||
|
||||
在windows系统中,使用pandoc将一个markdown文件转换为pdf文件,请基于如下的条件转换
|
||||
1. 完整的解析markdown渲染后的全部格式,去除掉特殊符号
|
||||
2. pdf的页边距使用窄边距
|
||||
3. markdown中的代码块、表格需要被正确的渲染
|
||||
4. markdown中的mermaid图像,需要被正确的渲染
|
||||
|
||||
请基于上面的要求,给出转换命令
|
||||
Reference in New Issue
Block a user