Preferences > Appearance > Open Theme Folder
lapis-cv.css
,
lapis-cv-serif.css
,
lapis-cv
directory
Lapis Cv
/
Lapis Cv Serif
from the theme menu.
File > Export > PDF
to export the PDF file.
Before exporting, set the page size to A4 and margins to custom
in Preferences > Export > PDF
, with top and bottom
margins of 13mm, and left and right margins of 15mm:
Modify the style path in .vscode/settings.json
:
"markdown.styles": [
"./lapis-cv/styles/main.css",
"./lapis-cv/styles/lapis-cv.css", // lapis-cv-serif.css for Serif
],
Note: Other VSCode plugins may affect the style. If the effect is inconsistent, check if any plugins are interfering.
Download and unzip
Release, open the lapis-cv-obsidian
directory as a Vault
in Obsidian, edit the template, and export the PDF file.
Switch themes in
Options > Appearance > CSS snippets
<img alt="avatar" src="...">
Replace the src image path when editing the avatar. Delete this line if no avatar is needed.
Note: Obsidian cannot recognize local images inserted in HTML format, so it is recommended to upload the image as a link before inserting.
Supported Icons:
















Insert ---
at the position where a page break is
needed.
Set the footer in Preferences > Export > PDF
,
e.g., ${pageNo} / ${totalPages}
Modify .vscode/settings.json
:
"markdown-pdf.displayHeaderFooter": true,
"markdown-pdf.headerTemplate": "<div></div>",
"markdown-pdf.footerTemplate": "<div style=\"font-size: 9px; margin: 0 auto;\"> <span class='pageNumber'></span> / <span class='totalPages'></span></div>",
The software itself does not support adding page numbers directly. You can install plugins for this.
Preferences > Export > PDF
markdown-pdf.margin
related
items in the .vscode/settings.json
file.
Modify --file-margins
in the style file, see
Custom Styles below.
Custom styles can be used to adapt to different content volumes and adjust details according to preferences.
Modify variables in the corresponding editor's style file
lapis-cv.css
/ lapis-cv-serif.css
:
Preferences > Appearance > Open Theme Folder
lapis-cv/styles
in the folderOptions > Appearance > CSS snippets > Right button - Open
snippets folder
/* Custom Configs */
/* Basic Configs */
--text-size: 10pt; /* Text font size */
--line-height: 1.8; /* Text line height */
--avatar-width: 29mm; /* Avatar width */
/* Font Configs */
--h1-size: 16pt; /* Level 1 heading font size */
--h2-size: 12pt; /* Level 2 heading font size */
--h3-size: 10.5pt; /* Level 3 heading font size */
--blockquote-size: 9.3pt; /* Info block font size */
--text-font: 'SourceHanSansCN'; /* Text font */
--title-font: 'SourceHanSerifCN'; /* Title font */
--link-font: 'JetBrainsMono'; /* Link font */
--code-font: 'JetBrainsMono'; /* Code font */
/* Colors */
--color-accent: #4870ac; /* Theme color */
--text-normal: #353a42; /* Text color, change to pure black if printing is needed */
--link-color: #0563c1; /* Link color */
Note: Some styles require restarting the application to take effect.