Page Layout ⇒ Line Numbers from Source Code in PDF Output
Line Numbers from Source Code in PDF Output
I'm very new to LaTeX but am really starting to see the possibilities.
I have one question that I could not seem to find an answer for online. Basically I would like the command line numbers from TeXworks to be displayed when I output a PDF. This will make editing my work far more efficient as I will automatically know where to find errors my work. This will be very important for me as i have just begun a Ph.D and will have a very large body of work.
I have tried the package lineno, but that dosent help much at all.
Any help with this would be greatly appreciated.
cheers,
Danoz
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Line Numbers from Source Code in PDF Output
Use the SyncTeX capabilities of TeXworks to switch between source and output. A right-click opens a context menu which offers either to go to the output or to the source, depending on the window in which you do the right-click. This should help to keep track of changes and make the navigation in the document as well as the source much easier.
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10