From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Fwd: Newlines in a table cel
Date: Mon, 4 Jul 2011 15:32:25 +0200 [thread overview]
Message-ID: <924003E9-6D6B-4594-AB79-81A0DD170A43@googlemail.com> (raw)
In-Reply-To: <CAG-LmmBWYYe0vJqu-O4KVMi91HVD5QYifk1hHgtwD6RqkBdz-w@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1498 bytes --]
Am 04.07.2011 um 14:58 schrieb Cecil Westerhof:
> 2011/7/4 Cecil Westerhof <cldwesterhof@gmail.com>
> 2011/7/4 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
> > Attached a tex and a pdf file. It shows the original and your solution, but also the preferred solution. (But hard coded, not with a macro.) Would it be possible to get the preferred solution in a macro?
>
> Tell ConTeXt where is should break the line with “\\”.
>
> \MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ thirthViewFromSeveral\\ fourthViewFromSeveral}{usedController}
>
> Thanks. In the dummy.tex it works. In my own document it does not. Looks like I changed something in my environment. Have to find out what.
>
> It is not in my environment. The use of \completecontent wreck havoc on this. See the attachments.
This is *not* a minimal working example, neither it’s minimal nor it’s working.
You can fix this by replacing the \\ with \crlf to add a linebreak in the entries:
\define[3]\MVC
{\starttabulate[|l|lp|]
\NC Model: \NC #1 \NC\NR
\NC View: \NC #2 \NC\NR
\NC Controller: \NC #3 \NC\NR
\stoptabulate}
\starttext
\MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf thirthViewFromSeveral\crlf fourthViewFromSeveral}{usedController}
\completecontent
\MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf thirthViewFromSeveral\crlf fourthViewFromSeveral}{usedController}
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2906 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-07-04 13:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 9:59 Cecil Westerhof
2011-07-04 10:03 ` Hans Hagen
[not found] ` <CAG-LmmDLbuj4jKhF7pvqw1cc5v-FwkxzYwAeoAj4YyRx-z181w@mail.gmail.com>
2011-07-04 10:50 ` Fwd: " Cecil Westerhof
2011-07-04 12:16 ` Wolfgang Schuster
2011-07-04 12:47 ` Cecil Westerhof
2011-07-04 12:58 ` Cecil Westerhof
2011-07-04 13:32 ` Wolfgang Schuster [this message]
2011-07-04 13:53 ` Cecil Westerhof
2011-07-04 14:04 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=924003E9-6D6B-4594-AB79-81A0DD170A43@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).