ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How do I turn off indentation inside a \framed with align=?
@ 2022-05-19 15:27 Gerben Wierda via ntg-context
  2022-05-19 16:22 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda via ntg-context @ 2022-05-19 15:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gerben Wierda


[-- Attachment #1.1: Type: text/plain, Size: 658 bytes --]

I have these kinds of statements

\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}

but the text inside the frame is typeset with indentation.

I tried \setupindenting both before and after \starttext, (none,no,never) but that doesn’t work. 

How do I turn indenting off in all frameds with align=flushleft or otherwise *everywhere*?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>


[-- Attachment #1.2: Type: text/html, Size: 3734 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: How do I turn off indentation inside a \framed with align=?
  2022-05-19 15:27 How do I turn off indentation inside a \framed with align=? Gerben Wierda via ntg-context
@ 2022-05-19 16:22 ` Wolfgang Schuster via ntg-context
  2022-06-02 22:57   ` Gerben Wierda via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-05-19 16:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster


[-- Attachment #1.1: Type: text/plain, Size: 809 bytes --]

Gerben Wierda via ntg-context schrieb am 19.05.2022 um 17:27:
> I have these kinds of statements
>
> \framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}
>
> but the text inside the frame is typeset with indentation.
>
> I tried \setupindenting both before and after \starttext, 
> (none,no,never) but that doesn’t work.
>
> How do I turn indenting off in all frameds with align=flushleft or 
> otherwise *everywhere*?

You have to provide a minimal example, in the following the example the 
text within the frame isn't indented.

%%%% begin example
\setupindenting[yes,medium]

\showframe[text][text]

\starttext

metamodelexplanation

\framed[frame=off,align=flushleft,width=\textwidth]{metamodelexplanation}

metamodelexplanation

\stoptext
%%%% end example

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1540 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: How do I turn off indentation inside a \framed with align=?
  2022-05-19 16:22 ` Wolfgang Schuster via ntg-context
@ 2022-06-02 22:57   ` Gerben Wierda via ntg-context
  2022-06-03 11:02     ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda via ntg-context @ 2022-06-02 22:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gerben Wierda


[-- Attachment #1.1: Type: text/plain, Size: 1376 bytes --]

> On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> wrote:
> 
> You have to provide a minimal example, in the following the example the text within the frame isn't indented.

I cannot always provide a minimal example (how much I would like to) as my TeX is produced in a pipeline from 5600 lines of lua and METAPOST code.

But luckily, in this case I can, the one using \phrasetext is indented, the other one is not.:

\setuplanguage[en][patterns={en}]\mainlanguage[en]

\definelabelclass[phrase]

\setupphrasetext[en][metamodelexplanation=  {Only direct relations are shown. Abstract elements are expanded so only real meta­model elements are shown. Uses the Mastering ArchiMate 9-colour scheme to assist learning and quick reading.}]

\starttext
\setupindenting[none]
\setupindenting[no]

\definelayer[coremodel][width=\textwidth,height=\textheight]
\setlayer[coremodel][preset=lefttop,voffset=0.6cm]{\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}}
\setlayer[coremodel][preset=lefttop,voffset=6cm]{\framed[frame=off,align=flushleft,width=\textwidth]{Only direct relations are shown. Abstract elements are expanded so only real meta­model elements are shown. Uses the Mastering ArchiMate 9-colour scheme to assist learning and quick reading}}
\placelayer[coremodel]
\stoptext

G

[-- Attachment #1.2: Type: text/html, Size: 2978 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: How do I turn off indentation inside a \framed with align=?
  2022-06-02 22:57   ` Gerben Wierda via ntg-context
@ 2022-06-03 11:02     ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-06-03 11:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Gerben Wierda via ntg-context
  Cc: Wolfgang Schuster


[-- Attachment #1.1: Type: text/plain, Size: 830 bytes --]

Gerben Wierda via ntg-context schrieb am 03.06.2022 um 00:57:
>> On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context 
>> <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>> wrote:
>>
>> You have to provide a minimal example, in the following the example 
>> the text within the frame isn't indented.
>
> I cannot always provide a minimal example (how much I would like to) 
> as my TeX is produced in a pipeline from 5600 lines of lua and 
> METAPOST code.
>
> But luckily, in this case I can, the one using \phrasetext is 
> indented, the other one is not.:
>
> \setuplanguage[en][patterns={en}]\mainlanguage[en]
>
> \definelabelclass[phrase]
>
> \setupphrasetext[en][metamodelexplanation=  {...}]

The space in your text comes from the space between the = and { when you 
set the text for metamodelexplanation.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2438 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-06-03 11:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 15:27 How do I turn off indentation inside a \framed with align=? Gerben Wierda via ntg-context
2022-05-19 16:22 ` Wolfgang Schuster via ntg-context
2022-06-02 22:57   ` Gerben Wierda via ntg-context
2022-06-03 11:02     ` Wolfgang Schuster via ntg-context

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