Files being locked - working with LaTeX

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

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

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

Files being locked - working with LaTeX

Post by fghj » Sat Feb 23, 2013 11:34 am

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: 271
Joined: Wed Nov 07, 2007 10:07 am

Re: Files being locked - working with LaTeX

Post by BigMike » Sat Feb 23, 2013 11:56 am

Probably, it's a good idea to read the whole Thread: http://www.tracker-software.com/forum3/ ... =35&t=3143, since it's all about PDF-Xchange Viewer and LaTeX. For opening a document without file locking, look especially at http://www.tracker-software.com/forum3/ ... 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 » Sat Feb 23, 2013 12:05 pm

Thanks for the fast reply and sorry for only using Google and not the forum search before.

User avatar
BigMike
User
Posts: 271
Joined: Wed Nov 07, 2007 10:07 am

Re: Files being locked - working with LaTeX

Post by BigMike » Sat Feb 23, 2013 4:15 pm

:) 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 » Sun Feb 24, 2013 1:19 pm

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: 13557
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Files being locked - working with LaTeX

Post by Tracker Supp-Stefan » Mon Feb 25, 2013 12:52 pm

Hi shehab30319,

And many thanks for sharing this LaTeX trick! :)

Cheers,
Stefan

Post Reply