ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Why does text within a very simple xtable seem to not want to take up a lot of free space?
@ 2024-09-24  5:50 Felix 
  2024-09-24  6:36 ` [NTG-context] " Mikael Sundqvist
  2024-09-24 17:02 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Felix  @ 2024-09-24  5:50 UTC (permalink / raw)
  To: ntg-context

\setuppapersize[letter][
    letter
]

\setuplayout[
    backspace=0.5in,
    topspace=0.0in,
    header=.5in, % No headers
    footer=.5in, % Space for the footer
    width=middle,
    height=middle,
]
 
\setupbodyfont[12pt]

\starttext

\startxtable[frame=off,topframe=on,bottomframe=on,option=fixed,width=1tw,align=middle,]

    \startxrow
        \startxcell
            {\tfa\setsmallcaps \startquotation Excellence is not a skill, it's an attitude. \stopquotation - Ralph Marston
            }
        \stopxcell
    \stopxrow
\stopxtable

\stoptext

inputting this code into ConTeXt LMTX 2024 will show you that text after \stopquotation will make - Ralph Marson go into a new line, but there is so much text on the sides beside the first line, that it makes me wonder why the 2nd line was even made. Did I do something wrong with my code?
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Why does text within a very simple xtable seem to not want to take up a lot of free space?
  2024-09-24  5:50 [NTG-context] Why does text within a very simple xtable seem to not want to take up a lot of free space? Felix 
@ 2024-09-24  6:36 ` Mikael Sundqvist
  2024-09-24 17:02 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Mikael Sundqvist @ 2024-09-24  6:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

you can try \quotation{ .. }

instead of \startquotation ... \stopquotation

(I did not test it...)

/Mikael

On Tue, Sep 24, 2024 at 7:56 AM Felix <fm117575@students.panola.edu> wrote:
>
> \setuppapersize[letter][
>     letter
> ]
>
> \setuplayout[
>     backspace=0.5in,
>     topspace=0.0in,
>     header=.5in, % No headers
>     footer=.5in, % Space for the footer
>     width=middle,
>     height=middle,
> ]
>
> \setupbodyfont[12pt]
>
> \starttext
>
> \startxtable[frame=off,topframe=on,bottomframe=on,option=fixed,width=1tw,align=middle,]
>
>     \startxrow
>         \startxcell
>             {\tfa\setsmallcaps \startquotation Excellence is not a skill, it's an attitude. \stopquotation - Ralph Marston
>             }
>         \stopxcell
>     \stopxrow
> \stopxtable
>
> \stoptext
>
> inputting this code into ConTeXt LMTX 2024 will show you that text after \stopquotation will make - Ralph Marson go into a new line, but there is so much text on the sides beside the first line, that it makes me wonder why the 2nd line was even made. Did I do something wrong with my code?
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Why does text within a very simple xtable seem to not want to take up a lot of free space?
  2024-09-24  5:50 [NTG-context] Why does text within a very simple xtable seem to not want to take up a lot of free space? Felix 
  2024-09-24  6:36 ` [NTG-context] " Mikael Sundqvist
@ 2024-09-24 17:02 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2024-09-24 17:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Felix

Felix  schrieb am 24.09.2024 um 07:50:
> \setuppapersize[letter][
>      letter
> ]
> 
> \setuplayout[
>      backspace=0.5in,
>      topspace=0.0in,
>      header=.5in, % No headers
>      footer=.5in, % Space for the footer
>      width=middle,
>      height=middle,
> ]
>   
> \setupbodyfont[12pt]

None of the lines above are necessary to show the effect and can be 
removed from your example.

> \starttext
> 
> \startxtable[frame=off,topframe=on,bottomframe=on,option=fixed,width=1tw,align=middle,]
>      \startxrow
>          \startxcell
>              {\tfa\setsmallcaps \startquotation Excellence is not a skill, it's an attitude. \stopquotation - Ralph Marston
>              }
>          \stopxcell
>      \stopxrow
> \stopxtable
> 
> \stoptext
> 
> inputting this code into ConTeXt LMTX 2024 will show you that text after \stopquotation will make - Ralph Marson go into a new line, but there is so much text on the sides beside the first line, that it makes me wonder why the 2nd line was even made. Did I do something wrong with my code?

The quotation environment is a block elements which can contain one or 
more paragraphs but the environment itself can't be part of a paragraph 
itself with the default setup.

The right command here is \quotation which just adds quotation marks 
around its argument.

There are also a few ways to improve your table:

1. Add \setupinterlinespace after the font switch to increase the 
vertical space for the larger text.

2. Remove the braces before and after \tfa because each table cell is a 
local group where font changes won't affect another cell.

3. Move the font changes to the foregroundstyle key to keep the cell 
free from unnecessary markup.

4. Use an \endash (or --) because the name after the quote and don't 
forget "\ " after \endash to ensure there is a space after the dash.

%%%% begin example
\starttext

\startxtable[frame=off,topframe=on,bottomframe=on,width=1tw,align=middle]
   \startxrow
     \startxcell[foregroundstyle=\tfa\setupinterlinespace\setsmallcaps]
       \quotation {Excellence is not a skill, it’s an attitude.}
       \endash\ Ralph Marston
     \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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-24 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-24  5:50 [NTG-context] Why does text within a very simple xtable seem to not want to take up a lot of free space? Felix 
2024-09-24  6:36 ` [NTG-context] " Mikael Sundqvist
2024-09-24 17:02 ` Wolfgang Schuster

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).