Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] How to avoid a tabulation ?

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] How to avoid a tabulation ?


Chronological Thread 
  • From: Martial Tarizzo <address@hidden>
  • To: address@hidden
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] How to avoid a tabulation ?
  • Date: Thu, 13 Oct 2016 12:42:38 +0200

Hello,

It is fairly simple to adjust the rules used by TeXmacs for indentation,
and the ultimate way would be to write a style file suited to your
needs.

Nonetheless, you can see how to achieve what you want in the attached
files.

HTH

Martial Tarizzo



Le mercredi 12 octobre 2016 à 04:47 -0400, address@hidden a
écrit :
> Hello,
>
> i have a little problem. When i type something like :
> ___________________________________
> 2. Exemples
> We give in this section three non trivial examples.
> The first one was found by Pierre Saez..
> __________________________________________
>
> as you can see, Texmacs put a tabulation when i type a CR (carriage
> return).
>
> I would like to avoid this tabulation to get something like that :
> ___________________________________
> 2. Exemples
> We give in this section three non trivial examples.
> The first one was found by Pierre Saez..
> __________________________________________
>
>
> Do you know how to do this ?
>
> Thank you,
>
> Richard Gomez

Attachment: indent.pdf
Description: Adobe PDF document

<TeXmacs|1.99.4>

<style|<tuple|article|french>>

<\body>
  <\hide-preamble>
    <assign|par-first|0fn>

    \;
  </hide-preamble>

  <\em>
    Below, three different ways to render the same text.

    <\itemize>
      <item>first, the default style (the definition of
      <verbatim|sectional-normal> is in the file <verbatim|section-base.ts>)

      The \S problem \T is the <verbatim|\<less\>no-indent*\<gtr\>> at the
      end, which deactivate the indentation of the first Ÿ after the
      sectional tag

      <item>second, no deactivation of indentation after a section
      (modification of <verbatim|sectional-normal>)

      <item>third, paragraph indentation set to 0 (by assigning
      <verbatim|par-first> a suitable value, here 0)\ 
    </itemize>

    display the source tree of this file to see how this is done.

    \;

    To avoid blank lines in the document, include the code lines in a
    <verbatim|\<less\>hide-preamble\|...\<gtr\>> tag (see between sections 2
    & 3)
  </em>

  \;

  <assign|sectional-normal|<macro|name|<wide-normal|<arg|name><no-page-break><no-indent*>>>>

  <assign|par-first|1.5fn>

  <section|Exemple>

  We give in this section three non trivial examples.

  The first one was found by Pierre Saez..

  Proin. Morbi lacus, cubilia lacus nec eget conubia elit, pede ornare
  faucibus arcu. Duis auctor mi dictumst. Scelerisque. Ad odio imperdiet
  molestie ut purus dictum justo, laoreet.

  \;

  \;

  <assign|sectional-normal|<macro|name|<wide-normal|<arg|name><no-page-break>>>>

  <assign|par-first|1.5fn>

  <section|Exemple>

  We give in this section three non trivial examples.

  The first one was found by Pierre Saez..

  Proin. Morbi lacus, cubilia lacus nec eget conubia elit, pede ornare
  faucibus arcu. Duis auctor mi dictumst. Scelerisque. Ad odio imperdiet
  molestie ut purus dictum justo, laoreet.

  <\hide-preamble>
    <assign|sectional-normal|<macro|name|<wide-normal|<arg|name><no-page-break>>>>

    <assign|par-first|0fn>
  </hide-preamble>

  <section|Exemple>

  We give in this section three non trivial examples.

  The first one was found by Pierre Saez..

  Proin. Morbi lacus, cubilia lacus nec eget conubia elit, pede ornare
  faucibus arcu. Duis auctor mi dictumst. Scelerisque. Ad odio imperdiet
  molestie ut purus dictum justo, laoreet.

  <section|Exemple>

  We give in this section three non trivial examples.

  The first one was found by Pierre Saez..

  Proin. Morbi lacus, cubilia lacus nec eget conubia elit, pede ornare
  faucibus arcu. Duis auctor mi dictumst. Scelerisque. Ad odio imperdiet
  molestie ut purus dictum justo, laoreet.

  \;

  \;
</body>

<\initial>
  <\collection>
    <associate|page-type|user>
    <associate|preamble|false>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|1|../.TeXmacs/texts/scratch/no_name_191.tm>>
    <associate|auto-2|<tuple|2|?|../.TeXmacs/texts/scratch/no_name_191.tm>>
    <associate|auto-3|<tuple|3|?|../.TeXmacs/texts/scratch/no_name_191.tm>>
    <associate|auto-4|<tuple|4|?|../.TeXmacs/texts/scratch/no_name_191.tm>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>Exemple>
      <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>

      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|2<space|2spc>Exemple>
      <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-2><vspace|0.5fn>

      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|3<space|2spc>Exemple>
      <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-3><vspace|0.5fn>

      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|4<space|2spc>Exemple>
      <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-4><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>



Archive powered by MHonArc 2.6.19.

Top of Page