ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Felix <fm117575@students.panola.edu>
Subject: [NTG-context] Re: (ConTeXt LMTX) How do I fix the centering and setting up width in xtables?
Date: Mon, 2 Sep 2024 18:47:29 +0200	[thread overview]
Message-ID: <c9ffc7f4-0bfe-4bc0-ef1d-27339b00cf35@gmail.com> (raw)
In-Reply-To: <172521686763.3284622.14133955676167670680@cgl.ntg.nl>

Felix schrieb am 01.09.2024 um 20:54:
> https://pastebin.com/TQdzmxeP
>
> I am trying to make a resume in ConTeXt (to see how well my skills have gotten, I am still quite a beginner) and Iw as able to produce what is in Pastebin.
>
> Though, I am having trouble with the table that goes over the big sized text that would be my name. It has  an email, a phone number, and an address but they are all.... aligned very weirdly. I want them to be centered. Though, the phone number has some sort of problem with alignment, and I don;t know fi the other ones are causing it or are also aligned wrong.
>
> I also wanted to make this code:
>
> \startxcell[topframe=on,bottomframe=on,align=flushright]
>      Ability to communicate strongly and effectively, being a reliable team member, supporting a team whenever needed, and the desire to help everyone
> \stopxcell
>
> has it so that it doesn't take up so much horizontal space (Ideally it is taking up 1/3 of the width I am allowing for since there are three rows in total) , but when I add width={some value} into the square brackets, it will add a blank line after all the text, and this is not what I want.

You have to add "option=fixed" to the cell with the width setting.

%%%% begin example
\starttext

\startxtable[option=stretch]
   \startxrow
     \startxcell
       text text
     \stopxcell
     \startxcell[width=8cm]
       \samplefile{ward}
     \stopxcell
   \stopxrow
\stopxtable

\startxtable[option=stretch]
   \startxrow
     \startxcell
       text text
     \stopxcell
     \startxcell[option=fixed,width=8cm]
       \samplefile{ward}
     \stopxcell
   \stopxrow
\stopxtable

\stoptext
%%%% end example

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2024-09-02 16:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-01 18:54 [NTG-context] " Felix 
2024-09-01 22:15 ` [NTG-context] " Wolfgang Schuster
2024-09-02 16:47 ` Wolfgang Schuster [this message]

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=c9ffc7f4-0bfe-4bc0-ef1d-27339b00cf35@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=fm117575@students.panola.edu \
    --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).