Re: preview-latex.el

2023-02-11 Thread Colin Baxter
>>>>> Tassilo Horn  writes:

    > Colin Baxter  writes:
>> What's happened to preview-latex.el? I notice it's absent from a
>> fresh git clone.

> It's generated by running make.

Of course! Thanks.



preview-latex.el

2023-02-11 Thread Colin Baxter


What's happened to preview-latex.el? I notice it's absent from a fresh
git clone.

Colin.




Re: AUCTeX to compile each \include file to a separate file

2022-11-23 Thread Colin Baxter
> Arash Esbati  writes:

> Hi Kourosh, kaykal  writes:

>> Is there anyway to generate different PDF files for each included
>> file in master file with AUCTeX.
>> 
>> More specifically, I have one master file called “master”, in
>> which, I have included two chapters: “chapter01” and “chapter02”.
>> I want AUCTeX (after appropriate number of runs) to generate one
>> PDF for the master file, one PDF for chapter01, one PDF for
>> chapter02 and (the bonus) one PDF for bibliography.

> I'm not sure how you plan to do that, but one solution comes to my
> mind is using \includeonly in the preamble and control the output
> with it.

> See here for details:

>   http://latexref.xyz/_005cinclude-_0026-_005cincludeonly.html

> Best, Arash

\includeonly and use refsection to make bibliographies per chapter. See
this stackexchange question:

https://tex.stackexchange.com/questions/87414/per-chapter-bibliographies-in-biblatex.

If individual chapter biographies are not necessary then why not use
something like PDFtk to split the master pdf into chapter pdfs?


Good luck.



Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Colin Baxter
>>>>> Hongyi Zhao  writes:

> On Sun, Jul 4, 2021 at 9:42 PM Colin Baxter  wrote:
>> 
>> >>>>> Hongyi Zhao  writes:
    >> 
    >> > On Sun, Jul 4, 2021 at 9:19 PM Colin Baxter  wrote:
>> >>
>> >> Hello Hongyi
>> >>
>> >> I'm curious - what's your setting for the variable >>
>> "TeX-auto-local"?
>> 
>> > `M-x describe-variable RET TeX-auto-local RET'

Thanks - I didn't know that.

Best wishes,



Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Colin Baxter
>>>>> Hongyi Zhao  writes:

> On Sun, Jul 4, 2021 at 9:19 PM Colin Baxter  wrote:
>> 
>> Hello Hongyi
>> 
>> I'm curious - what's your setting for the variable
>> "TeX-auto-local"?

> `M-x describe-variable RET TeX-auto-local RET'

> TeX-auto-local is a variable defined in ‘tex.el’.

Thanks. I asked because I've set my TeX-auto-local to
~/.emacs.d/auctex/auto-local. It seems to be the only 'TeX-local'
variable that ever gets used. I have set TeX-auto-global to
~/.emacs.d/auctex/auto-global and it's always empty. I guess all the
work is being done by TeX-auto-local. I have certainly wondered when
Tex-auto-global is ever used.

Best wishes,

Colin.



Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Colin Baxter
Hello Hongyi

I'm curious - what's your setting for the variable "TeX-auto-local"?

Best wishes,

Colin Baxter.



Re: TeX-next-error log buffer

2020-12-14 Thread Colin Baxter
Dear Ikumi,

Thank you for this reply.
> Ikumi Keita  writes:

> Hi Greg and Colin,
> Greg Bognar  writes:
>> That is, there are two buffers involved: the *TeX Help* buffer
>> with the error message, which is a read-only buffer and is
>> updated without any echoed message; and the .log
>> buffer, which is a file read from disk, and changing it results
>> in an echoed message.  (Assuming you have auto-revert mode
>> enabled.)

> Thank you, it seems that `global-auto-revert-mode' is the key to
> this issue. I did observe the echoed message that Colin described
> after I enabled `global-auto-revert-mode'.

> (To Colin: AUCTeX does not always open the log file when C-c ` is
> typed.  AUCTeX has its own error message catalogue in
> `TeX-error-description-list' and checks if the current error is
> listed in this catalogue. If found, AUCTeX displays the message in
> the catalogue and does not open the log file. Hence it's necessary
> to cause error not listed in the catalogue in order to make AUCTeX
> to open the log file intentionally.)

That explains why sometimes the log buffer opened yet another times it
didn't and I was therefore unable to reproduce the error. I've confirmed
this by examining my TeX-error-description-list, deliberating inserting
an appropriate error in my document and then compiling. I've been using
auctex for over 20 years and in that time I have never once used
"Tex-next-error" until last week. So the occasional opening and
reverting of the log buffer seemed very odd behaviour to me.

>> If this is indeed what happens, one option is to set
>> `auto-revert-verbose' to nil, another is to add fundamental-mode
>> (in which the log file is opened) to
>> `global-auto-revert-ignore-modes'.

> Colin, do these workarounds suit you?

These work, but I think I'd rather keep the verbose reverting - they are
useful for other modes. Now that I know what is happening I can just 
delete the log buffer by hand.

Thank you Ikumi (and Greg) for helping me with this. I would never have
discovered what was happening myself and just thrown it onto the large
pile of stuff called "Unexplained".

Best wishes,

Colin.



Re: TeX-next-error log buffer

2020-12-13 Thread Colin Baxter
Hello Greg,

>>>>> Greg Bognar via General discussion about AUCTeX  writes:

>> >>>>> Ikumi Keita  writes: >>>>> Colin Baxter
>>  writes: > > When the error is corrected and
>> the file is re-compiled, the log buffer is > > updated with an
>> echoed message. The log buffer is not deleted and on every > >
>> compilation thereafter the echoed update-message is again
>> displayed.
>> 
>> > That doesn't occur for me. My emacs opens the log file in
>> read-only > buffer and doesn't pay attention whether the log file
>> is updated or not.  > Could you provide more detail?
>> 
>> Well, this is most embarrassing. I find I cannot reproduce the
>> effect and indeed the log file behaves exactly as you stated. I
>> will watch things carefully and report back if I can reproduce
>> it. In the meantime, please accept my apologies for wasting your
>> time.

> Perhaps I misundertood, but I thought Colin meant: for some TeX
> errors, AUCTeX opens the log file that TeX creates, and it is
> reverted on each subsequent TeX run, resulting in a message in the
> echo area which is indeed annoying.

That is what I meant. 

> That is, there are two buffers involved: the *TeX Help* buffer
> with the error message, which is a read-only buffer and is updated
> without any echoed message; and the .log buffer, which
> is a file read from disk, and changing it results in an echoed
> message.  (Assuming you have auto-revert mode enabled.)

I had global-auto-revert-mode on.

> If this is indeed what happens, one option is to set
> `auto-revert-verbose' to nil, another is to add fundamental-mode
> (in which the log file is opened) to
> `global-auto-revert-ignore-modes'.  Again, unless I misunderstood
> what the problem is in the first place.

I have managed to get myself confused. As I reported earlier, I don't
seem able to reproduce the error. I need to take a step back and
approach the problem in a logical manner (this I hadn't done since I was
busy trying to finish writing a document). I will report back.

Best wishes,

Colin.




Re: TeX-next-error log buffer

2020-12-13 Thread Colin Baxter
Hello Keita,
>>>>> Ikumi Keita  writes:
>>>>> Colin Baxter  writes:
>> When the error is corrected and the file is re-compiled, the log
>> buffer is updated with an echoed message. The log buffer is not
>> deleted and on every compilation thereafter the echoed
>> update-message is again displayed.

> That doesn't occur for me. My emacs opens the log file in
> read-only buffer and doesn't pay attention whether the log file is
> updated or not.  Could you provide more detail?

> Regards, Ikumi Keita

Well, this is most embarrassing. I find I cannot reproduce the effect
and indeed the log file behaves exactly as you stated. I will watch
things carefully and report back if I can reproduce it. In the meantime,
please accept my apologies for wasting your time.

Best wishes,

Colin Baxter.




TeX-next-error log buffer

2020-12-09 Thread Colin Baxter
Hello,

A tex compiling-error can be examined by TeX-next-error, bounded to C-c
`. This gives in the background a buffer containing the tex log
file. When the error is corrected and the file is re-compiled, the log
buffer is updated with an echoed message. The log buffer is not deleted
and on every compilation thereafter the echoed update-message is
again displayed. I find this to be distracting. Is there any way to
automatically delete the log buffer after a successful compilation?


Best wishes,

Colin Baxter.



Colin Baxter
URL: http://www.Colin-Baxter.com
-
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8
-
Since mathematicians have invaded the theory of relativity, I do not
understand it myself. A. Einstein




Re: latexmk default compilation

2020-09-11 Thread Colin Baxter
> Denis Bitouzé  writes:

> Le 11/09/20 à 12h50, François Patte a écrit :
>> Is it possible to run latexmk as the default compilator while
>> using Ctrl-c-c in auctex?

> Maybe with this (don't know if it is enough):

> (add-hook 'LaTeX-mode-hook '(lambda () (setq TeX-command-default
> "Latexmk")))

If the above doesn't work for you, try

(setq org-latex-pdf-process '("latexmk -outdir=%o -f %f"))

Best wishes,




Re: pstricks style

2020-07-31 Thread Colin Baxter
>>>>> Ikumi Keita  writes:

> Hi Colin,
>>>>> Colin Baxter  writes:
>> I do indeed have TeX-PDF-mode disabled by default. All my tex
>> documents contain dvi-only and pdf-only options. Once I have
>> everything working satisfactorily to produce a dvi output then I
>> switch to latemk to generate a final pdf file - if required. I
>> can therefore hardly complain if your proposed changes will not
>> effect me. Thanks for the information.

> I think that you won't be affected by agressive approach (2),
> provided that you customize TeX-PDF-mode to nil. I confirmed that
> by changing pstricks.el locally. After disabling TeX-PDF-mode, the
> following file generates dvi and tries to open viewer associated
> with "dvips and gv" option by repeated C-c C-c.

> \documentclass{article} \usepackage{pstricks} \begin{document}
> dummy text \end{document}

> %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:

> (When I erase cutomization of TeX-PDF-mode and let it to be t,
> repeated C-c C-c then generates pdf by dvips and ps2pdf according
> to TeX-PDF-from-DVI being "Dvips", as expected.)

> As far as I can see, approach (2) affects only those who don't
> customize TeX-PDF-mode AND expect AUCTeX to turn it off
> per-document basis by detecting the presence of
> \usepackage{pstricks}. That is, those who think "I let
> TeX-PDF-mode to be t because I want to use pdflatex for ordinary
> LaTeX documents. However, AUCTeX should automatically turn off PDF
> mode for documents with \usepackage{pstricks} as exception."


Hello Keita,

Yes, I agree with you. I have TeX-PDF-mode set to nil so I wont be
affected. Thank you for your time and the information.

Best wishes,

Colin Baxter

-- 
Colin Baxter
URL: http://www.Colin-Baxter.com



Re: pstricks style

2020-07-31 Thread Colin Baxter
>>>>> Jean-Jacques Rétorré  writes:

> jeu. 30 juil. 2020, Colin Baxter  disait :
>>>>>>> Jean-Jacques Rétorré  writes:
>> 
>> - Cut 
>> 
>> > jeu. 30 juil. 2020, Ikumi Keita  disait : >
>> I think most of nowadays AUCTeX users wants to have pdf output >
>> since Emacs can display it.  For my own, if would use the >
>> aggressive approach (2)..
>> 
>> Please do not go down that route. I for one use dvi and should I
>> want pdf then I use latexmk. I cannot speak for most Auctex users
>> but then nor can anyone else.
>> 

> Does it change the way you do things?  In particular this does not
> affect the operation of latexmk, nor the suite of compilations
> when TeX-PDF-mode is disabled.

I do indeed have TeX-PDF-mode disabled by default. All my tex documents
contain dvi-only and pdf-only options. Once I have everything working
satisfactorily to produce a dvi output then I switch to latemk to generate
a final pdf file - if required. I can therefore hardly complain if your
proposed changes will not effect me. Thanks for the information.

Colin.


-- 
Colin Baxter
URL: http://www.Colin-Baxter.com



Re: pstricks style

2020-07-30 Thread Colin Baxter
>>>>> Jean-Jacques Rétorré  writes:

- Cut 

> jeu. 30 juil. 2020, Ikumi Keita  disait :
> I think most of nowadays AUCTeX users wants to have pdf output
> since Emacs can display it.  For my own, if would use the
> aggressive approach (2)..

Please do not go down that route. I for one use dvi and should I want
pdf then I use latexmk. I cannot speak for most Auctex users but then nor
can anyone else.

Colin.


Colin Baxter
URL: http://www.Colin-Baxter.com



Re: math font locking has disappeared

2020-06-29 Thread Colin Baxter
Dear Ikumi,

>>>>> Ikumi Keita  writes:

>> With the latest auctex, all my coloring for
>> \begin{equation},\end{equation} \begin(eqnarray),\end{eqnarray}
>> has gone and is now the same as that for $$ and \[,\]. How do I
>> get it back??

> Hmm, it did undergo a major overhaul recently, but those
> highlighting is fine on my side with the latest master brach of
> git repo. Could you please provide more detail about your
> settings?

Thank you for your email.

I am wrong. I had been running emacs for several days and things must
have become corrupted. After re-launching emacs, the apparent problem
disappeared. I've cancelled the original post, but obviously too late.

I am sorry for the unnecessary posting.

Best wishes,

Colin.

 
Colin Baxter
URL: http://www.Colin-Baxter.com



math font locking has disappeared

2020-06-28 Thread Colin Baxter


Hello,

With the latest auctex, all my coloring for \begin{equation},\end{equation}
\begin(eqnarray),\end{eqnarray} has gone and is now the same as that for
$$ and \[,\]. How do I get it back??

Best wishes,

Colin.

-- 
Colin Baxter
URL: http://www.Colin-Baxter.com




Re: font-latex-math-face

2020-03-25 Thread Colin Baxter
Dear Ikumi,

>>>>> Ikumi Keita  writes:

> It doesn't work to set `font-latex-math-face' as variable because
> that symbol is used as face, not variable in font-latex.el.  How
> about this?

Yes, you're right. Sorry, I should have realised that.

> %%% Local Variables: %%% mode: latex %%% face-remapping-alist:
> ((font-latex-math-face . (:foreground "#00"))) %%% End:

> This works at least for me.

And me too, Thanks.

Best wishes,

Colin.

-- 
Colin Baxter
www.Colin-Baxter.com
-
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8
-
The sole cause of all human misery is the inability of people to sit
quietly in their rooms.  Blaise Pascal, 1670
-
Since mathematicians have invaded the theory of relativity, I do not
understand it myself. A. Einstein



font-latex-math-face

2020-03-25 Thread Colin Baxter
Hello,

How can I locally change the foreground of font-latex-math-face? I have tried
 
%%% Local Variables:
%%% mode: latex
%%% eval: (setq font-latex-math-face '(:foreground "#00"))
%%% End:

which doesn't work.

Thanks.

Best wishes,

Colin.




Re: [AUCTeX] Use csquotes in Bibtex-Files

2018-07-24 Thread Colin Baxter
Dear Thomas,

>>>>> Thomas Hilarius Meyer  writes:

> Hello, in my LaTeX-Documents I use the csquotes Package and I have
> put

> '(TeX-close-quote "}") '(TeX-open-quote "\\enquote{"))

> in my .emacs, so that by pressing " the correct quotation-mark is
> inserted.

> How can I manage, that also in Bibtex-Mode, the same key-binding
> is activated?

> Sorry for the maybe silly question, but I am just starting my
> Emacs-carreer... ;-)

I may be completely wrong here, so forgive me, but I was always under
the impression that csquotes (Context Sensitive Quotations) was only
for biblatex, not bibtex.

Best wishes,

-- 
Colin Baxter
m43...@yandex.com
-
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8
-

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Overenthusiastic language detection

2017-07-03 Thread Colin Baxter
Dear Arash,

>>>>> "Arash" == Arash Esbati  writes:

Arash> Colin Baxter  writes:
>> I always get confused between 'TeX-style-private' (default path:
>> ~/.emacs.d/auctex/style) and 'TeX-style-local' (default path:
>> style). Presumably one takes president over the other, but I've
>> never investigated further.

Arash> Hi Colin,

Arash> check the value of `TeX-style-path'.

Arash> Best, Arash

Thank you. That is useful to know.

Best wishes, Colin.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Overenthusiastic language detection

2017-07-02 Thread Colin Baxter
>>>>> "gojjoe" == gojjoe   writes:

gojjoe> Hi Tristan and Arash, another possible simple solution is to
gojjoe> copy and paste the "english.el" style file from your

gojjoe> ~/.emacs.d/elpa/auctex-11.90.2/style/

gojjoe> directory into the one with your own style files, defined in
gojjoe> TeX-style-local, which for me is

gojjoe> ~/.emacs.d/auctex/.auctex-style/

gojjoe> and rename it there to "canadian.el". Of course you can also
gojjoe> edit it to create your own canadian style file. I did
gojjoe> something similar for the "british.el" style.

gojjoe> Is that correct, people?

I always get confused between 'TeX-style-private' (default path:
~/.emacs.d/auctex/style) and 'TeX-style-local' (default path:
style). Presumably one takes president over the other, but I've never
investigated further.

Best wishes,

Colin.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] auctex not being loaded

2017-03-30 Thread Colin Baxter
On Thu, Mar 30 2017, Colin Baxter wrote:

> The latest auctex (commit 83a875b) no long allows me to view dvi or pdf
> files. My setting is
>
> (setq TeX-view-program-selection
>   '((output-dvi "DVI Viewer")
> (output-pdf "PDF Viewer")))
> (setq TeX-view-program-list
>   '(("DVI Viewer" "xdvi -sourceposition \"%n %b\" -editor \"%cS\" 
> -geometry 917X736 -s 6 %o") 
> ("PDF Viewer" "xpdf %o")))
>
> Nothing happens at all for xdvi and the xpdf request hangs emacs.
>
> Any ideas how I might rectify things?
>
> Colin.

Sorry, my mistake. I had inadvertently changed something in my ~/.emacs
that had a knock-on effect on auctex. All working now. Thanks for your
patience.

Colin.

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] auctex not being loaded

2017-03-30 Thread Colin Baxter

The latest auctex (commit 83a875b) no long allows me to view dvi or pdf
files. My setting is

(setq TeX-view-program-selection
  '((output-dvi "DVI Viewer")
(output-pdf "PDF Viewer")))
(setq TeX-view-program-list
  '(("DVI Viewer" "xdvi -sourceposition \"%n %b\" -editor \"%cS\" -geometry 
917X736 -s 6 %o")   
("PDF Viewer" "xpdf %o")))

Nothing happens at all for xdvi and the xpdf request hangs emacs.

Any ideas how I might rectify things?

Colin.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] setting same color for math scripts as other math

2017-03-15 Thread Colin Baxter

Hi,

On Wed, Mar 15 2017, Mosè Giordano wrote:

> Hi Tamas,
>
> 2017-03-15 12:37 GMT+01:00 Tamas Papp :
>> Hi,
>>
>> I can't see the DarkRed very well and would like math scripts to have
>> the same color as other math in AUCTeX (burlywood in dark themes). How
>> can I achieve this in Emacs Lisp (I could customize, but prefer not to,
>> so that when I switch color themes it adjusts accordingly).
>>
>> Is there some Emacs Lisp magic that would copy colors from one face to
>> another?
>
> To copy a specific attribute (foreground in this case) you can use
> something like
>
> (with-eval-after-load "font-latex"
>   (set-face-attribute 'font-latex-script-char-face nil
>   :foreground (face-attribute 'font-latex-math-face
>   :foreground)))
>
> or replace the `(face-attribute ...)' with the color you like.
>
> I don't know if there is something simpler.  You can inherit an entire
> face with `:inherit` attribute, but that doesn't override other
> attributes already set.
>
> Bye,
> Mosè
>
> ___
> auctex mailing list
> auctex@gnu.org
> https://lists.gnu.org/mailman/listinfo/auctex



(face-spec-set 'font-latex-script-char-face '((t (:foreground
"some-color"))) nil) also works for me.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] setting same color for math scripts as other math

2017-03-15 Thread Colin Baxter
Hello Tama,

On Wed, Mar 15 2017, Tamas Papp wrote:

> Hi,
>
> I can't see the DarkRed very well and would like math scripts to have
> the same color as other math in AUCTeX (burlywood in dark themes). How
> can I achieve this in Emacs Lisp (I could customize, but prefer not to,
> so that when I switch color themes it adjusts accordingly).
>
> Is there some Emacs Lisp magic that would copy colors from one face to
> another?
>
> Best,
>
> Tamas

I quite agree about DarkRed - it's almost invisible. I edited line 1188
of font-latex.el and changed  (:foreground "DarkRed")).

Colin.

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] font-latex-script-char-face

2017-02-22 Thread Colin Baxter
Hi Arash

On Wed, Feb 22 2017, Arash Esbati wrote:

> Colin Baxter  writes:
>
>> I want to remove, outside of custom-set-faces, the foreground color option to
>> font-latex-script-char-face. I've tried various combinations of 
>>
>> (setq font-latex-script-char-face ((t nil)))
>>
>> all to non-avail. I'd be grateful for help. Thanks.
>
> Emacs manual says[1]
>
> Normally, a face is declared just once, using defface, and any
> further changes to its appearance are applied using the Customize
> framework (e.g., via the Customize user interface or via the
> custom-set-faces function; see Applying Customizations), or by face
> remapping (see Face Remapping). In the rare event that you need to
> change a face spec directly from Lisp, you can use the face-spec-set
> function.
>
> Since `font-latex-script-char-face' is declared with `defface', I would
> try something like this (I didn't try, though):
>
> (face-spec-set font-latex-script-char-face
>'((t nil)))
>
> Best, Arash
>
> Footnotes: 
> [1]  
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.html

It seems I need to specify explicitly the foreground. This works:

(face-spec-set 'font-latex-script-char-face '((t (:foreground nil))) nil)

There may be a more elegant way, of course. Thank you.

Best wishes, Colin.

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] font-latex-script-char-face

2017-02-22 Thread Colin Baxter
I want to remove, outside of custom-set-faces, the foreground color option to
font-latex-script-char-face. I've tried various combinations of 

(setq font-latex-script-char-face ((t nil)))

all to non-avail. I'd be grateful for help. Thanks.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Quotation marks

2017-01-27 Thread Colin Baxter

I can answer my own question: use (setq TeX-quote-after-quote t). Next
time I'll read the auctex info more carefully before asking a question. Sorry.


On Fri, Jan 27 2017, Colin Baxter wrote:

> On Fri, Jan 27 2017, Colin Baxter wrote:
>
>> Hello,
>>
>> The appearance of quotation marks has recently changed. Setting
>> font-latex-quotes to nil has removed the annoying highlighting, but I am
>> still presented with ``some quotation''. How do I get back to "some
>> quotation"?
>>
>> Thank you.
>
> Sorry, I'd forgotten that I normally use \lq and \rq for quotation marks
> and do not enter them directly. However, I'm still curious as to how I
> can could see a " when using auctex.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Quotation marks

2017-01-27 Thread Colin Baxter
On Fri, Jan 27 2017, Colin Baxter wrote:

> Hello,
>
> The appearance of quotation marks has recently changed. Setting
> font-latex-quotes to nil has removed the annoying highlighting, but I am
> still presented with ``some quotation''. How do I get back to "some
> quotation"?
>
> Thank you.

Sorry, I'd forgotten that I normally use \lq and \rq for quotation marks
and do not enter them directly. However, I'm still curious as to how I
can could see a " when using auctex.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Quotation marks

2017-01-27 Thread Colin Baxter

Hello,

The appearance of quotation marks has recently changed. Setting
font-latex-quotes to nil has removed the annoying highlighting, but I am
still presented with ``some quotation''. How do I get back to "some
quotation"?

Thank you.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Syntax color in math-mode

2017-01-13 Thread Colin Baxter
On Fri, Jan 13 2017, Mosè Giordano wrote:

> Hi Colin,
>
> 2017-01-13 10:49 GMT+01:00 Colin Baxter :
>>
>> Hello,
>>
>> Has the syntax coloring in math mode changed recently? I notice that the
>> exponent symbol ^ is now colored a very dark red, which makes it difficult to
>> read against my black background. How can I get back to the original
>> lighter coloring?
>>
>> I am using the latest git pull version of auctex and emacs-25.1.1.
>
> Yes, that changed a few days ago and this is described in the news
> section of the manual
> (https://www.gnu.org/software/auctex/manual/auctex.html#Changes):
>
>* AUCTeX is able to display several levels of super- and subscripts,
>  each one raised above and a bit smaller than its basis.  For this
>  feature, have a look at the customize options
>  'font-latex-fontify-script' (especially the new values
>  'multi-level' and 'invisible') and
>  'font-latex-fontify-script-max-level'.  Also, the script characters
>  '^' and '_' are also fontified with a special face named
>  'font-latex-script-char-face'.  See Fontification of math, for
>  details.
>
> So you may want to customize `font-latex-script-char-face'.  I suggest
> you to keep it different from the rest of the equation, in order to
> better highlight those characters.
>
> Bye,
> Mosè
>

Dear Mosè,

Thank you for the information.

Colin.

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Syntax color in math-mode

2017-01-13 Thread Colin Baxter

Hello,

Has the syntax coloring in math mode changed recently? I notice that the
exponent symbol ^ is now colored a very dark red, which makes it difficult to
read against my black background. How can I get back to the original
lighter coloring?

I am using the latest git pull version of auctex and emacs-25.1.1.

Thanks,

Colin.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Subfiles package and reftex

2016-12-27 Thread Colin Baxter
On Tue, Dec 27 2016, Mosè Giordano wrote:

> Hi Colin,
>
> 2016-12-27 8:54 GMT+01:00 Colin Baxter :
>> How is this any advantage over simply using \include(file1}? I must be
>> missing something here.
>
> I don't use subfiles, but my understanding is that you can compile a
> single subfile without changing anything in the source code.  This is
> particularly easy with AUCTeX, because in an included file C-c C-a (or
> C-c C-c) compiles the current file, instead in master file it compiles
> the whole document.  Instead, with include mechanism you have to
> select every time the file to be included with \includeonly, manually
> editing the file whenever you want to switch between a single file or
> the whole document or you want to change the single file to be
> compiled.  I don't know whether there are other advantages.
>
> Bye,
> Mosè
>

Dear Mosè

Ah, yes I understand. I'm always editing included files, which are my
working files. My master just contains all the LaTeX options, packages,
etc. I can see your use is a bit different. Thanks for the information;
it's good to see how other people use auctex.

Best wishes,

Colin.

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Subfiles package and reftex

2016-12-27 Thread Colin Baxter
On Mon, Dec 26 2016, Mosè Giordano wrote:

> Hi Edgar,
>
> 2016-12-26 5:14 GMT+01:00  :
>> Hi there,
>>
>> I would like to know if there is a way to
>> (1) set a master file (Master.tex) which includes other files (\input,
>> \subfiles, \include or any other) with relative paths
>> (2) those other files (header.tex, File1.tex, File2.tex...) have labels (as
>> in \label{fig:NicePicture})
>> (3) set a cross-reference between those labels (File1.tex has
>> \label{fig:NicePicture} somewhere, and File2.tex has \cref{fig:NicePicture})
>> (4) set a bunch of styles (\usepackage, \newcommand, etc.) in one of the
>> external files (header.tex, for instance)
>> (5) use RefTeX to create those cross-references.
>>
>> Say, something like this:
>> |-Master.tex
>> |-preamble.tex
>> |-File1.tex
>> |-File2.tex
>>
>> But sometimes, I want to see how File2.tex looks like as a PDF before
>> compiling the whole thing. So, I set \usepackage{subfiles} in preamble.tex
>> and load it at the top of Master.tex with \input{preamble.tex}. This loads
>> all my \newcommand, styles and package options when I run pdflatex. However,
>> I am unable to use RefTeX between File1.tex and File2.tex. I have set the
>> %%% TeX-master: "Methods" at the bottom of File1.tex and File2.tex.
>
> "Methods"?  Did you "Master"?
>
> Anyway, a few hours ago was installed in AUCTeX a new patch that
> should improve your workflow with this package.  For example, this is
> my master file:
>
> \documentclass{article}
> \usepackage{subfiles,amsmath}
> \begin{document}
> hello world!
> \begin{equation}
>   \label{eq:1}
>   a + b = c
> \end{equation}
> \subfile{file1.tex}
> \end{document}
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
>
>
> and this is my file1.tex file:
>
> \documentclass[master.tex]{subfiles}
>
> \begin{document}
> Equation~\eqref{eq:1}
> \end{document}
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
>
> Inside file1.tex, now I can insert with RefTeX a reference defined in
> another file (like what I did to insert the reference to "eq:1"
> label).  Is this what you would like?
>
> Bye,
> Mosè
>


Hi,

How is this any advantage over simply using \include(file1}? I must be
missing something here.

Colin.

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Switch off indentation

2016-09-25 Thread Colin Baxter
On Fri, Sep 23 2016, Colin Baxter wrote:

> How do I switch off indentation for \caption and \footnote, but keep it
> for everything else?
>
> Thanks.

I solved the problem - sorry for the noise. I just switched off electric
indent and revert to using C-j should I wish to indent.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Switch off indentation

2016-09-25 Thread Colin Baxter

How do I switch off indentation for \caption and \footnote, but keep it
for everything else?

Thanks.


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex