* overrule italics @ 2017-06-02 10:54 Florian Grammel 2017-06-02 12:30 ` Henning Hraban Ramm 0 siblings, 1 reply; 4+ messages in thread From: Florian Grammel @ 2017-06-02 10:54 UTC (permalink / raw) To: mailing list for ConTeXt users I have a long text with section headers partly in italics and/or emphasis. I'd like to setup the formatting in a way that overrules these. \setuphead[section][style=\tfb\up] In LaTeX there would be \upshape/\textup -- is there an equivalent in ConTeXt? Thanks in advance! Florian. ____________________________________________ Florian Grammel Copenhagen, Denmark ___________________________________________________________________________________ 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: overrule italics 2017-06-02 10:54 overrule italics Florian Grammel @ 2017-06-02 12:30 ` Henning Hraban Ramm 2017-06-02 12:45 ` Florian Grammel 0 siblings, 1 reply; 4+ messages in thread From: Henning Hraban Ramm @ 2017-06-02 12:30 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2017-06-02 um 12:54 schrieb Florian Grammel <florian.grammel@gmail.com>: > I have a long text with section headers partly in italics and/or emphasis. I'd like to setup the formatting in a way that overrules these. > > \setuphead[section][style=\tfb\up] > > In LaTeX there would be \upshape/\textup -- is there an equivalent in ConTeXt? Did you try \tf ? Otherwise \emph{italics \emph{upright} italics} should work (didn’t try). Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___________________________________________________________________________________ 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: overrule italics 2017-06-02 12:30 ` Henning Hraban Ramm @ 2017-06-02 12:45 ` Florian Grammel 2017-06-04 15:21 ` Hans Hagen 0 siblings, 1 reply; 4+ messages in thread From: Florian Grammel @ 2017-06-02 12:45 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 709 bytes --] > >> I have a long text with section headers partly in italics and/or emphasis. I'd like to setup the formatting in a way that overrules these. >> >> \setuphead[section][style=\tfb\up] >> >> In LaTeX there would be \upshape/\textup -- is there an equivalent in ConTeXt? > > Did you try \tf ? > yes I did, unfortunately it doesn't work > Otherwise \emph{italics \emph{upright} italics} should work (didn’t try). Nested emph to invert works. But my text has both italicised and regular headers -- both should be printed upright with the modified style. Even though I can modify them manually in this present case, something like \upshape would be good to have. Best Florian. [-- Attachment #1.2: Type: text/html, Size: 1408 bytes --] [-- Attachment #2: Type: text/plain, Size: 492 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: overrule italics 2017-06-02 12:45 ` Florian Grammel @ 2017-06-04 15:21 ` Hans Hagen 0 siblings, 0 replies; 4+ messages in thread From: Hans Hagen @ 2017-06-04 15:21 UTC (permalink / raw) To: ntg-context On 6/2/2017 2:45 PM, Florian Grammel wrote: >> >>> I have a long text with section headers partly in italics and/or >>> emphasis. I'd like to setup the formatting in a way that overrules these. >>> >>> \setuphead[section][style=\tfb\up] >>> >>> In LaTeX there would be \upshape/\textup -- is there an equivalent in >>> ConTeXt? >> >> Did you try \tf ? >> > > yes I did, unfortunately it doesn't work > >> Otherwise \emph{italics \emph{upright} italics} should work (didn’t try). > > Nested emph to invert works. But my text has both italicised and regular > headers -- both should be printed upright with the modified style. > > Even though I can modify them manually in this present case, something > like \upshape would be good to have. I uploaded a beta with a new option (in addition to an old one). I need to discuss with Wolfgang etc what default makes sense (topic for upcoming context meeting). \usemodule[art-01] \starttext \startbuffer \startbuffer[demo] \start \getbuffer[setup] \subject{[ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] [ $x=1$ ]} [ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] [ $x=1$ ] \typebuffer[setup] \blackrule[width=\textwidth,height=1pt,depth=0pt] \stop \stopbuffer \startbuffer[setup] \setuphead[subject][style=\tfb,before=,after=] \definealternativestyle [myslanted] [\it] [] \stopbuffer \getbuffer[demo] \startbuffer[setup] \setuphead[subject][style=\tfb,before=,after=] \definealternativestyle [myslanted] [\it] [\bi] \stopbuffer \getbuffer[demo] \startbuffer[setup] \setuphead[subject][style=\tfb,before=,after=] \definealternativestyle [myslanted] [\it] [\tf] \stopbuffer \getbuffer[demo] \startbuffer[setup] \definealternativestyle [myslanted] [\normalitalicface] \setuphead[subject][style=bold,before=,after=] \stopbuffer \getbuffer[demo] \startbuffer[setup] \definealternativestyle [myslanted] [\normalitalicface] \setuphead[subject][style=\bfd,before=,after=] \stopbuffer \getbuffer[demo] \startbuffer[setup] \definealternativestyle [myslanted] [\slantedface] \setuphead[subject][style=boldface,before=,after=] \stopbuffer \getbuffer[demo] \stopbuffer \unprotect \setupalternativestyles[method=normal] \getbuffer \page \setupalternativestyles[method=auto] \getbuffer \page \starttyping \emphasistypeface \emphasisboldface \normaltypeface == \typeface \normalboldface == \boldface \normalslantedface == \slantedface \normalitalicface == \italicface \swaptypeface == \swapface \stoptyping \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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:[~2017-06-04 15:21 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-06-02 10:54 overrule italics Florian Grammel 2017-06-02 12:30 ` Henning Hraban Ramm 2017-06-02 12:45 ` Florian Grammel 2017-06-04 15:21 ` Hans Hagen
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).