image - 如何使用 pandoc/latex 在 markdownfile 中调整所有图像的大小和位置?
问题描述
我正在寻找一种方法来调整现有降价文件中所有图像的大小,例如,我希望所有图片的最大宽度为文本块宽度的 80%,并且所有图像都居中并加边框。我该怎么做?有没有办法自定义边框,例如该边框的颜色和宽度?
这是我的降价文件的示例:
# section
## subsection
### subsubsection
![dummy1](.\dummy1.jpg)
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting.
![dummy2](.\dummy2.png)
| Eigenschaft | Typ | Beschreibung |
| :---------: | :-------------------------: | :----------------------------------------------------------- |
| `general` | `object` <br/> *(optional)* | Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. |
| `esri` | `object` <br/> *(optional)* | Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. |
| `webgen` | `object` <br/> *(optional)* | Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. |
使用 pandoc 和这个 shell 脚本:
pandoc "$1" \
-f gfm \
--include-in-header chapter_break.tex \
--highlight-style pygments\
-V linkcolor:blue \
-V geometry:a4paper \
-V geometry:margin=2cm \
-V mainfont="Arial" \
-V monofont="Arial" \
-o "$2"
和这个 tex 文件
\usepackage{sectsty}
\sectionfont{\clearpage}
我得到这个结果
我正在寻找一种使用 pandoc shellscript 将所有图片宽度缩小到 80% 文本宽度的方法。
此外,我正在寻找一种解决方案,以正确的方式格式化表格,因为它的宽度不正确。但仍在使用
\usepackage{sectsty}
\sectionfont{\clearpage}
tex 文件。非常感谢您的帮助!
解决方案
推荐阅读
- javascript - 如何拖动元素并确保光标不会比它快?
- javascript - 无法将类导入 index.js 文件
- css - 如何用css实现这种模糊效果
- c++ - C++ operator[] 访问 SIMD(例如 AVX)变量的元素
- c# - 通过c#在Labelary api中使用ttf字体
- kotlin - 查找列表中验证条件的第一个元素
- javascript - 如何显示成功消息 NgRX 效果和调度事件
- jenkins - Git 克隆不适用于 Jenkins 管道的 EC2
- sql-server - 将查询加入另一个查询时出现 Sql 查询问题
- swift - 添加 ViewController 时出现“无法识别的选择器发送到实例”错误