Benjamin Slade | 1 Aug 2011 17:24
Favicon
Gravatar

Re: auctex Digest, Vol 77, Issue 9

Getting forward search to work from AUCTeX/Emacs to pdfs in Okular under TeXlive 2011, the following seems to do the trick:

(1) Update to latest version of Okular (v0.13) - this may or may not be necessary.

(2) Define new expander to get current directory of TeX source:

(a) Go to "Customize AUCTeX" choose "TeXCommand" then go to "TeX Expand List" and add one:

(b) Add
Key: %(dir)
Expander: (lambda nil default-directory)

(3) In your .emacs, instead of (setq TeX-view-program-list '(("Okular" "okular --unique %o#src:%n%b"))), use:
(setq TeX-view-program-list '(("Okular" "okular --unique %o#src:%n%(dir)./%b")))


from:
https://bugs.kde.org/show_bug.cgi?id=274294#c18

Hopefully this will work for AUCTeX users.

--Ben

On 30 July 2011 16:54, Benjamin Slade <slade <at> jnanam.net> wrote:
Unfortunately, no. Here is an additional link to a discussion about the problem w.r.t. to Okular: https://bugs.kde.org/show_bug.cgi?id=274294 . But no solution there either (updating to the latest version of Okular doesn't help).

I've asked about this in a variety of places, and have yet to find any solution or workaround.

It puts one in a difficult situation: it's hard to update or install new TeX packages without using TeXlive 2011, but TeXlive 2011's generation of synctex files doesn't  allow for forward search with any viewer that I know of for Linux. I hadn't realised how useful forward search is until it stopped working.

--Ben

On 29 July 2011 11:00, <auctex-request <at> gnu.org> wrote:
Send auctex mailing list submissions to
       auctex <at> gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
       https://lists.gnu.org/mailman/listinfo/auctex
or, via email, send a message with subject or body 'help' to
       auctex-request <at> gnu.org

You can reach the person managing the list at
       auctex-owner <at> gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of auctex digest..."


Today's Topics:

  1. Re: texlive 2011 and synctex (forward search (Benjamin    Slade) (AW)


----------------------------------------------------------------------

Message: 1
Date: Thu, 28 Jul 2011 20:59:40 +0200
From: AW <alexander.willand <at> t-online.de>
To: auctex <at> gnu.org
Subject: Re: [AUCTeX] texlive 2011 and synctex (forward search
       (Benjamin       Slade)
Message-ID: <201107282059.41134.alexander.willand <at> t-online.de>
Content-Type: Text/Plain;  charset="iso-8859-1"

> Message: 1
> Date: Sun, 24 Jul 2011 14:17:28 -0500
> From: Benjamin Slade <slade <at> jnanam.net>
> To: auctex <at> gnu.org
> Subject: [AUCTeX] texlive 2011 and synctex (forward search
> Message-ID:
>       <CAH+j8rAt0COJy7Jc72QPnHQhcAzNPfOjVi2S7W_XJjfyWJczyA <at> mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I've asked this question unsuccessfully a number of different place (
> http://comments.gmane.org/gmane.comp.tex.live/29670 ), (
> http://tex.stackexchange.com/questions/22738/texlive-2011-pretest-trouble-w
> ith-synctex), (
> http://www.reddit.com/r/LaTeX/comments/ixpx8/texlive_2011_trouble_with_sync
> tex_emacsauctex/), and was wondering if anyone on the auctex list has a
> suggestion:
>
> Forward search with Emacs+AUCTeX doesn't work for me anymore using TeXlive
> 2011.
>
> The trouble seems to stem from a new way of handling path information:
>
> 2010: Input:1:multcirc-2.tex Input:32:multcirc-2.aux
> Input:43:multcirc-2.aux
>
> 2011: Input:1:F:/wfke/Tex/publ/Multcirc/./multcirc-2.tex
> Input:32:F:/wfke/Tex/publ/Multcirc/./multcirc-2.aux
> Input:43:F:/wfke/Tex/publ/Multcirc/./multcirc-2.aux
>
> See
> here<https://webcache.googleusercontent.com/search?q=cache:xuaofiNgAwkJ:fo
> rums.fofou.org/sumatrapdf/topic%3Fid%3D2131346+&cd=1&hl=en&ct=clnk&gl=us&so
> urce=encrypted.google.com>(
> https://webcache.googleusercontent.com/search?q=cache:xuaofiNgAwkJ:forums.
> fofou.org/sumatrapdf/topic%3Fid%3D2131346+&cd=1&hl=en&ct=clnk&gl=us&source=
> encrypted.google.com).
>
> Is there an easy fix for this with AUCTeX? I'm currently using Okular as my
> pdfviewer (under Linux).
> thanks,
>   --Ben

Ben,

has there been any usefull answer on your search? I rely heavily on synctex
and will not upgrade to texlive 2011 until this issue is solved.

Thank you for your good deal of trouble,

Alexander



-------------------------------------------------------------



------------------------------

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


End of auctex Digest, Vol 77, Issue 9
*************************************



--
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign                 
[ http://www.jnanam.net/slade/ ]                        
  
Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-----------------------------------------------------------------------------------------------------
  परो ऽक्ष॑कामा हि देवाः
    'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)



--
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign                 
[ http://www.jnanam.net/slade/ ]                        
  
Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-----------------------------------------------------------------------------------------------------
  परो ऽक्ष॑कामा हि देवाः
    'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)
_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Rafael | 1 Aug 2011 18:12
Picon
Gravatar

Re: PDF viewer: Evince

Christoph Bier <christoph.bier <at> web.de> writes:

> what's the correct configuration line for Evince as PDF viewer? 

this works for me with 11.86:

(setq TeX-view-program-selection
      '(((output-dvi style-pstricks)
         "dvips and gv")
        (output-dvi "Evince")
        (output-pdf "Evince")
        (output-html "xdg-open"))
      )
Quinn Culver | 1 Aug 2011 19:56
Picon
Gravatar

Re: AUCTeX's C-c C-c Behavior

I updated and the behavior seems to be gone; thank  you.

The variable TeX-view-program-selection also shows up now when I hit C-h v.



On Wed, Jul 27, 2011 at 13:18, Tassilo Horn <tassilo <at> member.fsf.org> wrote:
Quinn Culver <quinnculver <at> gmail.com> writes:

Hi Quinn,

> My "AUCTeX-version" variable has a value of 11.84. I notice on the AUCTeX
> website that the current version is 11.86. Was the "viewer stuff" updated
> since 11.84?

Yes, I think so.  So try updating (auctex 11.86 is also on ELPA if you
use package.el) and most probably it'll simply work, then. :-)

Bye,
Tassilo



--
Quinn Culver

"Inscribe all human effort with one word,
Artistry's haunting curse, the Incomplete!" - Robert Browning

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
spinner | 2 Aug 2011 14:03
Picon
Favicon

Track changes function?


Is there an Auctex function that compares two Tex files for changes and then
Tex compiles to produce a printed document (PDF) showing redlining,
strikeouts, etc. An alternative to the perl script -latexdiff-?

I'm not looking to diff two raw Tex files for viewing on a monitor. Rather,
I want to produce a compiled Tex document showing differences between two
Tex files with redlining, strikeouts, etc..

--

-- 
View this message in context: http://old.nabble.com/Track-changes-function--tp32177308p32177308.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
Joel James Adamson | 2 Aug 2011 20:12
Picon

Re: Track changes function?

spinner <michaelcrain <at> hotmail.com> writes:

> Is there an Auctex function that compares two Tex files for changes and then
> Tex compiles to produce a printed document (PDF) showing redlining,
> strikeouts, etc. An alternative to the perl script -latexdiff-?
>
> I'm not looking to diff two raw Tex files for viewing on a monitor. Rather,
> I want to produce a compiled Tex document showing differences between two
> Tex files with redlining, strikeouts, etc..

Check out ed.sty[1].  Not an onscreen tool, but pretty darn close to
what you're looking for.  What is the purpose of comparing the two
documents?

Joel

Footnotes: 
[1]  http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/ed.html

--

-- 
Joel J. Adamson
Servedio Lab -- University of North Carolina at Chapel Hill
FSF Member #8164 -- http://www.fsf.org/jf?referrer=8164
http://www.unc.edu/~adamsonj

Please use my new gmail address: <joeljamesadamson <at> gmail.com>
_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
spinner | 2 Aug 2011 21:12
Picon
Favicon

Re: Track changes function?


Hi, Joel:

Thanks for your message. I don't believe that ed.sty will work for
me. I'm not collaborating with the other person via a common Tex file.

I am writing my dissertation in LaTeX. My adviser uses MS Word and
won't use LaTeX. I send him a draft in PDF format generated from
LaTeX. He writes his comments in the PDF file using Acrobat and sends
his PDF file to me. I receive his comments and manually make changes
to my draft. I now have two files: draft_v1.tex and I make these
changes in draft_v2.tex. When I'm done editing, I want to create a
compiled 'redline' version of my new draft that tracks my changes from
version 1 to version 2.

I tried the Perl script -latexdiff- for this function. It worked well
except, for some reason, the coding that it added for sections in my
paper caused errors when compiling (in LaTeX) and I couldn't finish
compiling.  Here's an example of latexdiff code that caused a compile
error: \subsubsection{The \DIFaddbegin \DIFadd{anomalies }\DIFaddend
\DIFdelbegin \DIFdel{anomaly }\DIFdelend literature}
I'm using MikTex 2.8.

If I have only a few of these compile errors, I would manually get rid
of the problem coding and move on. But when I have a lot of these errors,
making manual changes because impractical.

I'm relatively new to using emacs/Auctex as my text editor. I'm
hoping Auctex has a function for what I want to do. But I haven't come
across anything yet.

Joel J. Adamson-2 wrote:
> 
> spinner <michaelcrain <at> hotmail.com> writes:
> 
>> Is there an Auctex function that compares two Tex files for changes and
>> then
>> Tex compiles to produce a printed document (PDF) showing redlining,
>> strikeouts, etc. An alternative to the perl script -latexdiff-?
>>
>> I'm not looking to diff two raw Tex files for viewing on a monitor.
>> Rather,
>> I want to produce a compiled Tex document showing differences between two
>> Tex files with redlining, strikeouts, etc..
> 
> Check out ed.sty[1].  Not an onscreen tool, but pretty darn close to
> what you're looking for.  What is the purpose of comparing the two
> documents?
> 
> Joel
> 
> Footnotes: 
> [1]  http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/ed.html
> 
> -- 
> Joel J. Adamson
> Servedio Lab -- University of North Carolina at Chapel Hill
> FSF Member #8164 -- http://www.fsf.org/jf?referrer=8164
> http://www.unc.edu/~adamsonj
> 
> Please use my new gmail address: <joeljamesadamson <at> gmail.com>
> 
>  
> _______________________________________________
> auctex mailing list
> auctex <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/auctex
> 
> 

--

-- 
View this message in context: http://old.nabble.com/Track-changes-function--tp32177308p32180629.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
Michael Bach | 3 Aug 2011 00:26
Picon

Forward search and page labels in evince

Hello AUCTeX users,

I have successfully activated I/O Correlation in AUCTeX (11.86 dev) for
evince (v. 3.0.2) via synctex.

Now I found that the forward search from within AUCTeX works fine with
C-c C-v if pages in evince are not labeled with an offset.

To be specific: I use a \setcounter{page}{1} in my thesis to begin page
numbering at the introduction after the title page, abstract and table
of contents.  Another example is the manual of the memoir documentclass:
The first 39 pages are numbered with roman numbers within evince.  This
labeling offset messes up forward search, i.e. it jumps to the correct
page number + labeling offset.

Now, is there someone using a similar setup who managed to solve this?
Can this offset be honoured by AUCTeX so as to jump to the right page?
Am I doing something wrong?

Best Regards,
Michael Bach
spinner | 3 Aug 2011 14:42
Picon
Favicon

Re: Track changes function?


UPDATE:
I've managed to get -latexdiff- working for me. My problem, I think,
was caused by trying to diff 2 files where each one had a parent-child
relationship. The preamble was in one file and the content
(dissertation chapter) was in the other.

To diff using latexdiff, I put the preamble and content in the same
tex file. I did this by combining the (1) parent file holding the
preamble and \include{childfile} commands and (2) related child file
holding the text. Combined parent and child into oldfile.tex and into
revisedfile.tex. I did this to get latexdiff to automatically add its
markup commands into my tex file preamble so Tex could compile the
diff file properly. Automatic insertion into the preamble is done with
the -t option in latexdiff.

Combining parent and child files is a pain taking a lot of time if I'm
going to diff my documents often. But it functions. Does anyone know a
better way to use latexdiff with parent-child files where the parent
holds the preamble and \include{childfile} commands and the child file
holds the text content?

spinner wrote:
> 
> Hi, Joel:
> 
> Thanks for your message. I don't believe that ed.sty will work for
> me. I'm not collaborating with the other person via a common Tex file.
> 
> I am writing my dissertation in LaTeX. My adviser uses MS Word and
> won't use LaTeX. I send him a draft in PDF format generated from
> LaTeX. He writes his comments in the PDF file using Acrobat and sends
> his PDF file to me. I receive his comments and manually make changes
> to my draft. I now have two files: draft_v1.tex and I make these
> changes in draft_v2.tex. When I'm done editing, I want to create a
> compiled 'redline' version of my new draft that tracks my changes from
> version 1 to version 2.
> 
> I tried the Perl script -latexdiff- for this function. It worked well
> except, for some reason, the coding that it added for sections in my
> paper caused errors when compiling (in LaTeX) and I couldn't finish
> compiling.  Here's an example of latexdiff code that caused a compile
> error: \subsubsection{The \DIFaddbegin \DIFadd{anomalies }\DIFaddend
> \DIFdelbegin \DIFdel{anomaly }\DIFdelend literature}
> I'm using MikTex 2.8.
> 
> If I have only a few of these compile errors, I would manually get rid
> of the problem coding and move on. But when I have a lot of these errors,
> making manual changes because impractical.
> 
> I'm relatively new to using emacs/Auctex as my text editor. I'm
> hoping Auctex has a function for what I want to do. But I haven't come
> across anything yet.
> 
> 
> 
> Joel J. Adamson-2 wrote:
>> 
>> spinner <michaelcrain <at> hotmail.com> writes:
>> 
>>> Is there an Auctex function that compares two Tex files for changes and
>>> then
>>> Tex compiles to produce a printed document (PDF) showing redlining,
>>> strikeouts, etc. An alternative to the perl script -latexdiff-?
>>>
>>> I'm not looking to diff two raw Tex files for viewing on a monitor.
>>> Rather,
>>> I want to produce a compiled Tex document showing differences between
>>> two
>>> Tex files with redlining, strikeouts, etc..
>> 
>> Check out ed.sty[1].  Not an onscreen tool, but pretty darn close to
>> what you're looking for.  What is the purpose of comparing the two
>> documents?
>> 
>> Joel
>> 
>> Footnotes: 
>> [1]  http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/ed.html
>> 
>> -- 
>> Joel J. Adamson
>> Servedio Lab -- University of North Carolina at Chapel Hill
>> FSF Member #8164 -- http://www.fsf.org/jf?referrer=8164
>> http://www.unc.edu/~adamsonj
>> 
>> Please use my new gmail address: <joeljamesadamson <at> gmail.com>
>> 
>>  
>> _______________________________________________
>> auctex mailing list
>> auctex <at> gnu.org
>> https://lists.gnu.org/mailman/listinfo/auctex
>> 
>> 
> 
> 

--

-- 
View this message in context: http://old.nabble.com/Track-changes-function--tp32177308p32185938.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
auxsvr | 5 Aug 2011 20:20
Picon

Re: Question on okular as previewer ...

On Sunday 31 of July 2011 18:06:21 Dr. Ing. Dieter Jurzitza wrote:
> Dear listmembers,
> as xpdf has turned quite slow recently I would like to replace xpdf by
> okular.
> 
> According to the suggestions here (auctex 11.86, emacs 23.3.1) I added
> the line
>   ("Okular"
>    ("okular --unique %o"
>     (mode-io-correlate "#src:%n%b")))
> 
> in tex.el following the "Evince" entry. Now, if I modify
> .gnu-emacs-custom to say
> 
>  '(TeX-view-program-selection (quote (((output-dvi style-pstricks)
> "dvips and gv") (output-dvi "xdvi") (output-pdf "xpdf") (output-html
> "xdg-open"))) nil nil "")
> 
> and replace "xpdf" by "okular" emacs freezes the very moment I press
> enter following a file to preview - any suggestions? Any way to debug
> what happens?

Same here. I'm using okular here after replacing xpdf with xdg-open in 
TeX-view-program-selection.

> Many thanks for your efforts,
> take care
> 
> Dieter Jurzitza
Regards,
Peter
Ralf Angeli | 7 Aug 2011 17:00

Re: glossaries style file for RefTeX

* Woogon Chung (2011-07-11) writes:

> My question is about RefTeX but I believe the AUCTeX embraces the
> RefTeX as a sister or one of siblings.
> I was looking for a glossaries.el or similar one (a style file for the
> glossaries package to AUCTeX) for the purpose of adding macros defined
> in the package. In the RefTeX manual (V4.34, page 15) there is an
> example for AMSLaTeX use case, which utilizes the amsmath.el to the
> AUCTeX.

The style files in AUCTeX don't add macros to RefTeX, they only switch
on or configure certain features which are related to properties of the
document, like a certain package which is loaded.  So in order to
support glossaries.sty one would probably add support for it in RefTeX
and switch that on with an AUCTeX style file.  (Obviously, the AUCTeX
style file should also define the macros provided by glossaries.sty for
the case that RefTeX is not used.)

At the moment RefTeX supports the \glossary command as it is defined by
LaTeX.  And that macro seems to work in a similar way as the \index
command.  Commands like \gls in glossaries.sty seem to work a bit
differently in that they reference a definition of a glossary entry with
a label, so if one wanted to support glossaries.sty one would probably
use the mechanisms for labels and references and not the ones defined
for indexing.  (In your other message you already mentioned
`reftex-label-alist'.)

> The glossaries package has simply (too) many macros defined
> for the referencing purpose. So, I thought someone out there had done
> it already, presuming that the glossaries package is such a great
> package combining glossaries and indices feature.

As you have already noted there is no support for glossaries.sty in
RefTeX or AUCTeX yet.  And at least I haven't heard of somebody who
wants to add support for it.

--

-- 
Ralf

Gmane