4

Is it possible to define a setting or something to fix window scrolling in LyX to a specific relative position? That is, say my view is set such that I'm typing on the third of the visible lines, and I want the window to scroll down automatically while hitting enter or moving on to the next line to stay on the third visible line.

Has anyone heard of anything like that? Sorry if I wasn't entirely clear, English isn't mother tongue...

Thanks!

  • 3
    Welcome to TeX-sx! This sounds like an editor feature: which one do you use? – Joseph Wright Jun 15 '15 at 10:26
  • Hi, thanks for the quick reply! I'm not exactly sure what you mean by editor- I downloaded Lyx from lyx.org, so I guess they only have one editor there. – Johnathan Jun 15 '15 at 10:53
  • I don't think that regular editor interfaces provide such a thing. Try vim to define such behviour. emacs might work too. But after all keep in mind that Ed is the UNIX Editor. – ikrabbe Jun 15 '15 at 11:17
  • 2
    @ikrabbe As the OP uses LyX (i.e. not a normal text editor), Vim/Emacs are irrelevant. Johnathan: I can't see anything like that in the preferences at first glance, so I think the answer is 'no'. If I'm right about that, your only option is, I think, to post a feature request at lyx.org/trac/wiki/BugTrackerHome, and live with the current situation. – Torbjørn T. Jun 15 '15 at 12:17
  • Yes, that's what I meant with "regular editor interfaces" -> LyX. That he uses lyx was not clear at the time I wrote the comment. – ikrabbe Jun 15 '15 at 17:27
1

Scrolling with arrow maintain always the cursor visible in the window between the first and last line of the screen, so I guess that the major problem is when you use the scrolling bar (or the equivalent scroll wheel of the mouse) and the cursor go away.

I think that the closest feature to what you're looking for is the toggle-cursor-follows-scrollbar Lyx function, that is off by default. To change it go to menu Tool > Preferences > In the left tree go to Edition > Control > and check the first box in the right.

Now the cursor, according to the text format, will remain between the 1-3 first lines when scrolling up or the 1-3 last lines when scrolling down with the scroll wheel, so it is more easy to find the cursor and check the surrounding text that using the arrow keys.

N.B.: In the same preferences you can increase the size (visibility) of the cursor.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.