Skip to Content.
Sympa Menu

texmacs-users - Re: TeXmacs: multi-line codes for Format → Specific

Subject: mailing-list for TeXmacs Users

List archive

Re: TeXmacs: multi-line codes for Format → Specific


Chronological Thread 
  • From: Massimiliano Gubinelli <address@hidden>
  • To: Frank <address@hidden>
  • Cc: TeXmacs users <address@hidden>
  • Subject: Re: TeXmacs: multi-line codes for Format → Specific
  • Date: Wed, 16 Mar 2022 15:49:20 +0100

Dear Frank,
it seems not possible (e.g. the UI does not allow it). Apparently the
"specific" tag can only be applied to simple content. If you need to have
different behaviour in the LaTeX export you might try the following approach:
when you export either HTML or LaTeX TeXmacs looks for macros of the form
'tmhtml-XXXX' or 'tmlatex-XXXX' where 'XXXX' is the name of the macro
appearing in the document. If they exists they are used instead of the
standard macros (this is documented for HTML in the manual but I think should
work also for LaTeX). So you can introduce conditional behaviour by defining
macros and then customize them for LaTeX (or HTML).

HTH,
Best
Max


> On 15. Mar 2022, at 20:53, Frank <address@hidden> wrote:
>
> Dear all,
>
> For example, I want to add a padded center like
>
>> (specific "texmacs" (concat " " (document (padded-center (document ...)))))
>
> However, the content is not centered (by the way, this code is not
> producible in the UI. I manipulate the tm file to get this).
>
> Moreover, I wonder how to configure the preamble for the LaTeX conversion?
> Thanks.
>
> Best,
> Frank
>
> On 3/11/22, Frank wrote:
>> Dear all,
>> I wonder how to add multi-line codes for Format → Specific to specify a
>> conversion behavior? Thanks!
>> Best,
>> Frank




Archive powered by MHonArc 2.6.24.

Top of Page