Local customization |
Even though TeXmacs tries hard to render source code in a nice way
following the global rendering options that you specified, the
readability of the source code often needs to be further enhanced
locally. In source mode, this can be done using the menus
First of all, for certain pieces of content the user may prefer to see them in their “activated” form instead as dead source code. This may for instance be the case for embedded images, or for mathematical symbols, like in
<assign|R|<macro|R>>
Such an active presentation may also be preferred for certain more complex macros:
<
assign
|
diag
|
<
macro
|
var
|
dim
|
(
)
>
>
var1
0
⋱
0
vardim
A piece of code can be activated by selecting it and using
Another way to customize the rendering is to override some of the
global rendering options. This is mainly interesting for controlling
more precisely which tags have to be stretched across several lines
and which tags have to be represented in a compact fashion. For
instance, the
<
assign
|
my-section
|
<
macro
|
title
|
<\concat|
<header-hook|title>
<toc-hook|title>
<my-section-title|title>
we have stretched the
<
assign
|
my-section
|
<
macro
|
title
|
<\concat|
<header-hook|title>
<toc-hook|title>
<with|font-series|bold|Section:>
title
At present, we did not implement a way to mark arguments as inline or block, but we might do this later.
A final way to customize the rendering of source code is to apply an
arbitrary macro using