Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline and font size #149

Closed
balsaknez opened this issue Aug 17, 2018 · 10 comments
Closed

Newline and font size #149

balsaknez opened this issue Aug 17, 2018 · 10 comments
Assignees

Comments

@balsaknez
Copy link

balsaknez commented Aug 17, 2018

Is it possible to render a newline?
When I type \r\n or \n, it renders a space instead of a newline.

Is it possible to set font size of text?

@balsaknez balsaknez changed the title Newline Newline and font size Aug 17, 2018
@Happypig375
Copy link

Newlines in LaTeX are @"\\".

@ForNeVeR ForNeVeR self-assigned this Aug 19, 2018
@ForNeVeR ForNeVeR removed their assignment Aug 19, 2018
@balsaknez
Copy link
Author

Thanks, but that doesn't work either

@Happypig375
Copy link

Then it might not be implemented.

@petereverett
Copy link

I have the same query - how do you insert a newline?

I tried \newline, \ and \par, none of them worked.

@ForNeVeR
Copy link
Owner

For now, neither of that was implemented. Hopefully we'll be able to implement them sooner or later. Best you can do to help is to implement the feature yourself and send a pull request :)

But mentioning that it is an important feature for you is already good enough, I'll prioritize the task.

@B3zaleel
Copy link
Contributor

B3zaleel commented Oct 15, 2018

I think one way to do this is to give the "TexEnvironment" a font size property and create a FontSizeAtom that changes the font size, just like the StyledAtom changes the environment's foreground. The CharBox atom now not only gets multiplied by the scale but also the environment's font size. The same goes for the default rule thickness. See #166 , it would help in reading the font size measurement and also help in commands like "\kern" (eg;\kern-4.9pt).

@ForNeVeR ForNeVeR added the csc label Sep 1, 2019
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Dec 3, 2019
It will allow the command to completely replace the previously created
formula.
@hbadi
Copy link

hbadi commented Dec 9, 2019

Hello, i tried everything to display multiline equations. Is it possible with wpfmath ?

@ForNeVeR
Copy link
Owner

ForNeVeR commented Dec 9, 2019

@hbadi, for now, you could try a matrix:
image

Will that work for you?

A proper newline implementation (in form of a freely-available \\ command) is in the works right now.

@NikolaiSviridov NikolaiSviridov mentioned this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
It will allow the command to completely replace the previously created
formula.
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 6, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 7, 2020
ForNeVeR added a commit to NikolaiSviridov/wpf-math that referenced this issue Jan 7, 2020
@ForNeVeR
Copy link
Owner

ForNeVeR commented Jan 7, 2020

Newline (aka \\ command) support has been merged in #222.

As discussion here was mostly about that feature, I've decided to close this issue and open a new one focused on font sizes: #239.

@ForNeVeR ForNeVeR closed this as completed Jan 7, 2020
@cvdevol
Copy link

cvdevol commented May 24, 2022

The best you can do regarding font size is to apply a ScaleTransform to the FormulaControl. This will increase/decrease the size of entire formula.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants