text indentation, how to make

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

text indentation, how to make

lit-uriy
I need to indent text like in the screenshot:

(screenshot from MS Word)

can it be done?
Reply | Threaded
Open this post in threaded view
|

Re: text indentation, how to make

abelsromero
Some blocks (like source) allow to define indentation using the "indent" attribute (http://asciidoctor.org/docs/user-manual/#normalize-block-indentation).
But I feel what you want to do is group and align some related topics under some concept, for that I use descriptive/labeled lists with a few tricks.

- Use [horizontal] to align elements to the concept.
- Join the topics using `+`.

[horizontal]
item_1::
First line +
second line +
one more line

item_2::
En un lugar de la Mancha, +
de cuyo nombre no quiero acordarme, +
no ha mucho tiempo que vivía +
un hidalgo de los de lanza
One thing I am not sure is about the usage of math formulaes in the block :/
Reply | Threaded
Open this post in threaded view
|

Re: text indentation, how to make

lit-uriy
abelsromero, Thank you very much, this method helped me a lot

Result:


Source:
Коэффициент C определяется по формуле: +
asciimath:[ С = rho_i/(rho_i - rho_(возд) * (101,325 *(t_(возд) + 273) )/P_б * 293) ],

[horizontal]
где: ::
asciimath:[rho_(возд)] -- плотность окружающего воздуха при н. у. (t = 20 °С, asciimath:[Р_б] = 101,325 кПа) равная 1,20 кг/м^3^, +
asciimath:[t_(возд)] -- температура окружающего воздуха, °С; +
asciimath:[Р_б] -- атмосферное давление по барометру, кПа.
Reply | Threaded
Open this post in threaded view
|

Re: text indentation, how to make

mojavelinux
Administrator
I think the horizontal description list was the right choice here.

Keep in mind that anything beyond basic layouts should be handled by the stylesheet and not in the AsciiDoc source. If you find yourself using a lot of hard line breaks or no-break whitespace (aka hacks), then it's a sure sign you're mixing content and presentation. AsciiDoc is not designed to position elements on the page (aside from well-defined primitive structures). It's designed to pass on the hints (e.g., roles) and other instructions to a layout engine (i.e., CSS) to arrange the content for display.

Don't be hesitant to tweak the CSS. It's a key part of this toolchain.

Cheers,

-Dan

On Thu, May 18, 2017 at 5:34 AM, lit-uriy [via Asciidoctor :: Discussion] <[hidden email]> wrote:
abelsromero, Thank you very much, this method helped me a lot

Result:


Source:
Коэффициент C определяется по формуле: +
asciimath:[ С = rho_i/(rho_i - rho_(возд) * (101,325 *(t_(возд) + 273) )/P_б * 293) ],

[horizontal]
где: ::
asciimath:[rho_(возд)] -- плотность окружающего воздуха при н. у. (t = 20 °С, asciimath:[Р_б] = 101,325 кПа) равная 1,20 кг/м^3^, +
asciimath:[t_(возд)] -- температура окружающего воздуха, °С; +
asciimath:[Р_б] -- атмосферное давление по барометру, кПа.



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/text-indentation-how-to-make-tp5605p5607.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux