|
|
Up |
|
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Jun 16, 2008 06:46
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
|
| |
|
| | 9 Comments |
|
  |
Author: Joel J. AdamsonJoel J. Adamson Date: Jun 16, 2008 14:02
Sébastien Vauban 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
|
| |
|
| | no comments |
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Jun 17, 2008 02:10
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...
|
| Show full article (1.71Kb) |
| no comments |
|
  |
Author: Peter DyballaPeter Dyballa Date: Jun 17, 2008 03:13
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.
|
| Show full article (1.27Kb) |
| no comments |
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Jun 17, 2008 04:34
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:
|
| Show full article (1.99Kb) |
| no comments |
|
  |
Author: Joost KremersJoost Kremers Date: Jun 17, 2008 04:41
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.
|
| Show full article (1.25Kb) |
| no comments |
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Jun 17, 2008 04:52
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 ]
>> ...
|
| Show full article (1.04Kb) |
| no comments |
|
  |
Author: Joost KremersJoost Kremers Date: Jun 17, 2008 05:21
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... ;-)
|
| Show full article (1.51Kb) |
| no comments |
|
  |
Author: Peter DyballaPeter Dyballa Date: Jun 17, 2008 07:07
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
|
| Show full article (0.93Kb) |
| no comments |
|
  |
|
|
  |
Author: Marcel KorpelMarcel Korpel Date: Jun 17, 2008 16:16
2008/6/16 Sébastien Vauban 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)
|
| |
| no comments |
|
|