Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange shift error #53

Open
deb75 opened this issue Nov 11, 2023 · 1 comment
Open

Strange shift error #53

deb75 opened this issue Nov 11, 2023 · 1 comment

Comments

@deb75
Copy link

deb75 commented Nov 11, 2023

Hi

You can notice in attached screen capture that there is a slight vertical shift between the "TITLE" svg
and the following text. This shift appears precisely as soon as I begin to write a non space character after the keyword.

This shift does only append with the #+TITLE: orgmode keyword. As an example, for the #+SUBTITLE: keyword, it is
correctly displayed.

svg-tag-mode-err

But settings in orgmode for both keywords are exaclty the same :

        svg-tag-tags
        `(
          ;;
          ;; File header
          ;;

          ("^\\(#\\+TITLE:[\s-]*\\)" . ((lambda (tag) (local/svg-tag-make-title "TITLE" :margin 0 :face 'svg-title :inverse t :crop-right t))))
          ("^#\\+TITLE:[\s-]*\\([^\s-].*\\)" . ((lambda (tag) (local/svg-tag-make-title tag :margin 0 :face 'svg-title :crop-left t))))

          ("^\\(#\\+SUBTITLE:[\s-]*\\)" . ((lambda (tag) (local/svg-tag-make-headline "SUBTITLE" :margin 0 :face 'svg-title :inverse t :crop-right t))))
          ("^#\\+SUBTITLE:[\s-]*\\([^\s-].*\\)" . ((lambda (tag) (local/svg-tag-make-headline tag :margin 0 :face 'svg-title :crop-left t))))

Do you have a clue about what is happening ?

Regards

@rougier
Copy link
Owner

rougier commented Nov 16, 2023

What is the font you're using (and size) and the initial text (not sure I got where you add space). I would need to test myself because at the moment I've no idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants