TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have defined a command


which I obviously have to call like

\CV{My text}

However I rather would like to use two separate commands without parameters (my reason is in endnote [*]), so that the call sequence looks like:

\beginCV My text \endCV

How can I define these commands, so that the \parbox gets appropriately "opened" and "closed".

[*] I use pandoc to convert markdown documents to LaTeX or HTML, and I tweak the LaTeX output a bit with some helper commands. This does not affect the HTML output, as long as no text is a parameter to a LaTeX command.

share|improve this question
up vote 6 down vote accepted

The environment form of \parbox is minipage:


Note that you don't want a flushleft environment inside the minipage, because it adds vertical space fore and aft; with \raggedright this doesn't happen.

Now you can call

share|improve this answer

Your Answer


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.