Skip to content

Commit b32efb4

Browse files
committed
typst PDF: re-add missing images (editors)
for #509
1 parent bbb215d commit b32efb4

File tree

4 files changed

+70
-1
lines changed

4 files changed

+70
-1
lines changed
File renamed without changes.

editor-support.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ to display GUI windows with Win32, Tk, IUP, ftw and Opengl.
1919
<img src="assets/plain-cl-slime-interaction.png"
2020
style="max-width: 800px" alt="Emacs and SLIME."/>
2121

22+
<!-- pdf-include-start
23+
![](assets/plain-cl-slime-interaction.png)
24+
pdf-include-end -->
25+
26+
<!-- todo: PDF generation: lacks IMG images -->
27+
2228

2329
### Using Emacs as an IDE
2430

@@ -37,6 +43,10 @@ for Vim.
3743
<img src="assets/slimv.jpg"
3844
style="width: 800px" alt="The Slimv plugin with an open REPL"/>
3945

46+
<!-- pdf-include-start
47+
![](assets/slimv.jpg)
48+
pdf-include-end -->
49+
4050
[cl-neovim](https://github.com/adolenc/cl-neovim/) makes it possible to write
4151
Neovim plugins in Common Lisp.
4252

@@ -73,6 +83,10 @@ It is based on the Swank backend, like Slime for Emacs.
7383
<img src="assets/atom-slime.png"
7484
style="width: 800px" alt="The SLIMA extension for Atom with an open Lisp REPL"/>
7585

86+
<!-- pdf-include-start
87+
![](assets/atom-slime.png)
88+
pdf-include-end -->
89+
7690
## VSCode
7791

7892
[Alive](https://marketplace.visualstudio.com/items?itemName=rheller.alive) makes
@@ -101,6 +115,10 @@ supports:
101115

102116
<img src="assets/commonlisp-vscode-alive.png" style="width: 800px" alt="The Alive VSCode plugin showing the interactive debugger."/>
103117

118+
<!-- pdf-include-start
119+
![](assets/commonlisp-vscode-alive.png)
120+
pdf-include-end -->
121+
104122
[commonlisp-vscode
105123
extension](https://marketplace.visualstudio.com/items?itemName=ailisp.commonlisp-vscode)
106124
works via the [cl-lsp](https://github.com/ailisp/cl-lsp) language server and
@@ -117,6 +135,12 @@ supports:
117135

118136
<img src="assets/commonlisp-vscode.png" style="width: 800px" alt="The VSCode extension with a Lisp REPL, code completion and a mini-map."/>
119137

138+
139+
<!-- pdf-include-start
140+
![](assets/commonlisp-vscode.png)
141+
pdf-include-end -->
142+
143+
120144
### Using VSCode with Alive
121145

122146
See [Using VSCode with Alive](vscode-alive.html).
@@ -146,6 +170,10 @@ At the time of writing, for its version 0.4, it supports:
146170

147171
<img src="assets/jetbrains-slt.png" style="width: 800px" alt="SLT, a good Common Lisp plugin for JetBrains IDEs."/>
148172

173+
<!-- pdf-include-start
174+
![](assets/jetbrains-slt.png)
175+
pdf-include-end -->
176+
149177

150178
## Eclipse
151179

@@ -156,7 +184,11 @@ Available for Windows, Mac and Linux, built-in SBCL and CLISP support
156184
and possibility to connect other environments, interactive debugger
157185
with restarts, macro-expansion, parenthesis matching,…
158186

159-
<img src="dandelion.png" style="width: 800px" alt="Dandelion, a simple Common Lisp plugin for Eclipse"/>
187+
<img src="assets/dandelion.png" style="width: 800px" alt="Dandelion, a simple Common Lisp plugin for Eclipse"/>
188+
189+
<!-- pdf-include-start
190+
![](assets/dandelion.png)
191+
pdf-include-end -->
160192

161193
## Lem
162194

@@ -169,6 +201,10 @@ Python, Go, Rust, JS, Nim, Scheme, HTML, CSS, plus a directory mode, a **vim lay
169201
<img src="assets/lem-sdl2.png"
170202
style="width: 800px" alt="Lem running in a SDL2 GUI."/>
171203

204+
<!-- pdf-include-start
205+
![](assets/lem-sdl2.png)
206+
pdf-include-end -->
207+
172208
It can be started as a REPL right away in the terminal. Run it with:
173209

174210
lem --eval "(lem-lisp-mode:start-lisp-repl t)"
@@ -184,6 +220,11 @@ There is more:
184220

185221
<img src="assets/lem1.png" style="width: 800px" title="Lem's REPL" alt="Lem running in the terminal with the Lisp REPL full screen, showing a completion window."/>
186222

223+
<!-- pdf-include-start
224+
![](assets/lem1.png)
225+
pdf-include-end -->
226+
227+
187228
## Sublime Text
188229

189230
[Sublime Text](http://www.sublimetext.com/3) has now good support for
@@ -201,6 +242,11 @@ inspection.
201242
<img src="assets/editor-sublime.png"
202243
style="width: 800px" alt="A Lisp REPL in Sublime Text"/>
203244

245+
<!-- pdf-include-start
246+
![](assets/editor-sublime.png)
247+
pdf-include-end -->
248+
249+
204250
## LispWorks (proprietary)
205251

206252
[LispWorks](http://www.lispworks.com/) is a Common Lisp implementation that
@@ -212,6 +258,10 @@ You can [read our LispWorks review here](lispworks.html).
212258

213259
<img src="assets/lispworks/two-sided-view.png" style="width: 800px" title="The LispWorks IDE" alt="The LispWorks listener and the editor in the Mate desktop environment"/>
214260

261+
<!-- pdf-include-start
262+
![](assets/lispworks/two-sided-view.png)
263+
pdf-include-end -->
264+
215265

216266
## Geany (experimental)
217267

@@ -222,6 +272,10 @@ highlighting of errors and warnings, a REPL, and a project skeleton creator.
222272

223273
<img src="assets/geany.png" style="width: 800px" alt="The Geany Lisp plugin showing compilation warnings"/>
224274

275+
<!-- pdf-include-start
276+
![](assets/geany.png)
277+
pdf-include-end -->
278+
225279

226280
## Notebooks
227281

@@ -233,6 +287,10 @@ You can [see a live Jupyter notebook written in Lisp here](https://nbviewer.jupy
233287
<img src="assets/jupyterpreview.png"
234288
style="width: 800px" alt="A Jupyter notebook running a Common Lisp kernel, exploring the Lorentz system of differential equations, showing a colorful 3D plot with interactive controls (note: the code in the screenshot is actually not Lisp!)"/>
235289

290+
<!-- pdf-include-start
291+
![](assets/jupyterpreview.png)
292+
pdf-include-end -->
293+
236294
There is also [Darkmatter](https://github.com/tamamu/darkmatter), a notebook-style
237295
Common Lisp environment, built in Common Lisp.
238296

@@ -248,6 +306,10 @@ You might also like [sbcli](https://github.com/hellerve/sbcli), an even simpler
248306
<img src="assets/cl-repl.png"
249307
style="width: 500px" alt="cl-repl 0.4.1 runnning in the terminal, built with Roswell, featuring multi-line prompts and syntax highlighting."/>
250308

309+
<!-- pdf-include-start
310+
![](assets/cl-repl.png)
311+
pdf-include-end -->
312+
251313

252314
## Others
253315

include-pdf-images.sed

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
s/<!-- pdf-include-start//g
3+
s/pdf-include-end -->//g

make-cookbook.lisp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
and the typst binary on the path."
101101
(format t "~&Generating the pdf with pandoc >= 3.8 and Typst...~&")
102102

103+
;; Include images for the PDF.
104+
;; The issue: our images in HTLM <img> tags are not brought along in the .typ then PDF.
105+
(uiop:run-program (format nil "~a -i -f include-pdf-images.sed ~a" *sed-command* *full-markdown*))
106+
103107
;; Transform our md file to .typ:
104108
(uiop:run-program (format nil "pandoc -o full.typ ~a" *full-markdown*)
105109
:output t

0 commit comments

Comments
 (0)