Re: Preview with TeX-output-dir and luatex

2022-06-28 Thread Thorsten Grothe
  Hallo Ikumi,

  Ikumi Keita , 29 Jun 2022:

  > Hi Michael,
  >
  >> Ikumi Keita  writes:
  >> "Braun, Michael"  writes:
  >>> It works as long as I do not cache the preamble. If I do cache the
  >>> preamble, then on the *first try only*, the preview commands
  >>> (-at-point, -buffer, or -document) generates the following error.
  >
  >> Thanks for testing. I didn't check that case, sorry.
  >
  > It was confirmed as a luatex bug by luatex maintainer[1], so I 
expect it
  > will be fixed sooner or later, at least in TeX Live 2023.
  > I'll close this bug, with commit of patch proposed before[2].
  >
  > Regards,
  > Ikumi Keita
  > #StandWithUkraine #StopWarInUkraine
  >
  > 
[1]
  > [2]

  Viele Grüße,

  --
  Thorsten


Re: Preview with TeX-output-dir and luatex

2022-06-28 Thread Thorsten Grothe
  Hallo Ikumi,

  Ikumi Keita , 29 Jun 2022:

  > Hi Michael,
  >
  >> Ikumi Keita  writes:
  >> "Braun, Michael"  writes:
  >>> It works as long as I do not cache the preamble. If I do cache the
  >>> preamble, then on the *first try only*, the preview commands
  >>> (-at-point, -buffer, or -document) generates the following error.
  >
  >> Thanks for testing. I didn't check that case, sorry.
  >
  > It was confirmed as a luatex bug by luatex maintainer[1], so I 
expect it
  > will be fixed sooner or later, at least in TeX Live 2023.
  > I'll close this bug, with commit of patch proposed before[2].
  >
  > Regards,
  > Ikumi Keita
  > #StandWithUkraine #StopWarInUkraine
  >
  > 
[1]
  > [2]

  Viele Grüße,

  --
  Thorsten


[AUCTeX] Easylist with auctex

2019-02-03 Thread Thorsten Grothe
I would like to use the easylist package with auctex. Easylist is a
enumerate/itemize like environment with the following structure

\begin{easylist}
# Item 1
## Item 2
### Item 3
# Item 4
\end{easylist}

I could sucessfully register the env with

(TeX-add-style-hook
 "latex"
 (lambda ()
   (LaTeX-add-environments
'("easylist" LaTeX-env-item

but I was not sucessfull registering “#/##/###…” as \items. How can I register #
as \items to get the right indention/formatting/filling in the
environment?

Regards
Thorsten


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


[AUCTeX] Setup pdf-tools with custom build dir

2018-03-05 Thread Thorsten Grothe
Hi list,

I set up latexmk to compile my documents in a special build dir like so:

###
# Output directory
$out_dir = 'Latexmk_build';
###

so all files go to Latexmk_build in the main dir. Of course pdf-tools cannot
find the *.pdf and the *.synctex.gz. How can I configure pdf-tools to look in
the Latexmk_build dir for the relevant files? Is there any solution?

Regards

Thorsten Grothe

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


Re: [AUCTeX] Repeat TeX-command-run-all without buffer change

2017-06-13 Thread Thorsten Grothe

Hi Mosè,

* Mosè Giordano: 13.06.2017 (09:55):


[...]

> Now AUCTeX suggests to rerun LaTeX when it catches xsim warnings.  See commit
>
> * 4d426eac (2017-06-13)  Suggest to rerun LaTeX if xsim properties changed
>
> https://git.savannah.gnu.org/gitweb/?p=auctex.git;a=commitdiff;h=4d426eac1664add53e22046911e64d05991ade4a

That are great news, thanks for the super fast support!

Regards

Thorsten Grothe


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


Re: [AUCTeX] Indent custom env like itemize/enumerate environment

2017-06-12 Thread Thorsten Grothe

Hi Arash,

* Arash Esbati: 11.06.2017 (10:01):

> Thanks, but please test the code below.  There was a `concat' missing in
> `LaTeX-moodle-question-env-with-args'.  I also modified
> `LaTeX-moodle-item-argument' in order to offer an asterisk in `multi'
> environment.

[...]

where is the best place for moodle.el? I got a personal directory under
.emacs.d created with TeX-auto-generate, named simply auctex and put
moodle.el in this dir, but auctex does not see it, it happens nothing,
what I'm doing wrong?

Regards

Thorsten Grothe

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


Re: [AUCTeX] Indent custom env like itemize/enumerate environment

2017-06-10 Thread Thorsten Grothe

HI Arash,

* Arash Esbati: 10.06.2017 (14:36):

> Arash Esbati  writes:

sorry for the late response, I'm out of office at the moment..

> Following up myself, I checked the documentation of moodle nd I admit
> that I didn't understand how it should work, but a style file can look
> like this.  The "cloze" environment is missing, but this should be a
> starting point.  N.B. I just wrote it, I actually didn't test it.

[...]

thank you very much for doing my job :-) I will test your code and
report anny issues to you, this can take a couple of days because I have
a lot of work at the moment...

Regards

Thorsten Grothe

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


Re: [AUCTeX] Indent custom env like itemize/enumerate environment

2017-06-06 Thread Thorsten Grothe

Hi Arash,

* Arash Esbati: 06.06.2017 (20:51):

[...]

> Thanks.  In this case, my suggestion above doesn't help either.  I'm
> afraid you have to write a style file `moodle.el'.  I think you take
> most parts from `tcolorboxlib-raster.el'[1] and adapt it for moodle.  Do
> want to give it a roll?  You can then submit it to AUCTeX once you're
> done.  The same goes for xsim package, of course :-)

well, if I can help to support auctex, I will of course try to do this :-)
My knowledge of writing style files is very limited but I will try
it for moodle, if I need some help I will ask to the list or to you, if
that's ok :-) 


Regards

Thorsten Grothe

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


Re: [AUCTeX] Indent custom env like itemize/enumerate environment

2017-06-05 Thread Thorsten Grothe

Hi Arash again,

* Arash Esbati: 05.06.2017 (19:03):

[...]

> you can tell AUCTeX about your environment with these 2 lines:
>
> (LaTeX-add-environments '("multi" LaTeX-env-item))
> (add-to-list 'LaTeX-item-list '("multi" . LaTeX-item-argument))
>
> The question is where to put these 2 lines, there are some options (and
> .emacs is not my first choice).  How do you define this environment?

I putted this two line in my .emacs and yes that's no good idea, I got
an error:

Symbol’s function definition is void: LaTeX-add-environments


Regards

Thorsten Grothe

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


Re: [AUCTeX] Indent custom env like itemize/enumerate environment

2017-06-05 Thread Thorsten Grothe

Hi Arash,

* Arash Esbati: 05.06.2017 (19:03):

[...]

> you can tell AUCTeX about your environment with these 2 lines:
>
> (LaTeX-add-environments '("multi" LaTeX-env-item))
> (add-to-list 'LaTeX-item-list '("multi" . LaTeX-item-argument))
>
> The question is where to put these 2 lines, there are some options (and
> .emacs is not my first choice).  How do you define this environment?

I did not define it myself, it's from the moodle package, see here

https://www.ctan.org/pkg/moodle?lang=de

I need to do some moodle tests for school

Regards
Thorsten

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


Re: [AUCTeX] Repeat TeX-command-run-all without buffer change

2017-06-05 Thread Thorsten Grothe

Hi Mosè,

* Mosè Giordano: 14.05.2017 (17:53):

[...]

> Very good!  Once we know the warning issued by the new package xsim,
> we can support it.  Feel free to ping us again when the package will
> be released ;-)

the new package xsim is on ctan:
https://www.ctan.org/pkg/xsim?lang=de

Regards

Thorsten Grothe


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


[AUCTeX] Indent custom env like itemize/enumerate environment

2017-06-05 Thread Thorsten Grothe
Hello,

I'm working with a custom env which looks like this:

\begin{multi}[]{}
bla bla

\item bla
\item bla
\item* bla
\end{multi}

When I indent it with LaTeX-fill-environment it looks like this:

\begin{multi}[]{}
   bla bla

 \item bla --> wrong indention here!
 \item bla --> wrong indention here!
 \item* bla --> wrong indention here!
\end{multi}

I guess it's because auctex does not know that this env belongs to
itemize/enumerate envs and cannot fill it accordingly. How can I fix
this and add \begin{multi} ... \end{multi} so it get's properly indented
like itemize/enumerate lists?

Thanks!

Regards

Thorsten Grothe



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


Re: [AUCTeX] Repeat TeX-command-run-all without buffer change

2017-05-14 Thread Thorsten Grothe

* Mosè Giordano: 08.05.2017 (18:06):


[...]


> can help AUCTeX.  Maybe ask this feature to the package author?

see here for the response of Clemens:

fhttps://bitbucket.org/cgnieder/exsheets/issues/42/number-of-latex-runs-to-get-totalpoints#comment-36774072


Regards

Thorsten Grothe


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


Re: [AUCTeX] Repeat TeX-command-run-all without buffer change

2017-05-09 Thread Thorsten Grothe
Hi Mosè,

* Mosè Giordano: 08.05.2017 (18:06):

[...]

> Thanks for the example.  AUCTeX reads the output buffer to decide
> whether it needs to run LaTeX again.  Some packages emit warnings in
> the log to suggest that LaTeX should be run again (only when really
> necessary, otherwise would be useless), but here there is nothing that
> can help AUCTeX.  Maybe ask this feature to the package author?
>
> Regarding latexmk, it runs twice LaTeX on this simple document
>
> --8<---cut here---start->8---
> \documentclass{article}
> \usepackage[ngerman]{babel}
> \begin{document}
> Hello, world!
> \end{document}
> --8<---cut here---end--->8---
>
> so probably doesn't do anything special with exsheets package.

ok, I created a new issue on the authors page. See here:

https://bitbucket.org/cgnieder/exsheets/issues/42/number-of-latex-runs-to-get-totalpoints

Maybe he can do something :-)

Regards

Thorsten Grothe


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


Re: [AUCTeX] Repeat TeX-command-run-all without buffer change

2017-05-06 Thread Thorsten Grothe
Hi Mosè,

* Mosè Giordano: 06.05.2017 (17:39):

[...]

> If you believe that sometimes `TeX-command-default' fails to
> detect a necessary command, please share this situation so that we can
> improve its logic.

thanks for your response, this is simple example for this situation,
it's from the exsheets package. Change the points in the question
environments and run TeX-command-run-all and see the value of
\totalpoints, here I have to run it again to get the right value :-)
BTW. with latexmk it works fine.


\documentclass{article}
\usepackage{exsheets}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}

\begin{document}

\begin{question}{50} % → change here
\end{question}

\begin{question}{50} % → change here
\end{question}

Here we need at least 3 LaTeX runs, \verb!TeX-command-run-all does not see 
this:!
\totalpoints
\end{document}


Regards

Thorsten Grothe

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


[AUCTeX] Repeat TeX-command-run-all without buffer change

2017-05-04 Thread Thorsten Grothe
Hi list,

the command TeX-command-run-all sometimes not detects that another latex
run is necessary. That's no problem one could hit C-c C-a again, but this
does only work for me if the buffer changes (add a word or delete a
whitespace). I find this inconvenient. For example in Texstudio one can
hit the compile command several times behind each other.

What can I do to fix that?

Regards

Thorsten Grothe

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


Re: [AUCTeX] Customize tex-ispell.el

2017-05-02 Thread Thorsten Grothe

Hi Arash,

* Arash Esbati: 02.05.2017 (10:07):


[...]

> this is indeed a bug in mdframed.el and I've just fixed it.  You can
> fetch mdframed.el from AUCTeX repo and use it until the next release.

I'm glad, that I could help and it was not my fault :-)

Regards
Thorsten

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


Re: [AUCTeX] Customize tex-ispell.el

2017-05-01 Thread Thorsten Grothe
Hi Arash,

* Arash Esbati: 30.04.2017 (12:00):

(...)
> Your message says that Emacs is looking for a function with the same
> name, which is not defined.  Check your configuration if you have
> somewhere:
>
> (ispell-tex-skip-alist ...
>
> Note the opening parenthesis.

no, I do not, I thought that this:

(eval-after-load "tex-ispell"
  '(progn
(TeX-ispell-skip-setcar ...

would be the way to solve the issue.

> How do you define
> your new environment?  If you're using 

I defined it like so:

\newmdenv[linewidth=2pt,roundcorner=10pt,frametitlerule=true,
frametitlebackgroundcolor=DarkGreen!45,linecolor=DarkGreen!35,backgroundcolor=gray!5,
frametitlerulecolor=DarkGreen!35,frametitlerulewidth=2pt]{kasten}

and used

\begin[bla]{kasten
\end{kasten}

this works for my tex documents and LaTeX runs through without any error
message.

The other thing is that I made a couple of settings in a personal sty
file, the env kasten too.

In the main document I loaded it with \usepackage, this works without
problems. I tried "TeX-auto-generate" for my personal sty file but this
does not help.

> put this in your init file:
>
> (setq TeX-parse-self t)

this is in my init since years :-)


It's definitely the new environment kasten what makes problems. I
replaced it with \begin{mdframed} and the error vanishes. I tried this

\newenvironment{kasten}[1]
  {\mdfsetup{
frametitle={\colorbox{white}{\space#1\space}},
innertopmargin=10pt,
frametitleaboveskip=-\ht\strutbox,
frametitlealignment=\center
}
  \begin{mdframed}%
  }
  {\end{mdframed}}

and put it in my personal sty file in texmf and -- it works without
problems. I spellchecked the whole document with no issue. So I guess it
has something to do with my environment definition, strange.

> `ispell-tex-skip-alists', you should have an entry like:
>
> ("kasten" ispell-tex-arg-end 0)

tried this too, same effect :-) the old env causes the error, the new
env works fine...

Regards

Thorsten Grothe


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


Re: [AUCTeX] Customize tex-ispell.el

2017-04-29 Thread Thorsten Grothe

I think this is a bug, I got this message:

Spell-checking VWL_Aufgaben.tex using hunspell with default dictionary...done
apply: Symbol’s function definition is void: ispell-tex-skip-alist

my config looks like this:

(eval-after-load "tex-ispell"
  '(progn
 (TeX-ispell-skip-setcar
  '(("blank\\*?" ispell-tex-arg-end 0)
("titelbwr" ispell-tex-arg-end 6)
("addlinespace" ispell-tex-arg-end 0)
("pgfplotstabletypeset" ispell-tex-arg-end 0)
;; ("ID\\*?" ispell-tex-arg-end)
))
 (TeX-ispell-skip-setcdr
  '(("question" ispell-tex-arg-end)
("kasten" ispell-tex-arg-end)
 

I first happened with a new env I defined:

\begin{kasten}[\sffamily bla bla}
some text here
\end{kasten}

Then I changed the env to mdframed (the original), that helped, but now I
got the same error and I have no clue where it is. It's a very long
document. With flyspell this does not happen...

Where can I look deeper to find the

Regards

Thorsten Grothe





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


Re: [AUCTeX] Customize tex-ispell.el

2017-04-26 Thread Thorsten Grothe
Problem solved, it was because of the entry

("addlinespace" ispell-tex-arg-end 0)

I added the "0" and now it works!
Sorry for the noise!

Thorsten




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


Re: [AUCTeX] Customize tex-ispell.el

2017-04-26 Thread Thorsten Grothe

* Arash Esbati: 26.04.2017 (06:54):

> Thanks for the reminder, I've missed that macro from booktabs.sty.
> I've just added it.  Note that \addlinespace takes only an optional
> argument.  Hence, this entry should be like this:
>
>   ("addlinespace" ispell-tex-arg-end 0)

you are welcome :-) and thanks for the hint!


(...)

> ("cmidrule" . "{[-0-9]+}")

yes, exactly the same here after updating Auctex and I'm using hunspell
too, but I got problems with german umlauts (ü,ö). I think this is
because hunspell dicts are not coded to utf-8, must find a way to do
that.

Anyway, this entry works fine now:

\cmidrule(lr){2-2}

but this not:

\begin{tabularx}{\linewidth}{@{}>{\sffamily\bfseries}lXX@{}}
  5. & & \\\addlinespace[8pt] \cmidrule(lr){2-2}\cmidrule(lr){3-3}
  4. & & \\\addlinespace[8pt] \cmidrule(lr){2-2}\cmidrule(lr){3-3}
  3. & & \\\addlinespace[8pt] \cmidrule(lr){2-2}\cmidrule(lr){3-3}
  2. & & \\\addlinespace[8pt] \cmidrule(lr){2-2}\cmidrule(lr){3-3}
  1. & & \\\addlinespace[8pt] \cmidrule(lr){2-2}\cmidrule(lr){3-3}
\end{tabularx}

all cmidrules are flagged red, I think it has to do with tabularx?

> Quoting Jamie Zawinski:
>
> Some people, when confronted with a problem, think "I know, I'll use
> regular expressions." Now they have two problems.
>
> Stay away from them, is the best thing you can do ;-)

Oooh I agree fully with you, regular expression are not the right thing
for me :-) Nice to hear that others make the same experiences :-)

Thorsten

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


Re: [AUCTeX] Customize tex-ispell.el

2017-04-25 Thread Thorsten Grothe
Hi Arash,

* Arash Esbati: 25.04.2017 (18:09):

> you find a way in the manual how to do this [1].  You can add something
> like this to you init file and restart Emacs:
>
> (eval-after-load "tex-ispell"
>   '(TeX-ispell-skip-setcdr
> '(("question" ispell-tex-arg-end
>
> Or as a local variable in your .tex file, depending on your use case.
>
ah thank you, did not know that. Now I got this construct and it's
working fine:

(eval-after-load "tex-ispell"
  '(progn
 (TeX-ispell-skip-setcar
  '(("blank\\*?" ispell-tex-arg-end 0)
("titelbwr" ispell-tex-arg-end 6)
("addlinespace" ispell-tex-arg-end)
))
 (TeX-ispell-skip-setcdr
  '(("question" ispell-tex-arg-end)


but I got problems with cmidrules, they are defined in tex-ispell.el but
the regexp seems not to work for this construct:

\cmidrule(lr){2-2}

How can I add this to the above setting? Sorry for the silly question,
but I'm a beginner in regexp :-)

Regards

Thorsten

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


[AUCTeX] Customize tex-ispell.el

2017-04-25 Thread Thorsten Grothe
Hello,

I would like to add the environment of exsheets to tex-ispell.el,
because it's highlighted as error, the env looks like this:

\begin{question}[skip me}]{skip me}
ispell me please
\end{question}

But I have no idea how to do this. I know the file tex-ispell.el but if
I modify it, it get's overwritten with the next update.

Can anyone help me?

Thanks!

Regards

Thorsten Grothe

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


[AUCTeX] Make flyspell exclude latex macros

2015-03-23 Thread Thorsten Grothe

Hello List,

I'm using flyspell here to correct my latex documents. This works more 
or less fine but how can I exclude special latex commands from spelling?


I know that one solution is the variable *flyspell-tex-command-regexp* 
so I set it like this: (I don't know if the regexp ist right I found it 
on the Internet and customized it)



(setq flyspell-tex-command-regexp
  "\\(\\((\\(begin\\|end\\)[

\t]*{\\|\\(cite[a-z*]*\\|label\\|ref\\|eqref\\|usepackage\\|documentclass\\|prt\\|id\\|id\\*\\|pgfplotstabletypeset\\)[
  \t]*\\(\\[[^]]*\\]\\)?{[^{}]*\\)\\|\\)")


it works for:

\ID{ATB_1}, btw \ID*{ATB_123555} --> these are commands from the 
eqexam package but it does not work for


\pgfplotstabletypeset[
   col sep=space,
   header=true,
   columns={Prod, UmsPG, MAKonkur, Marktwachst},
   font={\sffamily},
    

as you can see here on the screenshot:

http://de.zimagez.com/zimage/emacs.php

Does anyone have an suggestion for this?


Regards Th. Grothe



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


Re: [AUCTeX] Prevent filling (formating) for special commands

2015-03-03 Thread Thorsten Grothe

Hi Tassilo,

* t...@gnu.org wrote on Di,03.03.2015:


I don't have any concrete plans to update the ELPA package, but usually
I do that reasonably frequently.  I'll see if I can do that at the
weekend.



I installed the git-version with el-get and it works like a charm, 
yipppieeeh!



Regards

Th. Grothe











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


Re: [AUCTeX] Prevent filling (formating) for special commands

2015-03-03 Thread Thorsten Grothe

Hi Tassilo,

* t...@gnu.org wrote on Di,03.03.2015:


Ok, since a few minutes you can customize the new variable:


sorry, did no see that, it's in a new Auctex version, right? I updated a 
few minutes ago, with el-get (using melpa) but the variable is not in my 
auctex version, is it in the devel version?



Regards Th. Grothe









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


Re: [AUCTeX] Prevent filling (formating) for special commands

2015-03-03 Thread Thorsten Grothe

Hi Tassilo,

* t...@gnu.org wrote on Di,03.03.2015:


That's no complete example, i.e., the code above is placed either in
some environment or given as argument to some macro.  I dug up the
pgfplotstable package documentation, as AFAICS, you'd do something like


yes thats true, I'm sorry for that!



--8<---cut here---start->8---
\pgfplotstabletypeset[skip first n=4]{%
   XYZ Format,
   Version 1.234
   Date 2010-09-01
   @author Mustermann
   A B C
   1 2 3
   4 5 6
}
--8<---cut here---end--->8---

and now you want to prevent AUCTeX from filling the contents of the
argument of \pgfplotstabletypeset, right?


exactly :-)



Ok, since a few minutes you can customize the new variable:

,[ C-h v LaTeX-fill-excluded-macros RET ]
| LaTeX-fill-excluded-macros is a variable defined in `latex.el'.
| Its value is nil
|
| Documentation:
| List of macro names (without leading \) whose arguments must
| not be subject to filling.
|
| You can customize this variable.
`

And in case that don't-fill-me code was the contents of an environment,
you can customize

,[ C-h v LaTeX-indent-environment-list RET ]
| LaTeX-indent-environment-list is a variable defined in `latex.el'.
| Its value is shown below.
|
| Documentation:
| Alist of environments with special indentation.
| The second element in each entry is the function to calculate the
| indentation level in columns.
|
| You can customize this variable.
|
| Value: (("verbatim" current-indentation)
|  ("verbatim*" current-indentation)
|  ("tabular" LaTeX-indent-tabular)
|  ("tabular*" LaTeX-indent-tabular)
|  ("align" LaTeX-indent-tabular)
|  ("align*" LaTeX-indent-tabular)
|  ("array" LaTeX-indent-tabular)
|  ("eqnarray" LaTeX-indent-tabular)
|  ("eqnarray*" LaTeX-indent-tabular)
|  ("displaymath")
|  ("equation")
|  ("equation*")
|  ("picture")
|  ("tabbing")
|  ("table")
|  ("table*"))
`

Those are also not subject to filling but only to indentation.


I will try your code and report if it works for me!
Thank you for the long answer!!!

Regards Th. Grothe







 * Deutsch - erkannt
 * Englisch

 * Englisch

 


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


[AUCTeX] Prevent filling (formating) for special commands

2015-03-03 Thread Thorsten Grothe

Hello Auctex Users,

I would like to keep some commands in their own line, like this:

%%%
\mc{1}{l}{bla}

% this is from pgfpltstable

col sep=comma,
header=true,

columns={Nr,MengeST,Preis,MengeP,MengeKum,WertGes,WertP,WertKum,ABC},
skip rows between index={0}{1},
font={\sffamily},
empty cells with={--},
every last row/.style={after row=\hline},
every odd row/.style={before row={\rowcolor[gray]{.8}}},
% Spalte 1
display columns/0/.style={%
  column name={\rowcolor[gray]{.8}\bfseries Nr.}, column 
type={c}, string

  type},



I found the variable LaTeX-paragraph-commands and set:

(setq LaTeX-paragraph-commands
(quote
("draw" "sqForms" "addplot")))

this works fine for simple commands like \section or \medskip. But how 
can I do this for the above code to prevent Auctex from disarranging my 
code?



Regards Th. Grothe



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


Re: [AUCTeX] auto compile for auctex?

2014-10-17 Thread Thorsten Grothe

Am 17.10.2014 um 16:12 schrieb Lars Madsen:


My best bet for you would be to tie the compilation to when you save the 
document.


Thanks for your responses, I will answer later again!

Regards
Thorsten


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


Re: [AUCTeX] auto compile for auctex?

2014-10-17 Thread Thorsten Grothe

Hi Tassilo & Lars,

thank you for your responses, very nice group here :-) I use this 
function to compile my documents:



(defun run-latexmk ()
  (interactive)
  (let ((TeX-save-query nil)
(TeX-process-asynchronous nil)
(master-file (TeX-master-file)))
(TeX-save-document "")
(TeX-run-TeX "latexmk"
 (TeX-command-expand "latexmk %t" 'TeX-master-file)
 master-file)
(if (plist-get TeX-error-report-switches (intern master-file))
(TeX-next-error t)
  (minibuffer-message "LatexMK fertig"



and bound it to C-s, this works fine and error messages are displayed.

But I would be nicer *not to press C-s*, like in ATP or in the Editor 
Gummi. I mean Auctex should recognize automatically if someting changed 
in the buffer and execute this function. Another approach would be if 
Auctex automatcally saves the document from time to time and executes 
this function or the other functions supposed by you.


Is that possible?

Regards
Thorsten


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


[AUCTeX] auto compile for auctex?

2014-10-17 Thread Thorsten Grothe

Dear list,

before I started using auctex I used vim with atp-latex plugin see here:

http://atp-vim.sourceforge.net/

ATP has a very nice feauture, called auto compile. When you leave vims 
insert mode the document is automatically compiled by latexmk, this is 
very convenient and I loved this feature. Is something similar possible 
with auctex and for example latexmk?



Regards
Thorsten Grothe


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


Re: [AUCTeX] Change fontification of \textsl

2014-10-04 Thread Thorsten Grothe

Am 04.10.2014 um 01:38 schrieb Joost Kremers:


Droid Sans Mono only has regular and bold shapes, no italics. Emacs
apparently uses underline as an alternative if no italic shape is found.


yes I didnt't know that, now I'm wiser :-)

Regards
Thorsten


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


Re: [AUCTeX] Change fontification of \textsl

2014-10-03 Thread Thorsten Grothe

Am 03.10.2014 um 19:33 schrieb Jorge A. Alfaro-Murillo:

(...)


font-latex-built-in-keyword-classes should take care of that. What does
"C-h v font-latex-built-in-keyword-classes" show for you. It should have
as one of its elements:
#+BEGIN_SRC emacs-lisp
  ("italic-command"
   (("emph" "{")
("textit" "{")
("textsl" "{"))
   'font-latex-italic-face 1 command)

#+END_SRC


Yes same here :-)

ok, I found it out. It has something to do with the font -- it works 
fine with Bitstream Vera Sans Mono but *not* with Droid Sans Mono. I 
tried also Ubuntu Mono and this works too :-) Funny thing and I learned 
a lot. So it's not a problem with auctex, it's a font problem!


Thank you for your help!

Regards
Thorsten



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


Re: [AUCTeX] Change fontification of \textsl

2014-10-03 Thread Thorsten Grothe

Jorge,

Am 03.10.2014 um 19:33 schrieb Jorge A. Alfaro-Murillo:

Thorsten Grothe writes:

In the text properties, the face should indicate
(font-latex-italic-face). If it does then the problem might be that
you changed something in the face. Hit enter over
(font-latex-italic-face) (or do "M-x describe-face
font-latex-italic-face"), to see if you changed the face. For me it
inherits italic (and it's foreground is DarkOliveGreen), which is
what you want.


font-latex-built-in-keyword-classes should take care of that. What does
"C-h v font-latex-built-in-keyword-classes" show for you. It should have
as one of its elements:
#+BEGIN_SRC emacs-lisp
  ("italic-command"
   (("emph" "{")
("textit" "{")
("textsl" "{"))
   'font-latex-italic-face 1 command)

#+END_SRC

Also, be sure that you do not have "italic-command" in the list
"font-latex-deactivated-keyword-classes". And restart emacs if you
change that list.


I answered to the list but I cannot see my answer, don't know what 
happens :-)


Anyway, thank you very much for your help(!), I will test tommorrow post 
the result!!


Regards
Thorsten



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


Re: [AUCTeX] Change fontification of \textsl

2014-10-03 Thread Thorsten Grothe

Jorge,

Am 03.10.2014 um 19:33 schrieb Jorge A. Alfaro-Murillo:

me again, sorry, I posted my message to you and not to the list -- my 
fault :-)


Thanks again!

Regards
Thorsten


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


[AUCTeX] Change fontification of \textsl

2014-10-03 Thread Thorsten Grothe

Hello list,


the command \textsl{} has a strange fontification -- auctex shows it 
underlined like so \textsl{__}.

BTW. Auctex does the same with the command \textit{_}.

I would like to change this, so that auctex displays the text in italic 
and not underlined, is that possible?


I found the variable font-latex-match-italic-command-keywords but I 
don't know what to do further.


Thanks for your help!!

Regards
Thorsten


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


[AUCTeX] Define new reftex label

2014-09-19 Thread Thorsten Grothe

Dear list,

I'm using the enumitem package which can refer to lines with the 
commands \linelabel and \lineref, very nice! How can I define the 
command \linelabel for reftex, so that C-c ( inserts \linelabel and not 
label and autonumbers it? I searched a bit in the doku but it seems to 
be complicated, sorry..



Thank you

Regards
Thorsten


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


Re: [AUCTeX] Comment or uncomment only one line

2014-05-19 Thread Thorsten Grothe
Tassilo,

> If you are at the beginning of the line containing the key to
> (un)comment, then you can just do `C-SPC C-n C-c ;' to mark the line and
> then comment the region.  Well, but just inserting a % or deleting the
> existing % is probably even more convenient.

yes, but Igor posted a nice solution which works fine for me, anyway thanks for
the response :-)


Regards
Thorsten

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


Re: [AUCTeX] Comment or uncomment only one line

2014-05-19 Thread Thorsten Grothe
Igor,

> I'm not aware of such a function, but you could do something like that:
> 
> --8<---cut here---start->8---
> (defun Tex-comment-line ()
>   (interactive)
>   (beginning-of-line)
>   (let ((beg (point)))
>   (end-of-line)
>   (TeX-comment-or-uncomment-region beg (point)))
> ) 
> --8<---cut here---end--->8---
> 
> and bind it to a key. 

thank you very much for the snippet, it works fine, exactly what I want to do!!!
Simple and effective :-)


Regards
Thorsten

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


[AUCTeX] Comment or uncomment only one line

2014-05-19 Thread Thorsten Grothe
Hello Auctex-users,

I got a small problem with Auctex. I got often constructs like this in my files:

% \usepackage[forpaper,pointsonleft,nototals,answerkey]{eqexam}
\usepackage[usecustomdesign,usexkv,links,useforms,forcolorpaper,%
nozerototals,allowrandomize,noparttotals,nosummarytotals,%
cfg=ka_normal,
totalsonright,
nosolutions,
%answerkey
% vspacewithsolns
% proofing,
% solutionsonly
% nospacetowork
]{eqexam}

let's say I only want to comment out one line like *nosolutions*, when I hit
C-c ; or C-c % Auctex comments out the whole paragraph or the whole region but
I want to comment out/in only *one single line*, is this possible with a
shortcut?

Thanks in advance!


Regards
Thorsten

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


Re: [AUCTeX] How to fold #+ORGTBL: lines

2014-02-27 Thread Thorsten Grothe
Hi Tassilo again,

Am Do, 27-Feb-2014 schrieb
Tassilo Horn :

(...)

> Are those lines in comments or something?
> 
> > Does anyone have an idea?
> 
> A quick look seemed to indicate that folding works only for math,
> macros, and environments.  How about defining your own orgtbl
> environment and then wrapping those orgtbl lines with it.  Then you can
> define folding for your orgtbl environment in `TeX-fold-env-spec-list'
> or `LaTeX-fold-env-spec-list'.

yes I know it's possible to put the Org-Table in a comment environment and fold
it this way but this would hide the whole table and I would only like to hide
the formula string only, the idea behind this is that I would like to protect
the formula like in MS-Excel :-)

Regards
Thorsten Grothe

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


Re: [AUCTeX] How to fold #+ORGTBL: lines

2014-02-27 Thread Thorsten Grothe
Hi Tassilo, hi Joost,

first of all thank you very much for your quick responses...

Am Do, 27-Feb-2014 schrieb
Tassilo Horn :

> I simply use `outline-minor-mode' and never had the need for anything
> more.

yes me too, but I never found out how to hide custom environment like this:

\begin{something}

\end{something}

I was only able to hid \sections \subsections etc. If it was possible to
customise the outline minor mode to hide such custom environments I would be
happy but I don't know how :-)
 

(...)

Regards
Thorsten Grothe


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


[AUCTeX] How to fold #+ORGTBL: lines

2014-02-27 Thread Thorsten Grothe
Hello List,

I'm working a lot with orgtbl's in my latex documents. 
I would like to know if it's possible make some folding rules for lines like
this to beautify my code and make it more readable..

The lines look like this

#+ORGTBL: SEND sec-6 orgtbl-to-latex :skip 3 :splice t :lend
"\\cmidrule(lr){4-4}\\\cmidrule(lr){5-5}\\\cmidrule(lr){6-6}\\\cmidrule(lr){7-7}"
  :hline
"%%"

I played around in the Tex-Fold-Customization but I was no lucky.

Does anyone have an idea?

Thanks in advance!

Regards
Thorsten Grothe

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


Re: [AUCTeX] Code-folding for #+TBLFM line possible?

2013-11-30 Thread Thorsten Grothe

* Sat, 30 Nov 2013 19:30:59 +0100, i...@th-grothe.de:


Dear Joost.

* Sat, 30 Nov 2013 10:14:32 +0100, joostkrem...@fastmail.fm:



What I do is wrap the Org table in a \begin{comment}...\end{comment}
environment. Those are folded as [comment]. You'll need to use the
comment package in your document.

In fact, what I actually do is I defined a new comment environment
called orgtable and added this to the environments to be folded. That
way I can tell actual comments from Org tables when the document is
folded.


thank you very much for the tipp, defining a new enviroment was a good
idea! I did it the same way you suggested and it works fine now! Now
there's only one small - org-related - thing. Exporting an orgtbl to
latex works with C-c C-c, but one has to do that for all tables in the
buffer. Is there a way to do this for *all* tables in the whole
document? I found a function for formulas:

M-x org-table-recalculate-buffer-tables

to update all formulas in the buffer, very nice!

Is there a way to export all tables in the buffer at one time?

Thank you!

Regards
Thorsten Grothe






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


[AUCTeX] Code-folding for #+TBLFM line possible?

2013-11-29 Thread Thorsten Grothe

Dear Auctex-users,

this is my first post to this list, so please be patient with me :-)

I'm using a lot of orgtbl-radio-tables with formulars in my documents 
and export them later to latex tables, this works very well for 
documents with a lot of calculations and tables. Is it possible to fold 
orgtbl code like this:


#+TBLNAME: sec-1
#+ORGTBL: SEND sec-1 orgtbl-to-latex :skip 2 :splice t :hline


I tried to customize "Latex Fold Macro Spec List" but this works only 
for Latex macros, is there any other way?


Thanks in advance!

Th. Grothe

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