Philip Brown | 3 Jan 13:24 2012

context-mode

hello, 

I downloaded Tex Live 2011 from the Tex Users Group onto Windows and then downloaded GNU emacs 23.3.1 with
auctex from Vincent Goulet's website.

Unfortunately, it seems that context-mode is not working (running context gives an error: Context Full:
succesfull formatted [0] pages).

 I am able to run Context from the Windows command line and it works fine, so I don't htink there is anything
wrong with the Tex Live installation.

I previously downloaded Tex Live 2009 with GNU emacs 22.3.1 with auctex from Vincent Goulet's website and
context-mode worked with this intallation.

Can somebody give me an idea what the problem might be? How can I fix it?

I tried getting help from the Context people (NTG) but they don't know what to do.

Thank you,

Philip Brown (brownp <at> tamug.edu)
Nuno Lopes | 3 Jan 13:47 2012
Picon

reftex and import package

Hello list,

I'm writing my thesis and started to use the "import" package [1] to include other papers (kept in different
directories and may have imports of their own).

In the code I have in main.tex:

\import{ch1}{intro}

I would like to have the contents of "ch1/intro.tex" included in the TOC.  I tried adding the "import" and
"subimport" to the "reftex-include-file-commands" variable but this didn't work. AFAIK it would
require the file to be the first argument of the "import" command but it is actually (roughly) determined
by the concatenation of the first and second arguments. Is there an easy workaround for this? Would be
great to be able to use the TOC. 

Thanks a lot, best regards,
--
Nuno Lopes

[1] http://ctan.org/tex-archive/macros/latex/contrib/import
Finn Årup Nielsen | 7 Jan 01:37 2012
Picon
Picon

Commands work but menu-bar not

I am experiencing the same problem with the speciel auctex-menu items
that do not open: 

http://lists.gnu.org/archive/html/help-gnu-emacs/2011-11/msg00169.html

I have not seen any solution to the problem. My C-c C-c works, emacs -Q
doesn't help me. I have nothing of importance in my ~/.emacs except
(column-number-mode t) and custom-set-faces. I am using Ubuntu 10.10
(Maverick Meerkat) on the system that got the problem. 

/Finn
David Kastrup | 7 Jan 12:51 2012
X-Face
Picon
Picon

Re: Commands work but menu-bar not

Finn Årup Nielsen <fn <at> imm.dtu.dk> writes:

> I am experiencing the same problem with the speciel auctex-menu items
> that do not open: 
>
> http://lists.gnu.org/archive/html/help-gnu-emacs/2011-11/msg00169.html
>
> I have not seen any solution to the problem. My C-c C-c works, emacs -Q
> doesn't help me. I have nothing of importance in my ~/.emacs except
> (column-number-mode t) and custom-set-faces. I am using Ubuntu 10.10
> (Maverick Meerkat) on the system that got the problem. 

The load path shadowing is a red herring: Debian's Emacs package system
is totally contorted and places .elc files and .el files in different
directories.

Do the other Emacs menu items actually open?

--

-- 
David Kastrup
Davide G. M. Salvetti | 8 Jan 10:11 2012
X-Face
Face
Picon

Re: Commands work but menu-bar not

>>>>>  DK == David Kastrup [2012-1-7]

DK> The load path shadowing is a red herring: Debian's Emacs package
DK> system is totally contorted and places .elc files and .el files in
DK> different directories.

The Debian AUCTeX package (as of "latest" releases, since 11.82-1 or so,
IIRC) should behave well in this respect: .el files are placed also in
the same directory as .elc files and the load-path should be such that
the directory containing .elc and .el files comes before that the one
containing .el files alone.

However, you are probably right about Debian's Emacs package system
being contorted.

--

-- 
Regards, Davide
David Kastrup | 8 Jan 11:57 2012
Picon
Picon

Re: Commands work but menu-bar not

"Davide G. M. Salvetti" <salve-evlas <at> debian.org> writes:

>>>>>>  DK == David Kastrup [2012-1-7]
>
> DK> The load path shadowing is a red herring: Debian's Emacs package
> DK> system is totally contorted and places .elc files and .el files in
> DK> different directories.
>
> The Debian AUCTeX package (as of "latest" releases, since 11.82-1 or
> so, IIRC) should behave well in this respect: .el files are placed
> also in the same directory as .elc files and the load-path should be
> such that the directory containing .elc and .el files comes before
> that the one containing .el files alone.

Either way will trigger the warnings about load-path shadowings.  One
could probably patch up Emacs in some manner so that the special case of
identical or linked .el files gets excepted, but any arrangement where a
load-path order is relevant is a likely cause for trouble.

> However, you are probably right about Debian's Emacs package system
> being contorted.

The idea of sharing a common .el directory between different versions,
even flavors of Emacs is not a good one.

--

-- 
David Kastrup
Jean | 9 Jan 17:20 2012
Picon

disable \% and \$ fontification

Hello, 
Is there a way to disable the fontification of \$ and \% but keep % and $ 
something like elisp when \; is typed emacs does not fontify but when ; is typed
it will fontify. 

I am using GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4) 

Thanks
Shiyuan | 9 Jan 22:44 2012
Picon

expand file name with special characters

Hi, 

    I add a function to use Skim as pdf viewer. It works well except when the file name contains special characters. In that case, (buffer-file-name) returns the file name as it is without appropriate quoting. I notice that the function named file seems to do the trick but I cannot see what is in it.  How can I get the buffer-file name with appropriate quoting?  Thanks.  

(defun skim-make-url () (concat
(TeX-current-line)
" "
(expand-file-name (funcall file (TeX-output-extension) t)
(file-name-directory (TeX-master-file)))
" "
(buffer-file-name)))
(add-hook 'LaTeX-mode-hook
 (lambda ()
   (add-to-list 'TeX-expand-list
'("%qq" skim-make-url))))
(setq  TeX-view-program-list 
       '(("Skim" "/Applications/Skim.app/Contents/SharedSupport/displayline %qq")))

Shiyuan 
_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Tassilo Horn | 10 Jan 10:27 2012
Picon

Re: disable \% and \$ fontification

Jean <jeid <at> wlu.ca> writes:

Hi Jean,

> Is there a way to disable the fontification of \$ and \% but keep %
> and $

\$ and \% are not fontified specially here, they are just a literal $
and %.

> something like elisp when \; is typed emacs does not fontify but when
> ; is typed it will fontify.

I have the same behavior in AUCTeX for tex files.

Fontified as normal text:

  \% bla bla

Fontified as a comment:

  % bla bla

Fontified as normal text up to the second % (excluding), the rest as a
comment:

  foo bar \% more text % bla bla

> I am using GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4) 

What version of AUCTeX are you using?

Bye,
Tassilo
bnickel | 14 Jan 22:15 2012
Picon

Cross-References in multiple documents AucTeX/RefTeX


I'm trying to solve a problem that's come up in producing a large document
that I'm breaking up into smaller ones. The basic structure is this.

A main document (`main.tex`) that includes formatting info for the whole
project, and individual files for chapters (`part1.tex`, `part2.tex`, etc).

I need to produce a lot of cross-references, mostly to enumerate items
within a part, but ideally also to some elements across parts.

My basic workflow is editing LaTeX documents in emacs using the RefTeX
capabilities to produce cross-references. My problem is that when RefTex
automatically supplies me with labels (and I'm not willing to give up that
convenience), it'll start numbering the labels from scratch for each part.

Thus, `part1.tex` might look like this.

    \begin{enumerate}
    \item first thing in part 1.\label{item:1}
    \item second thing in part 1.\label{item:2}
    \end{enumerate}
    Reference to \ref{item:1}

Correspondingly, `part2.tex` might look like this.

    \begin{enumerate}
    \setcounter{enumi}{2}
    \item first thing in part 2.\label{item:1}
    \item second thing in part 2.\label{item:2}
    \end{enumerate}
    Reference to \ref{item:1}

(NB: I've got the `\setcounter` command just to ensure that the numbers
differ between the two parts so I can see whether the cross-referencing
works properly.)

The main document that calls these is the basic `main.tex`.

    \documentclass{book}

    \begin{document}
    \input{part1}
    \input{part2}
    \end{document}

The problem is that, because RefTeX starts over in the labels it provides,
the cross-references are screwed up. Both of the references in `part1.tex`
and `part2.tex` shown above will be "3", the number of the enumerate item
the last `\label{item:1}` is attached to.

In the past, I've simply brute-forced the issue. When it came time for a
final compile, I search-and-replaced all of the labels in my code to include
unique prefixes for each input-file. For example, all of the `item:xx`
labels in `part1.tex` would be turned into `item-part1:xx` labels, mutatis
mutandis for `part2.tex`. But that is ugly, and surely there must be a
better way.

I don't know if there are packages that solve this problem for me (I looked
at `xr`, but couldn't get it to work out for me), or if there is a way to
customize RefTeX so that, when it automatically produces labels within one
of the parts, it's automatically aware of the labels that are in use in all
of the other parts and hence ensures that no duplicates will be created.

For what it's worth, I'm running TeX on OSX, in case that matters.

Thanks much,
Bernhard
--

-- 
View this message in context: http://old.nabble.com/Cross-References-in-multiple-documents-AucTeX-RefTeX-tp33140811p33140811.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.

Gmane