Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to have the following text alignment and I don't wanna use any "two column" and table because a environment i use doesn't support them. :( The text format looks like below picutre. Basicly i want to split a line from middle, and for a line text there will be 2 parts, and 1st part is in left and 2nd part is in right. however, there are some lines which have long text and i don't want to split them to two part, thus they will not split. Thanks a lot for help!

enter image description here

share|improve this question
    
Take a look into the tabbing environment. –  Daniel Feb 19 '13 at 15:27
    
What do you mean by "the environment I use doesn't support them"? Any LaTeX system supports the tabular environment. –  egreg Feb 19 '13 at 15:27
    
It's a non-official package which support traditional chineses note (known as warichu). The package can be found here: code.google.com/p/gezhu. –  Coeus Wang Feb 19 '13 at 15:40
    
It looks tabbing environment also not support. :( –  Coeus Wang Feb 19 '13 at 15:44

1 Answer 1

up vote 2 down vote accepted

You can define a command that manually puts its first argument into the "left column" and the second argument into the "right column.

output

\documentclass{article}
\newcommand*\leftright[2]{%
  \leavevmode
  \rlap{#1}%
  \hspace{0.5\linewidth}%
  #2}
\begin{document}
\leftright{first line part 1}{first line part 2} \par
A longer line that isn't split in two columns \par
\leftright{third line part 1}{third line part 2}
\end{document}
share|improve this answer
    
Thanks a lot. Though I can't directly use your solution, but this inspire me. :) I have solve this by only apply this changes to main contents. –  Coeus Wang Feb 20 '13 at 3:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.