eabod | 3 Sep 02:45 2009
Picon

Alignment of "&" Characters in "align" environment.


I am using AUCTeX in conjunction with emacs and would like for "&" characters
to auto-align within an "align" environment (or any variations; e.g.
align*). Does anyone know how to achieve this? (Right now I just hit the
space bar until the & on the second line is below the & on the first line.
On each successive line, I can then merely begin with a tab.)
--

-- 
View this message in context: http://www.nabble.com/Alignment-of-%22-%22-Characters-in-%22align%22-environment.-tp25268149p25268149.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
Ralf Angeli | 3 Sep 18:57 2009
Picon

Re: Alignment of "&" Characters in "align" environment.

* eabod (2009-09-03) writes:

> I am using AUCTeX in conjunction with emacs and would like for "&" characters
> to auto-align within an "align" environment (or any variations; e.g.
> align*). Does anyone know how to achieve this?

M-x align-current <RET>

--

-- 
Ralf
Uwe Siart | 6 Sep 10:34 2009
Picon

Load package support via local variables

Sometimes there are packages that load other packages in the background.
In such case AUCTeX is unable to detect that a particular package is
actually used in the document though package support would be available.

A solution would be to load the respective package explicitely but this
often results in option clashing.

Therefore my idea to overcome this would be to tell AUCTeX to load
support for package 'foo' via local file variables. Is this possible
somehow?

AUCTeX version "2009-06-14"

--

-- 
Uwe
Ralf Angeli | 6 Sep 10:51 2009
Picon

Re: Load package support via local variables

* Uwe Siart (2009-09-06) writes:

> Sometimes there are packages that load other packages in the background.
> In such case AUCTeX is unable to detect that a particular package is
> actually used in the document though package support would be available.
>
> A solution would be to load the respective package explicitely but this
> often results in option clashing.

You could use \iffalse ... \fi to protect it from being seen by LaTeX.

> Therefore my idea to overcome this would be to tell AUCTeX to load
> support for package 'foo' via local file variables. Is this possible
> somehow?

Probably with some `eval' statement.  But personally I'd first try to
deal with this by writing a custom style file for the document in
question.  It could include something like

(TeX-add-style-hook
 "my-doc"
 (lambda ()
   (TeX-run-style-hooks "some-package")))

--

-- 
Ralf
Uwe Siart | 6 Sep 12:22 2009
Picon

Re: Load package support via local variables

Ralf Angeli <angeli <at> caeruleus.net> writes:

> You could use \iffalse ... \fi to protect it from being seen by LaTeX.

Nice trick. Thanks for pointing me to that.

> But personally I'd first try to deal with this by writing a custom
> style file for the document in question. It could include something
> like
>
> (TeX-add-style-hook
>  "my-doc"
>  (lambda ()
>    (TeX-run-style-hooks "some-package")))

I see. Something similar to amsart.el that comes with AUCTeX.

But by »the document in question« you mean »the package in question«,
right?

--

-- 
Uwe
Ralf Angeli | 6 Sep 13:53 2009
Picon

Re: Load package support via local variables

* Uwe Siart (2009-09-06) writes:

> Ralf Angeli <angeli <at> caeruleus.net> writes:
>
>> But personally I'd first try to deal with this by writing a custom
>> style file for the document in question. It could include something
>> like
>>
>> (TeX-add-style-hook
>>  "my-doc"
>>  (lambda ()
>>    (TeX-run-style-hooks "some-package")))
>
> I see. Something similar to amsart.el that comes with AUCTeX.

Yes.

> But by »the document in question« you mean »the package in question«,
> right?

Actually I meant the master file of the document in question.  Of course
it would also be possible to do this for the package and likely the
better idea.

By the way, which packages are we talking about?  If there is already
support for them in AUCTeX but the style file of the package which loads
the other package does not load the style file of the latter, this
should be changed.

--

-- 
(Continue reading)

Uwe Siart | 6 Sep 14:11 2009
Picon

Re: Load package support via local variables

Ralf Angeli <angeli <at> caeruleus.net> writes:

> By the way, which packages are we talking about? If there is already
> support for them in AUCTeX but the style file of the package which
> loads the other package does not load the style file of the latter,
> this should be changed.

empheq.sty, mathtools.sty, and kpfonts.sty load amsamth.sty

powerdot.cls loads pstricks.sty and hyperref.sty

--

-- 
Uwe
Ralf Angeli | 6 Sep 14:41 2009
Picon

Re: Load package support via local variables

* Uwe Siart (2009-09-06) writes:

> Ralf Angeli <angeli <at> caeruleus.net> writes:
>
>> By the way, which packages are we talking about? If there is already
>> support for them in AUCTeX but the style file of the package which
>> loads the other package does not load the style file of the latter,
>> this should be changed.
>
> empheq.sty, mathtools.sty, and kpfonts.sty load amsamth.sty
>
> powerdot.cls loads pstricks.sty and hyperref.sty

Okay, this is at least not a bug because there are no style files in
AUCTeX for the "independent" packages.  If somebody wants to implement
those, then the dependencies should be taken care of. (c;

--

-- 
Ralf
eabod | 7 Sep 10:28 2009
Picon

Style File Not Found


Hello,

I am running AUCTeX via emacs on Ubuntu and having trouble adding a .sty
file. Although the kpsewhich --expand-var='$TEXMFHOME' command outputs
/home/quinn/texmf, and the clrscode3e.sty file is in that directory, I'm
still getting the compilation error message LaTeX Error: File
`clrscode3e.sty' not found when I compile my LaTeX document (via emacs).
Please let me know if you have any suggestions for me to fix this.
--

-- 
View this message in context: http://www.nabble.com/Style-File-Not-Found-tp25326798p25326798.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
Joost Kremers | 7 Sep 11:03 2009

Re: Style File Not Found

On Mon, Sep 07, 2009 at 01:28:07AM -0700, eabod wrote:
>I am running AUCTeX via emacs on Ubuntu and having trouble adding a .sty
>file. Although the kpsewhich --expand-var='$TEXMFHOME' command outputs
>/home/quinn/texmf, and the clrscode3e.sty file is in that directory, I'm
>still getting the compilation error message LaTeX Error: File
>`clrscode3e.sty' not found when I compile my LaTeX document (via emacs).
>Please let me know if you have any suggestions for me to fix this.

Note that this question is not related to AUCTeX at all, so this isn't really the right place to ask. Having
said that, you may need to update TeX's filename database:

<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=inst-wlcf>

HTH

--

-- 
Joost Kremers, PhD
University of Frankfurt
Institute for Cognitive Linguistics
Grüneburgplatz 1
60629 Frankfurt am Main, Germany

Gmane