all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* TeX vs LaTeX
@ 2008-06-16 13:46 Sébastien Vauban
  2008-06-16 21:02 ` Joel J. Adamson
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Sébastien Vauban @ 2008-06-16 13:46 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hi (David?),

I am trying to learn a bit more of TeX and LaTeX, and I am
wondering if it is possible to get the plain TeX primitives
highlighted differently (different color) than the LaTeX ones?

For example, seeing that `\em' is a TeX command, and that
`\textem' a LaTeX one helps differentiating the two layers, and
understanding more of its internals.

Best regards,
  Seb

-- 
Sébastien Vauban


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-16 13:46 TeX vs LaTeX Sébastien Vauban
@ 2008-06-16 21:02 ` Joel J. Adamson
       [not found] ` <mailman.13421.1213650431.18990.help-gnu-emacs@gnu.org>
  2008-06-17 23:16 ` Marcel Korpel
  2 siblings, 0 replies; 10+ messages in thread
From: Joel J. Adamson @ 2008-06-16 21:02 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: help-gnu-emacs

Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:

> Hi (David?),
>
> I am trying to learn a bit more of TeX and LaTeX, and I am
> wondering if it is possible to get the plain TeX primitives
> highlighted differently (different color) than the LaTeX ones?
>
> For example, seeing that `\em' is a TeX command, and that
> `\textem' a LaTeX one helps differentiating the two layers, and
> understanding more of its internals.

Hmmm...AUCTeX does this for me already.  Are you using AUCTeX?  You
should ;)

Joel

-- 
Joel J. Adamson
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
http://trashbird1240.blogspot.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
       [not found] ` <mailman.13421.1213650431.18990.help-gnu-emacs@gnu.org>
@ 2008-06-17  9:10   ` Sébastien Vauban
  2008-06-17 10:13     ` Peter Dyballa
       [not found]     ` <mailman.13444.1213697611.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Sébastien Vauban @ 2008-06-17  9:10 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hi Joel,

>> I am trying to learn a bit more of TeX and LaTeX, and I am
>> wondering if it is possible to get the plain TeX primitives
>> highlighted differently (different color) than the LaTeX
>> ones?
>>
>> For example, seeing that `\em' is a TeX command, and that
>> `\textem' a LaTeX one helps differentiating the two layers,
>> and understanding more of its internals.
>
> Hmmm...AUCTeX does this for me already. Are you using AUCTeX?
> You should ;)

I am using AUCTeX (how could I do without it? ;-)), but it does
not (really) work for me, as you can check with:

--8<---------------cut here---------------start------------->8---
\textem{example}  % `font-latex-sedate-face'
\em{example}      % `font-latex-italic-face' on `font-latex-sedate-face'
--8<---------------cut here---------------end--------------->8---

The only difference is the italic applied on the same face...

And I just read a message from Ralf:

    ,----[ http://osdir.com/ml/emacs.auctex.general/2006-01/msg00069.html ]
    |
    | There is no distinction between LaTeX and non-LaTeX commands.
    | It's more like between commands AUCTeX knows and those it
    | doesn't know. But this distinction is not consequently followed.
    | There are quite a lot commands AUCTeX knows but which are
    | colored with `font-latex-sedate-face'.
    `----

In fact, it would find it nice, would the LaTeX keywords be
highlighted differently than the TeX ones, or as well from
unknown ones (would I import a ConTeXt document!)...

The same applies for the environments: it'd be nice if the
default ones (`document', for example) would be different than
my own (like `indentated-par').

Best regards,
  Seb

-- 
Sébastien Vauban


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-17  9:10   ` Sébastien Vauban
@ 2008-06-17 10:13     ` Peter Dyballa
       [not found]     ` <mailman.13444.1213697611.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2008-06-17 10:13 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs list


Am 17.06.2008 um 11:10 schrieb Sébastien Vauban:

> --8<---------------cut here---------------start------------->8---
> \textem{example}  % `font-latex-sedate-face'
> \em{example}      % `font-latex-italic-face' on `font-latex-sedate- 
> face'
> --8<---------------cut here---------------end--------------->8---
>
> The only difference is the italic applied on the same face...


Because \textem{} is neither LaTeX nor TeX but something you might  
have invented. I can't find it my LaTeX Companion, second edition,  
from January 2005 ...


The is not much sense in distinguishing between so-called "TeX" and  
so-called "LaTeX." LaTeX understands TeX quite well. Do you change  
your voice or do something else while speaking and using a word that  
has its origin in Latin or one that has Celtic or Scandinavian  
ancestors or one that has been taken over from English or German?

I think it's possible to work through all available TeX sources on  
CTAN and determine the few thousand code words that they get  
fontified differently then obvious LaTeX code words.

--
Greetings

   Pete

One-Shot Case Study, n.:
	The scientific equivalent of the four-leaf clover, from
	which it is concluded all clovers possess four leaves
	and are sometimes green.







^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
       [not found]     ` <mailman.13444.1213697611.18990.help-gnu-emacs@gnu.org>
@ 2008-06-17 11:34       ` Sébastien Vauban
  2008-06-17 11:41         ` Joost Kremers
  0 siblings, 1 reply; 10+ messages in thread
From: Sébastien Vauban @ 2008-06-17 11:34 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hi Peter,

--8<---------------cut here---------------start------------->8---
\textem{example}  % `font-latex-sedate-face'
\em{example}      % `font-latex-italic-face' on `font-latex-sedate-face'
--8<---------------cut here---------------end--------------->8---
>>
>> The only difference is the italic applied on the same face...
>
> Because \textem{} is neither LaTeX nor TeX but something you
> might have invented. I can't find it my LaTeX Companion,
> second edition, from January 2005 ...

Weird. Searching on Google for `textem latex' results in
4,930 results, whose two of them are the following:

    ,----[ Introduction to LaTeX ]
    |
    | LaTeX provides lots of typestyles. Below is a list of some of
    | the styles. To get italics, you can type \textit{italics}:
    |
    |     * \textrm - Roman
    |     * \textit - Italics
    |     * \textem - Emphasis (toggles between \it and \rm)
    |     * \textbf - Boldface
    |     * \textsl - Slanted
    |     * \textsf - Sans serif
    |     * \textsc - Small caps
    |     * \texttt - Typewriter 
    `----

or

    ,----[ a short introduction ]
    |
    | Marking up text
    | Emphasis: {\em ...} or \textem{...}
    `----

which clearly shows what I explained: the use of the TeX or of
the LaTeX command.


> The is not much sense in distinguishing between so-called
> "TeX" and so-called "LaTeX." LaTeX understands TeX quite well.

I know, but it would help me learning when I write TeX or when I
write LaTeX. It gives a feeling of what's portable, and what's
not (to or from ConTeXt, for example).


> Do you change your voice or do something else while speaking
> and using a word that has its origin in Latin or one that has
> Celtic or Scandinavian ancestors or one that has been taken
> over from English or German?

No, but sometimes you will say the expression /between quotes/.

And analogies are bad... because you always can show one thing
and its opposite.

Seb

-- 
Sébastien Vauban


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-17 11:34       ` Sébastien Vauban
@ 2008-06-17 11:41         ` Joost Kremers
  2008-06-17 11:52           ` Sébastien Vauban
  0 siblings, 1 reply; 10+ messages in thread
From: Joost Kremers @ 2008-06-17 11:41 UTC (permalink / raw)
  To: help-gnu-emacs

Sébastien Vauban wrote:
> Weird. Searching on Google for `textem latex' results in
> 4,930 results, whose two of them are the following:

but sometimes things change in latex.

>     ,----[ Introduction to LaTeX ]
>     |
>     | LaTeX provides lots of typestyles. Below is a list of some of
>     | the styles. To get italics, you can type \textit{italics}:
>     |
>     |     * \textrm - Roman
>     |     * \textit - Italics
>     |     * \textem - Emphasis (toggles between \it and \rm)
>     |     * \textbf - Boldface
>     |     * \textsl - Slanted
>     |     * \textsf - Sans serif
>     |     * \textsc - Small caps
>     |     * \texttt - Typewriter 
>     `----

that document is twelve years old.

> or
>
>     ,----[ a short introduction ]
>     |
>     | Marking up text
>     | Emphasis: {\em ...} or \textem{...}
>     `----

that one's 14 years old.

\textem may have existed at one point, but it doesn't exist anymore. (at
least, *my* latex install doesn't know about it. it throws up an error when
i use it.) use \emph instead, which is what you'll find in any recent
latex-intro.


-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-17 11:41         ` Joost Kremers
@ 2008-06-17 11:52           ` Sébastien Vauban
  2008-06-17 12:21             ` Joost Kremers
  0 siblings, 1 reply; 10+ messages in thread
From: Sébastien Vauban @ 2008-06-17 11:52 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hi Joost,

>> Weird. Searching on Google for `textem latex' results in
>> 4,930 results, whose two of them are the following:
>
> but sometimes things change in latex.
>
>>     ,----[ Introduction to LaTeX ]
>>     |
>>     | LaTeX provides lots of typestyles. Below is a list of some of
>>     | the styles. To get italics, you can type \textit{italics}:
>>     |
>>     |     * \textem - Emphasis (toggles between \it and \rm)
>>     `----
>
> that document is twelve years old.
>
>> or
>>
>>     ,----[ a short introduction ]
>>     |
>>     | Marking up text
>>     | Emphasis: {\em ...} or \textem{...}
>>     `----
>
> that one's 14 years old.
>
> \textem may have existed at one point, but it doesn't exist
> anymore. (at least, *my* latex install doesn't know about it.
> it throws up an error when i use it.) use \emph instead, which
> is what you'll find in any recent latex-intro.

OK, you're right. Thanks for pointing that out!!

But that doesn't change the essence of my question... ;-)

Seb

-- 
Sébastien Vauban


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-17 11:52           ` Sébastien Vauban
@ 2008-06-17 12:21             ` Joost Kremers
  2008-06-17 14:07               ` Peter Dyballa
  0 siblings, 1 reply; 10+ messages in thread
From: Joost Kremers @ 2008-06-17 12:21 UTC (permalink / raw)
  To: help-gnu-emacs

Sébastien Vauban wrote:
>>> or
>>>
>>>     ,----[ a short introduction ]
>>>     |
>>>     | Marking up text
>>>     | Emphasis: {\em ...} or \textem{...}
>>>     `----
>>
>> that one's 14 years old.

actually, that one's only four years old, my mistake. (or the author's,
because i was already using latex in 2004 and i don't think \textem still
existed then...)

the reason for the namechange (\textem --> \emph) probably lies in the fact
that this command toggles between italic and upright shapes, while the
other \textxx commands choose a shape/weight unconditionally.

> But that doesn't change the essence of my question... ;-)

i seem to remember reading on comp.text.tex once that some tex commands are
redefined in latex, so that they behave slightly differently when used in
latex than when used in tex. (the point being that you should avoid using
tex commands in latex unless you *really* know what you're doing.)

the general consensus is that you should use either tex or latex, and not
mix them. so distinguishing between the two types of commands probably
isn't a high priority for many people, which means it isn't implemented in
tex/latex modes or auctex. certainly with auctex it isn't impossible to
configure the system to do what you want, but you'd probably have to quite
a lot of customisation. personally, i don't think it's worth the effort.


-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-17 12:21             ` Joost Kremers
@ 2008-06-17 14:07               ` Peter Dyballa
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2008-06-17 14:07 UTC (permalink / raw)
  To: Joost Kremers, Sébastien Vauban; +Cc: help-gnu-emacs


Am 17.06.2008 um 14:21 schrieb Joost Kremers:

> the general consensus is that you should use either tex or latex,  
> and not
> mix them. so distinguishing between the two types of commands probably
> isn't a high priority for many people, which means it isn't  
> implemented in
> tex/latex modes or auctex. certainly with auctex it isn't  
> impossible to
> configure the system to do what you want, but you'd probably have  
> to quite
> a lot of customisation. personally, i don't think it's worth the  
> effort.


Right. I am pretty sure I never use TeX in a LaTeX document to be  
compiled into PDF – why should I, what could I get? The use of TeX  
primitives sometimes cannot be avoided in CLS (or STY) files. And  
those who are able to do the latter don't need reminders.

The LaTeX Companion is a good orientation for LaTeX users.

--
Greetings

   Pete

Never be led astray onto the path of virtue






^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: TeX vs LaTeX
  2008-06-16 13:46 TeX vs LaTeX Sébastien Vauban
  2008-06-16 21:02 ` Joel J. Adamson
       [not found] ` <mailman.13421.1213650431.18990.help-gnu-emacs@gnu.org>
@ 2008-06-17 23:16 ` Marcel Korpel
  2 siblings, 0 replies; 10+ messages in thread
From: Marcel Korpel @ 2008-06-17 23:16 UTC (permalink / raw)
  To: help-gnu-emacs

2008/6/16 Sébastien Vauban <zthjwsqqafhv@spammotel.com>:
> For example, seeing that `\em' is a TeX command, and that
> `\textem' a LaTeX one

To be a nitpicker: actually, `\em' is also a LaTeX command and not a
plain TeX command. ;)

Kind regards,
Marcel (plain TeX user)




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-06-17 23:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 13:46 TeX vs LaTeX Sébastien Vauban
2008-06-16 21:02 ` Joel J. Adamson
     [not found] ` <mailman.13421.1213650431.18990.help-gnu-emacs@gnu.org>
2008-06-17  9:10   ` Sébastien Vauban
2008-06-17 10:13     ` Peter Dyballa
     [not found]     ` <mailman.13444.1213697611.18990.help-gnu-emacs@gnu.org>
2008-06-17 11:34       ` Sébastien Vauban
2008-06-17 11:41         ` Joost Kremers
2008-06-17 11:52           ` Sébastien Vauban
2008-06-17 12:21             ` Joost Kremers
2008-06-17 14:07               ` Peter Dyballa
2008-06-17 23:16 ` Marcel Korpel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.