Text alignment

el
elmago79
Posts: 70
Joined: Wed Apr 06, 2011 8:16 am
Platform: Mac + Windows
Location: Mexico City
Contact:

Mon Oct 08, 2012 9:32 am Post

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.

Ni
Niran
Posts: 73
Joined: Wed Jun 20, 2007 1:28 pm

Mon Oct 08, 2012 5:55 pm Post

Since Markdown understands HTML, how about a div tag ?

<div align="center">
centre this
</div>
<div align="right">
align right
</div>
<div align="left">
align left
</div>

Mr
MrGruff
Posts: 208
Joined: Tue Jun 05, 2007 4:22 pm
Location: UK
Contact:

Mon Oct 08, 2012 9:51 pm Post

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:

<!--\begin{center}-->

Your text to be centred

<!--\end{center}-->

el
elmago79
Posts: 70
Joined: Wed Apr 06, 2011 8:16 am
Platform: Mac + Windows
Location: Mexico City
Contact:

Tue Oct 09, 2012 12:48 am Post

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.

Mr
MrGruff
Posts: 208
Joined: Tue Jun 05, 2007 4:22 pm
Location: UK
Contact:

Tue Oct 09, 2012 11:48 am Post

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 <div align="center"> and </div> respectively at compile.