general syntax for startparagraph command
Dear list members, I am trying to get the following with the 1 elevated and 2 above the = character. The square brackets and all in between I would like italic and OPT below both terms. *\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph* Would anybody be able to help. Would Metapost be needed here? Thanks Jeroen
Jeroen schrieb am 29.09.2019 um 20:30:
Dear list members,
I am trying to get the following with the 1 elevated and 2 above the = character. The square brackets and all in between I would like italic and OPT below both terms.
*\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph*
Would anybody be able to help. Would Metapost be needed here?
When you look at the command definition in setup-en.pdf you can two lines below the command which refer to the two arguments. 1 2 \startparagraph [...] [..,..=..,..] ... \stopparagraph OPT OPT 1 NAME 2 inherits: \setupparagraph The NAME for the first arguments means you can the pass of a named instance, such a instance can be created with the \defineparagraph command, e.g. \defineparagraph [bold] [style=bold]. The inherits: ... means you can pass options from the \setupparaph command, e.g. \startparagraph [color=blue]. For get a list of all possible options for this argument take a look at \setupparagraph. Wolfgang
Many thanks. Is there also a simple way to place a 2 above the = character as the definition does. Thanks Jeroen Op zo 29 sep. 2019 om 18:47 schreef Wolfgang Schuster < wolfgang.schuster.lists@gmail.com>:
Jeroen schrieb am 29.09.2019 um 20:30:
Dear list members,
I am trying to get the following with the 1 elevated and 2 above the = character. The square brackets and all in between I would like italic and OPT below both terms.
*\startparagraph [.1..] [..,..2=..,..] ..**.\stopparagraph*
Would anybody be able to help. Would Metapost be needed here?
When you look at the command definition in setup-en.pdf you can two lines below the command which refer to the two arguments.
1 2 \startparagraph [...] [..,..=..,..] ... \stopparagraph OPT OPT
1 NAME 2 inherits: \setupparagraph
The NAME for the first arguments means you can the pass of a named instance, such a instance can be created with the \defineparagraph command, e.g. \defineparagraph [bold] [style=bold].
The inherits: ... means you can pass options from the \setupparaph command, e.g. \startparagraph [color=blue]. For get a list of all possible options for this argument take a look at \setupparagraph.
Wolfgang
Jeroen schrieb am 30.09.2019 um 02:18:
Many thanks. Is there also a simple way to place a 2 above the = character as the definition does. The sample ways are:
\starttext \setupruby[style=] = \ruby{=}{*} \blank = \framed[location=bottom,align=middle,frame=off,offset=0pt]{*\\=} \stoptext The numbers in the command reference are positioned with a different low level TeX method where you use a box to change the vertical and horizontal position of the box. You can find more information about this method (search for raise/lower) on books about plain TeX [1,2] or Hans new manual about low level box command [3]. [1] https://ctan.org/pkg/texbytopic [2] https://ctan.org/pkg/impatient [3] lowlevel-boxes.pdf (included in the context minimals) Wolfgang
Am 2019-09-30 um 19:37 schrieb Wolfgang Schuster
: Jeroen schrieb am 30.09.2019 um 02:18:
Many thanks. Is there also a simple way to place a 2 above the = character as the definition does. The sample ways are:
\starttext
\setupruby[style=]
= \ruby{=}{*}
In case you’re wondering about the macro name: https://en.wikipedia.org/wiki/Ruby_character Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
participants (3)
-
Henning Hraban Ramm
-
Jeroen
-
Wolfgang Schuster