# Text alignment

**URL:** <https://forum.literatureandlatte.com/t/text-alignment/19692>\
**Category:** Markdown & LaTeX\
**Created:** [October 8, 2012, 9:32am UTC](https://forum.literatureandlatte.com/t/text-alignment/19692 "2012-10-08T09:32:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmago79](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/e/d26b3c/32.png) [@elmago79](https://forum.literatureandlatte.com/u/elmago79)\
**Post date:** [October 8, 2012, 9:32am UTC](https://forum.literatureandlatte.com/t/text-alignment/19692/1 "2012-10-08T09:32:22Z")

</div>

Is there a way to do text alignment in MMD? I need some parts of my manuscript to be centered or right aligned, and I can’t find a way to do it. I’m sorry if this is a very basic question, but I can’t find the answer anywhere.

---

<div class="post-metadata">

**Author:** ![Niran](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/niran/32/16983_2.png) [@Niran](https://forum.literatureandlatte.com/u/Niran)\
**Post date:** [October 8, 2012, 5:55pm UTC](https://forum.literatureandlatte.com/t/text-alignment/19692/2 "2012-10-08T17:55:23Z")

</div>

Since Markdown understands HTML, how about a div tag ?

 centre this

 align right 

 align left

---

<div class="post-metadata">

**Author:** ![MrGruff](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@MrGruff](https://forum.literatureandlatte.com/u/MrGruff)\
**Post date:** [October 8, 2012, 9:51pm UTC](https://forum.literatureandlatte.com/t/text-alignment/19692/3 "2012-10-08T21:51:37Z")

</div>

I don’t think MMD has centring or right alignment, so the best solution will depend upon what your output is going to be.

If it’s Latex then a commented piece of code might be easiest. So:

Your text to be centred

---

<div class="post-metadata">

**Author:** ![elmago79](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/e/d26b3c/32.png) [@elmago79](https://forum.literatureandlatte.com/u/elmago79)\
**Post date:** [October 9, 2012, 12:48am UTC](https://forum.literatureandlatte.com/t/text-alignment/19692/4 "2012-10-09T00:48:20Z")

</div>

Thanks for your replies. I half suspected it couldn’t be done using only markdown. Since my final output is going to be html, I will try with the tags. It makes the text looks a bit dirty, but I’m not going to need it that much.

---

<div class="post-metadata">

**Author:** ![MrGruff](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@MrGruff](https://forum.literatureandlatte.com/u/MrGruff)\
**Post date:** [October 9, 2012, 11:48am UTC](https://forum.literatureandlatte.com/t/text-alignment/19692/5 "2012-10-09T11:48:41Z")

</div>

You could lessen the impact on your text during composition by setting up project or pre-set replacements in the compile dialogue.

For example you could use cc: and :cc to mark the start and end of centring, then have those converted to

 and 
 respectively at compile.
