Files being locked - working with LaTeX

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
fghj
User
Posts: 68
Joined: Fri Jul 22, 2011 11:02 am

Files being locked - working with LaTeX

Post by fghj »

Hey,

I'm very fine with using PDF-XChange Viewer, but now as I'm beginning to work with LaTeX (with LyX to be precise), an annoying thing appears: It's not possible for LyX to update the PDF-file which is open in the Viewer. This is something you regularly do while writing and it is not a good solution to close the file every time and open it again. The file seems to be locked in the Viewer. Is this something I can change or avoid?

It works fine with Sumatra PDF, but I'd like to stick to PDF-XChange Viewer.
Thanks!
User avatar
BigMike
User
Posts: 307
Joined: Wed Nov 07, 2007 10:07 am

Re: Files being locked - working with LaTeX

Post by BigMike »

Probably, it's a good idea to read the whole Thread: https://forum.pdf-xchange.com/ ... =35&t=3143, since it's all about PDF-Xchange Viewer and LaTeX. For opening a document without file locking, look especially at https://forum.pdf-xchange.com/ ... 43&p=58746

Kind regards
Michael
fghj
User
Posts: 68
Joined: Fri Jul 22, 2011 11:02 am

Re: Files being locked - working with LaTeX

Post by fghj »

Thanks for the fast reply and sorry for only using Google and not the forum search before.
User avatar
BigMike
User
Posts: 307
Joined: Wed Nov 07, 2007 10:07 am

Re: Files being locked - working with LaTeX

Post by BigMike »

:) No problem, I know there are also some other threads about LaTeX here, but the two "solutions" (auto closing and non-locking) are both described in this thread.
shehab30319
User
Posts: 1
Joined: Sun Feb 24, 2013 7:24 am

Re: Files being locked - working with LaTeX

Post by shehab30319 »

LaTeX enumerates by default all sections. It is possible to disable numbering of a specific section by adding an asterisk (*) after the section command like this:

\section*{Introduction}
\subsection*{Test}

However, when you do this, the section is not added to the table of contents. Sometimes you want to disable section numbering but still need to generate a table of contents, or you want to have bookmarks in the generated PDF file. Add this code at the start of your document, and your problem is solved:

% disables chapter, section and subsection numbering
\setcounter{secnumdepth}{-1}
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Files being locked - working with LaTeX

Post by Tracker Supp-Stefan »

Hi shehab30319,

And many thanks for sharing this LaTeX trick! :)

Cheers,
Stefan
Post Reply