Uwe Brauer | 4 Sep 09:26 2015
Picon

more x-symbol features?

>> "Tassilo" == Tassilo Horn <tsdh <at> gnu.org> writes:

Hi,

   Tassilo> Glad we have that now. Then I'll do the region/section stuff
   Tassilo> ASAP, Mosè does the Index suggestion, and then we can have a
   Tassilo> new shiny release (after a bit of testing)! I think we have
   Tassilo> accumulated more than enough additions, fixes, and new
   Tassilo> features to think about that.

First of all thanks for implementing one of the most important features
of x-symbol-mode in native auctex, since now a switch to GNU emacs is
much easier for me.

I would like however to suggest two more features which I find
interesting. Maybe they should be included in the wishlist or maybe the
second one can be easily implemented?

X-symbol-mode has three essential features. For me the most important ones are:

    -  display of constructs \integral by symbols, together with sub and
       super indices . This feature is now implemented for GNU emacs
       using  the pretty-symbol-mode.
       Xemacs is left out, but this is xemacs fault and anyhow  in
       Xemacs x-symbol-mode works, still.[1]

    -  display of \includegraphics{fig.png} including pdf jpg (I think).
       I know I could use latex-preview for that. But on a large file I
       find it less convenient  to use preview-latex. GNU emacs displays
       as far as know, png, jpg and pdf internally. So the question is
(Continue reading)

Uwe Brauer | 2 Sep 17:49 2015
Picon

prettify-symbols-mode and the documentation.

Hi

Maybe after some days of testing we should add an entry to the feature
list, http://www.gnu.org/software/auctex/features.html
describing the new feature?

Uwe Brauer 
Mosè Giordano | 31 Aug 18:39 2015
Picon

[RFC] parsing \jobname in LaTeX files?

Hi all,

I'd like to do a little survey: does someone find useful to correctly
parse \jobname in LaTeX files?  To be clear, as it is now,

    \include{\jobname-foo}
    \addbibresource{\jobname.bib}

are ignored by the parser.[1]  Do you think it's valuable to make
\jobname be replaced by `(TeX-master-file)' when parsing the file?

This should be feasible by changing `LaTeX-auto-cleanup' and some
regexps in `LaTeX-auto-regexp-list', but before starting hacking on it
I'd like some feedback.

Bye,
Mosè

Note:
[1] well, for the bibliography there is also the problem of clashing
basenames :-(

_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Mosè Giordano | 31 Aug 18:28 2015
Picon

How to check whether makeindex should be rerun?

Hi all,

differently from what it's said in section 1.3.2.1 of the manual,
AUCTeX never suggests to run makeindex when needed.  Does someone know
how can we check whether we need to run makeindex?  The .idx file is
rewritten after every latex run, so it's useless to look to its
modification time, and no warning is emitted by the compiler.

A possibility is to store the md5 hash of the .idx file and check
whehter it's changed after running latex.  md5 is pretty fast compared
to other algorithms and I don't think this feature is security-wise.
If I recall correctly, latexmk does the same check.

Bye,
Mosè

_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 31 Aug 12:59 2015
Picon

(add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)

Hi

I have the above setting
(add-hook 'LaTeX-mode-hook 'turn-on-prettify-symbols-mode)

however when I open a LaTeX file the symbols are not prettified I have to manually turn off and on the prettify-symbols-mode,
can sombody verify this?

(Using GNU emacs 25.0.5 and auctex git)

Uwe Brauer
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 23 Aug 17:26 2015
Picon

latex-pretty-symbols.el and subscripts (x-symbol): don't display _ or ^

Hello

I just found out that latex-pretty-symbols.el provides, at first glance,
basically the same features as x-symbol-mode.

However there is one small difference:

    - both package display sub and superscripts actually one a
      lower/higher position compared with the orginal line as in
      $\int_a^b$, however x-symbol-mode does *not* display _ or ^,
      while GNU emacs does. Can I customize this behaviour?

Thanks

Uwe Brauer 
Arash Esbati | 22 Aug 12:13 2015
Picon
Picon

[PATCH] Various patches

Hi all,

please find attached five patches, from ChangeLog:

* Makefile.in (STYLESRC): Add new style.

* style/transparent.el: New file.

* style/filecontents.el ("filecontents"): Do not indent the
content of the `filecontents[*]'-env.

* style/hyperref.el ("hyperref"): Do not indent the content of the
`Form'-env.

* style/caption.el ("caption"): Add support for undocumented
macros `\captionbox[*]'.
(LaTeX-arg-caption-captionbox): New function.

* style/array.el ("array"): Add fontification for
`\newcolumntype'.

As always, any comments welcome.

Best, Arash

_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Mosè Giordano | 20 Aug 17:21 2015
Picon

Check engines before running LaTeX

Hi all,

I sometimes happen to try to compile documents with a wrong engine
(above all example documents found on the Internet and the culprits
are fontspec and polyglossia, which require LuaTeX or XeTeX).  I'd
like to be warned by AUCTeX that I'm going to get an error, then I
wrote the attached patch.

Style authors should specify the engines required by the package (e.g.
LuaTeX and XeTeX for fontspec and polyglossia), then if the option
`TeX-check-engine' is non-nil the user will be warned before running
LaTeX command that a wrong engine has been selected, for example when
`TeX-engine' is set to `default'.

If you know other packages requiring a specific engine please tell us.

Comments?

Bye,
Mosè
Attachment (check-engine.patch): text/x-diff, 5973 bytes
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Arash Esbati | 18 Aug 22:19 2015
Picon
Picon

Any equivalent to `reftex-label' in AUCTeX

Hi all,

caption.sty has an undocumented command `\captionbox' with the following
syntax:

    \captionbox[list entry]{heading}[width][inner-pos]{contents}
    \captionbox*{heading}[width][inner-pos]{contents}

`heading' contains the caption text and the `\label{}'.  Currently, I
have the following code in `caption.el' to implement this command:

--8<---------------cut here---------------start------------->8---
(defun LaTeX-arg-caption-captionbox (optional &optional prompt)
  "Query for the arguments of `\\captionbox' incl. a label and
insert them."
  (let* ((caption (TeX-read-string (TeX-argument-prompt optional prompt "Caption")))
	 (label   (if (fboundp 'reftex-label)
		      (reftex-label nil t)
		    (TeX-read-string (TeX-argument-prompt optional prompt "Label"))))
	 (width   (completing-read (TeX-argument-prompt t prompt "Width")
				   (mapcar (lambda(elt) (concat TeX-esc (car elt)))
					   (LaTeX-length-list))))
	 (inpos   (completing-read (TeX-argument-prompt t prompt "Inner position")
				   '("c" "l" "r" "s")))
	 (heading (format "%s\\label{%s}" caption label)))
    (LaTeX-indent-line)
    (TeX-argument-insert heading optional)
    (cond (;; 2 optional args
	   (and width (not (string-equal width ""))
		inpos (not (string-equal inpos "")))
	   (insert (format "[%s][%s]" width inpos)))
	  (;; 1st empty opt. arg, 2nd opt. arg
	   (and (string-equal width "")
		inpos (not (string-equal inpos "")))
	   (insert (format "[][%s]" inpos)))
	  (;; 1st opt. arg, 2nd empty opt. arg
	   (and width (not (string-equal width ""))
		(string-equal inpos ""))
	   (insert (format "[%s]" width)))
	  (t ; Do nothing if both empty
	   (ignore)))
    (LaTeX-fill-paragraph)))

(TeX-add-style-hook
 "caption"
 (lambda ()
   '("captionbox"  [ "List entry" ] (LaTeX-arg-caption-captionbox) t)))
--8<---------------cut here---------------end--------------->8---

My question is, does AUCTeX has something equivalent to `reftex-label'
or should I just read the label as a string?

Best, Arash
Mosè Giordano | 17 Aug 12:26 2015
Picon

Implementing TeX-update

Hi list,

I've implemented TeX-update, as suggested in the wishlist.  My work
follows the same logic of http://www.emacswiki.org/emacs/TN#toc8 and
is in part based on it: a function runs the compilation command and
calls a sentinel which, when the command finishes, calls back the
function and so on until a stopping condition is reached.

Some comments about possible copyrights concerns:

- `TeX-command-default' is extracted from `TeX-command-query', there
is nothing new in it;

- the sentinel function `TeX-command-sequence-sentinel' is similar to
`TeX-texify-sentinel' of EmacsWiki, but I don't know how a basic
sentinel could be written otherwise.  Moreover, how to test whether
there have been errors in the last compilation is reported literally
in the docstring of `TeX-error-report-switches';

- `TeX-command-sequence' has only the last three lines in common with
`TeX-texify' of EmacsWiki, which are the setting of a sentinel, how
could it be done otherwise?  For the rest these functions are
different: `TeX-command-sequence' is much more flexible (see the
docstring and the possible values of the first argument) and stopping
after a command has been run N times in a row does work, in
`TeX-texify' it doesn't.

In addition, in the second patch I've added "dvips" and "ps2pdf" rules
to `TeX-command-list', and there is a new option
`TeX-PDF-via-dvips-ps2pdf' so that one can produce a PDF using latex +
dvips + ps2pdf.  Using `TeX-update' all this boils down to a single
C-c C-u  :-)

I've been using `TeX-update' and dvips + ps2pdf for a week, without
problems.  Comments and suggestions welcome.

Bye,
Mosè
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 10 Aug 18:28 2015
Picon

org-preview-latex-fragment (org-mime-htmlize) and preview-latex

Hello

I use org-preview-latex-fragment, which like preview-LaTeX, can also
generate via dvipng latex math formula to embedded png. I use it for
matlab files and for email, the latter I have to run org-mime-htmlize
as well.

When I run it on a latex buffer I find it much inferior to
preview-latex. That is why I ask, could the superior preview-latex
engine used for the org-preview-latex-fragment?

Here comes and example (I know people hate htmlized email, but in the
case of a math formula there is not much choice.)


Uwe Brauer

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

Gmane