Subject: mailing-list for TeXmacs Users
List archive
From : Gennady Uraltsev <address@hidden>- To: Frank <address@hidden>
- Cc: TeXmacs <address@hidden>
- Subject: Re: TeXmacs: How to use \mathcal and \mathscr in the same time?
- Date: Thu, 29 Jul 2021 08:32:34 -0400
Nice catch.
Actually, if anyone more experienced in TeXmacs can comment on what that more complicated version of the macro means, that would be great!
I tried and the one I wrote works in the usual cases.
Best,
Gena
On Thu, Jul 29, 2021 at 6:52 AM Frank <address@hidden> wrote:
Thanks, especially for mentioning cal* which I did not know. However, I don't know whether this macro is perfect. I look at the code for math-tt:
<assign|math-tt|<macro|x|<rigid|<text|<with|font-family|tt|font-shape|right|<arg|x>>>>>>
<drd-props|math-tt|syntax|<macro|x|x>>
It looks like there might be some complication (rigid, drd-props).
Best,
Frank
On 7/28/21, Gennady Uraltsev wrote:
> Here are some options:
>
> 1)
> In math mode
> write: \with
> press: enter
> press: meta-leftarrow
> write: math-font
> press:leftarrow
> write:cal* (the * will be invisible
> press:leftarrow
> write: whatever you want to be in mathsrc
> press: enter
>
> 2) Define the following macro in the preamble:
> <assign|mathscr|<macro|body|<with|math-font|cal*|<arg|body>>>>
>
> To do this do to the menu-> Source -> New macro
>
> in the field enter-name
> write: mathscr
> press: meta-leftarrow (to add a parameter to the macro
> select: "text" in the drop down menu below
> position yourself after the := sign
> write: \with
> press: enter
> press: meta-leftarrow
> write: math-font
> press:leftarrow
> write:cal* (the * will not be invisible on account of "text" mode)
> press:leftarrow
> write: \body (backslash makes it reference the argument body and not be literally the word "body")
> press: enter
> press: apply button
>
> 3) Define macros that use mathscr for the recurring objects e.g.
> here is a macro that uses mathscr:
>
> <assign|Bor|<macro|<with|math-font|cal*|B>>>
>
> misc1)
> the figuring out of the key sequences to insert arguments and such is a bit of a hassle but after you do it once or twice it becomes intuitive (I am using Texmacs since 3 weeks)
>
> misc2)
> to copy paste Texmacs code you can always use menu->edit->paste from -> texmacs
>
> misc3)
> to make texmacs do something that you know how to do in latex copy the latex code to the clipboard and then use
> menu->edit->paste from -> latex
> then, if you want,
> go to menu->document->source->edit source tree
> and see how all that is supposed to look like
>
> misc4)
> Make a post with this question on forum.texmacs.cn <http://forum.texmacs.cn> so it remains easier to reference for posterity.
> Also, there one can copy-paste screenshots (or images in general) and there are better formatting options for code.
>
> Best,
>
> Gennady
>
>
> --
> Gennady Uraltsev
> <address@hidden <mailto:address@hidden>>
> (https://guraltsev.gitlab.io) <https://guraltsev.gitlab.io/>
>
>
>
> On Wed, Jul 28, 2021 at 3:58 PM Frank <address@hidden <mailto:address@hidden>> wrote:
>
> Dear all,
>
> I wonder how to use \mathscr along with \mathcal? The current TeXmacs default setup only uses \mathcal, not \mathscr. I look for the possibility to use both in the same time.
>
> Best,
> Frank
>
- TeXmacs: How to use \mathcal and \mathscr in the same time?, Frank, 07/28/2021
- Re: TeXmacs: How to use \mathcal and \mathscr in the same time?, Gennady Uraltsev, 07/28/2021
- Re: TeXmacs: How to use \mathcal and \mathscr in the same time?, Frank, 07/29/2021
- Re: TeXmacs: How to use \mathcal and \mathscr in the same time?, Gennady Uraltsev, 07/29/2021
- Re: TeXmacs: How to use \mathcal and \mathscr in the same time?, Frank, 07/29/2021
- Re: TeXmacs: How to use \mathcal and \mathscr in the same time?, Gennady Uraltsev, 07/28/2021
Archive powered by MHonArc 2.6.19.