# Line appears on images when setting default to variable-pitch in org-present

**URL:** <https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942>\
**Category:** Emacs Lisp\
**Tags:** emacs\
**Created:** [August 23, 2024, 2:33pm UTC](https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942 "2024-08-23T14:33:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattiasdrp](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mattiasdrp](https://forum.systemcrafters.net/u/mattiasdrp)\
**Post date:** [August 23, 2024, 2:33pm UTC](https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942/1 "2024-08-23T14:33:59Z")

</div>

Hi,

I followed the tutorial about org-present ([The Secrets of My Emacs Presentation Style - System Crafters](https://systemcrafters.net/emacs-tips/presentations-with-org-present/)) but when I present an image it shows a weird line in the middle of it. Removing the line `(default (:height 1.5) variable-pitch)` in `my/org-present-start` fixes the issue but then I can’t use the variable-pitch font.

I created an archive to test it (can not upload it here so here’s a link [https://transfert.free.fr/QJuESQM](https://transfert.free.fr/QJuESQM)):

```auto
tar -xvzf test_sc.tar.gz
cd .org-present-emacs.d
emacs --init-directory . test.org
M-x org-present

```

And you should see this:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/systemcrafters/original/1X/d0ce5b11121c2d88cac13083aef55c21e81c8046.jpeg)

---

<div class="post-metadata">

**Author:** ![mirkoh](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mirkoh](https://forum.systemcrafters.net/u/mirkoh)\
**Post date:** [August 24, 2024, 9:56pm UTC](https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942/2 "2024-08-24T21:56:06Z")

</div>

I had a similar issue with pdf-tools and evil a green border around the pages, the solution was trying different evil cursor options.

```auto
(defun my/pdf-view-hook-function ()
  (set (make-local-variable 'evil-normal-state-cursor) (list nil))
  (set (make-local-variable 'evil-evilified-state-cursor) (list nil))
  (set (make-local-variable 'evil-emacs-state-cursor) (list nil))
)
(add-hook 'pdf-view-mode-hook 'my/pdf-view-hook-function)

```

---

<div class="post-metadata">

**Author:** ![mattiasdrp](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mattiasdrp](https://forum.systemcrafters.net/u/mattiasdrp)\
**Post date:** [August 24, 2024, 10:28pm UTC](https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942/3 "2024-08-24T22:28:13Z")

</div>

Sadly this won’t work for me since I’m not using evil. I’m using the snippet from the tutorial as you can see in this github gist: [init.el · GitHub](https://gist.github.com/mattiasdrp/195039caa33d55e7130aafbbd705478f) (you’ll need to save the image below as `calvin_hobbes.jpg` for it to work)

![calvin_hobbes](https://canada1.discourse-cdn.com/flex029/uploads/systemcrafters/original/1X/410fee3b74578a517db996f38238e41fba0cdce7.jpeg)

---

<div class="post-metadata">

**Author:** ![spacefrogg](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@spacefrogg](https://forum.systemcrafters.net/u/spacefrogg)\
**Post date:** [April 14, 2025, 1:11pm UTC](https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942/4 "2025-04-14T13:11:20Z")

</div>

I am facing the same issues regularly with pdf-view and org-mode (everytime I try some new emacs config).

The culprit is an active `underline` face property of the link behind the image (org-mode) or, usually, an active `hl-line` which uses the underline face property (pdf-view).

So, while remapping the faces for org-present, add `'(org-link (:underline nil) org-link)`.

---

<div class="post-metadata">

**Author:** ![mattiasdrp](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mattiasdrp](https://forum.systemcrafters.net/u/mattiasdrp)\
**Post date:** [April 14, 2025, 1:23pm UTC](https://forum.systemcrafters.net/t/line-appears-on-images-when-setting-default-to-variable-pitch-in-org-present/942/5 "2025-04-14T13:23:31Z")

</div>

Oh, thanks! Will try it!
